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: vcs provider service (#11208)
Danny Xuef76468da1d9
diff --git a/backend/api/gitops/webhook.go b/backend/api/gitops/webhook.goindex 0beccc4dff..1340a04616 100644--- a/backend/api/gitops/webhook.go+++ b/backend/api/gitops/webhook.go@@ -1058,7 +1058,7 @@ type repositoryFilter func(*store.RepositoryMessage) (bool, error)type repoInfo struct {repository *store.RepositoryMessageproject *store.ProjectMessage- vcs *store.ExternalVersionControlMessage+ vcs *store.VCSProviderMessage}func (s *Service) filterRepository(ctx context.Context, webhookEndpointID string, pushEventRepositoryID string, filter repositoryFilter) ([]*repoInfo, error) {@@ -1090,7 +1090,7 @@ func (s *Service) filterRepository(ctx context.Context, webhookEndpointID string)continue}- externalVCS, err := s.store.GetExternalVersionControlV2(ctx, repo.VCSUID)+ externalVCS, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)if err != nil {slog.Error("failed to find the vcs",slog.Int("vcs_uid", repo.VCSUID),@@ -1867,7 +1867,7 @@ func (s *Service) readFileContent(ctx context.Context, oauthContext *common.Oaut}repo := repos[0]- externalVCS, err := s.store.GetExternalVersionControlV2(ctx, repo.VCSUID)+ externalVCS, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)if err != nil {return "", err}diff --git a/backend/api/gitops/webhook_test.go b/backend/api/gitops/webhook_test.goindex e08faf27b1..4879a56d4c 100644--- a/backend/api/gitops/webhook_test.go+++ b/backend/api/gitops/webhook_test.go@@ -201,7 +201,7 @@ func TestGetFileInfo(t *testing.T) {FilePathTemplate: "{{DB_NAME}}##{{VERSION}}##{{TYPE}}.sql",},project: &store.ProjectMessage{},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},},)@@ -233,7 +233,7 @@ func TestGetFileInfo(t *testing.T) {FilePathTemplate: "{{DB_NAME}}##{{VERSION}}##{{TYPE}}.sql",},project: &store.ProjectMessage{},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},},)@@ -268,7 +268,7 @@ func TestGetFileInfo(t *testing.T) {project: &store.ProjectMessage{TenantMode: api.TenantModeTenant,},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},},)@@ -303,7 +303,7 @@ func TestGetFileInfo(t *testing.T) {project: &store.ProjectMessage{TenantMode: api.TenantModeTenant,},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},},)@@ -324,7 +324,7 @@ func TestGetFileInfo(t *testing.T) {FilePathTemplate: "{{DB_NAME}}##{{VERSION}}##{{TYPE}}.sql",},project: &store.ProjectMessage{},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},},)@@ -346,7 +346,7 @@ func TestGetFileInfo(t *testing.T) {project: &store.ProjectMessage{Title: "project-1",},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},{repository: &store.RepositoryMessage{@@ -356,7 +356,7 @@ func TestGetFileInfo(t *testing.T) {project: &store.ProjectMessage{Title: "project-2",},- vcs: &store.ExternalVersionControlMessage{},+ vcs: &store.VCSProviderMessage{},},},)diff --git a/backend/api/v1/acl_config.go b/backend/api/v1/acl_config.goindex 48cd4f7e5c..d121890a51 100644--- a/backend/api/v1/acl_config.go+++ b/backend/api/v1/acl_config.go@@ -119,27 +119,27 @@ var methodPermissionMap = map[string]iam.Permission{v1pb.InstanceRoleService_DeleteInstanceRole_FullMethodName: iam.PermissionInstancesUpdate,v1pb.InstanceRoleService_UndeleteInstanceRole_FullMethodName: iam.PermissionInstancesUpdate,- v1pb.ExternalVersionControlService_ListExternalVersionControls_FullMethodName: iam.PermissionExternalVersionControlsList,- v1pb.ExternalVersionControlService_GetExternalVersionControl_FullMethodName: iam.PermissionExternalVersionControlsGet,- v1pb.ExternalVersionControlService_CreateExternalVersionControl_FullMethodName: iam.PermissionExternalVersionControlsCreate,- v1pb.ExternalVersionControlService_ExchangeToken_FullMethodName: iam.PermissionExternalVersionControlsExchangeToken,- v1pb.ExternalVersionControlService_UpdateExternalVersionControl_FullMethodName: iam.PermissionExternalVersionControlsUpdate,- v1pb.ExternalVersionControlService_DeleteExternalVersionControl_FullMethodName: iam.PermissionExternalVersionControlsDelete,- v1pb.ExternalVersionControlService_SearchExternalVersionControlProjects_FullMethodName: iam.PermissionExternalVersionControlsSearchProjects,- v1pb.ExternalVersionControlService_ListProjectGitOpsInfo_FullMethodName: iam.PermissionExternalVersionControlsListProjects,- v1pb.RolloutService_ListPlans_FullMethodName: iam.PermissionPlansList,- v1pb.RolloutService_GetPlan_FullMethodName: iam.PermissionPlansGet,- v1pb.RolloutService_CreatePlan_FullMethodName: iam.PermissionPlansCreate,- v1pb.RolloutService_UpdatePlan_FullMethodName: iam.PermissionPlansUpdate,- v1pb.RolloutService_GetRollout_FullMethodName: iam.PermissionRolloutsGet,- v1pb.RolloutService_CreateRollout_FullMethodName: iam.PermissionRolloutsCreate,- v1pb.RolloutService_PreviewRollout_FullMethodName: iam.PermissionRolloutsPreview,- v1pb.RolloutService_ListTaskRuns_FullMethodName: iam.PermissionTaskRunsList,- v1pb.RolloutService_ListPlanCheckRuns_FullMethodName: iam.PermissionPlanCheckRunsList,- v1pb.RolloutService_RunPlanChecks_FullMethodName: iam.PermissionPlanCheckRunsRun,- v1pb.SettingService_ListSettings_FullMethodName: iam.PermissionSettingsList,- v1pb.SettingService_GetSetting_FullMethodName: iam.PermissionSettingsGet,- v1pb.SettingService_UpdateSetting_FullMethodName: iam.PermissionSettingsSet,+ v1pb.VCSProviderService_ListVCSProviders_FullMethodName: iam.PermissionVCSProvidersList,+ v1pb.VCSProviderService_GetVCSProvider_FullMethodName: iam.PermissionVCSProvidersGet,+ v1pb.VCSProviderService_CreateVCSProvider_FullMethodName: iam.PermissionVCSProvidersCreate,+ v1pb.VCSProviderService_ExchangeToken_FullMethodName: iam.PermissionVCSProvidersExchangeToken,+ v1pb.VCSProviderService_UpdateVCSProvider_FullMethodName: iam.PermissionVCSProvidersUpdate,+ v1pb.VCSProviderService_DeleteVCSProvider_FullMethodName: iam.PermissionVCSProvidersDelete,+ v1pb.VCSProviderService_SearchVCSProviderProjects_FullMethodName: iam.PermissionVCSProvidersSearchProjects,+ v1pb.VCSProviderService_ListProjectGitOpsInfo_FullMethodName: iam.PermissionVCSProvidersListProjects,+ v1pb.RolloutService_ListPlans_FullMethodName: iam.PermissionPlansList,+ v1pb.RolloutService_GetPlan_FullMethodName: iam.PermissionPlansGet,+ v1pb.RolloutService_CreatePlan_FullMethodName: iam.PermissionPlansCreate,+ v1pb.RolloutService_UpdatePlan_FullMethodName: iam.PermissionPlansUpdate,+ v1pb.RolloutService_GetRollout_FullMethodName: iam.PermissionRolloutsGet,+ v1pb.RolloutService_CreateRollout_FullMethodName: iam.PermissionRolloutsCreate,+ v1pb.RolloutService_PreviewRollout_FullMethodName: iam.PermissionRolloutsPreview,+ v1pb.RolloutService_ListTaskRuns_FullMethodName: iam.PermissionTaskRunsList,+ v1pb.RolloutService_ListPlanCheckRuns_FullMethodName: iam.PermissionPlanCheckRunsList,+ v1pb.RolloutService_RunPlanChecks_FullMethodName: iam.PermissionPlanCheckRunsRun,+ v1pb.SettingService_ListSettings_FullMethodName: iam.PermissionSettingsList,+ v1pb.SettingService_GetSetting_FullMethodName: iam.PermissionSettingsGet,+ v1pb.SettingService_UpdateSetting_FullMethodName: iam.PermissionSettingsSet,v1pb.OrgPolicyService_ListPolicies_FullMethodName: iam.PermissionPoliciesList,v1pb.OrgPolicyService_GetPolicy_FullMethodName: iam.PermissionPoliciesGet,diff --git a/backend/api/v1/acl_iam.go b/backend/api/v1/acl_iam.goindex 601a42233c..c906c748a5 100644--- a/backend/api/v1/acl_iam.go+++ b/backend/api/v1/acl_iam.go@@ -238,14 +238,14 @@ func (in *ACLInterceptor) doIAMPermissionCheck(ctx context.Context, fullMethod sv1pb.IdentityProviderService_DeleteIdentityProvider_FullMethodName,v1pb.IdentityProviderService_UndeleteIdentityProvider_FullMethodName,v1pb.IdentityProviderService_TestIdentityProvider_FullMethodName,- v1pb.ExternalVersionControlService_ListExternalVersionControls_FullMethodName,- v1pb.ExternalVersionControlService_GetExternalVersionControl_FullMethodName,- v1pb.ExternalVersionControlService_CreateExternalVersionControl_FullMethodName,- v1pb.ExternalVersionControlService_ExchangeToken_FullMethodName,- v1pb.ExternalVersionControlService_UpdateExternalVersionControl_FullMethodName,- v1pb.ExternalVersionControlService_DeleteExternalVersionControl_FullMethodName,- v1pb.ExternalVersionControlService_SearchExternalVersionControlProjects_FullMethodName,- v1pb.ExternalVersionControlService_ListProjectGitOpsInfo_FullMethodName,+ v1pb.VCSProviderService_ListVCSProviders_FullMethodName,+ v1pb.VCSProviderService_GetVCSProvider_FullMethodName,+ v1pb.VCSProviderService_CreateVCSProvider_FullMethodName,+ v1pb.VCSProviderService_ExchangeToken_FullMethodName,+ v1pb.VCSProviderService_UpdateVCSProvider_FullMethodName,+ v1pb.VCSProviderService_DeleteVCSProvider_FullMethodName,+ v1pb.VCSProviderService_SearchVCSProviderProjects_FullMethodName,+ v1pb.VCSProviderService_ListProjectGitOpsInfo_FullMethodName,v1pb.RiskService_ListRisks_FullMethodName,v1pb.RiskService_CreateRisk_FullMethodName,v1pb.RiskService_UpdateRisk_FullMethodName,diff --git a/backend/api/v1/externalvs_service.go b/backend/api/v1/externalvs_service.godeleted file mode 100644index efab9745b4..0000000000--- a/backend/api/v1/externalvs_service.go+++ /dev/null@@ -1,385 +0,0 @@-package v1--import (- "context"- "fmt"- "strings"- "time"-- "github.com/pkg/errors"- "google.golang.org/grpc/codes"- "google.golang.org/grpc/status"- "google.golang.org/protobuf/types/known/emptypb"- "google.golang.org/protobuf/types/known/timestamppb"-- "github.com/bytebase/bytebase/backend/common"- "github.com/bytebase/bytebase/backend/plugin/vcs"- "github.com/bytebase/bytebase/backend/store"- v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"-)--// ExternalVersionControlService represents a service for managing external version control.-type ExternalVersionControlService struct {- v1pb.UnimplementedExternalVersionControlServiceServer- store *store.Store-}--// NewExternalVersionControlService returns a new instance of ExternalVersionControlService.-func NewExternalVersionControlService(store *store.Store) *ExternalVersionControlService {- return &ExternalVersionControlService{store: store}-}--// GetExternalVersionControl get a single external version control.-func (s *ExternalVersionControlService) GetExternalVersionControl(ctx context.Context, request *v1pb.GetExternalVersionControlRequest) (*v1pb.ExternalVersionControl, error) {- vcs, err := s.getVCS(ctx, request.Name)- if err != nil {- return nil, err- }-- return convertToExternalVersionControl(vcs), nil-}--// ListExternalVersionControls lists external version controls.-func (s *ExternalVersionControlService) ListExternalVersionControls(ctx context.Context, _ *v1pb.ListExternalVersionControlsRequest) (*v1pb.ListExternalVersionControlsResponse, error) {- externalVersionControls, err := s.store.ListExternalVersionControls(ctx)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to retrieve external version control: %v", err)- }- return &v1pb.ListExternalVersionControlsResponse{ExternalVersionControls: convertToExternalVersionControls(externalVersionControls)}, nil-}--// CreateExternalVersionControl creates a new external version control.-func (s *ExternalVersionControlService) CreateExternalVersionControl(ctx context.Context, request *v1pb.CreateExternalVersionControlRequest) (*v1pb.ExternalVersionControl, error) {- externalVersionControl, err := checkAndConvertToStoreVersionControl(request.ExternalVersionControl)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- storeExternalVersionControl, err := s.store.CreateExternalVersionControlV2(ctx, principalID, externalVersionControl)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to create external version control: %v", err)- }- return convertToExternalVersionControl(storeExternalVersionControl), nil-}--// UpdateExternalVersionControl updates an existing external version control.-func (s *ExternalVersionControlService) UpdateExternalVersionControl(ctx context.Context, request *v1pb.UpdateExternalVersionControlRequest) (*v1pb.ExternalVersionControl, error) {- if request.UpdateMask == nil {- return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")- }- externalVersionControlUID, err := common.GetExternalVersionControlID(request.ExternalVersionControl.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }-- externalVersionControl, err := s.store.GetExternalVersionControlV2(ctx, externalVersionControlUID)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to retrieve external version control: %v", err)- }- if externalVersionControl == nil {- return nil, status.Errorf(codes.NotFound, "External version control not found: %v", err)- }-- update := &store.UpdateExternalVersionControlMessage{}- for _, path := range request.UpdateMask.Paths {- switch path {- case "title":- if request.ExternalVersionControl.Title == "" {- return nil, status.Errorf(codes.InvalidArgument, "title should not be empty")- }- update.Name = &request.ExternalVersionControl.Title- case "application_id":- if request.ExternalVersionControl.ApplicationId == "" {- return nil, status.Errorf(codes.InvalidArgument, "application_id should not be empty")- }- update.ApplicationID = &request.ExternalVersionControl.ApplicationId- case "secret":- if request.ExternalVersionControl.Secret == "" {- return nil, status.Errorf(codes.InvalidArgument, "secret should not be empty")- }- update.Secret = &request.ExternalVersionControl.Secret- }- }-- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- externalVersionControl, err = s.store.UpdateExternalVersionControlV2(ctx, principalID, externalVersionControlUID, update)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- return convertToExternalVersionControl(externalVersionControl), nil-}--// DeleteExternalVersionControl deletes an existing external version control.-func (s *ExternalVersionControlService) DeleteExternalVersionControl(ctx context.Context, request *v1pb.DeleteExternalVersionControlRequest) (*emptypb.Empty, error) {- externalVersionControlUID, err := common.GetExternalVersionControlID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }-- externalVersionControl, err := s.store.GetExternalVersionControlV2(ctx, externalVersionControlUID)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to retrieve external version control: %v", err)- }- if externalVersionControl == nil {- return nil, status.Errorf(codes.NotFound, "External version control not found: %v", err)- }-- if err := s.store.DeleteExternalVersionControlV2(ctx, externalVersionControlUID); err != nil {- return nil, status.Errorf(codes.Internal, "Failed to delete external version control: %v", err)- }- return &emptypb.Empty{}, nil-}--// SearchExternalVersionControlProjects searches external version control projects, for example, GitHub repository.-func (s *ExternalVersionControlService) SearchExternalVersionControlProjects(ctx context.Context, request *v1pb.SearchExternalVersionControlProjectsRequest) (*v1pb.SearchExternalVersionControlProjectsResponse, error) {- externalVersionControlUID, err := common.GetExternalVersionControlID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }-- externalVersionControl, err := s.store.GetExternalVersionControlV2(ctx, externalVersionControlUID)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to retrieve external version control: %v", err)- }- if externalVersionControl == nil {- return nil, status.Errorf(codes.NotFound, "External version control not found: %v", err)- }-- 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")- }-- apiExternalProjectList, err := vcs.Get(externalVersionControl.Type, vcs.ProviderConfig{}).FetchAllRepositoryList(- ctx,- &common.OauthContext{- ClientID: externalVersionControl.ApplicationID,- ClientSecret: externalVersionControl.Secret,- AccessToken: request.AccessToken,- RefreshToken: request.RefreshToken,- RedirectURL: fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl),- Refresher: nil,- },- externalVersionControl.InstanceURL,- )- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to fetch external project list: %v", err)- }-- var externalProjects []*v1pb.SearchExternalVersionControlProjectsResponse_Project- for _, apiExternalProject := range apiExternalProjectList {- externalProjects = append(externalProjects, &v1pb.SearchExternalVersionControlProjectsResponse_Project{- Id: apiExternalProject.ID,- Title: apiExternalProject.Name,- Fullpath: apiExternalProject.FullPath,- WebUrl: apiExternalProject.WebURL,- })- }-- return &v1pb.SearchExternalVersionControlProjectsResponse{- Projects: externalProjects,- }, nil-}--// ListProjectGitOpsInfo lists GitOps info of a project.-func (s *ExternalVersionControlService) ListProjectGitOpsInfo(ctx context.Context, request *v1pb.ListProjectGitOpsInfoRequest) (*v1pb.ListProjectGitOpsInfoResponse, error) {- externalVersionControlUID, err := common.GetExternalVersionControlID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }-- repoList, err := s.store.ListRepositoryV2(ctx, &store.FindRepositoryMessage{- VCSUID: &externalVersionControlUID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to fetch external repository list: %v", err)- }-- resp := &v1pb.ListProjectGitOpsInfoResponse{}- for _, repo := range repoList {- resp.ProjectGitopsInfo = append(resp.ProjectGitopsInfo, convertToProjectGitOpsInfo(repo))- }-- return resp, nil-}--// ExchangeToken exchanges the OAuth token for VCS.-func (s *ExternalVersionControlService) ExchangeToken(ctx context.Context, request *v1pb.ExchangeTokenRequest) (*v1pb.OAuthToken, error) {- var vcsType vcs.Type- var instanceURL string- var oauthExchange *common.OAuthExchange-- if request.ExchangeToken.Name == fmt.Sprintf("%s-", common.ExternalVersionControlPrefix) {- tp, err := convertExternalVersionControlTypeToVCSType(request.ExchangeToken.Type)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- vcsType = tp-- instanceURL = request.ExchangeToken.InstanceUrl- oauthExchange = &common.OAuthExchange{- ClientID: request.ExchangeToken.ClientId,- ClientSecret: request.ExchangeToken.ClientSecret,- Code: request.ExchangeToken.Code,- }-- if instanceURL == "" {- return nil, status.Errorf(codes.InvalidArgument, "instance url is required")- }- if oauthExchange.ClientID == "" || oauthExchange.ClientSecret == "" || oauthExchange.Code == "" {- return nil, status.Errorf(codes.InvalidArgument, "client_id, client_secret and code is required")- }- } else {- externalVersionControl, err := s.getVCS(ctx, request.ExchangeToken.Name)- if err != nil {- return nil, err- }-- vcsType = externalVersionControl.Type- instanceURL = externalVersionControl.InstanceURL- clientID := request.ExchangeToken.ClientId- clientSecret := request.ExchangeToken.ClientSecret- // Since we may not pass in ClientID and ClientSecret in the request, we will use the client ID and secret from VCS store even if it's stale.- // If it's stale, we should return better error messages and ask users to update the VCS secrets.- // https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/frontend/src/components/RepositorySelectionPanel.vue?L77:8&subtree=true- // https://github.com/bytebase/bytebase/issues/1372- if clientID == "" || clientSecret == "" {- clientID = externalVersionControl.ApplicationID- clientSecret = externalVersionControl.Secret- }- oauthExchange = &common.OAuthExchange{- ClientID: clientID,- ClientSecret: clientSecret,- Code: request.ExchangeToken.Code,- }- }-- 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")- }-- oauthExchange.RedirectURL = fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl)- oauthToken, err := vcs.Get(vcsType, vcs.ProviderConfig{}).- ExchangeOAuthToken(- ctx,- instanceURL,- oauthExchange,- )- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to exchange OAuth token with error: %v. Make sure %q matches your browser host. Note that if you are not using port 80 or 443, you should also specify the port such as --external-url=http://host:port", err.Error(), setting.ExternalUrl)- }-- return &v1pb.OAuthToken{- AccessToken: oauthToken.AccessToken,- RefreshToken: oauthToken.RefreshToken,- ExpiresTime: timestamppb.New(time.Unix(oauthToken.ExpiresTs, 0)),- }, nil-}--func (s *ExternalVersionControlService) getVCS(ctx context.Context, name string) (*store.ExternalVersionControlMessage, error) {- externalVersionControlUID, err := common.GetExternalVersionControlID(name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }-- externalVersionControl, err := s.store.GetExternalVersionControlV2(ctx, externalVersionControlUID)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to retrieve external version control: %v", err)- }- if externalVersionControl == nil {- return nil, status.Errorf(codes.NotFound, "External version control not found: %v", err)- }-- return externalVersionControl, nil-}--func convertToExternalVersionControls(externalVersionControls []*store.ExternalVersionControlMessage) []*v1pb.ExternalVersionControl {- var res []*v1pb.ExternalVersionControl- for _, externalVersionControl := range externalVersionControls {- res = append(res, convertToExternalVersionControl(externalVersionControl))- }- return res-}--func convertToExternalVersionControl(externalVersionControl *store.ExternalVersionControlMessage) *v1pb.ExternalVersionControl {- tp := v1pb.ExternalVersionControl_TYPE_UNSPECIFIED- switch externalVersionControl.Type {- case vcs.GitHub:- tp = v1pb.ExternalVersionControl_GITHUB- case vcs.GitLab:- tp = v1pb.ExternalVersionControl_GITLAB- case vcs.Bitbucket:- tp = v1pb.ExternalVersionControl_BITBUCKET- case vcs.AzureDevOps:- tp = v1pb.ExternalVersionControl_AZURE_DEVOPS- }-- return &v1pb.ExternalVersionControl{- Name: fmt.Sprintf("%s%d", common.ExternalVersionControlPrefix, externalVersionControl.ID),- Title: externalVersionControl.Name,- Type: tp,- Url: externalVersionControl.InstanceURL,- ApiUrl: externalVersionControl.APIURL,- ApplicationId: externalVersionControl.ApplicationID,- }-}--func checkAndConvertToStoreVersionControl(externalVersionControl *v1pb.ExternalVersionControl) (*store.ExternalVersionControlMessage, error) {- if externalVersionControl.Title == "" {- return nil, errors.Errorf("Empty ExternalVersionControl.Title")- }- if externalVersionControl.Type == v1pb.ExternalVersionControl_TYPE_UNSPECIFIED {- return nil, errors.Errorf("Empty ExternalVersionControl.Type")- }- if externalVersionControl.Url == "" {- return nil, errors.Errorf("Empty ExternalVersionControl.Url")- }- if externalVersionControl.ApplicationId == "" {- return nil, errors.Errorf("Empty ExternalVersionControl.ApplicationId")- }- if externalVersionControl.Secret == "" {- return nil, errors.Errorf("Empty ExternalVersionControl.Secret")- }- storeExternalVersionControl := &store.ExternalVersionControlMessage{- Name: externalVersionControl.Title,- ApplicationID: externalVersionControl.ApplicationId,- Secret: externalVersionControl.Secret,- }-- tp, err := convertExternalVersionControlTypeToVCSType(externalVersionControl.Type)- if err != nil {- return nil, err- }-- storeExternalVersionControl.InstanceURL = strings.TrimRight(externalVersionControl.Url, "/")- storeExternalVersionControl.APIURL = vcs.Get(tp, vcs.ProviderConfig{}).APIURL(externalVersionControl.Url)- storeExternalVersionControl.Type = tp- return storeExternalVersionControl, nil-}--func convertExternalVersionControlTypeToVCSType(tp v1pb.ExternalVersionControl_Type) (vcs.Type, error) {- switch tp {- case v1pb.ExternalVersionControl_GITHUB:- return vcs.GitHub, nil- case v1pb.ExternalVersionControl_GITLAB:- return vcs.GitLab, nil- case v1pb.ExternalVersionControl_BITBUCKET:- return vcs.Bitbucket, nil- case v1pb.ExternalVersionControl_AZURE_DEVOPS:- return vcs.AzureDevOps, nil- }- return "", errors.Errorf("unknown external version control type: %v", tp)-}diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex 051417a368..e76f85a2f8 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -477,7 +477,7 @@ func (s *ProjectService) UpdateProjectGitOpsInfo(ctx context.Context, request *vif err != nil {return nil, status.Errorf(codes.InvalidArgument, "invalid vcs uid: %s", request.ProjectGitopsInfo.VcsUid)}- storeVCS, err := s.store.GetExternalVersionControlV2(ctx, intVCSUID)+ storeVCS, err := s.store.GetVCSProviderV2(ctx, intVCSUID)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -516,7 +516,7 @@ func (s *ProjectService) UpdateProjectGitOpsInfo(ctx context.Context, request *vreturn nil, status.Errorf(codes.InvalidArgument, "branch must be specified")}- vcs, err := s.store.GetExternalVersionControlV2(ctx, repo.VCSUID)+ vcs, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -584,7 +584,7 @@ func (s *ProjectService) SetupProjectSQLReviewCI(ctx context.Context, request *vreturn nil, err}- vcs, err := s.store.GetExternalVersionControlV2(ctx, repo.VCSUID)+ vcs, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -628,7 +628,7 @@ func (s *ProjectService) UnsetProjectGitOpsInfo(ctx context.Context, request *v1return nil, err}- vcs, err := s.store.GetExternalVersionControlV2(ctx, repo.VCSUID)+ vcs, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -1047,7 +1047,7 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *vif err != nil {return nil, status.Errorf(codes.InvalidArgument, "invalid vcs uid: %s", request.ProjectGitopsInfo.VcsUid)}- storeVCS, err := s.store.GetExternalVersionControlV2(ctx, intVCSUID)+ storeVCS, err := s.store.GetVCSProviderV2(ctx, intVCSUID)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -1108,7 +1108,7 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *vreturn nil, status.Errorf(codes.InvalidArgument, "invalid schema_path_template: %s", err.Error())}- vcs, err := s.store.GetExternalVersionControlV2(ctx, repositoryCreate.VCSUID)+ vcs, err := s.store.GetVCSProviderV2(ctx, repositoryCreate.VCSUID)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -1190,7 +1190,7 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *vreturn convertToProjectGitOpsInfo(repository), nil}-func (s *ProjectService) setupVCSSQLReviewCI(ctx context.Context, repository *store.RepositoryMessage, vcs *store.ExternalVersionControlMessage) (*vcsplugin.PullRequest, error) {+func (s *ProjectService) setupVCSSQLReviewCI(ctx context.Context, repository *store.RepositoryMessage, vcs *store.VCSProviderMessage) (*vcsplugin.PullRequest, error) {setting, err := s.store.GetWorkspaceGeneralSetting(ctx)if err != nil {return nil, err@@ -1266,7 +1266,7 @@ func (s *ProjectService) setupVCSSQLReviewCI(ctx context.Context, repository *st}// setupVCSSQLReviewBranch will create a new branch to setup SQL review CI.-func (s *ProjectService) setupVCSSQLReviewBranch(ctx context.Context, repository *store.RepositoryMessage, vcs *store.ExternalVersionControlMessage) (*vcsplugin.BranchInfo, error) {+func (s *ProjectService) setupVCSSQLReviewBranch(ctx context.Context, repository *store.RepositoryMessage, vcs *store.VCSProviderMessage) (*vcsplugin.BranchInfo, error) {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())@@ -1316,7 +1316,7 @@ func setupVCSSQLReviewCIForGitHub(ctx context.Context,oauthContext *common.OauthContext,repository *store.RepositoryMessage,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,branch *vcsplugin.BranchInfo,sqlReviewEndpoint string,) error {@@ -1368,7 +1368,7 @@ func setupVCSSQLReviewCIForBitBucket(ctx context.Context,oauthContext *common.OauthContext,repository *store.RepositoryMessage,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,branch *vcsplugin.BranchInfo,sqlReviewEndpoint string,) error {@@ -1420,7 +1420,7 @@ func setupVCSSQLReviewCIForGitLab(ctx context.Context,oauthContext *common.OauthContext,repository *store.RepositoryMessage,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,branch *vcsplugin.BranchInfo,sqlReviewEndpoint string,) error {@@ -1469,7 +1469,7 @@ func setupVCSSQLReviewCIForAzureDevOps(ctx context.Context,oauthContext *common.OauthContext,repository *store.RepositoryMessage,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,branch *vcsplugin.BranchInfo,sqlReviewEndpoint string,) error {@@ -1522,7 +1522,7 @@ func createOrUpdateVCSSQLReviewFile(ctx context.Context,oauthContext *common.OauthContext,repository *store.RepositoryMessage,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,branch *vcsplugin.BranchInfo,fileName string,getNewContent func(meta *vcsplugin.FileMeta) (string, error),@@ -3048,7 +3048,7 @@ func convertToProjectGitOpsInfo(repository *store.RepositoryMessage) *v1pb.Projefunc isBranchNotFound(ctx context.Context,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,store *store.Store,webURL, accessToken, refreshToken, externalID, branch, externalURL string,) (bool, error) {diff --git a/backend/api/v1/vcs_provider_service.go b/backend/api/v1/vcs_provider_service.gonew file mode 100644index 0000000000..79e7461c67--- /dev/null+++ b/backend/api/v1/vcs_provider_service.go@@ -0,0 +1,385 @@+package v1++import (+ "context"+ "fmt"+ "strings"+ "time"++ "github.com/pkg/errors"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/status"+ "google.golang.org/protobuf/types/known/emptypb"+ "google.golang.org/protobuf/types/known/timestamppb"++ "github.com/bytebase/bytebase/backend/common"+ "github.com/bytebase/bytebase/backend/plugin/vcs"+ "github.com/bytebase/bytebase/backend/store"+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"+)++// VCSProviderService represents a service for managing vcs provider.+type VCSProviderService struct {+ v1pb.UnimplementedVCSProviderServiceServer+ store *store.Store+}++// NewVCSProviderService returns a new instance of VCSProviderService.+func NewVCSProviderService(store *store.Store) *VCSProviderService {+ return &VCSProviderService{store: store}+}++// GetVCSProvider get a single vcs provider.+func (s *VCSProviderService) GetVCSProvider(ctx context.Context, request *v1pb.GetVCSProviderRequest) (*v1pb.VCSProvider, error) {+ vcs, err := s.getVCS(ctx, request.Name)+ if err != nil {+ return nil, err+ }++ return convertToVCSProvider(vcs), nil+}++// ListVCSProviders lists vcs providers.+func (s *VCSProviderService) ListVCSProviders(ctx context.Context, _ *v1pb.ListVCSProvidersRequest) (*v1pb.ListVCSProvidersResponse, error) {+ vcsProviders, err := s.store.ListVCSProviders(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)+ }+ return &v1pb.ListVCSProvidersResponse{VcsProviders: convertToVCSProviders(vcsProviders)}, nil+}++// CreateVCSProvider creates a new vcs provider.+func (s *VCSProviderService) CreateVCSProvider(ctx context.Context, request *v1pb.CreateVCSProviderRequest) (*v1pb.VCSProvider, error) {+ vcsProvider, err := checkAndConvertToStoreVersionControl(request.VcsProvider)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)+ if !ok {+ return nil, status.Errorf(codes.Internal, "principal ID not found")+ }+ storeVCSProvider, err := s.store.CreateVCSProviderV2(ctx, principalID, vcsProvider)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to create vcs provider: %v", err)+ }+ return convertToVCSProvider(storeVCSProvider), nil+}++// UpdateVCSProvider updates an existing vcs provider.+func (s *VCSProviderService) UpdateVCSProvider(ctx context.Context, request *v1pb.UpdateVCSProviderRequest) (*v1pb.VCSProvider, error) {+ if request.UpdateMask == nil {+ return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")+ }+ vcsProviderUID, err := common.GetVCSProviderID(request.VcsProvider.Name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }++ vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)+ }+ if vcsProvider == nil {+ return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)+ }++ update := &store.UpdateVCSProviderMessage{}+ for _, path := range request.UpdateMask.Paths {+ switch path {+ case "title":+ if request.VcsProvider.Title == "" {+ return nil, status.Errorf(codes.InvalidArgument, "title should not be empty")+ }+ update.Name = &request.VcsProvider.Title+ case "application_id":+ if request.VcsProvider.ApplicationId == "" {+ return nil, status.Errorf(codes.InvalidArgument, "application_id should not be empty")+ }+ update.ApplicationID = &request.VcsProvider.ApplicationId+ case "secret":+ if request.VcsProvider.Secret == "" {+ return nil, status.Errorf(codes.InvalidArgument, "secret should not be empty")+ }+ update.Secret = &request.VcsProvider.Secret+ }+ }++ principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)+ if !ok {+ return nil, status.Errorf(codes.Internal, "principal ID not found")+ }+ vcsProvider, err = s.store.UpdateVCSProviderV2(ctx, principalID, vcsProviderUID, update)+ if err != nil {+ return nil, status.Errorf(codes.Internal, err.Error())+ }+ return convertToVCSProvider(vcsProvider), nil+}++// DeleteVCSProvider deletes an existing vcs provider.+func (s *VCSProviderService) DeleteVCSProvider(ctx context.Context, request *v1pb.DeleteVCSProviderRequest) (*emptypb.Empty, error) {+ vcsProviderUID, err := common.GetVCSProviderID(request.Name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }++ vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)+ }+ if vcsProvider == nil {+ return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)+ }++ if err := s.store.DeleteVCSProviderV2(ctx, vcsProviderUID); err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to delete vcs provider: %v", err)+ }+ return &emptypb.Empty{}, nil+}++// SearchVCSProviderProjects searches vcs provider projects, for example, GitHub repository.+func (s *VCSProviderService) SearchVCSProviderProjects(ctx context.Context, request *v1pb.SearchVCSProviderProjectsRequest) (*v1pb.SearchVCSProviderProjectsResponse, error) {+ vcsProviderUID, err := common.GetVCSProviderID(request.Name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }++ vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)+ }+ if vcsProvider == nil {+ return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)+ }++ 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")+ }++ apiExternalProjectList, err := vcs.Get(vcsProvider.Type, vcs.ProviderConfig{}).FetchAllRepositoryList(+ ctx,+ &common.OauthContext{+ ClientID: vcsProvider.ApplicationID,+ ClientSecret: vcsProvider.Secret,+ AccessToken: request.AccessToken,+ RefreshToken: request.RefreshToken,+ RedirectURL: fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl),+ Refresher: nil,+ },+ vcsProvider.InstanceURL,+ )+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to fetch external project list: %v", err)+ }++ var externalProjects []*v1pb.SearchVCSProviderProjectsResponse_Project+ for _, apiExternalProject := range apiExternalProjectList {+ externalProjects = append(externalProjects, &v1pb.SearchVCSProviderProjectsResponse_Project{+ Id: apiExternalProject.ID,+ Title: apiExternalProject.Name,+ Fullpath: apiExternalProject.FullPath,+ WebUrl: apiExternalProject.WebURL,+ })+ }++ return &v1pb.SearchVCSProviderProjectsResponse{+ Projects: externalProjects,+ }, nil+}++// ListProjectGitOpsInfo lists GitOps info of a project.+func (s *VCSProviderService) ListProjectGitOpsInfo(ctx context.Context, request *v1pb.ListProjectGitOpsInfoRequest) (*v1pb.ListProjectGitOpsInfoResponse, error) {+ vcsProviderUID, err := common.GetVCSProviderID(request.Name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }++ repoList, err := s.store.ListRepositoryV2(ctx, &store.FindRepositoryMessage{+ VCSUID: &vcsProviderUID,+ })+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to fetch external repository list: %v", err)+ }++ resp := &v1pb.ListProjectGitOpsInfoResponse{}+ for _, repo := range repoList {+ resp.ProjectGitopsInfo = append(resp.ProjectGitopsInfo, convertToProjectGitOpsInfo(repo))+ }++ return resp, nil+}++// ExchangeToken exchanges the OAuth token for VCS.+func (s *VCSProviderService) ExchangeToken(ctx context.Context, request *v1pb.ExchangeTokenRequest) (*v1pb.OAuthToken, error) {+ var vcsType vcs.Type+ var instanceURL string+ var oauthExchange *common.OAuthExchange++ if request.ExchangeToken.Name == fmt.Sprintf("%s-", common.VCSProviderPrefix) {+ tp, err := convertVCSProviderTypeToVCSType(request.ExchangeToken.Type)+ if err != nil {+ return nil, status.Errorf(codes.Internal, err.Error())+ }+ vcsType = tp++ instanceURL = request.ExchangeToken.InstanceUrl+ oauthExchange = &common.OAuthExchange{+ ClientID: request.ExchangeToken.ClientId,+ ClientSecret: request.ExchangeToken.ClientSecret,+ Code: request.ExchangeToken.Code,+ }++ if instanceURL == "" {+ return nil, status.Errorf(codes.InvalidArgument, "instance url is required")+ }+ if oauthExchange.ClientID == "" || oauthExchange.ClientSecret == "" || oauthExchange.Code == "" {+ return nil, status.Errorf(codes.InvalidArgument, "client_id, client_secret and code is required")+ }+ } else {+ vcsProvider, err := s.getVCS(ctx, request.ExchangeToken.Name)+ if err != nil {+ return nil, err+ }++ vcsType = vcsProvider.Type+ instanceURL = vcsProvider.InstanceURL+ clientID := request.ExchangeToken.ClientId+ clientSecret := request.ExchangeToken.ClientSecret+ // Since we may not pass in ClientID and ClientSecret in the request, we will use the client ID and secret from VCS store even if it's stale.+ // If it's stale, we should return better error messages and ask users to update the VCS secrets.+ // https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/frontend/src/components/RepositorySelectionPanel.vue?L77:8&subtree=true+ // https://github.com/bytebase/bytebase/issues/1372+ if clientID == "" || clientSecret == "" {+ clientID = vcsProvider.ApplicationID+ clientSecret = vcsProvider.Secret+ }+ oauthExchange = &common.OAuthExchange{+ ClientID: clientID,+ ClientSecret: clientSecret,+ Code: request.ExchangeToken.Code,+ }+ }++ 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")+ }++ oauthExchange.RedirectURL = fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl)+ oauthToken, err := vcs.Get(vcsType, vcs.ProviderConfig{}).+ ExchangeOAuthToken(+ ctx,+ instanceURL,+ oauthExchange,+ )+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to exchange OAuth token with error: %v. Make sure %q matches your browser host. Note that if you are not using port 80 or 443, you should also specify the port such as --external-url=http://host:port", err.Error(), setting.ExternalUrl)+ }++ return &v1pb.OAuthToken{+ AccessToken: oauthToken.AccessToken,+ RefreshToken: oauthToken.RefreshToken,+ ExpiresTime: timestamppb.New(time.Unix(oauthToken.ExpiresTs, 0)),+ }, nil+}++func (s *VCSProviderService) getVCS(ctx context.Context, name string) (*store.VCSProviderMessage, error) {+ vcsProviderUID, err := common.GetVCSProviderID(name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }++ vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)+ }+ if vcsProvider == nil {+ return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)+ }++ return vcsProvider, nil+}++func convertToVCSProviders(vcsProviders []*store.VCSProviderMessage) []*v1pb.VCSProvider {+ var res []*v1pb.VCSProvider+ for _, vcsProvider := range vcsProviders {+ res = append(res, convertToVCSProvider(vcsProvider))+ }+ return res+}++func convertToVCSProvider(vcsProvider *store.VCSProviderMessage) *v1pb.VCSProvider {+ tp := v1pb.VCSProvider_TYPE_UNSPECIFIED+ switch vcsProvider.Type {+ case vcs.GitHub:+ tp = v1pb.VCSProvider_GITHUB+ case vcs.GitLab:+ tp = v1pb.VCSProvider_GITLAB+ case vcs.Bitbucket:+ tp = v1pb.VCSProvider_BITBUCKET+ case vcs.AzureDevOps:+ tp = v1pb.VCSProvider_AZURE_DEVOPS+ }++ return &v1pb.VCSProvider{+ Name: fmt.Sprintf("%s%d", common.VCSProviderPrefix, vcsProvider.ID),+ Title: vcsProvider.Name,+ Type: tp,+ Url: vcsProvider.InstanceURL,+ ApiUrl: vcsProvider.APIURL,+ ApplicationId: vcsProvider.ApplicationID,+ }+}++func checkAndConvertToStoreVersionControl(vcsProvider *v1pb.VCSProvider) (*store.VCSProviderMessage, error) {+ if vcsProvider.Title == "" {+ return nil, errors.Errorf("Empty VCSProvider.Title")+ }+ if vcsProvider.Type == v1pb.VCSProvider_TYPE_UNSPECIFIED {+ return nil, errors.Errorf("Empty VCSProvider.Type")+ }+ if vcsProvider.Url == "" {+ return nil, errors.Errorf("Empty VCSProvider.Url")+ }+ if vcsProvider.ApplicationId == "" {+ return nil, errors.Errorf("Empty VCSProvider.ApplicationId")+ }+ if vcsProvider.Secret == "" {+ return nil, errors.Errorf("Empty VCSProvider.Secret")+ }+ storeVCSProvider := &store.VCSProviderMessage{+ Name: vcsProvider.Title,+ ApplicationID: vcsProvider.ApplicationId,+ Secret: vcsProvider.Secret,+ }++ tp, err := convertVCSProviderTypeToVCSType(vcsProvider.Type)+ if err != nil {+ return nil, err+ }++ storeVCSProvider.InstanceURL = strings.TrimRight(vcsProvider.Url, "/")+ storeVCSProvider.APIURL = vcs.Get(tp, vcs.ProviderConfig{}).APIURL(vcsProvider.Url)+ storeVCSProvider.Type = tp+ return storeVCSProvider, nil+}++func convertVCSProviderTypeToVCSType(tp v1pb.VCSProvider_Type) (vcs.Type, error) {+ switch tp {+ case v1pb.VCSProvider_GITHUB:+ return vcs.GitHub, nil+ case v1pb.VCSProvider_GITLAB:+ return vcs.GitLab, nil+ case v1pb.VCSProvider_BITBUCKET:+ return vcs.Bitbucket, nil+ case v1pb.VCSProvider_AZURE_DEVOPS:+ return vcs.AzureDevOps, nil+ }+ return "", errors.Errorf("unknown vcs provider type: %v", tp)+}diff --git a/backend/common/resource_name.go b/backend/common/resource_name.goindex 43087c25da..5e64c9ee89 100644--- a/backend/common/resource_name.go+++ b/backend/common/resource_name.go@@ -11,41 +11,41 @@ import (// nolint:reviveconst (- ProjectNamePrefix = "projects/"- EnvironmentNamePrefix = "environments/"- InstanceNamePrefix = "instances/"- PolicyNamePrefix = "policies/"- DatabaseIDPrefix = "databases/"- InstanceRolePrefix = "roles/"- UserNamePrefix = "users/"- IdentityProviderNamePrefix = "idps/"- SettingNamePrefix = "settings/"- BackupPrefix = "backups/"- ExternalVersionControlPrefix = "externalVersionControls/"- RiskPrefix = "risks/"- IssuePrefix = "issues/"- RolloutPrefix = "rollouts/"- StagePrefix = "stages/"- TaskPrefix = "tasks/"- TaskRunPrefix = "taskRuns/"- PlanPrefix = "plans/"- PlanCheckRunPrefix = "planCheckRuns/"- RolePrefix = "roles/"- SecretNamePrefix = "secrets/"- WebhookIDPrefix = "webhooks/"- SheetIDPrefix = "sheets/"- WorksheetIDPrefix = "worksheets/"- DatabaseGroupNamePrefix = "databaseGroups/"- SchemaGroupNamePrefix = "schemaGroups/"- SchemaNamePrefix = "schemas/"- TableNamePrefix = "tables/"- ChangeHistoryPrefix = "changeHistories/"- IssueNamePrefix = "issues/"- PipelineNamePrefix = "pipelines/"- LogNamePrefix = "logs/"- BranchPrefix = "branches/"- DeploymentConfigPrefix = "deploymentConfigs/"- ChangelistsPrefix = "changelists/"+ ProjectNamePrefix = "projects/"+ EnvironmentNamePrefix = "environments/"+ InstanceNamePrefix = "instances/"+ PolicyNamePrefix = "policies/"+ DatabaseIDPrefix = "databases/"+ InstanceRolePrefix = "roles/"+ UserNamePrefix = "users/"+ IdentityProviderNamePrefix = "idps/"+ SettingNamePrefix = "settings/"+ BackupPrefix = "backups/"+ VCSProviderPrefix = "vcsProviders/"+ RiskPrefix = "risks/"+ IssuePrefix = "issues/"+ RolloutPrefix = "rollouts/"+ StagePrefix = "stages/"+ TaskPrefix = "tasks/"+ TaskRunPrefix = "taskRuns/"+ PlanPrefix = "plans/"+ PlanCheckRunPrefix = "planCheckRuns/"+ RolePrefix = "roles/"+ SecretNamePrefix = "secrets/"+ WebhookIDPrefix = "webhooks/"+ SheetIDPrefix = "sheets/"+ WorksheetIDPrefix = "worksheets/"+ DatabaseGroupNamePrefix = "databaseGroups/"+ SchemaGroupNamePrefix = "schemaGroups/"+ SchemaNamePrefix = "schemas/"+ TableNamePrefix = "tables/"+ ChangeHistoryPrefix = "changeHistories/"+ IssueNamePrefix = "issues/"+ PipelineNamePrefix = "pipelines/"+ LogNamePrefix = "logs/"+ BranchPrefix = "branches/"+ DeploymentConfigPrefix = "deploymentConfigs/"+ ChangelistsPrefix = "changelists/"BackupSettingSuffix = "/backupSetting"SchemaSuffix = "/schema"@@ -249,9 +249,9 @@ func GetIdentityProviderID(name string) (string, error) {return tokens[0], nil}-// GetExternalVersionControlID returns the external version control ID from a resource name.-func GetExternalVersionControlID(name string) (int, error) {- return GetUIDFromName(name, ExternalVersionControlPrefix)+// GetVCSProviderID returns the external version control ID from a resource name.+func GetVCSProviderID(name string) (int, error) {+ return GetUIDFromName(name, VCSProviderPrefix)}// GetRiskID returns the risk ID from a resource name.diff --git a/backend/component/iam/acl.yaml b/backend/component/iam/acl.yamlindex 38b9dc3c05..85c92407cc 100644--- a/backend/component/iam/acl.yaml+++ b/backend/component/iam/acl.yaml@@ -34,14 +34,14 @@ roles:- bb.environments.list- bb.environments.undelete- bb.environments.update- - bb.externalVersionControls.create- - bb.externalVersionControls.delete- - bb.externalVersionControls.exchangeToken- - bb.externalVersionControls.get- - bb.externalVersionControls.list- - bb.externalVersionControls.listProjects- - bb.externalVersionControls.searchProjects- - bb.externalVersionControls.update+ - bb.vcsProviders.create+ - bb.vcsProviders.delete+ - bb.vcsProviders.exchangeToken+ - bb.vcsProviders.get+ - bb.vcsProviders.list+ - bb.vcsProviders.listProjects+ - bb.vcsProviders.searchProjects+ - bb.vcsProviders.update- bb.identityProviders.create- bb.identityProviders.delete- bb.identityProviders.get@@ -131,14 +131,14 @@ roles:- bb.environments.list- bb.environments.undelete- bb.environments.update- - bb.externalVersionControls.create- - bb.externalVersionControls.delete- - bb.externalVersionControls.exchangeToken- - bb.externalVersionControls.get- - bb.externalVersionControls.list- - bb.externalVersionControls.listProjects- - bb.externalVersionControls.searchProjects- - bb.externalVersionControls.update+ - bb.vcsProviders.create+ - bb.vcsProviders.delete+ - bb.vcsProviders.exchangeToken+ - bb.vcsProviders.get+ - bb.vcsProviders.list+ - bb.vcsProviders.listProjects+ - bb.vcsProviders.searchProjects+ - bb.vcsProviders.update- bb.identityProviders.create- bb.identityProviders.delete- bb.identityProviders.get@@ -197,10 +197,10 @@ roles:permissions:- bb.environments.get- bb.environments.list- - bb.externalVersionControls.exchangeToken- - bb.externalVersionControls.get- - bb.externalVersionControls.list- - bb.externalVersionControls.searchProjects+ - bb.vcsProviders.exchangeToken+ - bb.vcsProviders.get+ - bb.vcsProviders.list+ - bb.vcsProviders.searchProjects- bb.policies.get- bb.policies.list- bb.risks.listdiff --git a/backend/component/iam/permission.go b/backend/component/iam/permission.goindex b3d4570d45..1ba33aa37f 100644--- a/backend/component/iam/permission.go+++ b/backend/component/iam/permission.go@@ -4,53 +4,53 @@ type Permission stringconst (// Workspace-level permissions.- PermissionEnvironmentsCreate Permission = "bb.environments.create"- PermissionEnvironmentsDelete Permission = "bb.environments.delete"- PermissionEnvironmentsGet Permission = "bb.environments.get"- PermissionEnvironmentsList Permission = "bb.environments.list"- PermissionEnvironmentsUndelete Permission = "bb.environments.undelete"- PermissionEnvironmentsUpdate Permission = "bb.environments.update"- PermissionExternalVersionControlsCreate Permission = "bb.externalVersionControls.create"- PermissionExternalVersionControlsDelete Permission = "bb.externalVersionControls.delete"- PermissionExternalVersionControlsExchangeToken Permission = "bb.externalVersionControls.exchangeToken"- PermissionExternalVersionControlsGet Permission = "bb.externalVersionControls.get"- PermissionExternalVersionControlsList Permission = "bb.externalVersionControls.list"- PermissionExternalVersionControlsListProjects Permission = "bb.externalVersionControls.listProjects"- PermissionExternalVersionControlsSearchProjects Permission = "bb.externalVersionControls.searchProjects"- PermissionExternalVersionControlsUpdate Permission = "bb.externalVersionControls.update"- PermissionIdentityProvidersCreate Permission = "bb.identityProviders.create"- PermissionIdentityProvidersDelete Permission = "bb.identityProviders.delete"- PermissionIdentityProvidersGet Permission = "bb.identityProviders.get"- PermissionIdentityProvidersUndelete Permission = "bb.identityProviders.undelete"- PermissionIdentityProvidersUpdate Permission = "bb.identityProviders.update"- PermissionInstancesAdminExecute Permission = "bb.instances.adminExecute"- PermissionInstancesCreate Permission = "bb.instances.create"- PermissionInstancesDelete Permission = "bb.instances.delete"- PermissionInstancesGet Permission = "bb.instances.get"- PermissionInstancesList Permission = "bb.instances.list"- PermissionInstancesSync Permission = "bb.instances.sync"- PermissionInstancesUndelete Permission = "bb.instances.undelete"- PermissionInstancesUpdate Permission = "bb.instances.update"- PermissionPoliciesCreate Permission = "bb.policies.create"- PermissionPoliciesDelete Permission = "bb.policies.delete"- PermissionPoliciesGet Permission = "bb.policies.get"- PermissionPoliciesList Permission = "bb.policies.list"- PermissionPoliciesUpdate Permission = "bb.policies.update"- PermissionProjectsCreate Permission = "bb.projects.create"- PermissionProjectsDelete Permission = "bb.projects.delete"- PermissionProjectsList Permission = "bb.projects.list"- PermissionProjectsUndelete Permission = "bb.projects.undelete"- PermissionRisksCreate Permission = "bb.risks.create"- PermissionRisksDelete Permission = "bb.risks.delete"- PermissionRisksList Permission = "bb.risks.list"- PermissionRisksUpdate Permission = "bb.risks.update"- PermissionRolesCreate Permission = "bb.roles.create"- PermissionRolesDelete Permission = "bb.roles.delete"- PermissionRolesList Permission = "bb.roles.list"- PermissionRolesUpdate Permission = "bb.roles.update"- PermissionSettingsGet Permission = "bb.settings.get"- PermissionSettingsList Permission = "bb.settings.list"- PermissionSettingsSet Permission = "bb.settings.set"+ PermissionEnvironmentsCreate Permission = "bb.environments.create"+ PermissionEnvironmentsDelete Permission = "bb.environments.delete"+ PermissionEnvironmentsGet Permission = "bb.environments.get"+ PermissionEnvironmentsList Permission = "bb.environments.list"+ PermissionEnvironmentsUndelete Permission = "bb.environments.undelete"+ PermissionEnvironmentsUpdate Permission = "bb.environments.update"+ PermissionVCSProvidersCreate Permission = "bb.vcsProviders.create"+ PermissionVCSProvidersDelete Permission = "bb.vcsProviders.delete"+ PermissionVCSProvidersExchangeToken Permission = "bb.vcsProviders.exchangeToken"+ PermissionVCSProvidersGet Permission = "bb.vcsProviders.get"+ PermissionVCSProvidersList Permission = "bb.vcsProviders.list"+ PermissionVCSProvidersListProjects Permission = "bb.vcsProviders.listProjects"+ PermissionVCSProvidersSearchProjects Permission = "bb.vcsProviders.searchProjects"+ PermissionVCSProvidersUpdate Permission = "bb.vcsProviders.update"+ PermissionIdentityProvidersCreate Permission = "bb.identityProviders.create"+ PermissionIdentityProvidersDelete Permission = "bb.identityProviders.delete"+ PermissionIdentityProvidersGet Permission = "bb.identityProviders.get"+ PermissionIdentityProvidersUndelete Permission = "bb.identityProviders.undelete"+ PermissionIdentityProvidersUpdate Permission = "bb.identityProviders.update"+ PermissionInstancesAdminExecute Permission = "bb.instances.adminExecute"+ PermissionInstancesCreate Permission = "bb.instances.create"+ PermissionInstancesDelete Permission = "bb.instances.delete"+ PermissionInstancesGet Permission = "bb.instances.get"+ PermissionInstancesList Permission = "bb.instances.list"+ PermissionInstancesSync Permission = "bb.instances.sync"+ PermissionInstancesUndelete Permission = "bb.instances.undelete"+ PermissionInstancesUpdate Permission = "bb.instances.update"+ PermissionPoliciesCreate Permission = "bb.policies.create"+ PermissionPoliciesDelete Permission = "bb.policies.delete"+ PermissionPoliciesGet Permission = "bb.policies.get"+ PermissionPoliciesList Permission = "bb.policies.list"+ PermissionPoliciesUpdate Permission = "bb.policies.update"+ PermissionProjectsCreate Permission = "bb.projects.create"+ PermissionProjectsDelete Permission = "bb.projects.delete"+ PermissionProjectsList Permission = "bb.projects.list"+ PermissionProjectsUndelete Permission = "bb.projects.undelete"+ PermissionRisksCreate Permission = "bb.risks.create"+ PermissionRisksDelete Permission = "bb.risks.delete"+ PermissionRisksList Permission = "bb.risks.list"+ PermissionRisksUpdate Permission = "bb.risks.update"+ PermissionRolesCreate Permission = "bb.roles.create"+ PermissionRolesDelete Permission = "bb.roles.delete"+ PermissionRolesList Permission = "bb.roles.list"+ PermissionRolesUpdate Permission = "bb.roles.update"+ PermissionSettingsGet Permission = "bb.settings.get"+ PermissionSettingsList Permission = "bb.settings.list"+ PermissionSettingsSet Permission = "bb.settings.set"// Project-level permissions.PermissionBackupsCreate Permission = "bb.backups.create"@@ -144,14 +144,14 @@ func PermissionExist(p Permission) bool {PermissionEnvironmentsList,PermissionEnvironmentsUndelete,PermissionEnvironmentsUpdate,- PermissionExternalVersionControlsCreate,- PermissionExternalVersionControlsDelete,- PermissionExternalVersionControlsExchangeToken,- PermissionExternalVersionControlsGet,- PermissionExternalVersionControlsList,- PermissionExternalVersionControlsListProjects,- PermissionExternalVersionControlsSearchProjects,- PermissionExternalVersionControlsUpdate,+ PermissionVCSProvidersCreate,+ PermissionVCSProvidersDelete,+ PermissionVCSProvidersExchangeToken,+ PermissionVCSProvidersGet,+ PermissionVCSProvidersList,+ PermissionVCSProvidersListProjects,+ PermissionVCSProvidersSearchProjects,+ PermissionVCSProvidersUpdate,PermissionIdentityProvidersCreate,PermissionIdentityProvidersDelete,PermissionIdentityProvidersGet,@@ -241,14 +241,14 @@ func GetPermissionLevel(permission Permission) PermissionLevel {PermissionEnvironmentsList,PermissionEnvironmentsUndelete,PermissionEnvironmentsUpdate,- PermissionExternalVersionControlsCreate,- PermissionExternalVersionControlsDelete,- PermissionExternalVersionControlsExchangeToken,- PermissionExternalVersionControlsGet,- PermissionExternalVersionControlsList,- PermissionExternalVersionControlsListProjects,- PermissionExternalVersionControlsSearchProjects,- PermissionExternalVersionControlsUpdate,+ PermissionVCSProvidersCreate,+ PermissionVCSProvidersDelete,+ PermissionVCSProvidersExchangeToken,+ PermissionVCSProvidersGet,+ PermissionVCSProvidersList,+ PermissionVCSProvidersListProjects,+ PermissionVCSProvidersSearchProjects,+ PermissionVCSProvidersUpdate,PermissionIdentityProvidersCreate,PermissionIdentityProvidersDelete,PermissionIdentityProvidersGet,diff --git a/backend/component/iam/permission.yaml b/backend/component/iam/permission.yamlindex ea2e795ea7..b556fc2cff 100644--- a/backend/component/iam/permission.yaml+++ b/backend/component/iam/permission.yaml@@ -55,14 +55,14 @@ permissions:- bb.environments.list- bb.environments.undelete- bb.environments.update- - bb.externalVersionControls.create- - bb.externalVersionControls.delete- - bb.externalVersionControls.exchangeToken- - bb.externalVersionControls.get- - bb.externalVersionControls.list- - bb.externalVersionControls.listProjects- - bb.externalVersionControls.searchProjects- - bb.externalVersionControls.update+ - bb.vcsProviders.create+ - bb.vcsProviders.delete+ - bb.vcsProviders.exchangeToken+ - bb.vcsProviders.get+ - bb.vcsProviders.list+ - bb.vcsProviders.listProjects+ - bb.vcsProviders.searchProjects+ - bb.vcsProviders.update- bb.identityProviders.create- bb.identityProviders.delete- bb.identityProviders.getdiff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.goindex 654d022e24..4de86d7710 100644--- a/backend/runner/taskrun/executor.go+++ b/backend/runner/taskrun/executor.go@@ -476,7 +476,7 @@ func postMigration(ctx context.Context, stores *store.Store, activityManager *aclatestSchemaFile = strings.ReplaceAll(latestSchemaFile, "{{ENV_ID}}", mi.Environment)latestSchemaFile = strings.ReplaceAll(latestSchemaFile, "{{DB_NAME}}", mi.Database)- vcs, err := stores.GetExternalVersionControlV2(ctx, repo.VCSUID)+ vcs, err := stores.GetVCSProviderV2(ctx, repo.VCSUID)if err != nil {return true, nil, errors.Errorf("failed to sync schema file %s after applying migration %s to %q", latestSchemaFile, mi.Version.Version, database.DatabaseName)}@@ -678,7 +678,7 @@ func writeBackLatestSchema(ctx context.Context,storage *store.Store,repository *store.RepositoryMessage,- vcs *store.ExternalVersionControlMessage,+ vcs *store.VCSProviderMessage,pushEvent *vcsplugin.PushEvent,mi *db.MigrationInfo,writebackBranch, latestSchemaFile string, schema string, bytebaseURL string,@@ -810,7 +810,7 @@ func writeBackLatestSchema(return schemaFileMeta.LastCommitID, nil}-func getRepositoryAndVCS(ctx context.Context, storage *store.Store, repoUID, vcsUID int) (*store.RepositoryMessage, *store.ExternalVersionControlMessage, error) {+func getRepositoryAndVCS(ctx context.Context, storage *store.Store, repoUID, vcsUID int) (*store.RepositoryMessage, *store.VCSProviderMessage, error) {repo, err := storage.GetRepositoryV2(ctx, &store.FindRepositoryMessage{UID: &repoUID,})@@ -820,7 +820,7 @@ func getRepositoryAndVCS(ctx context.Context, storage *store.Store, repoUID, vcsif repo == nil {return nil, nil, errors.Errorf("repository not found after schema write-back: %v", repoUID)}- vcs, err := storage.GetExternalVersionControlV2(ctx, vcsUID)+ vcs, err := storage.GetVCSProviderV2(ctx, vcsUID)if err != nil {return nil, nil, errors.Wrap(err, "failed to fetch vcs for schema write-back")}diff --git a/backend/server/grpc_routes.go b/backend/server/grpc_routes.goindex dea7fc08f7..910a8c5685 100644--- a/backend/server/grpc_routes.go+++ b/backend/server/grpc_routes.go@@ -77,7 +77,7 @@ func configureGrpcRouters(v1pb.RegisterSettingServiceServer(grpcServer, apiv1.NewSettingService(stores, profile, licenseService, stateCfg))v1pb.RegisterAnomalyServiceServer(grpcServer, apiv1.NewAnomalyService(stores))v1pb.RegisterSQLServiceServer(grpcServer, apiv1.NewSQLService(stores, schemaSyncer, dbFactory, activityManager, licenseService, profile, iamManager))- v1pb.RegisterExternalVersionControlServiceServer(grpcServer, apiv1.NewExternalVersionControlService(stores))+ v1pb.RegisterVCSProviderServiceServer(grpcServer, apiv1.NewVCSProviderService(stores))v1pb.RegisterRiskServiceServer(grpcServer, apiv1.NewRiskService(stores, licenseService))issueService := apiv1.NewIssueService(stores, activityManager, relayRunner, stateCfg, licenseService, profile, iamManager, metricReporter)v1pb.RegisterIssueServiceServer(grpcServer, issueService)@@ -137,7 +137,7 @@ func configureGrpcRouters(if err := v1pb.RegisterSQLServiceHandler(ctx, mux, grpcConn); err != nil {return nil, nil, err}- if err := v1pb.RegisterExternalVersionControlServiceHandler(ctx, mux, grpcConn); err != nil {+ if err := v1pb.RegisterVCSProviderServiceHandler(ctx, mux, grpcConn); err != nil {return nil, nil, err}if err := v1pb.RegisterRoleServiceHandler(ctx, mux, grpcConn); err != nil {diff --git a/backend/store/store.go b/backend/store/store.goindex 72393771b5..c1c1bd3c0d 100644--- a/backend/store/store.go+++ b/backend/store/store.go@@ -47,7 +47,7 @@ type Store struct {databaseGroupCache *lru.Cache[string, *DatabaseGroupMessage]databaseGroupIDCache *lru.Cache[int64, *DatabaseGroupMessage]schemaGroupCache *lru.Cache[string, *SchemaGroupMessage]- vcsIDCache *lru.Cache[int, *ExternalVersionControlMessage]+ vcsIDCache *lru.Cache[int, *VCSProviderMessage]rolesCache *lru.Cache[string, *RoleMessage]// Large objects.@@ -145,7 +145,7 @@ func New(db *DB, profile *config.Profile) (*Store, error) {if err != nil {return nil, err}- vcsIDCache, err := lru.New[int, *ExternalVersionControlMessage](10)+ vcsIDCache, err := lru.New[int, *VCSProviderMessage](10)if err != nil {return nil, err}diff --git a/backend/store/vcs.go b/backend/store/vcs.goindex 6beb6fc97a..7ffce367e2 100644--- a/backend/store/vcs.go+++ b/backend/store/vcs.go@@ -12,8 +12,8 @@ import ("github.com/bytebase/bytebase/backend/plugin/vcs")-// ExternalVersionControlMessage is a message for external version control.-type ExternalVersionControlMessage struct {+// VCSProviderMessage is a message for external version control.+type VCSProviderMessage struct {// Type is the type of the external version control.Type vcs.Type// APIURL is the URL for the external version control API.@@ -33,8 +33,8 @@ type ExternalVersionControlMessage struct {ID int}-// UpdateExternalVersionControlMessage is a message for updating an external version control.-type UpdateExternalVersionControlMessage struct {+// UpdateVCSProviderMessage is a message for updating an external version control.+type UpdateVCSProviderMessage struct {// Name is the name of the external version control.Name *string// Secret is the secret for the external version control.@@ -43,13 +43,13 @@ type UpdateExternalVersionControlMessage struct {ApplicationID *string}-type findExternalVersionControlMessage struct {+type findVCSProviderMessage struct {// If specified, only external version controls with the given ID will be returned.id *int}-// GetExternalVersionControlV2 gets an external version control by ID.-func (s *Store) GetExternalVersionControlV2(ctx context.Context, id int) (*ExternalVersionControlMessage, error) {+// GetVCSProviderV2 gets an external version control by ID.+func (s *Store) GetVCSProviderV2(ctx context.Context, id int) (*VCSProviderMessage, error) {if v, ok := s.vcsIDCache.Get(id); ok {return v, nil}@@ -60,33 +60,33 @@ func (s *Store) GetExternalVersionControlV2(ctx context.Context, id int) (*Exter}defer tx.Rollback()- externalVersionControls, err := s.findExternalVersionControlsImplV2(ctx, tx, &findExternalVersionControlMessage{id: &id})+ vcsProviders, err := s.findVCSProvidersImplV2(ctx, tx, &findVCSProviderMessage{id: &id})if err != nil {return nil, err}if err := tx.Commit(); err != nil {return nil, errors.Wrapf(err, "failed to commit transaction")}- if len(externalVersionControls) == 0 {+ if len(vcsProviders) == 0 {return nil, nil- } else if len(externalVersionControls) > 1 {- return nil, errors.Errorf("expected 1 external version control with id %d, got %d", id, len(externalVersionControls))+ } else if len(vcsProviders) > 1 {+ return nil, errors.Errorf("expected 1 external version control with id %d, got %d", id, len(vcsProviders))}- vcs := externalVersionControls[0]+ vcs := vcsProviders[0]s.vcsIDCache.Add(vcs.ID, vcs)return vcs, nil}-// ListExternalVersionControls lists all external version controls.-func (s *Store) ListExternalVersionControls(ctx context.Context) ([]*ExternalVersionControlMessage, error) {+// ListVCSProviders lists all external version controls.+func (s *Store) ListVCSProviders(ctx context.Context) ([]*VCSProviderMessage, error) {tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})if err != nil {return nil, errors.Wrapf(err, "failed to begin transaction")}defer tx.Rollback()- externalVersionControls, err := s.findExternalVersionControlsImplV2(ctx, tx, &findExternalVersionControlMessage{})+ vcsProviders, err := s.findVCSProvidersImplV2(ctx, tx, &findVCSProviderMessage{})if err != nil {return nil, err}@@ -94,14 +94,14 @@ func (s *Store) ListExternalVersionControls(ctx context.Context) ([]*ExternalVerreturn nil, errors.Wrapf(err, "failed to commit transaction")}- for _, vcs := range externalVersionControls {+ for _, vcs := range vcsProviders {s.vcsIDCache.Add(vcs.ID, vcs)}- return externalVersionControls, nil+ return vcsProviders, nil}-// CreateExternalVersionControlV2 creates an external version control.-func (s *Store) CreateExternalVersionControlV2(ctx context.Context, principalUID int, create *ExternalVersionControlMessage) (*ExternalVersionControlMessage, error) {+// CreateVCSProviderV2 creates an external version control.+func (s *Store) CreateVCSProviderV2(ctx context.Context, principalUID int, create *VCSProviderMessage) (*VCSProviderMessage, error) {tx, err := s.db.BeginTx(ctx, nil)if err != nil {return nil, errors.Wrapf(err, "failed to begin transaction")@@ -122,7 +122,7 @@ func (s *Store) CreateExternalVersionControlV2(ctx context.Context, principalUIDVALUES ($1, $2, $3, $4, $5, $6, $7, $8)RETURNING id, name, type, instance_url, api_url, application_id, secret`- var externalVersionControl ExternalVersionControlMessage+ var vcsProvider VCSProviderMessageif err := tx.QueryRowContext(ctx, query,principalUID,principalUID,@@ -133,13 +133,13 @@ func (s *Store) CreateExternalVersionControlV2(ctx context.Context, principalUIDcreate.ApplicationID,create.Secret,).Scan(- &externalVersionControl.ID,- &externalVersionControl.Name,- &externalVersionControl.Type,- &externalVersionControl.InstanceURL,- &externalVersionControl.APIURL,- &externalVersionControl.ApplicationID,- &externalVersionControl.Secret,+ &vcsProvider.ID,+ &vcsProvider.Name,+ &vcsProvider.Type,+ &vcsProvider.InstanceURL,+ &vcsProvider.APIURL,+ &vcsProvider.ApplicationID,+ &vcsProvider.Secret,); err != nil {if err == sql.ErrNoRows {return nil, common.FormatDBErrorEmptyRowWithQuery(query)@@ -151,12 +151,12 @@ func (s *Store) CreateExternalVersionControlV2(ctx context.Context, principalUIDreturn nil, errors.Wrapf(err, "failed to commit transaction")}- s.vcsIDCache.Add(externalVersionControl.ID, &externalVersionControl)- return &externalVersionControl, nil+ s.vcsIDCache.Add(vcsProvider.ID, &vcsProvider)+ return &vcsProvider, nil}-// UpdateExternalVersionControlV2 updates an external version control.-func (s *Store) UpdateExternalVersionControlV2(ctx context.Context, principalUID int, externalVersionControlUID int, update *UpdateExternalVersionControlMessage) (*ExternalVersionControlMessage, error) {+// UpdateVCSProviderV2 updates an external version control.+func (s *Store) UpdateVCSProviderV2(ctx context.Context, principalUID int, vcsProviderUID int, update *UpdateVCSProviderMessage) (*VCSProviderMessage, error) {// Build UPDATE clause.set, args := []string{"updater_id = $1"}, []any{principalUID}if v := update.Name; v != nil {@@ -168,7 +168,7 @@ func (s *Store) UpdateExternalVersionControlV2(ctx context.Context, principalUIDif v := update.Secret; v != nil {set, args = append(set, fmt.Sprintf("secret = $%d", len(args)+1)), append(args, *v)}- args = append(args, externalVersionControlUID)+ args = append(args, vcsProviderUID)tx, err := s.db.BeginTx(ctx, nil)if err != nil {@@ -176,7 +176,7 @@ func (s *Store) UpdateExternalVersionControlV2(ctx context.Context, principalUID}defer tx.Rollback()- var externalVersionControl ExternalVersionControlMessage+ var vcsProvider VCSProviderMessage// Execute update query with RETURNING.if err := tx.QueryRowContext(ctx, fmt.Sprintf(`UPDATE vcs@@ -186,16 +186,16 @@ func (s *Store) UpdateExternalVersionControlV2(ctx context.Context, principalUID`, len(args)),args...,).Scan(- &externalVersionControl.ID,- &externalVersionControl.Name,- &externalVersionControl.Type,- &externalVersionControl.InstanceURL,- &externalVersionControl.APIURL,- &externalVersionControl.ApplicationID,- &externalVersionControl.Secret,+ &vcsProvider.ID,+ &vcsProvider.Name,+ &vcsProvider.Type,+ &vcsProvider.InstanceURL,+ &vcsProvider.APIURL,+ &vcsProvider.ApplicationID,+ &vcsProvider.Secret,); err != nil {if err == sql.ErrNoRows {- return nil, &common.Error{Code: common.NotFound, Err: errors.Errorf("vcs ID not found: %d", externalVersionControlUID)}+ return nil, &common.Error{Code: common.NotFound, Err: errors.Errorf("vcs ID not found: %d", vcsProviderUID)}}return nil, err}@@ -203,19 +203,19 @@ func (s *Store) UpdateExternalVersionControlV2(ctx context.Context, principalUIDif err := tx.Commit(); err != nil {return nil, errors.Wrapf(err, "failed to commit transaction")}- s.vcsIDCache.Add(externalVersionControl.ID, &externalVersionControl)- return &externalVersionControl, nil+ s.vcsIDCache.Add(vcsProvider.ID, &vcsProvider)+ return &vcsProvider, nil}-// DeleteExternalVersionControlV2 deletes an external version control.-func (s *Store) DeleteExternalVersionControlV2(ctx context.Context, externalVersionControlUID int) error {+// DeleteVCSProviderV2 deletes an external version control.+func (s *Store) DeleteVCSProviderV2(ctx context.Context, vcsProviderUID int) error {tx, err := s.db.BeginTx(ctx, nil)if err != nil {return errors.Wrapf(err, "failed to begin transaction")}defer tx.Rollback()- if _, err := tx.ExecContext(ctx, `DELETE FROM vcs WHERE id = $1`, externalVersionControlUID); err != nil {+ if _, err := tx.ExecContext(ctx, `DELETE FROM vcs WHERE id = $1`, vcsProviderUID); err != nil {return err}@@ -223,11 +223,11 @@ func (s *Store) DeleteExternalVersionControlV2(ctx context.Context, externalVersreturn errors.Wrapf(err, "failed to commit transaction")}- s.vcsIDCache.Remove(externalVersionControlUID)+ s.vcsIDCache.Remove(vcsProviderUID)return nil}-func (*Store) findExternalVersionControlsImplV2(ctx context.Context, tx *Tx, find *findExternalVersionControlMessage) ([]*ExternalVersionControlMessage, error) {+func (*Store) findVCSProvidersImplV2(ctx context.Context, tx *Tx, find *findVCSProviderMessage) ([]*VCSProviderMessage, error) {where, args := []string{"TRUE"}, []any{}if v := find.id; v != nil {// Build WHERE clause.@@ -251,24 +251,24 @@ func (*Store) findExternalVersionControlsImplV2(ctx context.Context, tx *Tx, finreturn nil, err}defer rows.Close()- var externalVersionControls []*ExternalVersionControlMessage+ var vcsProviders []*VCSProviderMessagefor rows.Next() {- var externalVersionControl ExternalVersionControlMessage+ var vcsProvider VCSProviderMessageif err := rows.Scan(- &externalVersionControl.ID,- &externalVersionControl.Name,- &externalVersionControl.Type,- &externalVersionControl.InstanceURL,- &externalVersionControl.APIURL,- &externalVersionControl.ApplicationID,- &externalVersionControl.Secret,+ &vcsProvider.ID,+ &vcsProvider.Name,+ &vcsProvider.Type,+ &vcsProvider.InstanceURL,+ &vcsProvider.APIURL,+ &vcsProvider.ApplicationID,+ &vcsProvider.Secret,); err != nil {return nil, err}- externalVersionControls = append(externalVersionControls, &externalVersionControl)+ vcsProviders = append(vcsProviders, &vcsProvider)}if err := rows.Err(); err != nil {return nil, err}- return externalVersionControls, nil+ return vcsProviders, nil}diff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.goindex 91733f26d2..9e784fa424 100644--- a/backend/tests/schema_update_test.go+++ b/backend/tests/schema_update_test.go@@ -232,7 +232,7 @@ func TestVCS(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypeexternalID stringrepositoryFullPath stringnewWebhookPushEvent func(added, modified [][]string, beforeSHA, afterSHA string) any@@ -240,7 +240,7 @@ func TestVCS(t *testing.T) {{name: "GitLab",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,externalID: "121",repositoryFullPath: "test/schemaUpdate",newWebhookPushEvent: func(added, modified [][]string, beforeSHA, afterSHA string) any {@@ -267,7 +267,7 @@ func TestVCS(t *testing.T) {{name: "GitHub",vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",newWebhookPushEvent: func(added, modified [][]string, beforeSHA, afterSHA string) any {@@ -306,7 +306,7 @@ func TestVCS(t *testing.T) {{name: "Bitbucket",vcsProviderCreator: fake.NewBitbucket,- vcsType: v1pb.ExternalVersionControl_BITBUCKET,+ vcsType: v1pb.VCSProvider_BITBUCKET,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",newWebhookPushEvent: func(added, _ [][]string, beforeSHA, afterSHA string) any {@@ -386,8 +386,8 @@ func TestVCS(t *testing.T) {}()// Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -406,7 +406,7 @@ func TestVCS(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: test.repositoryFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),@@ -631,7 +631,7 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypeexternalID stringrepositoryFullPath stringnewWebhookPushEvent func(added, modified []string, beforeSHA, afterSHA string) any@@ -639,7 +639,7 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {{name: "GitLab",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,externalID: "121",repositoryFullPath: "test/schemaUpdate",newWebhookPushEvent: func(added, modified []string, beforeSHA, afterSHA string) any {@@ -664,7 +664,7 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {{name: "GitHub",vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",newWebhookPushEvent: func(added, modified []string, beforeSHA, afterSHA string) any {@@ -745,8 +745,8 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {a.NoError(err)// Create a VCS- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -765,7 +765,7 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: test.repositoryFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),@@ -994,7 +994,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypebaseDirectory stringenvName stringfilePathTemplate string@@ -1006,7 +1006,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {{name: "singleAsterisk",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,baseDirectory: "bbtest",envName: "wildcard",filePathTemplate: "{{ENV_ID}}/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",@@ -1033,7 +1033,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {{name: "continuousSingleAsterisk",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,baseDirectory: "bbtest",envName: "wildcard",filePathTemplate: "{{ENV_ID}}/*/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",@@ -1059,7 +1059,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {{name: "doubleAsterisks",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,baseDirectory: "bbtest",envName: "wildcard",filePathTemplate: "{{ENV_ID}}/**/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",@@ -1092,7 +1092,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {vcsProviderCreator: fake.NewGitLab,envName: "wildcard",baseDirectory: "",- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,filePathTemplate: "{{ENV_ID}}/**/foo/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",commitNewFileNames: []string{// ** matches foo, foo matches foo, * matches bar@@ -1120,7 +1120,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {vcsProviderCreator: fake.NewGitLab,envName: "prod1",baseDirectory: "bbtest",- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,filePathTemplate: "{{ENV_ID}}/**/foo/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",commitNewFileNames: []string{// ** matches foo, foo matches foo, * matches bar@@ -1148,7 +1148,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {vcsProviderCreator: fake.NewGitLab,envName: "ZO",baseDirectory: "bbtest",- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,filePathTemplate: "{{ENV_ID}}/{{DB_NAME}}/sql/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",commitNewFileNames: []string{fmt.Sprintf("%s/%s/%s/sql/%s##ver1##migrate##create_table_t1.sql", baseDirectory, "zo", dbName, dbName),@@ -1186,8 +1186,8 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {_ = ctl.Close(ctx)}()// Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -1206,7 +1206,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: repoFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, repoFullPath),@@ -1290,7 +1290,7 @@ func TestVCS_SQL_Review(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypeexternalID stringrepositoryFullPath stringgetEmptySQLReviewResult func(filePath, rootURL string) *api.VCSSQLReviewResult@@ -1299,7 +1299,7 @@ func TestVCS_SQL_Review(t *testing.T) {{name: "GitLab",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,externalID: "121",repositoryFullPath: "test/schemaUpdate",getEmptySQLReviewResult: func(filePath, rootURL string) *api.VCSSQLReviewResult {@@ -1341,7 +1341,7 @@ func TestVCS_SQL_Review(t *testing.T) {{name: "GitHub",vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",getEmptySQLReviewResult: func(filePath, rootURL string) *api.VCSSQLReviewResult {@@ -1417,8 +1417,8 @@ func TestVCS_SQL_Review(t *testing.T) {a.NoError(err)// Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -1455,7 +1455,7 @@ func TestVCS_SQL_Review(t *testing.T) {gitOpsInfo, err := ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: test.repositoryFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),@@ -1554,7 +1554,7 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {want bool}type vcsTestCase struct {- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypevcsProviderCreator fake.VCSProviderCreatorexternalID stringrepoFullPath string@@ -1563,7 +1563,7 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {tests := []vcsTestCase{{- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,vcsProviderCreator: fake.NewGitLab,externalID: "1234",repoFullPath: "1234",@@ -1603,7 +1603,7 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {},},{- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,vcsProviderCreator: fake.NewGitHub,externalID: "test/branch",repoFullPath: "test/branch",@@ -1663,8 +1663,8 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {}()// Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: "testName",Type: vcsTest.vcsType,Url: ctl.vcsURL,@@ -1691,7 +1691,7 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: vcsTest.repoFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, vcsTest.repoFullPath),@@ -2105,7 +2105,7 @@ func TestVCS_SDL_MySQL(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypeexternalID stringrepositoryFullPath stringnewWebhookPushEvent func(added, modified []string, beforeSHA, afterSHA string) any@@ -2113,7 +2113,7 @@ func TestVCS_SDL_MySQL(t *testing.T) {{name: "GitLab",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,externalID: "121",repositoryFullPath: "test/schemaUpdate",newWebhookPushEvent: func(added, modified []string, beforeSHA, afterSHA string) any {@@ -2138,7 +2138,7 @@ func TestVCS_SDL_MySQL(t *testing.T) {{name: "GitHub",vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",newWebhookPushEvent: func(added, modified []string, beforeSHA, afterSHA string) any {@@ -2218,8 +2218,8 @@ func TestVCS_SDL_MySQL(t *testing.T) {a.NoError(err)// Create a VCS- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -2253,7 +2253,7 @@ func TestVCS_SDL_MySQL(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: test.repositoryFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),diff --git a/backend/tests/tenant_test.go b/backend/tests/tenant_test.goindex bc92abdf42..429b699ffa 100644--- a/backend/tests/tenant_test.go+++ b/backend/tests/tenant_test.go@@ -198,7 +198,7 @@ func TestTenantVCS(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypeexternalID stringrepositoryFullPath stringnewWebhookPushEvent func(gitFiles []string, beforeSHA, afterSHA string) any@@ -206,7 +206,7 @@ func TestTenantVCS(t *testing.T) {{name: "GitLab",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,externalID: "121",repositoryFullPath: "test/schemaUpdate",newWebhookPushEvent: func(gitFiles []string, beforeSHA, afterSHA string) any {@@ -230,7 +230,7 @@ func TestTenantVCS(t *testing.T) {{name: "GitHub",vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",newWebhookPushEvent: func(gitFiles []string, beforeSHA, afterSHA string) any {@@ -283,8 +283,8 @@ func TestTenantVCS(t *testing.T) {}()// Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -318,7 +318,7 @@ func TestTenantVCS(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: test.repositoryFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),@@ -515,7 +515,7 @@ func TestTenantVCS_YAML(t *testing.T) {tests := []struct {name stringvcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type+ vcsType v1pb.VCSProvider_TypeexternalID stringrepositoryFullPath stringnewWebhookPushEvent func(gitFile, beforeSHA, afterSHA string) any@@ -523,7 +523,7 @@ func TestTenantVCS_YAML(t *testing.T) {{name: "GitLab",vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,+ vcsType: v1pb.VCSProvider_GITLAB,externalID: "121",repositoryFullPath: "test/dataUpdate",newWebhookPushEvent: func(gitFile, beforeSHA, afterSHA string) any {@@ -547,7 +547,7 @@ func TestTenantVCS_YAML(t *testing.T) {{name: "GitHub",vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,+ vcsType: v1pb.VCSProvider_GITHUB,externalID: "octocat/Hello-World",repositoryFullPath: "octocat/Hello-World",newWebhookPushEvent: func(gitFile, beforeSHA, afterSHA string) any {@@ -599,8 +599,8 @@ func TestTenantVCS_YAML(t *testing.T) {}()// Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{+ evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{+ VcsProvider: &v1pb.VCSProvider{Title: t.Name(),Type: test.vcsType,Url: ctl.vcsURL,@@ -632,7 +632,7 @@ func TestTenantVCS_YAML(t *testing.T) {_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),+ VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),Title: "Test Repository",FullPath: test.repositoryFullPath,WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),diff --git a/backend/tests/tests.go b/backend/tests/tests.goindex 2321645599..a17a580ba0 100644--- a/backend/tests/tests.go+++ b/backend/tests/tests.go@@ -170,7 +170,7 @@ type controller struct {instanceServiceClient v1pb.InstanceServiceClientdatabaseServiceClient v1pb.DatabaseServiceClientsheetServiceClient v1pb.SheetServiceClient- evcsClient v1pb.ExternalVersionControlServiceClient+ evcsClient v1pb.VCSProviderServiceClientsqlServiceClient v1pb.SQLServiceClientsubscriptionServiceClient v1pb.SubscriptionServiceClientactuatorServiceClient v1pb.ActuatorServiceClient@@ -429,7 +429,7 @@ func (ctl *controller) start(ctx context.Context, port int) (context.Context, erctl.instanceServiceClient = v1pb.NewInstanceServiceClient(ctl.grpcConn)ctl.databaseServiceClient = v1pb.NewDatabaseServiceClient(ctl.grpcConn)ctl.sheetServiceClient = v1pb.NewSheetServiceClient(ctl.grpcConn)- ctl.evcsClient = v1pb.NewExternalVersionControlServiceClient(ctl.grpcConn)+ ctl.evcsClient = v1pb.NewVCSProviderServiceClient(ctl.grpcConn)ctl.sqlServiceClient = v1pb.NewSQLServiceClient(ctl.grpcConn)ctl.subscriptionServiceClient = v1pb.NewSubscriptionServiceClient(ctl.grpcConn)ctl.actuatorServiceClient = v1pb.NewActuatorServiceClient(ctl.grpcConn)diff --git a/frontend/src/components/ProjectVersionControlPanel.vue b/frontend/src/components/ProjectVersionControlPanel.vueindex 2f6fbf9af2..a62e2cd010 100644--- a/frontend/src/components/ProjectVersionControlPanel.vue+++ b/frontend/src/components/ProjectVersionControlPanel.vue@@ -70,8 +70,8 @@ import { reactive, watch } from "vue";import { computed, PropType } from "vue";import { useI18n } from "vue-i18n";import { pushNotification, useRepositoryV1Store, useVCSV1Store } from "@/store";-import { ExternalVersionControl } from "@/types/proto/v1/externalvs_service";import { Project, Workflow } from "@/types/proto/v1/project_service";+import { VCSProvider } from "@/types/proto/v1/vcs_provider_service";interface LocalState {workflowType: Workflow;@@ -144,7 +144,7 @@ const repository = computed(() => {const vcs = computed(() => {return (vcsV1Store.getVCSByUid(repository.value?.vcsUid ?? "") ??- ({} as ExternalVersionControl)+ ({} as VCSProvider));});diff --git a/frontend/src/components/RepositoryForm.vue b/frontend/src/components/RepositoryForm.vueindex c19c7a6cf5..fc935ee275 100644--- a/frontend/src/components/RepositoryForm.vue+++ b/frontend/src/components/RepositoryForm.vue@@ -250,7 +250,7 @@{{$t("repository.sql-review-ci-description", {pr:- vcsType === ExternalVersionControl_Type.GITLAB+ vcsType === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),pathTemplate:@@ -318,7 +318,6 @@ import {useCurrentUserV1,} from "@/store";import { ExternalRepositoryInfo, RepositoryConfig } from "@/types";-import { ExternalVersionControl_Type } from "@/types/proto/v1/externalvs_service";import {Project,TenantMode,@@ -326,6 +325,7 @@ import {schemaChangeToJSON,} from "@/types/proto/v1/project_service";import { PlanType } from "@/types/proto/v1/subscription_service";+import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";import { hasWorkspacePermissionV2, supportSQLReviewCI } from "@/utils";const FILE_REQUIRED_PLACEHOLDER = "{{DB_NAME}}, {{VERSION}}, {{TYPE}}";@@ -348,7 +348,7 @@ const props = withDefaults(defineProps<{allowEdit?: boolean;create?: boolean;- vcsType: ExternalVersionControl_Type;+ vcsType: VCSProvider_Type;vcsName: string;repositoryInfo: ExternalRepositoryInfo;repositoryConfig: RepositoryConfig;@@ -401,11 +401,11 @@ const canEnableSQLReview = computed(() => {});const enableSQLReviewTitle = computed(() => {switch (props.vcsType) {- case ExternalVersionControl_Type.GITLAB:+ case VCSProvider_Type.GITLAB:return t("repository.sql-review-ci-enable-gitlab");- case ExternalVersionControl_Type.GITHUB:+ case VCSProvider_Type.GITHUB:return t("repository.sql-review-ci-enable-github");- case ExternalVersionControl_Type.AZURE_DEVOPS:+ case VCSProvider_Type.AZURE_DEVOPS:return t("repository.sql-review-ci-enable-azure");default:return t("repository.sql-review-ci-enable-title");@@ -489,7 +489,7 @@ const sampleSchemaPath = (};const getWebhookLink = computed(() => {- if (props.vcsType === ExternalVersionControl_Type.AZURE_DEVOPS) {+ if (props.vcsType === VCSProvider_Type.AZURE_DEVOPS) {const parts = props.repositoryInfo.externalId.split("/");if (parts.length !== 3) {return "";diff --git a/frontend/src/components/RepositoryPanel.vue b/frontend/src/components/RepositoryPanel.vueindex e78d8856cd..a353fb2104 100644--- a/frontend/src/components/RepositoryPanel.vue+++ b/frontend/src/components/RepositoryPanel.vue@@ -126,7 +126,7 @@{{$t("repository.sql-review-ci-setup-modal", {pr:- vcs.type === ExternalVersionControl_Type.GITLAB+ vcs.type === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),})@@ -142,7 +142,7 @@{{$t("repository.sql-review-ci-setup-pr", {pr:- vcs.type === ExternalVersionControl_Type.GITLAB+ vcs.type === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),})@@ -183,7 +183,7 @@{{$t("repository.sql-review-ci-loading-modal", {pr:- vcs.type === ExternalVersionControl_Type.GITLAB+ vcs.type === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),})@@ -201,7 +201,7 @@<i18n-t keypath="repository.sql-review-ci-restore-modal"><template #vcs>{{- vcs.type === ExternalVersionControl_Type.GITLAB+ vcs.type === VCSProvider_Type.GITLAB? "GitLab CI": "GitHub Action"}}@@ -232,7 +232,7 @@<i18n-t keypath="repository.sql-review-ci-remove-modal"><template #vcs>{{- vcs.type === ExternalVersionControl_Type.GITLAB+ vcs.type === VCSProvider_Type.GITLAB? "GitLab CI": "GitHub Action"}}@@ -271,12 +271,12 @@ import {useRepositoryV1Store,} from "@/store";import { getVCSUid } from "@/store/modules/v1/common";+import { Project, SchemaChange } from "@/types/proto/v1/project_service";import {ProjectGitOpsInfo,- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";-import { Project, SchemaChange } from "@/types/proto/v1/project_service";+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";import { supportSQLReviewCI } from "@/utils";import { ExternalRepositoryInfo, RepositoryConfig } from "../types";@@ -304,7 +304,7 @@ const props = defineProps({},vcs: {required: true,- type: Object as PropType<ExternalVersionControl>,+ type: Object as PropType<VCSProvider>,},allowEdit: {default: true,@@ -356,7 +356,7 @@ watch(const repositoryFormattedFullPath = computed(() => {const fullPath = props.repository.fullPath;- if (props.vcs.type !== ExternalVersionControl_Type.AZURE_DEVOPS) {+ if (props.vcs.type !== VCSProvider_Type.AZURE_DEVOPS) {return fullPath;}if (!fullPath.includes("@dev.azure.com")) {diff --git a/frontend/src/components/RepositorySelectionPanel.vue b/frontend/src/components/RepositorySelectionPanel.vueindex e254583384..267925c908 100644--- a/frontend/src/components/RepositorySelectionPanel.vue+++ b/frontend/src/components/RepositorySelectionPanel.vue@@ -45,13 +45,13 @@ import { ExternalRepositoryInfo, ProjectRepositoryConfig } from "@/types";import { pushNotification, useCurrentUserV1, useVCSV1Store } from "@/store";import {OAuthToken,- ExternalVersionControl_Type,- SearchExternalVersionControlProjectsResponse_Project,-} from "@/types/proto/v1/externalvs_service";+ VCSProvider_Type,+ SearchVCSProviderProjectsResponse_Project,+} from "@/types/proto/v1/vcs_provider_service";import { hasWorkspacePermissionV2 } from "@/utils";interface LocalState {- repositoryList: SearchExternalVersionControlProjectsResponse_Project[];+ repositoryList: SearchVCSProviderProjectsResponse_Project[];searchText: string;}@@ -92,7 +92,7 @@ const refreshRepositoryList = async () => {if (!hasWorkspacePermissionV2(currentUser.value,- "bb.externalVersionControls.searchProjects"+ "bb.vcsProviders.searchProjects")) {pushNotification({@@ -116,29 +116,27 @@ const repositoryList = computed(() => {return state.repositoryList;}return state.repositoryList.filter(- (repository: SearchExternalVersionControlProjectsResponse_Project) => {+ (repository: SearchVCSProviderProjectsResponse_Project) => {return repository.fullpath.toLowerCase().includes(state.searchText);});});const attentionText = computed((): string => {- if (props.config.vcs.type === ExternalVersionControl_Type.GITLAB) {+ if (props.config.vcs.type === VCSProvider_Type.GITLAB) {return "repository.select-repository-attention-gitlab";- } else if (props.config.vcs.type === ExternalVersionControl_Type.GITHUB) {+ } else if (props.config.vcs.type === VCSProvider_Type.GITHUB) {return "repository.select-repository-attention-github";- } else if (props.config.vcs.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (props.config.vcs.type === VCSProvider_Type.BITBUCKET) {return "repository.select-repository-attention-bitbucket";- } else if (- props.config.vcs.type === ExternalVersionControl_Type.AZURE_DEVOPS- ) {+ } else if (props.config.vcs.type === VCSProvider_Type.AZURE_DEVOPS) {return "repository.select-repository-attention-azure-devops";}return "";});const selectRepository = (- repository: SearchExternalVersionControlProjectsResponse_Project+ repository: SearchVCSProviderProjectsResponse_Project) => {emit("set-repository", {externalId: repository.id,diff --git a/frontend/src/components/RepositorySetupWizard.vue b/frontend/src/components/RepositorySetupWizard.vueindex db1a17512b..2353934593 100644--- a/frontend/src/components/RepositorySetupWizard.vue+++ b/frontend/src/components/RepositorySetupWizard.vue@@ -57,7 +57,7 @@{{$t("repository.sql-review-ci-setup-modal", {pr:- state.config.vcs.type === ExternalVersionControl_Type.GITLAB+ state.config.vcs.type === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),})@@ -73,7 +73,7 @@{{$t("repository.sql-review-ci-setup-pr", {pr:- state.config.vcs.type === ExternalVersionControl_Type.GITLAB+ state.config.vcs.type === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),})@@ -114,7 +114,7 @@{{$t("repository.sql-review-ci-loading-modal", {pr:- state.config.vcs.type === ExternalVersionControl_Type.GITLAB+ state.config.vcs.type === VCSProvider_Type.GITLAB? $t("repository.merge-request"): $t("repository.pull-request"),})@@ -139,17 +139,17 @@ import { StepTab } from "@/components/v2";import { PROJECT_V1_ROUTE_GITOPS } from "@/router/dashboard/projectV1";import { useRepositoryV1Store, hasFeature, useProjectV1Store } from "@/store";import { getVCSUid } from "@/store/modules/v1/common";-import {- OAuthToken,- ProjectGitOpsInfo,- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";import {Project,TenantMode,SchemaChange,} from "@/types/proto/v1/project_service";+import {+ OAuthToken,+ ProjectGitOpsInfo,+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";import { ExternalRepositoryInfo, ProjectRepositoryConfig } from "../types";// Default file path template is to organize migration files from different environments under separate directories.@@ -217,7 +217,7 @@ const isTenantProject = computed(() => {const state = reactive<LocalState>({config: {- vcs: {} as ExternalVersionControl,+ vcs: {} as VCSProvider,code: "",token: OAuthToken.fromPartial({accessToken: "",@@ -308,8 +308,8 @@ const tryFinishSetup = async () => {const createFunc = async () => {let externalId = state.config.repositoryInfo.externalId;if (- state.config.vcs.type === ExternalVersionControl_Type.GITHUB ||- state.config.vcs.type === ExternalVersionControl_Type.BITBUCKET+ state.config.vcs.type === VCSProvider_Type.GITHUB ||+ state.config.vcs.type === VCSProvider_Type.BITBUCKET) {externalId = state.config.repositoryInfo.fullPath;}@@ -385,7 +385,7 @@ const setToken = (token: OAuthToken) => {state.config.token = token;};-const setVCS = (vcs: ExternalVersionControl) => {+const setVCS = (vcs: VCSProvider) => {state.config.vcs = vcs;};diff --git a/frontend/src/components/RepositoryVCSProviderPanel.vue b/frontend/src/components/RepositoryVCSProviderPanel.vueindex 4e467903d9..0ca68ece65 100644--- a/frontend/src/components/RepositoryVCSProviderPanel.vue+++ b/frontend/src/components/RepositoryVCSProviderPanel.vue@@ -42,17 +42,17 @@ import { OAuthWindowEventPayload, openWindowForOAuth } from "@/types";import { hasWorkspacePermissionV2 } from "@/utils";import { pushNotification, useCurrentUserV1, useVCSV1Store } from "@/store";import {- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";interface LocalState {- selectedVCS?: ExternalVersionControl;+ selectedVCS?: VCSProvider;}const emit = defineEmits<{(event: "next"): void;- (event: "set-vcs", payload: ExternalVersionControl): void;+ (event: "set-vcs", payload: VCSProvider): void;(event: "set-code", payload: string): void;}>();@@ -93,22 +93,19 @@ const eventListener = (event: Event) => {};const canManageVCSProvider = computed(() => {- return hasWorkspacePermissionV2(- currentUserV1.value,- "bb.externalVersionControls.list"- );+ return hasWorkspacePermissionV2(currentUserV1.value, "bb.vcsProviders.list");});-const selectVCS = (vcs: ExternalVersionControl) => {+const selectVCS = (vcs: VCSProvider) => {state.selectedVCS = vcs;emit("set-vcs", vcs);let authorizeUrl = `${vcs.url}/oauth/authorize`;- if (vcs.type === ExternalVersionControl_Type.GITHUB) {+ if (vcs.type === VCSProvider_Type.GITHUB) {authorizeUrl = `${vcs.url}/login/oauth/authorize`;- } else if (vcs.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (vcs.type === VCSProvider_Type.BITBUCKET) {authorizeUrl = `https://bitbucket.org/site/oauth2/authorize`;- } else if (vcs.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (vcs.type === VCSProvider_Type.AZURE_DEVOPS) {authorizeUrl = "https://app.vssps.visualstudio.com/oauth2/authorize";}openWindowForOAuth(diff --git a/frontend/src/components/VCS/VCSCard.vue b/frontend/src/components/VCS/VCSCard.vueindex 5d5ee9a6b7..81f804194e 100644--- a/frontend/src/components/VCS/VCSCard.vue+++ b/frontend/src/components/VCS/VCSCard.vue@@ -42,13 +42,13 @@ import { PropType, computed } from "vue";import { useRouter } from "vue-router";import { WORKSPACE_ROUTE_GITOPS_DETAIL } from "@/router/dashboard/workspaceRoutes";import { useCurrentUserV1 } from "@/store";-import { ExternalVersionControl } from "@/types/proto/v1/externalvs_service";+import { VCSProvider } from "@/types/proto/v1/vcs_provider_service";import { hasWorkspacePermissionV2, vcsSlugV1 } from "@/utils";const props = defineProps({vcs: {required: true,- type: Object as PropType<ExternalVersionControl>,+ type: Object as PropType<VCSProvider>,},});@@ -56,10 +56,7 @@ const router = useRouter();const currentUser = useCurrentUserV1();const hasUpdateVCSPermission = computed(() => {- return hasWorkspacePermissionV2(- currentUser.value,- "bb.externalVersionControls.update"- );+ return hasWorkspacePermissionV2(currentUser.value, "bb.vcsProviders.update");});const editVCS = () => {diff --git a/frontend/src/components/VCS/VCSIcon.vue b/frontend/src/components/VCS/VCSIcon.vueindex 881623e701..426b87478c 100644--- a/frontend/src/components/VCS/VCSIcon.vue+++ b/frontend/src/components/VCS/VCSIcon.vue@@ -4,26 +4,26 @@<script lang="ts" setup>import { computed } from "vue";-import { ExternalVersionControl_Type } from "@/types/proto/v1/externalvs_service";+import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";const props = defineProps<{customClass?: string;- type: ExternalVersionControl_Type;+ type: VCSProvider_Type;}>();const icon = computed(() => {let iconType = "";switch (props.type) {- case ExternalVersionControl_Type.AZURE_DEVOPS:+ case VCSProvider_Type.AZURE_DEVOPS:iconType = "azure-devops";break;- case ExternalVersionControl_Type.GITLAB:+ case VCSProvider_Type.GITLAB:iconType = "gitlab";break;- case ExternalVersionControl_Type.GITHUB:+ case VCSProvider_Type.GITHUB:iconType = "github";break;- case ExternalVersionControl_Type.BITBUCKET:+ case VCSProvider_Type.BITBUCKET:iconType = "bitbucket";break;default:diff --git a/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue b/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vueindex 192092e063..935c8af882 100644--- a/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue+++ b/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue@@ -61,7 +61,7 @@ import { NRadio, NRadioGroup } from "naive-ui";import { computed, onUnmounted, reactive } from "vue";import { useI18n } from "vue-i18n";import { TEXT_VALIDATION_DELAY, VCSConfig } from "@/types";-import { ExternalVersionControl_Type } from "@/types/proto/v1/externalvs_service";+import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";import { isUrl } from "@/utils";import { vcsListByUIType } from "./utils";@@ -87,21 +87,21 @@ onUnmounted(() => {});const namePlaceholder = computed((): string => {- if (props.config.type === ExternalVersionControl_Type.GITLAB) {+ if (props.config.type === VCSProvider_Type.GITLAB) {if (props.config.uiType == "GITLAB_SELF_HOST") {return t("gitops.setting.add-git-provider.gitlab-self-host");} else if (props.config.uiType == "GITLAB_COM") {return "GitLab.com";}- } else if (props.config.type === ExternalVersionControl_Type.GITHUB) {+ } else if (props.config.type === VCSProvider_Type.GITHUB) {if (props.config.uiType == "GITHUB_COM") {return "GitHub.com";} else if (props.config.uiType === "GITHUB_ENTERPRISE") {return "Self Host GitHub Enterprise";}- } else if (props.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (props.config.type === VCSProvider_Type.BITBUCKET) {return "Bitbucket.org";- } else if (props.config.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (props.config.type === VCSProvider_Type.AZURE_DEVOPS) {return "Azure DevOps";}return "";@@ -109,19 +109,19 @@ const namePlaceholder = computed((): string => {const instanceUrlLabel = computed((): string => {switch (props.config.type) {- case ExternalVersionControl_Type.GITLAB:+ case VCSProvider_Type.GITLAB:return t("gitops.setting.add-git-provider.basic-info.gitlab-instance-url");- case ExternalVersionControl_Type.GITHUB:+ case VCSProvider_Type.GITHUB:return t("gitops.setting.add-git-provider.basic-info.github-instance-url");- case ExternalVersionControl_Type.BITBUCKET:+ case VCSProvider_Type.BITBUCKET:return t("gitops.setting.add-git-provider.basic-info.bitbucket-instance-url");- case ExternalVersionControl_Type.AZURE_DEVOPS:+ case VCSProvider_Type.AZURE_DEVOPS:return t("gitops.setting.add-git-provider.basic-info.azure-instance-url");default:return "";@@ -129,19 +129,19 @@ const instanceUrlLabel = computed((): string => {});const instanceUrlPlaceholder = computed((): string => {- if (props.config.type === ExternalVersionControl_Type.GITLAB) {+ if (props.config.type === VCSProvider_Type.GITLAB) {if (props.config.uiType == "GITLAB_SELF_HOST") {return "https://gitlab.example.com";} else if (props.config.uiType == "GITLAB_COM") {return "https://gitlab.com";}- } else if (props.config.type === ExternalVersionControl_Type.GITHUB) {+ } else if (props.config.type === VCSProvider_Type.GITHUB) {if (props.config.uiType == "GITHUB_COM") {return "https://github.com";} else if (props.config.uiType == "GITHUB_ENTERPRISE") {return "https://github.companyname.com";}- } else if (props.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (props.config.type === VCSProvider_Type.BITBUCKET) {return "https://bitbucket.org";}return "";@@ -150,11 +150,11 @@ const instanceUrlPlaceholder = computed((): string => {// github.com instance url is always https://github.comconst instanceUrlDisabled = computed((): boolean => {return (- (props.config.type === ExternalVersionControl_Type.GITHUB &&+ (props.config.type === VCSProvider_Type.GITHUB &&props.config.uiType == "GITHUB_COM") ||- props.config.type === ExternalVersionControl_Type.BITBUCKET ||- props.config.type === ExternalVersionControl_Type.AZURE_DEVOPS ||- (props.config.type === ExternalVersionControl_Type.GITLAB &&+ props.config.type === VCSProvider_Type.BITBUCKET ||+ props.config.type === VCSProvider_Type.AZURE_DEVOPS ||+ (props.config.type === VCSProvider_Type.GITLAB &&props.config.uiType == "GITLAB_COM"));});@@ -190,32 +190,32 @@ const changeUrl = (value: string) => {const changeUIType = () => {switch (props.config.uiType) {case "GITLAB_SELF_HOST":- props.config.type = ExternalVersionControl_Type.GITLAB;+ props.config.type = VCSProvider_Type.GITLAB;props.config.instanceUrl = "";props.config.name = t("gitops.setting.add-git-provider.gitlab-self-host");break;case "GITLAB_COM":- props.config.type = ExternalVersionControl_Type.GITLAB;+ props.config.type = VCSProvider_Type.GITLAB;props.config.instanceUrl = "https://gitlab.com";props.config.name = "GitLab.com";break;case "GITHUB_COM":- props.config.type = ExternalVersionControl_Type.GITHUB;+ props.config.type = VCSProvider_Type.GITHUB;props.config.instanceUrl = "https://github.com";props.config.name = "GitHub.com";break;case "GITHUB_ENTERPRISE":- props.config.type = ExternalVersionControl_Type.GITHUB;+ props.config.type = VCSProvider_Type.GITHUB;props.config.instanceUrl = "";props.config.name = "Self Host GitHub Enterprise";break;case "BITBUCKET_ORG":- props.config.type = ExternalVersionControl_Type.BITBUCKET;+ props.config.type = VCSProvider_Type.BITBUCKET;props.config.instanceUrl = "https://bitbucket.org";props.config.name = "Bitbucket.org";break;case "AZURE_DEVOPS":- props.config.type = ExternalVersionControl_Type.AZURE_DEVOPS;+ props.config.type = VCSProvider_Type.AZURE_DEVOPS;props.config.instanceUrl = "https://dev.azure.com";props.config.name = "Azure DevOps";break;diff --git a/frontend/src/components/VCS/VCSProviderOAuthPanel.vue b/frontend/src/components/VCS/VCSProviderOAuthPanel.vueindex 3176cb58e2..f906aa4bed 100644--- a/frontend/src/components/VCS/VCSProviderOAuthPanel.vue+++ b/frontend/src/components/VCS/VCSProviderOAuthPanel.vue@@ -557,7 +557,7 @@ import {VCSConfig,redirectUrl,} from "@/types";-import { ExternalVersionControl_Type } from "@/types/proto/v1/externalvs_service";+import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";import { toClipboard } from "@/utils";interface LocalState {@@ -699,15 +699,15 @@ const changeSecret = (value: string) => {};const applicationIdErrorDescription = computed((): string => {- if (props.config.type === ExternalVersionControl_Type.GITLAB) {+ if (props.config.type === VCSProvider_Type.GITLAB) {return t("gitops.setting.add-git-provider.oauth-info.gitlab-application-id-error");- } else if (props.config.type === ExternalVersionControl_Type.GITHUB) {+ } else if (props.config.type === VCSProvider_Type.GITHUB) {return t("gitops.setting.add-git-provider.oauth-info.github-application-id-error");- } else if (props.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (props.config.type === VCSProvider_Type.BITBUCKET) {return t("gitops.setting.add-git-provider.oauth-info.bitbucket-application-id-error");@@ -716,11 +716,11 @@ const applicationIdErrorDescription = computed((): string => {});const secretErrorDescription = computed((): string => {- if (props.config.type === ExternalVersionControl_Type.GITLAB) {+ if (props.config.type === VCSProvider_Type.GITLAB) {return t("gitops.setting.add-git-provider.oauth-info.gitlab-secret-error");- } else if (props.config.type === ExternalVersionControl_Type.GITHUB) {+ } else if (props.config.type === VCSProvider_Type.GITHUB) {return t("gitops.setting.add-git-provider.oauth-info.github-secret-error");- } else if (props.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (props.config.type === VCSProvider_Type.BITBUCKET) {return t("gitops.setting.add-git-provider.oauth-info.bitbucket-secret-error");@@ -729,7 +729,7 @@ const secretErrorDescription = computed((): string => {});const secretField = computed(() => {- if (props.config.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ if (props.config.type === VCSProvider_Type.AZURE_DEVOPS) {return "Client Secret";}return "Secret";diff --git a/frontend/src/components/VCS/VCSSetupWizard.vue b/frontend/src/components/VCS/VCSSetupWizard.vueindex ca873685ca..1388b11a46 100644--- a/frontend/src/components/VCS/VCSSetupWizard.vue+++ b/frontend/src/components/VCS/VCSSetupWizard.vue@@ -44,9 +44,9 @@ import {} from "@/types";import {OAuthToken,- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";import { isUrl } from "@/utils";import VCSProviderBasicInfoPanel from "./VCSProviderBasicInfoPanel.vue";import VCSProviderConfirmPanel from "./VCSProviderConfirmPanel.vue";@@ -83,7 +83,7 @@ const stepList = [const state = reactive<LocalState>({config: {- type: ExternalVersionControl_Type.GITLAB,+ type: VCSProvider_Type.GITLAB,uiType: "GITLAB_SELF_HOST",name: t("gitops.setting.add-git-provider.gitlab-self-host"),instanceUrl: "",@@ -105,10 +105,10 @@ const eventListener = (event: Event) => {const payload = (event as CustomEvent).detail as OAuthWindowEventPayload;if (isEmpty(payload.error)) {if (- state.config.type === ExternalVersionControl_Type.GITLAB ||- state.config.type === ExternalVersionControl_Type.GITHUB ||- state.config.type === ExternalVersionControl_Type.BITBUCKET ||- state.config.type === ExternalVersionControl_Type.AZURE_DEVOPS+ state.config.type === VCSProvider_Type.GITLAB ||+ state.config.type === VCSProvider_Type.GITHUB ||+ state.config.type === VCSProvider_Type.BITBUCKET ||+ state.config.type === VCSProvider_Type.AZURE_DEVOPS) {vcsV1Store.exchangeToken({@@ -146,37 +146,37 @@ const allowNext = computed((): boolean => {});const attentionText = computed((): string => {- if (state.config.type === ExternalVersionControl_Type.GITLAB) {+ if (state.config.type === VCSProvider_Type.GITLAB) {if (state.config.uiType == "GITLAB_SELF_HOST") {return t("gitops.setting.add-git-provider.gitlab-self-host-admin-requirement");}return t("gitops.setting.add-git-provider.gitlab-com-admin-requirement");- } else if (state.config.type === ExternalVersionControl_Type.GITHUB) {+ } else if (state.config.type === VCSProvider_Type.GITHUB) {return t("gitops.setting.add-git-provider.github-com-admin-requirement");- } else if (state.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (state.config.type === VCSProvider_Type.BITBUCKET) {return t("gitops.setting.add-git-provider.bitbucket-admin-requirement");- } else if (state.config.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (state.config.type === VCSProvider_Type.AZURE_DEVOPS) {return t("gitops.setting.add-git-provider.azure-admin-requirement");}return "";});const link = computed((): string => {- if (state.config.type === ExternalVersionControl_Type.GITLAB) {+ if (state.config.type === VCSProvider_Type.GITLAB) {if (state.config.uiType == "GITLAB_SELF_HOST") {return "https://www.bytebase.com/docs/vcs-integration/self-host-gitlab/?source=console";}return "https://www.bytebase.com/docs/vcs-integration/gitlab-com/?source=console";- } else if (state.config.type === ExternalVersionControl_Type.GITHUB) {+ } else if (state.config.type === VCSProvider_Type.GITHUB) {if (state.config.uiType == "GITHUB_COM") {return "https://www.bytebase.com/docs/vcs-integration/github-com/?source=console";}return "https://www.bytebase.com/docs/vcs-integration/github-enterprise/?source=console";- } else if (state.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (state.config.type === VCSProvider_Type.BITBUCKET) {return "https://www.bytebase.com/docs/vcs-integration/bitbucket-org/?source=console";- } else if (state.config.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (state.config.type === VCSProvider_Type.AZURE_DEVOPS) {return "https://www.bytebase.com/docs/vcs-integration/azure-devops/?source=console";}return "";@@ -196,11 +196,11 @@ const tryChangeStep = (nextStepIndex: number) => {nextStepIndex > state.currentStep) {let authorizeUrl = `${state.config.instanceUrl}/oauth/authorize`;- if (state.config.type === ExternalVersionControl_Type.GITHUB) {+ if (state.config.type === VCSProvider_Type.GITHUB) {authorizeUrl = `${state.config.instanceUrl}/login/oauth/authorize`;- } else if (state.config.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (state.config.type === VCSProvider_Type.BITBUCKET) {authorizeUrl = `https://bitbucket.org/site/oauth2/authorize`;- } else if (state.config.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (state.config.type === VCSProvider_Type.AZURE_DEVOPS) {authorizeUrl = "https://app.vssps.visualstudio.com/oauth2/authorize";}const newWindow = openWindowForOAuth(@@ -220,7 +220,7 @@ const tryChangeStep = (nextStepIndex: number) => {});} else {let description = "";- if (state.config.type == ExternalVersionControl_Type.GITLAB) {+ if (state.config.type == VCSProvider_Type.GITLAB) {// If application id mismatches, the OAuth workflow will stop early.// So the only possibility to reach here is we have a matching application id, while// we failed to exchange a token, and it's likely we are requesting with a wrong secret.@@ -253,7 +253,7 @@ const tryFinishSetup = () => {secret: state.config.secret,apiUrl: "",})- .then((vcs: ExternalVersionControl) => {+ .then((vcs: VCSProvider) => {router.push({name: WORKSPACE_ROUTE_GITOPS,});diff --git a/frontend/src/components/VCS/utils.ts b/frontend/src/components/VCS/utils.tsindex 25f4349270..22c15ed99f 100644--- a/frontend/src/components/VCS/utils.ts+++ b/frontend/src/components/VCS/utils.ts@@ -1,11 +1,11 @@import { computed } from "vue";import { useI18n } from "vue-i18n";import { VCSUIType } from "@/types";-import { ExternalVersionControl_Type } from "@/types/proto/v1/externalvs_service";+import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";export const vcsListByUIType = computed((): {- type: ExternalVersionControl_Type;+ type: VCSProvider_Type;uiType: VCSUIType;title: string;}[] => {@@ -13,32 +13,32 @@ export const vcsListByUIType = computed(return [{- type: ExternalVersionControl_Type.GITLAB,+ type: VCSProvider_Type.GITLAB,uiType: "GITLAB_SELF_HOST",title: t("gitops.setting.add-git-provider.gitlab-self-host"),},{- type: ExternalVersionControl_Type.GITLAB,+ type: VCSProvider_Type.GITLAB,uiType: "GITLAB_COM",title: "GitLab.com",},{- type: ExternalVersionControl_Type.GITHUB,+ type: VCSProvider_Type.GITHUB,uiType: "GITHUB_COM",title: "GitHub.com",},{- type: ExternalVersionControl_Type.GITHUB,+ type: VCSProvider_Type.GITHUB,uiType: "GITHUB_ENTERPRISE",title: t("gitops.setting.add-git-provider.github-self-host-ee"),},{- type: ExternalVersionControl_Type.AZURE_DEVOPS,+ type: VCSProvider_Type.AZURE_DEVOPS,uiType: "AZURE_DEVOPS",title: t("gitops.setting.add-git-provider.azure-devops-service"),},{- type: ExternalVersionControl_Type.BITBUCKET,+ type: VCSProvider_Type.BITBUCKET,uiType: "BITBUCKET_ORG",title: "Bitbucket.org",},diff --git a/frontend/src/grpcweb/index.ts b/frontend/src/grpcweb/index.tsindex c91e20bb13..409d1bdf26 100644--- a/frontend/src/grpcweb/index.ts+++ b/frontend/src/grpcweb/index.ts@@ -13,7 +13,6 @@ import { CelServiceDefinition } from "@/types/proto/v1/cel_service";import { ChangelistServiceDefinition } from "@/types/proto/v1/changelist_service";import { DatabaseServiceDefinition } from "@/types/proto/v1/database_service";import { EnvironmentServiceDefinition } from "@/types/proto/v1/environment_service";-import { ExternalVersionControlServiceDefinition } from "@/types/proto/v1/externalvs_service";import { IdentityProviderServiceDefinition } from "@/types/proto/v1/idp_service";import { InstanceRoleServiceDefinition } from "@/types/proto/v1/instance_role_service";import { InstanceServiceDefinition } from "@/types/proto/v1/instance_service";@@ -28,6 +27,7 @@ import { SettingServiceDefinition } from "@/types/proto/v1/setting_service";import { SheetServiceDefinition } from "@/types/proto/v1/sheet_service";import { SQLServiceDefinition } from "@/types/proto/v1/sql_service";import { SubscriptionServiceDefinition } from "@/types/proto/v1/subscription_service";+import { VCSProviderServiceDefinition } from "@/types/proto/v1/vcs_provider_service";import { WorksheetServiceDefinition } from "@/types/proto/v1/worksheet_service";import {authInterceptorMiddleware,@@ -163,8 +163,8 @@ export const actuatorServiceClient = clientFactory.create(channel);-export const externalVersionControlServiceClient = clientFactory.create(- ExternalVersionControlServiceDefinition,+export const vcsProviderServiceClient = clientFactory.create(+ VCSProviderServiceDefinition,channel);diff --git a/frontend/src/router/dashboard/workspace.ts b/frontend/src/router/dashboard/workspace.tsindex 2e436a5f10..a609dcbc74 100644--- a/frontend/src/router/dashboard/workspace.ts+++ b/frontend/src/router/dashboard/workspace.ts@@ -238,9 +238,7 @@ const workspaceRoutes: RouteRecordRaw[] = [path: "",name: WORKSPACE_ROUTE_GITOPS,meta: {- requiredWorkspacePermissionList: () => [- "bb.externalVersionControls.list",- ],+ requiredWorkspacePermissionList: () => ["bb.vcsProviders.list"],},component: () => import("@/views/SettingWorkspaceVCS.vue"),props: true,@@ -250,9 +248,7 @@ const workspaceRoutes: RouteRecordRaw[] = [name: WORKSPACE_ROUTE_GITOPS_CREATE,meta: {title: () => t("repository.add-git-provider"),- requiredWorkspacePermissionList: () => [- "bb.externalVersionControls.create",- ],+ requiredWorkspacePermissionList: () => ["bb.vcsProviders.create"],},component: () => import("@/views/SettingWorkspaceVCSCreate.vue"),props: true,@@ -261,9 +257,7 @@ const workspaceRoutes: RouteRecordRaw[] = [path: ":vcsSlug",name: WORKSPACE_ROUTE_GITOPS_DETAIL,meta: {- requiredWorkspacePermissionList: () => [- "bb.externalVersionControls.get",- ],+ requiredWorkspacePermissionList: () => ["bb.vcsProviders.get"],},component: () => import("@/views/SettingWorkspaceVCSDetail.vue"),props: true,diff --git a/frontend/src/store/modules/v1/common.ts b/frontend/src/store/modules/v1/common.tsindex c4d2588145..9ddcb54f7b 100644--- a/frontend/src/store/modules/v1/common.ts+++ b/frontend/src/store/modules/v1/common.ts@@ -12,7 +12,7 @@ export const sheetNamePrefix = "sheets/";export const worksheetNamePrefix = "worksheets/";export const databaseGroupNamePrefix = "databaseGroups/";export const schemaGroupNamePrefix = "schemaGroups/";-export const externalVersionControlPrefix = "externalVersionControls/";+export const vcsProviderPrefix = "vcsProviders/";export const logNamePrefix = "logs/";export const issueNamePrefix = "issues/";export const secretNamePrefix = "secrets/";@@ -153,7 +153,7 @@ export const getProjectPathFromRepoName = (repoName: string): string => {};export const getVCSUid = (name: string): number => {- const tokens = getNameParentTokens(name, [externalVersionControlPrefix]);+ const tokens = getNameParentTokens(name, [vcsProviderPrefix]);const vcsUid = Number(tokens[0] || UNKNOWN_ID);return vcsUid;};diff --git a/frontend/src/store/modules/v1/repository.ts b/frontend/src/store/modules/v1/repository.tsindex 964e0dca47..2c6471f986 100644--- a/frontend/src/store/modules/v1/repository.ts+++ b/frontend/src/store/modules/v1/repository.ts@@ -1,12 +1,9 @@import { isEqual, isUndefined } from "lodash-es";import { defineStore } from "pinia";import { reactive } from "vue";-import {- projectServiceClient,- externalVersionControlServiceClient,-} from "@/grpcweb";+import { projectServiceClient, vcsProviderServiceClient } from "@/grpcweb";import { ComposedRepository } from "@/types";-import { ProjectGitOpsInfo } from "@/types/proto/v1/externalvs_service";+import { ProjectGitOpsInfo } from "@/types/proto/v1/vcs_provider_service";import { getProjectPathFromRepoName } from "./common";import { useProjectV1Store } from "./project";@@ -93,10 +90,9 @@ export const useRepositoryV1Store = defineStore("repository_v1", () => {const fetchRepositoryListByVCS = async (vcsName: string): Promise<ProjectGitOpsInfo[]> => {- const resp =- await externalVersionControlServiceClient.listProjectGitOpsInfo({- name: vcsName,- });+ const resp = await vcsProviderServiceClient.listProjectGitOpsInfo({+ name: vcsName,+ });const projectV1Store = useProjectV1Store();const repoList: ComposedRepository[] = await Promise.all(diff --git a/frontend/src/store/modules/v1/vcs.ts b/frontend/src/store/modules/v1/vcs.tsindex 30e723a2f4..832848e06c 100644--- a/frontend/src/store/modules/v1/vcs.ts+++ b/frontend/src/store/modules/v1/vcs.ts@@ -1,58 +1,53 @@import { isEqual, isUndefined } from "lodash-es";import { defineStore } from "pinia";import { reactive } from "vue";-import { externalVersionControlServiceClient } from "@/grpcweb";+import { vcsProviderServiceClient } from "@/grpcweb";import { VCSId } from "@/types";import {- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";-import { externalVersionControlPrefix } from "./common";+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";+import { vcsProviderPrefix } from "./common";export const useVCSV1Store = defineStore("vcs_v1", () => {- const vcsMapByName = reactive(new Map<string, ExternalVersionControl>());+ const vcsMapByName = reactive(new Map<string, VCSProvider>());const listVCSExternalProjects = async (vcsName: string,accessToken: string,refreshToken: string) => {- const resp =- await externalVersionControlServiceClient.searchExternalVersionControlProjects(- {- name: vcsName,- accessToken,- refreshToken,- }- );+ const resp = await vcsProviderServiceClient.searchVCSProviderProjects({+ name: vcsName,+ accessToken,+ refreshToken,+ });return resp.projects;};const fetchVCSList = async () => {- const resp =- await externalVersionControlServiceClient.listExternalVersionControls({});- for (const vcs of resp.externalVersionControls) {+ const resp = await vcsProviderServiceClient.listVCSProviders({});+ for (const vcs of resp.vcsProviders) {vcsMapByName.set(vcs.name, vcs);}- return resp.externalVersionControls;+ return resp.vcsProviders;};const fetchVCSByName = async (name: string) => {- const vcs =- await externalVersionControlServiceClient.getExternalVersionControl({- name,- });+ const vcs = await vcsProviderServiceClient.getVCSProvider({+ name,+ });vcsMapByName.set(vcs.name, vcs);return vcs;};const fetchVCSByUid = async (vcsId: VCSId) => {- return fetchVCSByName(`${externalVersionControlPrefix}${vcsId}`);+ return fetchVCSByName(`${vcsProviderPrefix}${vcsId}`);};const getVCSByUid = (vcsId: VCSId) => {- return vcsMapByName.get(`${externalVersionControlPrefix}${vcsId}`);+ return vcsMapByName.get(`${vcsProviderPrefix}${vcsId}`);};const getVCSList = () => {@@ -60,22 +55,21 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {};const deleteVCS = async (name: string) => {- await externalVersionControlServiceClient.deleteExternalVersionControl({+ await vcsProviderServiceClient.deleteVCSProvider({name,});vcsMapByName.delete(name);};- const createVCS = async (vcs: ExternalVersionControl) => {- const resp =- await externalVersionControlServiceClient.createExternalVersionControl({- externalVersionControl: vcs,- });+ const createVCS = async (vcs: VCSProvider) => {+ const resp = await vcsProviderServiceClient.createVCSProvider({+ vcsProvider: vcs,+ });vcsMapByName.set(resp.name, resp);return resp;};- const updateVCS = async (vcs: Partial<ExternalVersionControl>) => {+ const updateVCS = async (vcs: Partial<VCSProvider>) => {if (!vcs.name) {return;}@@ -84,11 +78,10 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {if (updateMask.length === 0) {return existed;}- const resp =- await externalVersionControlServiceClient.updateExternalVersionControl({- externalVersionControl: vcs,- updateMask,- });+ const resp = await vcsProviderServiceClient.updateVCSProvider({+ vcsProvider: vcs,+ updateMask,+ });vcsMapByName.set(resp.name, resp);return resp;};@@ -102,15 +95,15 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {code,}: {vcsName?: string;- vcsType?: ExternalVersionControl_Type;+ vcsType?: VCSProvider_Type;instanceUrl?: string;clientId?: string;clientSecret?: string;code: string;}) => {- const oauthToken = await externalVersionControlServiceClient.exchangeToken({+ const oauthToken = await vcsProviderServiceClient.exchangeToken({exchangeToken: {- name: vcsName ?? `${externalVersionControlPrefix}-`,+ name: vcsName ?? `${vcsProviderPrefix}-`,code,type: vcsType,instanceUrl,@@ -137,8 +130,8 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {});const getUpdateMaskForVCS = (- origin: ExternalVersionControl,- update: Partial<ExternalVersionControl>+ origin: VCSProvider,+ update: Partial<VCSProvider>): string[] => {const updateMask: string[] = [];if (!isUndefined(update.title) && !isEqual(origin.title, update.title)) {diff --git a/frontend/src/types/iam/permission.ts b/frontend/src/types/iam/permission.tsindex fa89481978..b5bdcf6982 100644--- a/frontend/src/types/iam/permission.ts+++ b/frontend/src/types/iam/permission.ts@@ -5,14 +5,14 @@ export type WorkspacePermission =| "bb.environments.list"| "bb.environments.undelete"| "bb.environments.update"- | "bb.externalVersionControls.create"- | "bb.externalVersionControls.delete"- | "bb.externalVersionControls.exchangeToken"- | "bb.externalVersionControls.get"- | "bb.externalVersionControls.list"- | "bb.externalVersionControls.listProjects"- | "bb.externalVersionControls.searchProjects"- | "bb.externalVersionControls.update"+ | "bb.vcsProviders.create"+ | "bb.vcsProviders.delete"+ | "bb.vcsProviders.exchangeToken"+ | "bb.vcsProviders.get"+ | "bb.vcsProviders.list"+ | "bb.vcsProviders.listProjects"+ | "bb.vcsProviders.searchProjects"+ | "bb.vcsProviders.update"| "bb.identityProviders.create"| "bb.identityProviders.delete"| "bb.identityProviders.get"diff --git a/frontend/src/types/oauth.ts b/frontend/src/types/oauth.tsindex 0e9deccebe..d7d1aa6325 100644--- a/frontend/src/types/oauth.ts+++ b/frontend/src/types/oauth.ts@@ -1,8 +1,8 @@import { stringify } from "qs";import {- ExternalVersionControl_Type,- externalVersionControl_TypeToJSON,-} from "@/types/proto/v1/externalvs_service";+ VCSProvider_Type,+ vCSProvider_TypeToJSON,+} from "@/types/proto/v1/vcs_provider_service";export const OAuthStateSessionKey = "oauth-state";@@ -33,13 +33,11 @@ export function openWindowForOAuth(endpoint: string,applicationId: string,type: OAuthType,- vcsType: ExternalVersionControl_Type+ vcsType: VCSProvider_Type): Window | null {const state: OAuthState = {// we use type to determine oauth type when receiving the callback- event: `${type}.${externalVersionControl_TypeToJSON(- vcsType- )}-${applicationId}`,+ event: `${type}.${vCSProvider_TypeToJSON(vcsType)}-${applicationId}`,popup: true,};@@ -53,26 +51,26 @@ export function openWindowForOAuth(// Set proper popup window size for different VCS typeslet windowOpenOptions = "";- if (vcsType == ExternalVersionControl_Type.GITHUB) {+ if (vcsType == VCSProvider_Type.GITHUB) {// GitHub OAuth App scopes: https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps// We need the workflow scope to update GitHub action files.endpointQueryParams["scope"] = "api,repo,workflow";windowOpenOptions ="location=yes,left=200,top=200,height=640,width=480,scrollbars=yes,status=yes";- } else if (vcsType == ExternalVersionControl_Type.BITBUCKET) {+ } else if (vcsType == VCSProvider_Type.BITBUCKET) {// Bitbucket OAuth App scopes: https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication// Do not call `encodeURIComponent` here, will be encoded later.endpointQueryParams["scope"] = "account repository:write webhook";windowOpenOptions ="location=yes,left=200,top=200,height=640,width=720,scrollbars=yes,status=yes";- } else if (vcsType == ExternalVersionControl_Type.GITLAB) {+ } else if (vcsType == VCSProvider_Type.GITLAB) {// GITLAB// GitLab OAuth App scopes: https://docs.gitlab.com/ee/integration/oauth_provider.html#authorized-applicationsendpointQueryParams["scope"] = "api";windowOpenOptions ="location=yes,left=200,top=200,height=640,width=480,scrollbars=yes,status=yes";- } else if (vcsType == ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (vcsType == VCSProvider_Type.AZURE_DEVOPS) {// Scopes for Azure: https://learn.microsoft.com/zh-cn/azure/devops/integrate/get-started/authentication/oauth?view=azure-devops#scopes// We need full scopes in the application: https://stackoverflow.com/questions/56143321/azure-devops-oauth-enpoint-always-returns-error-invalidscopeendpointQueryParams["scope"] =diff --git a/frontend/src/types/project.ts b/frontend/src/types/project.tsindex 0210836488..f257a51965 100644--- a/frontend/src/types/project.ts+++ b/frontend/src/types/project.ts@@ -1,8 +1,5 @@-import {- OAuthToken,- ExternalVersionControl,-} from "@/types/proto/v1/externalvs_service";import { SchemaChange } from "@/types/proto/v1/project_service";+import { OAuthToken, VCSProvider } from "@/types/proto/v1/vcs_provider_service";import { RowStatus } from "./common";import { ProjectId } from "./id";import { Principal } from "./principal";@@ -47,7 +44,7 @@ export type ProjectMember = {};export type ProjectRepositoryConfig = {- vcs: ExternalVersionControl;+ vcs: VCSProvider;// TODO(zilong): get rid of the token in the frontend.token: OAuthToken;code: string;diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex e5804c3efe..824c1150fd 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -4,6 +4,98 @@ import _m0 from "protobufjs/minimal";export const protobufPackage = "google.protobuf";+/** The full set of known editions. */+export enum Edition {+ /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */+ EDITION_UNKNOWN = 0,+ /**+ * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like+ * distinct editions. These can't be used to specify the edition of proto+ * files, but feature definitions must supply proto2/proto3 defaults for+ * backwards compatibility.+ */+ EDITION_PROTO2 = 998,+ EDITION_PROTO3 = 999,+ /**+ * EDITION_2023 - Editions that have been released. The specific values are arbitrary and+ * should not be depended on, but they will always be time-ordered for easy+ * comparison.+ */+ EDITION_2023 = 1000,+ /**+ * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be+ * used or relyed on outside of tests.+ */+ EDITION_1_TEST_ONLY = 1,+ EDITION_2_TEST_ONLY = 2,+ EDITION_99997_TEST_ONLY = 99997,+ EDITION_99998_TEST_ONLY = 99998,+ EDITION_99999_TEST_ONLY = 99999,+ UNRECOGNIZED = -1,+}++export function editionFromJSON(object: any): Edition {+ switch (object) {+ case 0:+ case "EDITION_UNKNOWN":+ return Edition.EDITION_UNKNOWN;+ case 998:+ case "EDITION_PROTO2":+ return Edition.EDITION_PROTO2;+ case 999:+ case "EDITION_PROTO3":+ return Edition.EDITION_PROTO3;+ case 1000:+ case "EDITION_2023":+ return Edition.EDITION_2023;+ case 1:+ case "EDITION_1_TEST_ONLY":+ return Edition.EDITION_1_TEST_ONLY;+ case 2:+ case "EDITION_2_TEST_ONLY":+ return Edition.EDITION_2_TEST_ONLY;+ case 99997:+ case "EDITION_99997_TEST_ONLY":+ return Edition.EDITION_99997_TEST_ONLY;+ case 99998:+ case "EDITION_99998_TEST_ONLY":+ return Edition.EDITION_99998_TEST_ONLY;+ case 99999:+ case "EDITION_99999_TEST_ONLY":+ return Edition.EDITION_99999_TEST_ONLY;+ case -1:+ case "UNRECOGNIZED":+ default:+ return Edition.UNRECOGNIZED;+ }+}++export function editionToJSON(object: Edition): string {+ switch (object) {+ case Edition.EDITION_UNKNOWN:+ return "EDITION_UNKNOWN";+ case Edition.EDITION_PROTO2:+ return "EDITION_PROTO2";+ case Edition.EDITION_PROTO3:+ return "EDITION_PROTO3";+ case Edition.EDITION_2023:+ return "EDITION_2023";+ case Edition.EDITION_1_TEST_ONLY:+ return "EDITION_1_TEST_ONLY";+ case Edition.EDITION_2_TEST_ONLY:+ return "EDITION_2_TEST_ONLY";+ case Edition.EDITION_99997_TEST_ONLY:+ return "EDITION_99997_TEST_ONLY";+ case Edition.EDITION_99998_TEST_ONLY:+ return "EDITION_99998_TEST_ONLY";+ case Edition.EDITION_99999_TEST_ONLY:+ return "EDITION_99999_TEST_ONLY";+ case Edition.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}+/*** The protocol compiler can output a FileDescriptorSet containing the .proto* files it parses.@@ -51,8 +143,8 @@ export interface FileDescriptorProto {* If `edition` is present, this value must be "editions".*/syntax: string;- /** The edition of the proto file, which is an opaque string. */- edition: string;+ /** The edition of the proto file. */+ edition: Edition;}/** Describes a message type. */@@ -96,6 +188,84 @@ export interface DescriptorProto_ReservedRange {export interface ExtensionRangeOptions {/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];+ /**+ * For external users: DO NOT USE. We are in the process of open sourcing+ * extension declaration and executing internal cleanups before it can be+ * used externally.+ */+ declaration: ExtensionRangeOptions_Declaration[];+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;+ /**+ * The verification state of the range.+ * TODO: flip the default to DECLARATION once all empty ranges+ * are marked as UNVERIFIED.+ */+ verification: ExtensionRangeOptions_VerificationState;+}++/** The verification state of the extension range. */+export enum ExtensionRangeOptions_VerificationState {+ /** DECLARATION - All the extensions of the range must be declared. */+ DECLARATION = 0,+ UNVERIFIED = 1,+ UNRECOGNIZED = -1,+}++export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState {+ switch (object) {+ case 0:+ case "DECLARATION":+ return ExtensionRangeOptions_VerificationState.DECLARATION;+ case 1:+ case "UNVERIFIED":+ return ExtensionRangeOptions_VerificationState.UNVERIFIED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;+ }+}++export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string {+ switch (object) {+ case ExtensionRangeOptions_VerificationState.DECLARATION:+ return "DECLARATION";+ case ExtensionRangeOptions_VerificationState.UNVERIFIED:+ return "UNVERIFIED";+ case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface ExtensionRangeOptions_Declaration {+ /** The extension number declared within the extension range. */+ number: number;+ /**+ * The fully-qualified name of the extension field. There must be a leading+ * dot in front of the full name.+ */+ fullName: string;+ /**+ * The fully-qualified type name of the extension field. Unlike+ * Metadata.type, Declaration.type must have a leading dot for messages+ * and enums.+ */+ type: string;+ /**+ * If true, indicates that the number is reserved in the extension range,+ * and any extension field with the number will fail to compile. Set this+ * when a declared extension field is deleted.+ */+ reserved: boolean;+ /**+ * If true, indicates that the extension must be defined as repeated.+ * Otherwise the extension must be defined as optional.+ */+ repeated: boolean;}/** Describes a field within a message. */@@ -193,9 +363,10 @@ export enum FieldDescriptorProto_Type {TYPE_STRING = 9,/*** TYPE_GROUP - Tag-delimited aggregate.- * Group type is deprecated and not supported in proto3. However, Proto3+ * Group type is deprecated and not supported after google.protobuf. However, Proto3* implementations should still be able to parse the group wire format and- * treat group fields as unknown fields.+ * treat group fields as unknown fields. In Editions, the group wire format+ * can be enabled via the `message_encoding` feature.*/TYPE_GROUP = 10,/** TYPE_MESSAGE - Length-delimited aggregate. */@@ -323,8 +494,13 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typexport enum FieldDescriptorProto_Label {/** LABEL_OPTIONAL - 0 is reserved for errors */LABEL_OPTIONAL = 1,- LABEL_REQUIRED = 2,LABEL_REPEATED = 3,+ /**+ * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions+ * it's explicitly prohibited. In Editions, the `field_presence` feature+ * can be used to get this behavior.+ */+ LABEL_REQUIRED = 2,UNRECOGNIZED = -1,}@@ -333,12 +509,12 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorcase 1:case "LABEL_OPTIONAL":return FieldDescriptorProto_Label.LABEL_OPTIONAL;- case 2:- case "LABEL_REQUIRED":- return FieldDescriptorProto_Label.LABEL_REQUIRED;case 3:case "LABEL_REPEATED":return FieldDescriptorProto_Label.LABEL_REPEATED;+ case 2:+ case "LABEL_REQUIRED":+ return FieldDescriptorProto_Label.LABEL_REQUIRED;case -1:case "UNRECOGNIZED":default:@@ -350,10 +526,10 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Laswitch (object) {case FieldDescriptorProto_Label.LABEL_OPTIONAL:return "LABEL_OPTIONAL";- case FieldDescriptorProto_Label.LABEL_REQUIRED:- return "LABEL_REQUIRED";case FieldDescriptorProto_Label.LABEL_REPEATED:return "LABEL_REPEATED";+ case FieldDescriptorProto_Label.LABEL_REQUIRED:+ return "LABEL_REQUIRED";case FieldDescriptorProto_Label.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -547,6 +723,10 @@ export interface FileOptions {* determining the ruby package.*/rubyPackage: string;+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/*** The parser stores options it doesn't recognize here.* See the documentation for the "Options" section above.@@ -665,12 +845,16 @@ export interface MessageOptions {* This should only be used as a temporary measure against broken builds due* to the change in behavior for JSON field name conflicts.*- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream+ * TODO This is legacy behavior we plan to remove once downstream* teams have had time to migrate.** @deprecated*/deprecatedLegacyJsonFieldConflicts: boolean;+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -679,8 +863,10 @@ export interface FieldOptions {/*** The ctype option instructs the C++ code generator to use a different* representation of the field than it normally would. See the specific- * options below. This option is not yet implemented in the open source- * release -- sorry, we'll try to include it in a future version!+ * options below. This option is only implemented to support use of+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of+ * type "bytes" in the open source release -- sorry, we'll try to include+ * other types in a future version!*/ctype: FieldOptions_CType;/**@@ -688,7 +874,9 @@ export interface FieldOptions {* a more efficient representation on the wire. Rather than repeatedly* writing the tag and type for each element, the entire array is encoded as* a single length-delimited blob. In proto3, only explicit setting it to- * false will avoid using packed encoding.+ * false will avoid using packed encoding. This option is prohibited in+ * Editions, but the `repeated_field_encoding` feature can be used to control+ * the behavior.*/packed: boolean;/**@@ -759,7 +947,12 @@ export interface FieldOptions {*/debugRedact: boolean;retention: FieldOptions_OptionRetention;- target: FieldOptions_OptionTargetType;+ targets: FieldOptions_OptionTargetType[];+ editionDefaults: FieldOptions_EditionDefault[];+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -767,6 +960,14 @@ export interface FieldOptions {export enum FieldOptions_CType {/** STRING - Default mode. */STRING = 0,+ /**+ * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type+ * "bytes". It indicates that in C++, the data should be stored in a Cord+ * instead of a string. For very large strings, this may reduce memory+ * fragmentation. It may also allow better performance when parsing from a+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then+ * alias the original buffer.+ */CORD = 1,STRING_PIECE = 2,UNRECOGNIZED = -1,@@ -977,7 +1178,17 @@ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionT}}+export interface FieldOptions_EditionDefault {+ edition: Edition;+ /** Textproto value. */+ value: string;+}+export interface OneofOptions {+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1000,12 +1211,16 @@ export interface EnumOptions {* and strips underscored from the fields before comparison in proto3 only.* The new behavior takes `json_name` into account and applies to proto2 as* well.- * TODO(b/261750190) Remove this legacy behavior once downstream teams have+ * TODO Remove this legacy behavior once downstream teams have* had time to migrate.** @deprecated*/deprecatedLegacyJsonFieldConflicts: boolean;+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1018,11 +1233,25 @@ export interface EnumValueOptions {* this is a formalization for deprecating enum values.*/deprecated: boolean;+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;+ /**+ * Indicate that fields annotated with this enum value should not be printed+ * out when using debug formats, e.g. when the field contains sensitive+ * credentials.+ */+ debugRedact: boolean;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}export interface ServiceOptions {+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/*** Is this service deprecated?* Depending on the target platform, this can emit Deprecated annotations@@ -1043,6 +1272,10 @@ export interface MethodOptions {*/deprecated: boolean;idempotencyLevel: MethodOptions_IdempotencyLevel;+ /** Any features defined in the specific edition. */+ features:+ | FeatureSet+ | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1127,6 +1360,294 @@ export interface UninterpretedOption_NamePart {isExtension: boolean;}+/**+ * TODO Enums in C++ gencode (and potentially other languages) are+ * not well scoped. This means that each of the feature enums below can clash+ * with each other. The short names we've chosen maximize call-site+ * readability, but leave us very open to this scenario. A future feature will+ * be designed and implemented to handle this, hopefully before we ever hit a+ * conflict here.+ */+export interface FeatureSet {+ fieldPresence: FeatureSet_FieldPresence;+ enumType: FeatureSet_EnumType;+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;+ utf8Validation: FeatureSet_Utf8Validation;+ messageEncoding: FeatureSet_MessageEncoding;+ jsonFormat: FeatureSet_JsonFormat;+}++export enum FeatureSet_FieldPresence {+ FIELD_PRESENCE_UNKNOWN = 0,+ EXPLICIT = 1,+ IMPLICIT = 2,+ LEGACY_REQUIRED = 3,+ UNRECOGNIZED = -1,+}++export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence {+ switch (object) {+ case 0:+ case "FIELD_PRESENCE_UNKNOWN":+ return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;+ case 1:+ case "EXPLICIT":+ return FeatureSet_FieldPresence.EXPLICIT;+ case 2:+ case "IMPLICIT":+ return FeatureSet_FieldPresence.IMPLICIT;+ case 3:+ case "LEGACY_REQUIRED":+ return FeatureSet_FieldPresence.LEGACY_REQUIRED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return FeatureSet_FieldPresence.UNRECOGNIZED;+ }+}++export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string {+ switch (object) {+ case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:+ return "FIELD_PRESENCE_UNKNOWN";+ case FeatureSet_FieldPresence.EXPLICIT:+ return "EXPLICIT";+ case FeatureSet_FieldPresence.IMPLICIT:+ return "IMPLICIT";+ case FeatureSet_FieldPresence.LEGACY_REQUIRED:+ return "LEGACY_REQUIRED";+ case FeatureSet_FieldPresence.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum FeatureSet_EnumType {+ ENUM_TYPE_UNKNOWN = 0,+ OPEN = 1,+ CLOSED = 2,+ UNRECOGNIZED = -1,+}++export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType {+ switch (object) {+ case 0:+ case "ENUM_TYPE_UNKNOWN":+ return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;+ case 1:+ case "OPEN":+ return FeatureSet_EnumType.OPEN;+ case 2:+ case "CLOSED":+ return FeatureSet_EnumType.CLOSED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return FeatureSet_EnumType.UNRECOGNIZED;+ }+}++export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string {+ switch (object) {+ case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:+ return "ENUM_TYPE_UNKNOWN";+ case FeatureSet_EnumType.OPEN:+ return "OPEN";+ case FeatureSet_EnumType.CLOSED:+ return "CLOSED";+ case FeatureSet_EnumType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum FeatureSet_RepeatedFieldEncoding {+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,+ PACKED = 1,+ EXPANDED = 2,+ UNRECOGNIZED = -1,+}++export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding {+ switch (object) {+ case 0:+ case "REPEATED_FIELD_ENCODING_UNKNOWN":+ return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;+ case 1:+ case "PACKED":+ return FeatureSet_RepeatedFieldEncoding.PACKED;+ case 2:+ case "EXPANDED":+ return FeatureSet_RepeatedFieldEncoding.EXPANDED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;+ }+}++export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string {+ switch (object) {+ case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:+ return "REPEATED_FIELD_ENCODING_UNKNOWN";+ case FeatureSet_RepeatedFieldEncoding.PACKED:+ return "PACKED";+ case FeatureSet_RepeatedFieldEncoding.EXPANDED:+ return "EXPANDED";+ case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum FeatureSet_Utf8Validation {+ UTF8_VALIDATION_UNKNOWN = 0,+ NONE = 1,+ VERIFY = 2,+ UNRECOGNIZED = -1,+}++export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {+ switch (object) {+ case 0:+ case "UTF8_VALIDATION_UNKNOWN":+ return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;+ case 1:+ case "NONE":+ return FeatureSet_Utf8Validation.NONE;+ case 2:+ case "VERIFY":+ return FeatureSet_Utf8Validation.VERIFY;+ case -1:+ case "UNRECOGNIZED":+ default:+ return FeatureSet_Utf8Validation.UNRECOGNIZED;+ }+}++export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string {+ switch (object) {+ case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:+ return "UTF8_VALIDATION_UNKNOWN";+ case FeatureSet_Utf8Validation.NONE:+ return "NONE";+ case FeatureSet_Utf8Validation.VERIFY:+ return "VERIFY";+ case FeatureSet_Utf8Validation.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum FeatureSet_MessageEncoding {+ MESSAGE_ENCODING_UNKNOWN = 0,+ LENGTH_PREFIXED = 1,+ DELIMITED = 2,+ UNRECOGNIZED = -1,+}++export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding {+ switch (object) {+ case 0:+ case "MESSAGE_ENCODING_UNKNOWN":+ return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;+ case 1:+ case "LENGTH_PREFIXED":+ return FeatureSet_MessageEncoding.LENGTH_PREFIXED;+ case 2:+ case "DELIMITED":+ return FeatureSet_MessageEncoding.DELIMITED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return FeatureSet_MessageEncoding.UNRECOGNIZED;+ }+}++export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string {+ switch (object) {+ case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:+ return "MESSAGE_ENCODING_UNKNOWN";+ case FeatureSet_MessageEncoding.LENGTH_PREFIXED:+ return "LENGTH_PREFIXED";+ case FeatureSet_MessageEncoding.DELIMITED:+ return "DELIMITED";+ case FeatureSet_MessageEncoding.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum FeatureSet_JsonFormat {+ JSON_FORMAT_UNKNOWN = 0,+ ALLOW = 1,+ LEGACY_BEST_EFFORT = 2,+ UNRECOGNIZED = -1,+}++export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat {+ switch (object) {+ case 0:+ case "JSON_FORMAT_UNKNOWN":+ return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;+ case 1:+ case "ALLOW":+ return FeatureSet_JsonFormat.ALLOW;+ case 2:+ case "LEGACY_BEST_EFFORT":+ return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;+ case -1:+ case "UNRECOGNIZED":+ default:+ return FeatureSet_JsonFormat.UNRECOGNIZED;+ }+}++export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string {+ switch (object) {+ case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:+ return "JSON_FORMAT_UNKNOWN";+ case FeatureSet_JsonFormat.ALLOW:+ return "ALLOW";+ case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:+ return "LEGACY_BEST_EFFORT";+ case FeatureSet_JsonFormat.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++/**+ * A compiled specification for the defaults of a set of features. These+ * messages are generated from FeatureSet extensions and can be used to seed+ * feature resolution. The resolution with this object becomes a simple search+ * for the closest matching edition, followed by proto merges.+ */+export interface FeatureSetDefaults {+ defaults: FeatureSetDefaults_FeatureSetEditionDefault[];+ /**+ * The minimum supported edition (inclusive) when this was constructed.+ * Editions before this will not have defaults.+ */+ minimumEdition: Edition;+ /**+ * The maximum known edition (inclusive) when this was constructed. Editions+ * after this will not have reliable defaults.+ */+ maximumEdition: Edition;+}++/**+ * A map from every known edition with a unique set of defaults to its+ * defaults. Not all editions may be contained here. For a given edition,+ * the defaults at the closest matching edition ordered at or before it should+ * be used. This field must be in strict ascending order by edition.+ */+export interface FeatureSetDefaults_FeatureSetEditionDefault {+ edition: Edition;+ features: FeatureSet | undefined;+}+/*** Encapsulates information about the original source file from which a* FileDescriptorProto was generated.@@ -1423,7 +1944,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {options: undefined,sourceCodeInfo: undefined,syntax: "",- edition: "",+ edition: 0,};}@@ -1469,8 +1990,8 @@ export const FileDescriptorProto = {if (message.syntax !== "") {writer.uint32(98).string(message.syntax);}- if (message.edition !== "") {- writer.uint32(106).string(message.edition);+ if (message.edition !== 0) {+ writer.uint32(112).int32(message.edition);}return writer;},@@ -1586,12 +2107,12 @@ export const FileDescriptorProto = {message.syntax = reader.string();continue;- case 13:- if (tag !== 106) {+ case 14:+ if (tag !== 112) {break;}- message.edition = reader.string();+ message.edition = reader.int32() as any;continue;}if ((tag & 7) === 4 || tag === 0) {@@ -1630,7 +2151,7 @@ export const FileDescriptorProto = {options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",- edition: isSet(object.edition) ? globalThis.String(object.edition) : "",+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,};},@@ -1672,8 +2193,8 @@ export const FileDescriptorProto = {if (message.syntax !== "") {obj.syntax = message.syntax;}- if (message.edition !== "") {- obj.edition = message.edition;+ if (message.edition !== 0) {+ obj.edition = editionToJSON(message.edition);}return obj;},@@ -1699,7 +2220,7 @@ export const FileDescriptorProto = {? SourceCodeInfo.fromPartial(object.sourceCodeInfo): undefined;message.syntax = object.syntax ?? "";- message.edition = object.edition ?? "";+ message.edition = object.edition ?? 0;return message;},};@@ -2093,7 +2614,7 @@ export const DescriptorProto_ReservedRange = {};function createBaseExtensionRangeOptions(): ExtensionRangeOptions {- return { uninterpretedOption: [] };+ return { uninterpretedOption: [], declaration: [], features: undefined, verification: 0 };}export const ExtensionRangeOptions = {@@ -2101,6 +2622,15 @@ export const ExtensionRangeOptions = {for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}+ for (const v of message.declaration) {+ ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim();+ }+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();+ }+ if (message.verification !== 0) {+ writer.uint32(24).int32(message.verification);+ }return writer;},@@ -2118,6 +2648,27 @@ export const ExtensionRangeOptions = {message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));+ continue;+ case 50:+ if (tag !== 402) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.verification = reader.int32() as any;+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -2132,6 +2683,13 @@ export const ExtensionRangeOptions = {uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],+ declaration: globalThis.Array.isArray(object?.declaration)+ ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e))+ : [],+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ verification: isSet(object.verification)+ ? extensionRangeOptions_VerificationStateFromJSON(object.verification)+ : 0,};},@@ -2140,6 +2698,15 @@ export const ExtensionRangeOptions = {if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}+ if (message.declaration?.length) {+ obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));+ }+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }+ if (message.verification !== 0) {+ obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);+ }return obj;},@@ -2149,20 +2716,144 @@ export const ExtensionRangeOptions = {fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {const message = createBaseExtensionRangeOptions();message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];+ message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;+ message.verification = object.verification ?? 0;return message;},};-function createBaseFieldDescriptorProto(): FieldDescriptorProto {- return {- name: "",- number: 0,- label: 1,- type: 1,- typeName: "",- extendee: "",- defaultValue: "",- oneofIndex: 0,+function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {+ return { number: 0, fullName: "", type: "", reserved: false, repeated: false };+}++export const ExtensionRangeOptions_Declaration = {+ encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.number !== 0) {+ writer.uint32(8).int32(message.number);+ }+ if (message.fullName !== "") {+ writer.uint32(18).string(message.fullName);+ }+ if (message.type !== "") {+ writer.uint32(26).string(message.type);+ }+ if (message.reserved === true) {+ writer.uint32(40).bool(message.reserved);+ }+ if (message.repeated === true) {+ writer.uint32(48).bool(message.repeated);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseExtensionRangeOptions_Declaration();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.number = reader.int32();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.fullName = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.type = reader.string();+ continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.reserved = reader.bool();+ continue;+ case 6:+ if (tag !== 48) {+ break;+ }++ message.repeated = reader.bool();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ExtensionRangeOptions_Declaration {+ return {+ number: isSet(object.number) ? globalThis.Number(object.number) : 0,+ fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",+ type: isSet(object.type) ? globalThis.String(object.type) : "",+ reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,+ repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,+ };+ },++ toJSON(message: ExtensionRangeOptions_Declaration): unknown {+ const obj: any = {};+ if (message.number !== 0) {+ obj.number = Math.round(message.number);+ }+ if (message.fullName !== "") {+ obj.fullName = message.fullName;+ }+ if (message.type !== "") {+ obj.type = message.type;+ }+ if (message.reserved === true) {+ obj.reserved = message.reserved;+ }+ if (message.repeated === true) {+ obj.repeated = message.repeated;+ }+ return obj;+ },++ create(base?: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {+ return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {+ const message = createBaseExtensionRangeOptions_Declaration();+ message.number = object.number ?? 0;+ message.fullName = object.fullName ?? "";+ message.type = object.type ?? "";+ message.reserved = object.reserved ?? false;+ message.repeated = object.repeated ?? false;+ return message;+ },+};++function createBaseFieldDescriptorProto(): FieldDescriptorProto {+ return {+ name: "",+ number: 0,+ label: 1,+ type: 1,+ typeName: "",+ extendee: "",+ defaultValue: "",+ oneofIndex: 0,jsonName: "",options: undefined,proto3Optional: false,@@ -3003,6 +3694,7 @@ function createBaseFileOptions(): FileOptions {phpNamespace: "",phpMetadataNamespace: "",rubyPackage: "",+ features: undefined,uninterpretedOption: [],};}@@ -3069,6 +3761,9 @@ export const FileOptions = {if (message.rubyPackage !== "") {writer.uint32(362).string(message.rubyPackage);}+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3222,6 +3917,13 @@ export const FileOptions = {message.rubyPackage = reader.string();continue;+ case 50:+ if (tag !== 402) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -3262,6 +3964,7 @@ export const FileOptions = {phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3330,6 +4033,9 @@ export const FileOptions = {if (message.rubyPackage !== "") {obj.rubyPackage = message.rubyPackage;}+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -3361,6 +4067,9 @@ export const FileOptions = {message.phpNamespace = object.phpNamespace ?? "";message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";message.rubyPackage = object.rubyPackage ?? "";+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -3373,6 +4082,7 @@ function createBaseMessageOptions(): MessageOptions {deprecated: false,mapEntry: false,deprecatedLegacyJsonFieldConflicts: false,+ features: undefined,uninterpretedOption: [],};}@@ -3394,6 +4104,9 @@ export const MessageOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);}+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3442,6 +4155,13 @@ export const MessageOptions = {message.deprecatedLegacyJsonFieldConflicts = reader.bool();continue;+ case 12:+ if (tag !== 98) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -3471,6 +4191,7 @@ export const MessageOptions = {deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts): false,+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3494,6 +4215,9 @@ export const MessageOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;}+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -3510,6 +4234,9 @@ export const MessageOptions = {message.deprecated = object.deprecated ?? false;message.mapEntry = object.mapEntry ?? false;message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -3526,7 +4253,9 @@ function createBaseFieldOptions(): FieldOptions {weak: false,debugRedact: false,retention: 0,- target: 0,+ targets: [],+ editionDefaults: [],+ features: undefined,uninterpretedOption: [],};}@@ -3560,8 +4289,16 @@ export const FieldOptions = {if (message.retention !== 0) {writer.uint32(136).int32(message.retention);}- if (message.target !== 0) {- writer.uint32(144).int32(message.target);+ writer.uint32(154).fork();+ for (const v of message.targets) {+ writer.int32(v);+ }+ writer.ldelim();+ for (const v of message.editionDefaults) {+ FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim();+ }+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();}for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();@@ -3639,12 +4376,36 @@ export const FieldOptions = {message.retention = reader.int32() as any;continue;- case 18:- if (tag !== 144) {+ case 19:+ if (tag === 152) {+ message.targets.push(reader.int32() as any);++ continue;+ }++ if (tag === 154) {+ const end2 = reader.uint32() + reader.pos;+ while (reader.pos < end2) {+ message.targets.push(reader.int32() as any);+ }++ continue;+ }++ break;+ case 20:+ if (tag !== 162) {break;}- message.target = reader.int32() as any;+ message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));+ continue;+ case 21:+ if (tag !== 170) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());continue;case 999:if (tag !== 7994) {@@ -3673,7 +4434,13 @@ export const FieldOptions = {weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,- target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,+ targets: globalThis.Array.isArray(object?.targets)+ ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e))+ : [],+ editionDefaults: globalThis.Array.isArray(object?.editionDefaults)+ ? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e))+ : [],+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3709,8 +4476,14 @@ export const FieldOptions = {if (message.retention !== 0) {obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);}- if (message.target !== 0) {- obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);+ if (message.targets?.length) {+ obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));+ }+ if (message.editionDefaults?.length) {+ obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));+ }+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);}if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));@@ -3732,18 +4505,99 @@ export const FieldOptions = {message.weak = object.weak ?? false;message.debugRedact = object.debugRedact ?? false;message.retention = object.retention ?? 0;- message.target = object.target ?? 0;+ message.targets = object.targets?.map((e) => e) || [];+ message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};+function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {+ return { edition: 0, value: "" };+}++export const FieldOptions_EditionDefault = {+ encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.edition !== 0) {+ writer.uint32(24).int32(message.edition);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFieldOptions_EditionDefault();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 3:+ if (tag !== 24) {+ break;+ }++ message.edition = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FieldOptions_EditionDefault {+ return {+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ };+ },++ toJSON(message: FieldOptions_EditionDefault): unknown {+ const obj: any = {};+ if (message.edition !== 0) {+ obj.edition = editionToJSON(message.edition);+ }+ if (message.value !== "") {+ obj.value = message.value;+ }+ return obj;+ },++ create(base?: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {+ return FieldOptions_EditionDefault.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {+ const message = createBaseFieldOptions_EditionDefault();+ message.edition = object.edition ?? 0;+ message.value = object.value ?? "";+ return message;+ },+};+function createBaseOneofOptions(): OneofOptions {- return { uninterpretedOption: [] };+ return { features: undefined, uninterpretedOption: [] };}export const OneofOptions = {encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3757,6 +4611,13 @@ export const OneofOptions = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -3775,6 +4636,7 @@ export const OneofOptions = {fromJSON(object: any): OneofOptions {return {+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3783,6 +4645,9 @@ export const OneofOptions = {toJSON(message: OneofOptions): unknown {const obj: any = {};+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -3794,13 +4659,22 @@ export const OneofOptions = {},fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {const message = createBaseOneofOptions();+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};function createBaseEnumOptions(): EnumOptions {- return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };+ return {+ allowAlias: false,+ deprecated: false,+ deprecatedLegacyJsonFieldConflicts: false,+ features: undefined,+ uninterpretedOption: [],+ };}export const EnumOptions = {@@ -3814,6 +4688,9 @@ export const EnumOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);}+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3848,6 +4725,13 @@ export const EnumOptions = {message.deprecatedLegacyJsonFieldConflicts = reader.bool();continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -3871,6 +4755,7 @@ export const EnumOptions = {deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts): false,+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3888,6 +4773,9 @@ export const EnumOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;}+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -3902,13 +4790,16 @@ export const EnumOptions = {message.allowAlias = object.allowAlias ?? false;message.deprecated = object.deprecated ?? false;message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};function createBaseEnumValueOptions(): EnumValueOptions {- return { deprecated: false, uninterpretedOption: [] };+ return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };}export const EnumValueOptions = {@@ -3916,6 +4807,12 @@ export const EnumValueOptions = {if (message.deprecated === true) {writer.uint32(8).bool(message.deprecated);}+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();+ }+ if (message.debugRedact === true) {+ writer.uint32(24).bool(message.debugRedact);+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3936,6 +4833,20 @@ export const EnumValueOptions = {message.deprecated = reader.bool();continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.debugRedact = reader.bool();+ continue;case 999:if (tag !== 7994) {break;@@ -3955,6 +4866,8 @@ export const EnumValueOptions = {fromJSON(object: any): EnumValueOptions {return {deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3966,6 +4879,12 @@ export const EnumValueOptions = {if (message.deprecated === true) {obj.deprecated = message.deprecated;}+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }+ if (message.debugRedact === true) {+ obj.debugRedact = message.debugRedact;+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -3978,17 +4897,24 @@ export const EnumValueOptions = {fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {const message = createBaseEnumValueOptions();message.deprecated = object.deprecated ?? false;+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;+ message.debugRedact = object.debugRedact ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};function createBaseServiceOptions(): ServiceOptions {- return { deprecated: false, uninterpretedOption: [] };+ return { features: undefined, deprecated: false, uninterpretedOption: [] };}export const ServiceOptions = {encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();+ }if (message.deprecated === true) {writer.uint32(264).bool(message.deprecated);}@@ -4005,6 +4931,13 @@ export const ServiceOptions = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {+ case 34:+ if (tag !== 274) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;case 33:if (tag !== 264) {break;@@ -4030,6 +4963,7 @@ export const ServiceOptions = {fromJSON(object: any): ServiceOptions {return {+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))@@ -4039,6 +4973,9 @@ export const ServiceOptions = {toJSON(message: ServiceOptions): unknown {const obj: any = {};+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }if (message.deprecated === true) {obj.deprecated = message.deprecated;}@@ -4053,6 +4990,9 @@ export const ServiceOptions = {},fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {const message = createBaseServiceOptions();+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.deprecated = object.deprecated ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;@@ -4060,7 +5000,7 @@ export const ServiceOptions = {};function createBaseMethodOptions(): MethodOptions {- return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };+ return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };}export const MethodOptions = {@@ -4071,6 +5011,9 @@ export const MethodOptions = {if (message.idempotencyLevel !== 0) {writer.uint32(272).int32(message.idempotencyLevel);}+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4098,6 +5041,13 @@ export const MethodOptions = {message.idempotencyLevel = reader.int32() as any;continue;+ case 35:+ if (tag !== 282) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -4120,6 +5070,7 @@ export const MethodOptions = {idempotencyLevel: isSet(object.idempotencyLevel)? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel): 0,+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4134,6 +5085,9 @@ export const MethodOptions = {if (message.idempotencyLevel !== 0) {obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);}+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4147,6 +5101,9 @@ export const MethodOptions = {const message = createBaseMethodOptions();message.deprecated = object.deprecated ?? false;message.idempotencyLevel = object.idempotencyLevel ?? 0;+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4389,6 +5346,318 @@ export const UninterpretedOption_NamePart = {},};+function createBaseFeatureSet(): FeatureSet {+ return {+ fieldPresence: 0,+ enumType: 0,+ repeatedFieldEncoding: 0,+ utf8Validation: 0,+ messageEncoding: 0,+ jsonFormat: 0,+ };+}++export const FeatureSet = {+ encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.fieldPresence !== 0) {+ writer.uint32(8).int32(message.fieldPresence);+ }+ if (message.enumType !== 0) {+ writer.uint32(16).int32(message.enumType);+ }+ if (message.repeatedFieldEncoding !== 0) {+ writer.uint32(24).int32(message.repeatedFieldEncoding);+ }+ if (message.utf8Validation !== 0) {+ writer.uint32(32).int32(message.utf8Validation);+ }+ if (message.messageEncoding !== 0) {+ writer.uint32(40).int32(message.messageEncoding);+ }+ if (message.jsonFormat !== 0) {+ writer.uint32(48).int32(message.jsonFormat);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFeatureSet();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.fieldPresence = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.enumType = reader.int32() as any;+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.repeatedFieldEncoding = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.utf8Validation = reader.int32() as any;+ continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.messageEncoding = reader.int32() as any;+ continue;+ case 6:+ if (tag !== 48) {+ break;+ }++ message.jsonFormat = reader.int32() as any;+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FeatureSet {+ return {+ fieldPresence: isSet(object.fieldPresence) ? featureSet_FieldPresenceFromJSON(object.fieldPresence) : 0,+ enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0,+ repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)+ ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)+ : 0,+ utf8Validation: isSet(object.utf8Validation) ? featureSet_Utf8ValidationFromJSON(object.utf8Validation) : 0,+ messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0,+ jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0,+ };+ },++ toJSON(message: FeatureSet): unknown {+ const obj: any = {};+ if (message.fieldPresence !== 0) {+ obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);+ }+ if (message.enumType !== 0) {+ obj.enumType = featureSet_EnumTypeToJSON(message.enumType);+ }+ if (message.repeatedFieldEncoding !== 0) {+ obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);+ }+ if (message.utf8Validation !== 0) {+ obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);+ }+ if (message.messageEncoding !== 0) {+ obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);+ }+ if (message.jsonFormat !== 0) {+ obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);+ }+ return obj;+ },++ create(base?: DeepPartial<FeatureSet>): FeatureSet {+ return FeatureSet.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<FeatureSet>): FeatureSet {+ const message = createBaseFeatureSet();+ message.fieldPresence = object.fieldPresence ?? 0;+ message.enumType = object.enumType ?? 0;+ message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;+ message.utf8Validation = object.utf8Validation ?? 0;+ message.messageEncoding = object.messageEncoding ?? 0;+ message.jsonFormat = object.jsonFormat ?? 0;+ return message;+ },+};++function createBaseFeatureSetDefaults(): FeatureSetDefaults {+ return { defaults: [], minimumEdition: 0, maximumEdition: 0 };+}++export const FeatureSetDefaults = {+ encode(message: FeatureSetDefaults, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.defaults) {+ FeatureSetDefaults_FeatureSetEditionDefault.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ if (message.minimumEdition !== 0) {+ writer.uint32(32).int32(message.minimumEdition);+ }+ if (message.maximumEdition !== 0) {+ writer.uint32(40).int32(message.maximumEdition);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFeatureSetDefaults();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.minimumEdition = reader.int32() as any;+ continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.maximumEdition = reader.int32() as any;+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FeatureSetDefaults {+ return {+ defaults: globalThis.Array.isArray(object?.defaults)+ ? object.defaults.map((e: any) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))+ : [],+ minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : 0,+ maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : 0,+ };+ },++ toJSON(message: FeatureSetDefaults): unknown {+ const obj: any = {};+ if (message.defaults?.length) {+ obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));+ }+ if (message.minimumEdition !== 0) {+ obj.minimumEdition = editionToJSON(message.minimumEdition);+ }+ if (message.maximumEdition !== 0) {+ obj.maximumEdition = editionToJSON(message.maximumEdition);+ }+ return obj;+ },++ create(base?: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {+ return FeatureSetDefaults.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {+ const message = createBaseFeatureSetDefaults();+ message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];+ message.minimumEdition = object.minimumEdition ?? 0;+ message.maximumEdition = object.maximumEdition ?? 0;+ return message;+ },+};++function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {+ return { edition: 0, features: undefined };+}++export const FeatureSetDefaults_FeatureSetEditionDefault = {+ encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.edition !== 0) {+ writer.uint32(24).int32(message.edition);+ }+ if (message.features !== undefined) {+ FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 3:+ if (tag !== 24) {+ break;+ }++ message.edition = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.features = FeatureSet.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {+ return {+ edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,+ features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ };+ },++ toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {+ const obj: any = {};+ if (message.edition !== 0) {+ obj.edition = editionToJSON(message.edition);+ }+ if (message.features !== undefined) {+ obj.features = FeatureSet.toJSON(message.features);+ }+ return obj;+ },++ create(base?: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {+ return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});+ },+ fromPartial(+ object: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>,+ ): FeatureSetDefaults_FeatureSetEditionDefault {+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();+ message.edition = object.edition ?? 0;+ message.features = (object.features !== undefined && object.features !== null)+ ? FeatureSet.fromPartial(object.features)+ : undefined;+ return message;+ },+};+function createBaseSourceCodeInfo(): SourceCodeInfo {return { location: [] };}diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.tsindex dbdf7a289a..b87dbf5bac 100644--- a/frontend/src/types/proto/google/protobuf/struct.ts+++ b/frontend/src/types/proto/google/protobuf/struct.ts@@ -8,7 +8,7 @@ export const protobufPackage = "google.protobuf";* `NullValue` is a singleton enumeration to represent the null value for the* `Value` type union.*- * The JSON representation for `NullValue` is JSON `null`.+ * The JSON representation for `NullValue` is JSON `null`.*/export enum NullValue {/** NULL_VALUE - Null value. */diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.tsindex 51695e08d0..5781891bc0 100644--- a/frontend/src/types/proto/google/protobuf/timestamp.ts+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts@@ -92,7 +92,7 @@ export const protobufPackage = "google.protobuf";* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use* the Joda Time's [`ISODateTimeFormat.dateTime()`](- * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()* ) to obtain a formatter capable of generating timestamps in this format.*/export interface Timestamp {diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.tsindex 80164efa92..10f0e65261 100644--- a/frontend/src/types/proto/v1/project_service.ts+++ b/frontend/src/types/proto/v1/project_service.ts@@ -5,8 +5,8 @@ import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";import { Expr } from "../google/type/expr";import { State, stateFromJSON, stateToJSON } from "./common";-import { ProjectGitOpsInfo } from "./externalvs_service";import { IamPolicy } from "./iam_policy";+import { ProjectGitOpsInfo } from "./vcs_provider_service";export const protobufPackage = "bytebase.v1";@@ -477,7 +477,7 @@ export interface UpdateDeploymentConfigRequest {}export interface UpdateProjectGitOpsInfoRequest {- /** The binding for the project and external version control. */+ /** The binding for the project and vcs provider. */projectGitopsInfo:| ProjectGitOpsInfo| undefined;diff --git a/frontend/src/types/proto/v1/externalvs_service.ts b/frontend/src/types/proto/v1/vcs_provider_service.tssimilarity index 69%rename from frontend/src/types/proto/v1/externalvs_service.tsrename to frontend/src/types/proto/v1/vcs_provider_service.tsindex 72ece7a8c9..25c99b702c 100644--- a/frontend/src/types/proto/v1/externalvs_service.ts+++ b/frontend/src/types/proto/v1/vcs_provider_service.ts@@ -7,35 +7,35 @@ import { Timestamp } from "../google/protobuf/timestamp";export const protobufPackage = "bytebase.v1";-export interface CreateExternalVersionControlRequest {- externalVersionControl: ExternalVersionControl | undefined;+export interface CreateVCSProviderRequest {+ vcsProvider: VCSProvider | undefined;}-export interface GetExternalVersionControlRequest {+export interface GetVCSProviderRequest {/**- * The name of the external version control to retrieve.- * Format: externalVersionControls/{externalVersionControl}+ * The name of the vcs provider to retrieve.+ * Format: vcsProviders/{vcsProvider}*/name: string;}-export interface ListExternalVersionControlsRequest {+export interface ListVCSProvidersRequest {/**- * Not used. The maximum number of external version control to return. The service may return fewer than this value.- * If unspecified, at most 100 external version control will be returned.+ * Not used. The maximum number of vcs provider to return. The service may return fewer than this value.+ * If unspecified, at most 100 vcs provider will be returned.* The maximum value is 1000; values above 1000 will be coerced to 1000.*/pageSize: number;/**- * Not used. A page token, received from a previous `ListExternalVersionControls` call.+ * Not used. A page token, received from a previous `ListVCSProviders` call.* Provide this to retrieve the subsequent page.*/pageToken: string;}-export interface ListExternalVersionControlsResponse {- /** The list of external version control. */- externalVersionControls: ExternalVersionControl[];+export interface ListVCSProvidersResponse {+ /** The list of vcs providers. */+ vcsProviders: VCSProvider[];/*** Not used. A token, which can be sent as `page_token` to retrieve the next page.* If this field is omitted, there are no subsequent pages.@@ -43,84 +43,84 @@ export interface ListExternalVersionControlsResponse {nextPageToken: string;}-export interface UpdateExternalVersionControlRequest {- externalVersionControl:- | ExternalVersionControl+export interface UpdateVCSProviderRequest {+ vcsProvider:+ | VCSProvider| undefined;/** The list of fields to be updated. */updateMask: string[] | undefined;}-export interface DeleteExternalVersionControlRequest {+export interface DeleteVCSProviderRequest {/**- * The name of the external version control to delete.- * Format: externalVersionControls/{externalVersionControl}+ * The name of the vcs provider to delete.+ * Format: vcsProviders/{vcsProvider}*/name: string;}-export interface SearchExternalVersionControlProjectsRequest {+export interface SearchVCSProviderProjectsRequest {/**- * The name of the external version control to retrieve the external version control repositories.- * Format: externalVersionControls/{externalVersionControl}+ * The name of the vcs provider to retrieve the vcs provider repositories.+ * Format: vcsProviders/{vcsProvider}*/name: string;accessToken: string;refreshToken: string;}-export interface SearchExternalVersionControlProjectsResponse {- /** The list of project in external version control. */- projects: SearchExternalVersionControlProjectsResponse_Project[];+export interface SearchVCSProviderProjectsResponse {+ /** The list of project in vcs provider. */+ projects: SearchVCSProviderProjectsResponse_Project[];}-export interface SearchExternalVersionControlProjectsResponse_Project {- /** The id of the project in external version control. */+export interface SearchVCSProviderProjectsResponse_Project {+ /** The id of the project in vcs provider. */id: string;- /** The title of the project in external version control. */+ /** The title of the project in vcs provider. */title: string;- /** The fullpath of the project in external version control. */+ /** The fullpath of the project in vcs provider. */fullpath: string;- /** Web url of the project in external version control. */+ /** Web url of the project in vcs provider. */webUrl: string;}export interface ListProjectGitOpsInfoRequest {/**- * The name of the external version control to retrieve the linked projects.- * Format: externalVersionControls/{externalVersionControl}+ * The name of the vcs provider to retrieve the linked projects.+ * Format: vcsProviders/{vcsProvider}*/name: string;}export interface ListProjectGitOpsInfoResponse {- /** The binding between external version control and project. */+ /** The binding between vcs provider and project. */projectGitopsInfo: ProjectGitOpsInfo[];}-export interface ExternalVersionControl {+export interface VCSProvider {/**- * The name of the external version control, generated by the server, and also is the unique identifier.- * Format: externalVersionControls/{externalVersionControl}+ * The name of the vcs provider, generated by the server, and also is the unique identifier.+ * Format: vcsProviders/{vcsProvider}*/name: string;- /** The title of the external version control. It is used to display in the UI. Specified by the client. */+ /** The title of the vcs provider. It is used to display in the UI. Specified by the client. */title: string;- type: ExternalVersionControl_Type;+ type: VCSProvider_Type;/**- * The url of the external version control. Specified by the client.+ * The url of the vcs provider. Specified by the client.* For example: github.com, gitlab.com, gitlab.bytebase.com.*/url: string;- /** The API url of the external version control. Derived from the url. */+ /** The API url of the vcs provider. Derived from the url. */apiUrl: string;- /** The application ID of the external version control. Specified by the client. */+ /** The application ID of the vcs provider. Specified by the client. */applicationId: string;- /** The application secret of the external version control. Specified by the client. */+ /** The application secret of the vcs provider. Specified by the client. */secret: string;}-export enum ExternalVersionControl_Type {+export enum VCSProvider_Type {TYPE_UNSPECIFIED = 0,/** GITHUB - GitHub type. Using for GitHub community edition(ce). */GITHUB = 1,@@ -133,43 +133,43 @@ export enum ExternalVersionControl_Type {UNRECOGNIZED = -1,}-export function externalVersionControl_TypeFromJSON(object: any): ExternalVersionControl_Type {+export function vCSProvider_TypeFromJSON(object: any): VCSProvider_Type {switch (object) {case 0:case "TYPE_UNSPECIFIED":- return ExternalVersionControl_Type.TYPE_UNSPECIFIED;+ return VCSProvider_Type.TYPE_UNSPECIFIED;case 1:case "GITHUB":- return ExternalVersionControl_Type.GITHUB;+ return VCSProvider_Type.GITHUB;case 2:case "GITLAB":- return ExternalVersionControl_Type.GITLAB;+ return VCSProvider_Type.GITLAB;case 3:case "BITBUCKET":- return ExternalVersionControl_Type.BITBUCKET;+ return VCSProvider_Type.BITBUCKET;case 4:case "AZURE_DEVOPS":- return ExternalVersionControl_Type.AZURE_DEVOPS;+ return VCSProvider_Type.AZURE_DEVOPS;case -1:case "UNRECOGNIZED":default:- return ExternalVersionControl_Type.UNRECOGNIZED;+ return VCSProvider_Type.UNRECOGNIZED;}}-export function externalVersionControl_TypeToJSON(object: ExternalVersionControl_Type): string {+export function vCSProvider_TypeToJSON(object: VCSProvider_Type): string {switch (object) {- case ExternalVersionControl_Type.TYPE_UNSPECIFIED:+ case VCSProvider_Type.TYPE_UNSPECIFIED:return "TYPE_UNSPECIFIED";- case ExternalVersionControl_Type.GITHUB:+ case VCSProvider_Type.GITHUB:return "GITHUB";- case ExternalVersionControl_Type.GITLAB:+ case VCSProvider_Type.GITLAB:return "GITLAB";- case ExternalVersionControl_Type.BITBUCKET:+ case VCSProvider_Type.BITBUCKET:return "BITBUCKET";- case ExternalVersionControl_Type.AZURE_DEVOPS:+ case VCSProvider_Type.AZURE_DEVOPS:return "AZURE_DEVOPS";- case ExternalVersionControl_Type.UNRECOGNIZED:+ case VCSProvider_Type.UNRECOGNIZED:default:return "UNRECOGNIZED";}@@ -228,12 +228,12 @@ export interface ExchangeTokenRequest {export interface ExchangeToken {/**- * The name of the external version control to retrieve the linked projects.- * Format: externalVersionControls/{externalVersionControl}+ * The name of the vcs provider to retrieve the linked projects.+ * Format: vcsProviders/{vcsProvider}*/name: string;code: string;- type: ExternalVersionControl_Type;+ type: VCSProvider_Type;instanceUrl: string;clientId: string;clientSecret: string;@@ -245,22 +245,22 @@ export interface OAuthToken {expiresTime: Date | undefined;}-function createBaseCreateExternalVersionControlRequest(): CreateExternalVersionControlRequest {- return { externalVersionControl: undefined };+function createBaseCreateVCSProviderRequest(): CreateVCSProviderRequest {+ return { vcsProvider: undefined };}-export const CreateExternalVersionControlRequest = {- encode(message: CreateExternalVersionControlRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.externalVersionControl !== undefined) {- ExternalVersionControl.encode(message.externalVersionControl, writer.uint32(10).fork()).ldelim();+export const CreateVCSProviderRequest = {+ encode(message: CreateVCSProviderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.vcsProvider !== undefined) {+ VCSProvider.encode(message.vcsProvider, writer.uint32(10).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): CreateExternalVersionControlRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateVCSProviderRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseCreateExternalVersionControlRequest();+ const message = createBaseCreateVCSProviderRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -269,7 +269,7 @@ export const CreateExternalVersionControlRequest = {break;}- message.externalVersionControl = ExternalVersionControl.decode(reader, reader.uint32());+ message.vcsProvider = VCSProvider.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -280,51 +280,46 @@ export const CreateExternalVersionControlRequest = {return message;},- fromJSON(object: any): CreateExternalVersionControlRequest {- return {- externalVersionControl: isSet(object.externalVersionControl)- ? ExternalVersionControl.fromJSON(object.externalVersionControl)- : undefined,- };+ fromJSON(object: any): CreateVCSProviderRequest {+ return { vcsProvider: isSet(object.vcsProvider) ? VCSProvider.fromJSON(object.vcsProvider) : undefined };},- toJSON(message: CreateExternalVersionControlRequest): unknown {+ toJSON(message: CreateVCSProviderRequest): unknown {const obj: any = {};- if (message.externalVersionControl !== undefined) {- obj.externalVersionControl = ExternalVersionControl.toJSON(message.externalVersionControl);+ if (message.vcsProvider !== undefined) {+ obj.vcsProvider = VCSProvider.toJSON(message.vcsProvider);}return obj;},- create(base?: DeepPartial<CreateExternalVersionControlRequest>): CreateExternalVersionControlRequest {- return CreateExternalVersionControlRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<CreateVCSProviderRequest>): CreateVCSProviderRequest {+ return CreateVCSProviderRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<CreateExternalVersionControlRequest>): CreateExternalVersionControlRequest {- const message = createBaseCreateExternalVersionControlRequest();- message.externalVersionControl =- (object.externalVersionControl !== undefined && object.externalVersionControl !== null)- ? ExternalVersionControl.fromPartial(object.externalVersionControl)- : undefined;+ fromPartial(object: DeepPartial<CreateVCSProviderRequest>): CreateVCSProviderRequest {+ const message = createBaseCreateVCSProviderRequest();+ message.vcsProvider = (object.vcsProvider !== undefined && object.vcsProvider !== null)+ ? VCSProvider.fromPartial(object.vcsProvider)+ : undefined;return message;},};-function createBaseGetExternalVersionControlRequest(): GetExternalVersionControlRequest {+function createBaseGetVCSProviderRequest(): GetVCSProviderRequest {return { name: "" };}-export const GetExternalVersionControlRequest = {- encode(message: GetExternalVersionControlRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const GetVCSProviderRequest = {+ encode(message: GetVCSProviderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): GetExternalVersionControlRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): GetVCSProviderRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetExternalVersionControlRequest();+ const message = createBaseGetVCSProviderRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -344,11 +339,11 @@ export const GetExternalVersionControlRequest = {return message;},- fromJSON(object: any): GetExternalVersionControlRequest {+ fromJSON(object: any): GetVCSProviderRequest {return { name: isSet(object.name) ? globalThis.String(object.name) : "" };},- toJSON(message: GetExternalVersionControlRequest): unknown {+ toJSON(message: GetVCSProviderRequest): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;@@ -356,22 +351,22 @@ export const GetExternalVersionControlRequest = {return obj;},- create(base?: DeepPartial<GetExternalVersionControlRequest>): GetExternalVersionControlRequest {- return GetExternalVersionControlRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<GetVCSProviderRequest>): GetVCSProviderRequest {+ return GetVCSProviderRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<GetExternalVersionControlRequest>): GetExternalVersionControlRequest {- const message = createBaseGetExternalVersionControlRequest();+ fromPartial(object: DeepPartial<GetVCSProviderRequest>): GetVCSProviderRequest {+ const message = createBaseGetVCSProviderRequest();message.name = object.name ?? "";return message;},};-function createBaseListExternalVersionControlsRequest(): ListExternalVersionControlsRequest {+function createBaseListVCSProvidersRequest(): ListVCSProvidersRequest {return { pageSize: 0, pageToken: "" };}-export const ListExternalVersionControlsRequest = {- encode(message: ListExternalVersionControlsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const ListVCSProvidersRequest = {+ encode(message: ListVCSProvidersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.pageSize !== 0) {writer.uint32(8).int32(message.pageSize);}@@ -381,10 +376,10 @@ export const ListExternalVersionControlsRequest = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListExternalVersionControlsRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListVCSProvidersRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListExternalVersionControlsRequest();+ const message = createBaseListVCSProvidersRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -411,14 +406,14 @@ export const ListExternalVersionControlsRequest = {return message;},- fromJSON(object: any): ListExternalVersionControlsRequest {+ fromJSON(object: any): ListVCSProvidersRequest {return {pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",};},- toJSON(message: ListExternalVersionControlsRequest): unknown {+ toJSON(message: ListVCSProvidersRequest): unknown {const obj: any = {};if (message.pageSize !== 0) {obj.pageSize = Math.round(message.pageSize);@@ -429,25 +424,25 @@ export const ListExternalVersionControlsRequest = {return obj;},- create(base?: DeepPartial<ListExternalVersionControlsRequest>): ListExternalVersionControlsRequest {- return ListExternalVersionControlsRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<ListVCSProvidersRequest>): ListVCSProvidersRequest {+ return ListVCSProvidersRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListExternalVersionControlsRequest>): ListExternalVersionControlsRequest {- const message = createBaseListExternalVersionControlsRequest();+ fromPartial(object: DeepPartial<ListVCSProvidersRequest>): ListVCSProvidersRequest {+ const message = createBaseListVCSProvidersRequest();message.pageSize = object.pageSize ?? 0;message.pageToken = object.pageToken ?? "";return message;},};-function createBaseListExternalVersionControlsResponse(): ListExternalVersionControlsResponse {- return { externalVersionControls: [], nextPageToken: "" };+function createBaseListVCSProvidersResponse(): ListVCSProvidersResponse {+ return { vcsProviders: [], nextPageToken: "" };}-export const ListExternalVersionControlsResponse = {- encode(message: ListExternalVersionControlsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.externalVersionControls) {- ExternalVersionControl.encode(v!, writer.uint32(10).fork()).ldelim();+export const ListVCSProvidersResponse = {+ encode(message: ListVCSProvidersResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.vcsProviders) {+ VCSProvider.encode(v!, writer.uint32(10).fork()).ldelim();}if (message.nextPageToken !== "") {writer.uint32(18).string(message.nextPageToken);@@ -455,10 +450,10 @@ export const ListExternalVersionControlsResponse = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListExternalVersionControlsResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListVCSProvidersResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListExternalVersionControlsResponse();+ const message = createBaseListVCSProvidersResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -467,7 +462,7 @@ export const ListExternalVersionControlsResponse = {break;}- message.externalVersionControls.push(ExternalVersionControl.decode(reader, reader.uint32()));+ message.vcsProviders.push(VCSProvider.decode(reader, reader.uint32()));continue;case 2:if (tag !== 18) {@@ -485,19 +480,19 @@ export const ListExternalVersionControlsResponse = {return message;},- fromJSON(object: any): ListExternalVersionControlsResponse {+ fromJSON(object: any): ListVCSProvidersResponse {return {- externalVersionControls: globalThis.Array.isArray(object?.externalVersionControls)- ? object.externalVersionControls.map((e: any) => ExternalVersionControl.fromJSON(e))+ vcsProviders: globalThis.Array.isArray(object?.vcsProviders)+ ? object.vcsProviders.map((e: any) => VCSProvider.fromJSON(e)): [],nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",};},- toJSON(message: ListExternalVersionControlsResponse): unknown {+ toJSON(message: ListVCSProvidersResponse): unknown {const obj: any = {};- if (message.externalVersionControls?.length) {- obj.externalVersionControls = message.externalVersionControls.map((e) => ExternalVersionControl.toJSON(e));+ if (message.vcsProviders?.length) {+ obj.vcsProviders = message.vcsProviders.map((e) => VCSProvider.toJSON(e));}if (message.nextPageToken !== "") {obj.nextPageToken = message.nextPageToken;@@ -505,26 +500,25 @@ export const ListExternalVersionControlsResponse = {return obj;},- create(base?: DeepPartial<ListExternalVersionControlsResponse>): ListExternalVersionControlsResponse {- return ListExternalVersionControlsResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<ListVCSProvidersResponse>): ListVCSProvidersResponse {+ return ListVCSProvidersResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListExternalVersionControlsResponse>): ListExternalVersionControlsResponse {- const message = createBaseListExternalVersionControlsResponse();- message.externalVersionControls =- object.externalVersionControls?.map((e) => ExternalVersionControl.fromPartial(e)) || [];+ fromPartial(object: DeepPartial<ListVCSProvidersResponse>): ListVCSProvidersResponse {+ const message = createBaseListVCSProvidersResponse();+ message.vcsProviders = object.vcsProviders?.map((e) => VCSProvider.fromPartial(e)) || [];message.nextPageToken = object.nextPageToken ?? "";return message;},};-function createBaseUpdateExternalVersionControlRequest(): UpdateExternalVersionControlRequest {- return { externalVersionControl: undefined, updateMask: undefined };+function createBaseUpdateVCSProviderRequest(): UpdateVCSProviderRequest {+ return { vcsProvider: undefined, updateMask: undefined };}-export const UpdateExternalVersionControlRequest = {- encode(message: UpdateExternalVersionControlRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.externalVersionControl !== undefined) {- ExternalVersionControl.encode(message.externalVersionControl, writer.uint32(10).fork()).ldelim();+export const UpdateVCSProviderRequest = {+ encode(message: UpdateVCSProviderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.vcsProvider !== undefined) {+ VCSProvider.encode(message.vcsProvider, writer.uint32(10).fork()).ldelim();}if (message.updateMask !== undefined) {FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();@@ -532,10 +526,10 @@ export const UpdateExternalVersionControlRequest = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateExternalVersionControlRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateVCSProviderRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateExternalVersionControlRequest();+ const message = createBaseUpdateVCSProviderRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -544,7 +538,7 @@ export const UpdateExternalVersionControlRequest = {break;}- message.externalVersionControl = ExternalVersionControl.decode(reader, reader.uint32());+ message.vcsProvider = VCSProvider.decode(reader, reader.uint32());continue;case 2:if (tag !== 18) {@@ -562,19 +556,17 @@ export const UpdateExternalVersionControlRequest = {return message;},- fromJSON(object: any): UpdateExternalVersionControlRequest {+ fromJSON(object: any): UpdateVCSProviderRequest {return {- externalVersionControl: isSet(object.externalVersionControl)- ? ExternalVersionControl.fromJSON(object.externalVersionControl)- : undefined,+ vcsProvider: isSet(object.vcsProvider) ? VCSProvider.fromJSON(object.vcsProvider) : undefined,updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,};},- toJSON(message: UpdateExternalVersionControlRequest): unknown {+ toJSON(message: UpdateVCSProviderRequest): unknown {const obj: any = {};- if (message.externalVersionControl !== undefined) {- obj.externalVersionControl = ExternalVersionControl.toJSON(message.externalVersionControl);+ if (message.vcsProvider !== undefined) {+ obj.vcsProvider = VCSProvider.toJSON(message.vcsProvider);}if (message.updateMask !== undefined) {obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask));@@ -582,36 +574,35 @@ export const UpdateExternalVersionControlRequest = {return obj;},- create(base?: DeepPartial<UpdateExternalVersionControlRequest>): UpdateExternalVersionControlRequest {- return UpdateExternalVersionControlRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<UpdateVCSProviderRequest>): UpdateVCSProviderRequest {+ return UpdateVCSProviderRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<UpdateExternalVersionControlRequest>): UpdateExternalVersionControlRequest {- const message = createBaseUpdateExternalVersionControlRequest();- message.externalVersionControl =- (object.externalVersionControl !== undefined && object.externalVersionControl !== null)- ? ExternalVersionControl.fromPartial(object.externalVersionControl)- : undefined;+ fromPartial(object: DeepPartial<UpdateVCSProviderRequest>): UpdateVCSProviderRequest {+ const message = createBaseUpdateVCSProviderRequest();+ message.vcsProvider = (object.vcsProvider !== undefined && object.vcsProvider !== null)+ ? VCSProvider.fromPartial(object.vcsProvider)+ : undefined;message.updateMask = object.updateMask ?? undefined;return message;},};-function createBaseDeleteExternalVersionControlRequest(): DeleteExternalVersionControlRequest {+function createBaseDeleteVCSProviderRequest(): DeleteVCSProviderRequest {return { name: "" };}-export const DeleteExternalVersionControlRequest = {- encode(message: DeleteExternalVersionControlRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const DeleteVCSProviderRequest = {+ encode(message: DeleteVCSProviderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): DeleteExternalVersionControlRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): DeleteVCSProviderRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDeleteExternalVersionControlRequest();+ const message = createBaseDeleteVCSProviderRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -631,11 +622,11 @@ export const DeleteExternalVersionControlRequest = {return message;},- fromJSON(object: any): DeleteExternalVersionControlRequest {+ fromJSON(object: any): DeleteVCSProviderRequest {return { name: isSet(object.name) ? globalThis.String(object.name) : "" };},- toJSON(message: DeleteExternalVersionControlRequest): unknown {+ toJSON(message: DeleteVCSProviderRequest): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;@@ -643,22 +634,22 @@ export const DeleteExternalVersionControlRequest = {return obj;},- create(base?: DeepPartial<DeleteExternalVersionControlRequest>): DeleteExternalVersionControlRequest {- return DeleteExternalVersionControlRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<DeleteVCSProviderRequest>): DeleteVCSProviderRequest {+ return DeleteVCSProviderRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<DeleteExternalVersionControlRequest>): DeleteExternalVersionControlRequest {- const message = createBaseDeleteExternalVersionControlRequest();+ fromPartial(object: DeepPartial<DeleteVCSProviderRequest>): DeleteVCSProviderRequest {+ const message = createBaseDeleteVCSProviderRequest();message.name = object.name ?? "";return message;},};-function createBaseSearchExternalVersionControlProjectsRequest(): SearchExternalVersionControlProjectsRequest {+function createBaseSearchVCSProviderProjectsRequest(): SearchVCSProviderProjectsRequest {return { name: "", accessToken: "", refreshToken: "" };}-export const SearchExternalVersionControlProjectsRequest = {- encode(message: SearchExternalVersionControlProjectsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const SearchVCSProviderProjectsRequest = {+ encode(message: SearchVCSProviderProjectsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}@@ -671,10 +662,10 @@ export const SearchExternalVersionControlProjectsRequest = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): SearchExternalVersionControlProjectsRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): SearchVCSProviderProjectsRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSearchExternalVersionControlProjectsRequest();+ const message = createBaseSearchVCSProviderProjectsRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -708,7 +699,7 @@ export const SearchExternalVersionControlProjectsRequest = {return message;},- fromJSON(object: any): SearchExternalVersionControlProjectsRequest {+ fromJSON(object: any): SearchVCSProviderProjectsRequest {return {name: isSet(object.name) ? globalThis.String(object.name) : "",accessToken: isSet(object.accessToken) ? globalThis.String(object.accessToken) : "",@@ -716,7 +707,7 @@ export const SearchExternalVersionControlProjectsRequest = {};},- toJSON(message: SearchExternalVersionControlProjectsRequest): unknown {+ toJSON(message: SearchVCSProviderProjectsRequest): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;@@ -730,13 +721,11 @@ export const SearchExternalVersionControlProjectsRequest = {return obj;},- create(base?: DeepPartial<SearchExternalVersionControlProjectsRequest>): SearchExternalVersionControlProjectsRequest {- return SearchExternalVersionControlProjectsRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<SearchVCSProviderProjectsRequest>): SearchVCSProviderProjectsRequest {+ return SearchVCSProviderProjectsRequest.fromPartial(base ?? {});},- fromPartial(- object: DeepPartial<SearchExternalVersionControlProjectsRequest>,- ): SearchExternalVersionControlProjectsRequest {- const message = createBaseSearchExternalVersionControlProjectsRequest();+ fromPartial(object: DeepPartial<SearchVCSProviderProjectsRequest>): SearchVCSProviderProjectsRequest {+ const message = createBaseSearchVCSProviderProjectsRequest();message.name = object.name ?? "";message.accessToken = object.accessToken ?? "";message.refreshToken = object.refreshToken ?? "";@@ -744,22 +733,22 @@ export const SearchExternalVersionControlProjectsRequest = {},};-function createBaseSearchExternalVersionControlProjectsResponse(): SearchExternalVersionControlProjectsResponse {+function createBaseSearchVCSProviderProjectsResponse(): SearchVCSProviderProjectsResponse {return { projects: [] };}-export const SearchExternalVersionControlProjectsResponse = {- encode(message: SearchExternalVersionControlProjectsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const SearchVCSProviderProjectsResponse = {+ encode(message: SearchVCSProviderProjectsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {for (const v of message.projects) {- SearchExternalVersionControlProjectsResponse_Project.encode(v!, writer.uint32(10).fork()).ldelim();+ SearchVCSProviderProjectsResponse_Project.encode(v!, writer.uint32(10).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): SearchExternalVersionControlProjectsResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): SearchVCSProviderProjectsResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSearchExternalVersionControlProjectsResponse();+ const message = createBaseSearchVCSProviderProjectsResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -768,7 +757,7 @@ export const SearchExternalVersionControlProjectsResponse = {break;}- message.projects.push(SearchExternalVersionControlProjectsResponse_Project.decode(reader, reader.uint32()));+ message.projects.push(SearchVCSProviderProjectsResponse_Project.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -779,46 +768,38 @@ export const SearchExternalVersionControlProjectsResponse = {return message;},- fromJSON(object: any): SearchExternalVersionControlProjectsResponse {+ fromJSON(object: any): SearchVCSProviderProjectsResponse {return {projects: globalThis.Array.isArray(object?.projects)- ? object.projects.map((e: any) => SearchExternalVersionControlProjectsResponse_Project.fromJSON(e))+ ? object.projects.map((e: any) => SearchVCSProviderProjectsResponse_Project.fromJSON(e)): [],};},- toJSON(message: SearchExternalVersionControlProjectsResponse): unknown {+ toJSON(message: SearchVCSProviderProjectsResponse): unknown {const obj: any = {};if (message.projects?.length) {- obj.projects = message.projects.map((e) => SearchExternalVersionControlProjectsResponse_Project.toJSON(e));+ obj.projects = message.projects.map((e) => SearchVCSProviderProjectsResponse_Project.toJSON(e));}return obj;},- create(- base?: DeepPartial<SearchExternalVersionControlProjectsResponse>,- ): SearchExternalVersionControlProjectsResponse {- return SearchExternalVersionControlProjectsResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<SearchVCSProviderProjectsResponse>): SearchVCSProviderProjectsResponse {+ return SearchVCSProviderProjectsResponse.fromPartial(base ?? {});},- fromPartial(- object: DeepPartial<SearchExternalVersionControlProjectsResponse>,- ): SearchExternalVersionControlProjectsResponse {- const message = createBaseSearchExternalVersionControlProjectsResponse();- message.projects =- object.projects?.map((e) => SearchExternalVersionControlProjectsResponse_Project.fromPartial(e)) || [];+ fromPartial(object: DeepPartial<SearchVCSProviderProjectsResponse>): SearchVCSProviderProjectsResponse {+ const message = createBaseSearchVCSProviderProjectsResponse();+ message.projects = object.projects?.map((e) => SearchVCSProviderProjectsResponse_Project.fromPartial(e)) || [];return message;},};-function createBaseSearchExternalVersionControlProjectsResponse_Project(): SearchExternalVersionControlProjectsResponse_Project {+function createBaseSearchVCSProviderProjectsResponse_Project(): SearchVCSProviderProjectsResponse_Project {return { id: "", title: "", fullpath: "", webUrl: "" };}-export const SearchExternalVersionControlProjectsResponse_Project = {- encode(- message: SearchExternalVersionControlProjectsResponse_Project,- writer: _m0.Writer = _m0.Writer.create(),- ): _m0.Writer {+export const SearchVCSProviderProjectsResponse_Project = {+ encode(message: SearchVCSProviderProjectsResponse_Project, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.id !== "") {writer.uint32(10).string(message.id);}@@ -834,10 +815,10 @@ export const SearchExternalVersionControlProjectsResponse_Project = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): SearchExternalVersionControlProjectsResponse_Project {+ decode(input: _m0.Reader | Uint8Array, length?: number): SearchVCSProviderProjectsResponse_Project {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSearchExternalVersionControlProjectsResponse_Project();+ const message = createBaseSearchVCSProviderProjectsResponse_Project();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -878,7 +859,7 @@ export const SearchExternalVersionControlProjectsResponse_Project = {return message;},- fromJSON(object: any): SearchExternalVersionControlProjectsResponse_Project {+ fromJSON(object: any): SearchVCSProviderProjectsResponse_Project {return {id: isSet(object.id) ? globalThis.String(object.id) : "",title: isSet(object.title) ? globalThis.String(object.title) : "",@@ -887,7 +868,7 @@ export const SearchExternalVersionControlProjectsResponse_Project = {};},- toJSON(message: SearchExternalVersionControlProjectsResponse_Project): unknown {+ toJSON(message: SearchVCSProviderProjectsResponse_Project): unknown {const obj: any = {};if (message.id !== "") {obj.id = message.id;@@ -904,15 +885,13 @@ export const SearchExternalVersionControlProjectsResponse_Project = {return obj;},- create(- base?: DeepPartial<SearchExternalVersionControlProjectsResponse_Project>,- ): SearchExternalVersionControlProjectsResponse_Project {- return SearchExternalVersionControlProjectsResponse_Project.fromPartial(base ?? {});+ create(base?: DeepPartial<SearchVCSProviderProjectsResponse_Project>): SearchVCSProviderProjectsResponse_Project {+ return SearchVCSProviderProjectsResponse_Project.fromPartial(base ?? {});},fromPartial(- object: DeepPartial<SearchExternalVersionControlProjectsResponse_Project>,- ): SearchExternalVersionControlProjectsResponse_Project {- const message = createBaseSearchExternalVersionControlProjectsResponse_Project();+ object: DeepPartial<SearchVCSProviderProjectsResponse_Project>,+ ): SearchVCSProviderProjectsResponse_Project {+ const message = createBaseSearchVCSProviderProjectsResponse_Project();message.id = object.id ?? "";message.title = object.title ?? "";message.fullpath = object.fullpath ?? "";@@ -1039,12 +1018,12 @@ export const ListProjectGitOpsInfoResponse = {},};-function createBaseExternalVersionControl(): ExternalVersionControl {+function createBaseVCSProvider(): VCSProvider {return { name: "", title: "", type: 0, url: "", apiUrl: "", applicationId: "", secret: "" };}-export const ExternalVersionControl = {- encode(message: ExternalVersionControl, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const VCSProvider = {+ encode(message: VCSProvider, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.name !== "") {writer.uint32(10).string(message.name);}@@ -1069,10 +1048,10 @@ export const ExternalVersionControl = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ExternalVersionControl {+ decode(input: _m0.Reader | Uint8Array, length?: number): VCSProvider {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseExternalVersionControl();+ const message = createBaseVCSProvider();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -1134,11 +1113,11 @@ export const ExternalVersionControl = {return message;},- fromJSON(object: any): ExternalVersionControl {+ fromJSON(object: any): VCSProvider {return {name: isSet(object.name) ? globalThis.String(object.name) : "",title: isSet(object.title) ? globalThis.String(object.title) : "",- type: isSet(object.type) ? externalVersionControl_TypeFromJSON(object.type) : 0,+ type: isSet(object.type) ? vCSProvider_TypeFromJSON(object.type) : 0,url: isSet(object.url) ? globalThis.String(object.url) : "",apiUrl: isSet(object.apiUrl) ? globalThis.String(object.apiUrl) : "",applicationId: isSet(object.applicationId) ? globalThis.String(object.applicationId) : "",@@ -1146,7 +1125,7 @@ export const ExternalVersionControl = {};},- toJSON(message: ExternalVersionControl): unknown {+ toJSON(message: VCSProvider): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;@@ -1155,7 +1134,7 @@ export const ExternalVersionControl = {obj.title = message.title;}if (message.type !== 0) {- obj.type = externalVersionControl_TypeToJSON(message.type);+ obj.type = vCSProvider_TypeToJSON(message.type);}if (message.url !== "") {obj.url = message.url;@@ -1172,11 +1151,11 @@ export const ExternalVersionControl = {return obj;},- create(base?: DeepPartial<ExternalVersionControl>): ExternalVersionControl {- return ExternalVersionControl.fromPartial(base ?? {});+ create(base?: DeepPartial<VCSProvider>): VCSProvider {+ return VCSProvider.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ExternalVersionControl>): ExternalVersionControl {- const message = createBaseExternalVersionControl();+ fromPartial(object: DeepPartial<VCSProvider>): VCSProvider {+ const message = createBaseVCSProvider();message.name = object.name ?? "";message.title = object.title ?? "";message.type = object.type ?? 0;@@ -1637,7 +1616,7 @@ export const ExchangeToken = {return {name: isSet(object.name) ? globalThis.String(object.name) : "",code: isSet(object.code) ? globalThis.String(object.code) : "",- type: isSet(object.type) ? externalVersionControl_TypeFromJSON(object.type) : 0,+ type: isSet(object.type) ? vCSProvider_TypeFromJSON(object.type) : 0,instanceUrl: isSet(object.instanceUrl) ? globalThis.String(object.instanceUrl) : "",clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",clientSecret: isSet(object.clientSecret) ? globalThis.String(object.clientSecret) : "",@@ -1653,7 +1632,7 @@ export const ExchangeToken = {obj.code = message.code;}if (message.type !== 0) {- obj.type = externalVersionControl_TypeToJSON(message.type);+ obj.type = vCSProvider_TypeToJSON(message.type);}if (message.instanceUrl !== "") {obj.instanceUrl = message.instanceUrl;@@ -1771,25 +1750,25 @@ export const OAuthToken = {},};-export type ExternalVersionControlServiceDefinition = typeof ExternalVersionControlServiceDefinition;-export const ExternalVersionControlServiceDefinition = {- name: "ExternalVersionControlService",- fullName: "bytebase.v1.ExternalVersionControlService",+export type VCSProviderServiceDefinition = typeof VCSProviderServiceDefinition;+export const VCSProviderServiceDefinition = {+ name: "VCSProviderService",+ fullName: "bytebase.v1.VCSProviderService",methods: {- getExternalVersionControl: {- name: "GetExternalVersionControl",- requestType: GetExternalVersionControlRequest,+ getVCSProvider: {+ name: "GetVCSProvider",+ requestType: GetVCSProviderRequest,requestStream: false,- responseType: ExternalVersionControl,+ responseType: VCSProvider,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([4, 110, 97, 109, 101])],578365826: [new Uint8Array([- 38,+ 27,18,- 36,+ 25,47,118,49,@@ -1800,28 +1779,17 @@ export const ExternalVersionControlServiceDefinition = {109,101,61,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,47,42,@@ -1831,159 +1799,93 @@ export const ExternalVersionControlServiceDefinition = {},},},- listExternalVersionControls: {- name: "ListExternalVersionControls",- requestType: ListExternalVersionControlsRequest,+ listVCSProviders: {+ name: "ListVCSProviders",+ requestType: ListVCSProvidersRequest,requestStream: false,- responseType: ListExternalVersionControlsResponse,+ responseType: ListVCSProvidersResponse,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([0])],578365826: [- new Uint8Array([- 29,- 18,- 27,- 47,- 118,- 49,- 47,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,- 115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,- 114,- 111,- 108,- 115,- ]),+ new Uint8Array([18, 18, 16, 47, 118, 49, 47, 118, 99, 115, 80, 114, 111, 118, 105, 100, 101, 114, 115]),],},},},- createExternalVersionControl: {- name: "CreateExternalVersionControl",- requestType: CreateExternalVersionControlRequest,+ createVCSProvider: {+ name: "CreateVCSProvider",+ requestType: CreateVCSProviderRequest,requestStream: false,- responseType: ExternalVersionControl,+ responseType: VCSProvider,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([0])],578365826: [new Uint8Array([- 55,+ 32,58,- 24,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 95,+ 12,118,- 101,- 114,+ 99,115,- 105,- 111,- 110,95,- 99,- 111,- 110,- 116,+ 112,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,34,- 27,+ 16,47,118,49,47,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,]),],},},},- updateExternalVersionControl: {- name: "UpdateExternalVersionControl",- requestType: UpdateExternalVersionControlRequest,+ updateVCSProvider: {+ name: "UpdateVCSProvider",+ requestType: UpdateVCSProviderRequest,requestStream: false,- responseType: ExternalVersionControl,+ responseType: VCSProvider,responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([- 36,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 95,+ 24,118,- 101,- 114,+ 99,115,- 105,- 111,- 110,95,- 99,- 111,- 110,- 116,+ 112,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,44,117,112,@@ -2000,92 +1902,57 @@ export const ExternalVersionControlServiceDefinition = {],578365826: [new Uint8Array([- 89,+ 54,58,- 24,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 95,+ 12,118,- 101,- 114,+ 99,115,- 105,- 111,- 110,95,- 99,- 111,- 110,- 116,+ 112,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,50,- 61,+ 38,47,118,49,47,123,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 95,118,- 101,- 114,+ 99,115,- 105,- 111,- 110,95,- 99,- 111,- 110,- 116,+ 112,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,46,110,97,109,101,61,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,47,42,@@ -2106,7 +1973,7 @@ export const ExternalVersionControlServiceDefinition = {8410: [new Uint8Array([0])],578365826: [new Uint8Array([- 83,+ 72,58,14,101,@@ -2124,7 +1991,7 @@ export const ExternalVersionControlServiceDefinition = {101,110,34,- 65,+ 54,47,118,49,@@ -2150,28 +2017,17 @@ export const ExternalVersionControlServiceDefinition = {109,101,61,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,47,42,@@ -2195,9 +2051,9 @@ export const ExternalVersionControlServiceDefinition = {},},},- deleteExternalVersionControl: {- name: "DeleteExternalVersionControl",- requestType: DeleteExternalVersionControlRequest,+ deleteVCSProvider: {+ name: "DeleteVCSProvider",+ requestType: DeleteVCSProviderRequest,requestStream: false,responseType: Empty,responseStream: false,@@ -2205,9 +2061,9 @@ export const ExternalVersionControlServiceDefinition = {_unknownFields: {578365826: [new Uint8Array([- 38,+ 27,42,- 36,+ 25,47,118,49,@@ -2218,28 +2074,17 @@ export const ExternalVersionControlServiceDefinition = {109,101,61,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,47,42,@@ -2249,22 +2094,22 @@ export const ExternalVersionControlServiceDefinition = {},},},- searchExternalVersionControlProjects: {- name: "SearchExternalVersionControlProjects",- requestType: SearchExternalVersionControlProjectsRequest,+ searchVCSProviderProjects: {+ name: "SearchVCSProviderProjects",+ requestType: SearchVCSProviderProjectsRequest,requestStream: false,- responseType: SearchExternalVersionControlProjectsResponse,+ responseType: SearchVCSProviderProjectsResponse,responseStream: false,options: {_unknownFields: {578365826: [new Uint8Array([- 56,+ 45,58,1,42,34,- 51,+ 40,47,118,49,@@ -2275,28 +2120,17 @@ export const ExternalVersionControlServiceDefinition = {109,101,61,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,47,42,@@ -2331,9 +2165,9 @@ export const ExternalVersionControlServiceDefinition = {_unknownFields: {578365826: [new Uint8Array([- 47,+ 36,18,- 45,+ 34,47,118,49,@@ -2344,28 +2178,17 @@ export const ExternalVersionControlServiceDefinition = {109,101,61,- 101,- 120,- 116,- 101,- 114,- 110,- 97,- 108,- 86,- 101,- 114,+ 118,+ 99,115,- 105,- 111,- 110,- 67,- 111,- 110,- 116,+ 80,114,111,- 108,+ 118,+ 105,+ 100,+ 101,+ 114,115,47,42,diff --git a/frontend/src/types/v1/repository.ts b/frontend/src/types/v1/repository.tsindex 1d63a81680..9f575a6e64 100644--- a/frontend/src/types/v1/repository.ts+++ b/frontend/src/types/v1/repository.ts@@ -1,5 +1,5 @@-import { ProjectGitOpsInfo } from "@/types/proto/v1/externalvs_service";import { Project } from "@/types/proto/v1/project_service";+import { ProjectGitOpsInfo } from "@/types/proto/v1/vcs_provider_service";export interface ComposedRepository extends ProjectGitOpsInfo {project: Project;diff --git a/frontend/src/types/vcs.ts b/frontend/src/types/vcs.tsindex 569a12bed1..d0d445b4a8 100644--- a/frontend/src/types/vcs.ts+++ b/frontend/src/types/vcs.ts@@ -1,4 +1,4 @@-import { ExternalVersionControl_Type } from "@/types/proto/v1/externalvs_service";+import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";import { VCSId } from "./id";// Backend uses the same ENUM for GitLab/GitHub SaaS and self-hosted. Because they are based on the@@ -15,7 +15,7 @@ export type VCSUIType =| "AZURE_DEVOPS";export interface VCSConfig {- type: ExternalVersionControl_Type;+ type: VCSProvider_Type;uiType: VCSUIType;name: string;instanceUrl: string;@@ -70,16 +70,16 @@ export type VCSPushEvent = {};export function isValidVCSApplicationIdOrSecret(- vcsType: ExternalVersionControl_Type,+ vcsType: VCSProvider_Type,str: string): boolean {- if (vcsType == ExternalVersionControl_Type.GITLAB) {+ if (vcsType == VCSProvider_Type.GITLAB) {return /^(.{1,}-){0,1}[a-zA-Z0-9_]{64}$/.test(str);- } else if (vcsType == ExternalVersionControl_Type.GITHUB) {+ } else if (vcsType == VCSProvider_Type.GITHUB) {return /^[a-zA-Z0-9_]{20}$|^[a-zA-Z0-9_]{40}$/.test(str);- } else if (vcsType == ExternalVersionControl_Type.BITBUCKET) {+ } else if (vcsType == VCSProvider_Type.BITBUCKET) {return /^[a-zA-Z0-9_]{18}$|^[a-zA-Z0-9_]{32}$/.test(str);- } else if (vcsType == ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (vcsType == VCSProvider_Type.AZURE_DEVOPS) {// TODO: Azure App id is uuid but the secret is random string. We may need to distinguish them.return /^[a-zA-Z0-9-_.]{1,}$/.test(str);}diff --git a/frontend/src/utils/slug.ts b/frontend/src/utils/slug.tsindex 767711221e..a86032cffa 100644--- a/frontend/src/utils/slug.ts+++ b/frontend/src/utils/slug.ts@@ -6,7 +6,7 @@ import {getVCSUid,projectNamePrefix,} from "@/store/modules/v1/common";-import { ExternalVersionControl as VCSV1 } from "@/types/proto/v1/externalvs_service";+import { VCSProvider as VCSV1 } from "@/types/proto/v1/vcs_provider_service";import { Worksheet } from "@/types/proto/v1/worksheet_service";import { IssueId, SQLReviewPolicy } from "../types";import { IdType } from "../types/id";diff --git a/frontend/src/utils/v1/vcs.ts b/frontend/src/utils/v1/vcs.tsindex 15b7755a21..628908341a 100644--- a/frontend/src/utils/v1/vcs.ts+++ b/frontend/src/utils/v1/vcs.ts@@ -1,35 +1,33 @@import { VCSUIType } from "@/types";import {- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";import { isDev } from "@/utils";-export const getVCSUIType = (vcs: ExternalVersionControl): VCSUIType => {+export const getVCSUIType = (vcs: VCSProvider): VCSUIType => {switch (vcs.type) {- case ExternalVersionControl_Type.GITHUB:+ case VCSProvider_Type.GITHUB:return "GITHUB_COM";- case ExternalVersionControl_Type.BITBUCKET:+ case VCSProvider_Type.BITBUCKET:return "BITBUCKET_ORG";- case ExternalVersionControl_Type.GITLAB:+ case VCSProvider_Type.GITLAB:if (vcs.url === "https://gitlab.com") {return "GITLAB_COM";}return "GITLAB_SELF_HOST";- case ExternalVersionControl_Type.AZURE_DEVOPS:+ case VCSProvider_Type.AZURE_DEVOPS:return "AZURE_DEVOPS";default:return "GITLAB_SELF_HOST";}};-export const supportSQLReviewCI = (- vcsType: ExternalVersionControl_Type-): boolean => {+export const supportSQLReviewCI = (vcsType: VCSProvider_Type): boolean => {return (- vcsType === ExternalVersionControl_Type.GITHUB ||- vcsType === ExternalVersionControl_Type.GITLAB ||- vcsType === ExternalVersionControl_Type.AZURE_DEVOPS ||- (vcsType === ExternalVersionControl_Type.BITBUCKET && isDev())+ vcsType === VCSProvider_Type.GITHUB ||+ vcsType === VCSProvider_Type.GITLAB ||+ vcsType === VCSProvider_Type.AZURE_DEVOPS ||+ (vcsType === VCSProvider_Type.BITBUCKET && isDev()));};diff --git a/frontend/src/views/SettingWorkspaceVCS.vue b/frontend/src/views/SettingWorkspaceVCS.vueindex 341184d3d0..784997b7c0 100644--- a/frontend/src/views/SettingWorkspaceVCS.vue+++ b/frontend/src/views/SettingWorkspaceVCS.vue@@ -45,10 +45,7 @@ const vcsV1Store = useVCSV1Store();const router = useRouter();const hasCreateVCSPermission = computed(() => {- return hasWorkspacePermissionV2(- currentUser.value,- "bb.externalVersionControls.create"- );+ return hasWorkspacePermissionV2(currentUser.value, "bb.vcsProviders.create");});const prepareVCSList = () => {diff --git a/frontend/src/views/SettingWorkspaceVCSDetail.vue b/frontend/src/views/SettingWorkspaceVCSDetail.vueindex 74b175fbce..9f5558fa3d 100644--- a/frontend/src/views/SettingWorkspaceVCSDetail.vue+++ b/frontend/src/views/SettingWorkspaceVCSDetail.vue@@ -171,9 +171,9 @@ import {} from "@/types";import {OAuthToken,- ExternalVersionControl,- ExternalVersionControl_Type,-} from "@/types/proto/v1/externalvs_service";+ VCSProvider,+ VCSProvider_Type,+} from "@/types/proto/v1/vcs_provider_service";import {idFromSlug,uidFromSlug,@@ -197,7 +197,7 @@ const currentUser = useCurrentUserV1();const vcsV1Store = useVCSV1Store();const repositoryV1Store = useRepositoryV1Store();-const vcs = computed((): ExternalVersionControl | undefined => {+const vcs = computed((): VCSProvider | undefined => {return vcsV1Store.getVCSByUid(idFromSlug(props.vcsSlug));});@@ -219,17 +219,11 @@ const state = reactive<LocalState>({});const hasUpdateVCSPermission = computed(() => {- return hasWorkspacePermissionV2(- currentUser.value,- "bb.externalVersionControls.update"- );+ return hasWorkspacePermissionV2(currentUser.value, "bb.vcsProviders.update");});const hasDeleteVCSPermission = computed(() => {- return hasWorkspacePermissionV2(- currentUser.value,- "bb.externalVersionControls.delete"- );+ return hasWorkspacePermissionV2(currentUser.value, "bb.vcsProviders.delete");});onMounted(() => {@@ -244,9 +238,9 @@ const eventListener = (event: Event) => {const payload = (event as CustomEvent).detail as OAuthWindowEventPayload;if (isEmpty(payload.error)) {if (- vcs.value?.type === ExternalVersionControl_Type.GITLAB ||- vcs.value?.type === ExternalVersionControl_Type.GITHUB ||- vcs.value?.type === ExternalVersionControl_Type.BITBUCKET+ vcs.value?.type === VCSProvider_Type.GITLAB ||+ vcs.value?.type === VCSProvider_Type.GITHUB ||+ vcs.value?.type === VCSProvider_Type.BITBUCKET) {vcsV1Store.exchangeToken({@@ -273,7 +267,7 @@ watchEffect(async () => {if (!hasWorkspacePermissionV2(currentUser.value,- "bb.externalVersionControls.listProjects"+ "bb.vcsProviders.listProjects")) {pushNotification({@@ -323,11 +317,11 @@ const doUpdate = () => {!isEmpty(state.secret)) {let authorizeUrl = `${vcs.value.url}/oauth/authorize`;- if (vcs.value.type === ExternalVersionControl_Type.GITHUB) {+ if (vcs.value.type === VCSProvider_Type.GITHUB) {authorizeUrl = `https://github.com/login/oauth/authorize`;- } else if (vcs.value.type === ExternalVersionControl_Type.BITBUCKET) {+ } else if (vcs.value.type === VCSProvider_Type.BITBUCKET) {authorizeUrl = `https://bitbucket.org/site/oauth2/authorize`;- } else if (vcs.value.type === ExternalVersionControl_Type.AZURE_DEVOPS) {+ } else if (vcs.value.type === VCSProvider_Type.AZURE_DEVOPS) {authorizeUrl = "https://app.vssps.visualstudio.com/oauth2/authorize";}const newWindow = openWindowForOAuth(@@ -342,7 +336,7 @@ const doUpdate = () => {return;}if (token) {- const vcsPatch: Partial<ExternalVersionControl> = {+ const vcsPatch: Partial<VCSProvider> = {name: vcs.value.name,};if (state.title != vcs.value.title) {@@ -356,7 +350,7 @@ const doUpdate = () => {}vcsV1Store.updateVCS(vcsPatch)- .then((vcs: ExternalVersionControl | undefined) => {+ .then((vcs: VCSProvider | undefined) => {if (!vcs) {return;}@@ -371,13 +365,13 @@ const doUpdate = () => {// So the only possibility to reach here is we have a matching application ID, while// we failed to exchange a token, and it's likely we are requesting with a wrong secret.let description = "";- if (vcs.value.type == ExternalVersionControl_Type.GITLAB) {+ if (vcs.value.type == VCSProvider_Type.GITLAB) {description ="Please make sure Secret matches the one from your GitLab instance Application.";- } else if (vcs.value.type == ExternalVersionControl_Type.GITHUB) {+ } else if (vcs.value.type == VCSProvider_Type.GITHUB) {description ="Please make sure Client secret matches the one from your GitHub.com Application.";- } else if (vcs.value.type == ExternalVersionControl_Type.BITBUCKET) {+ } else if (vcs.value.type == VCSProvider_Type.BITBUCKET) {description ="Please make sure Secret matches the one from your Bitbucket.org consumer.";}@@ -391,13 +385,13 @@ const doUpdate = () => {};}} else if (state.title != vcs.value.title) {- const vcsPatch: Partial<ExternalVersionControl> = {+ const vcsPatch: Partial<VCSProvider> = {name: vcs.value.name,title: state.title,};vcsV1Store.updateVCS(vcsPatch)- .then((updatedVCS: ExternalVersionControl | undefined) => {+ .then((updatedVCS: VCSProvider | undefined) => {if (!updatedVCS) {return;}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 9d3bbe8a12..09c7534acb 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -266,28 +266,6 @@- [EnvironmentService](#bytebase-v1-EnvironmentService)-- [v1/externalvs_service.proto](#v1_externalvs_service-proto)- - [CreateExternalVersionControlRequest](#bytebase-v1-CreateExternalVersionControlRequest)- - [DeleteExternalVersionControlRequest](#bytebase-v1-DeleteExternalVersionControlRequest)- - [ExchangeToken](#bytebase-v1-ExchangeToken)- - [ExchangeTokenRequest](#bytebase-v1-ExchangeTokenRequest)- - [ExternalVersionControl](#bytebase-v1-ExternalVersionControl)- - [GetExternalVersionControlRequest](#bytebase-v1-GetExternalVersionControlRequest)- - [ListExternalVersionControlsRequest](#bytebase-v1-ListExternalVersionControlsRequest)- - [ListExternalVersionControlsResponse](#bytebase-v1-ListExternalVersionControlsResponse)- - [ListProjectGitOpsInfoRequest](#bytebase-v1-ListProjectGitOpsInfoRequest)- - [ListProjectGitOpsInfoResponse](#bytebase-v1-ListProjectGitOpsInfoResponse)- - [OAuthToken](#bytebase-v1-OAuthToken)- - [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo)- - [SearchExternalVersionControlProjectsRequest](#bytebase-v1-SearchExternalVersionControlProjectsRequest)- - [SearchExternalVersionControlProjectsResponse](#bytebase-v1-SearchExternalVersionControlProjectsResponse)- - [SearchExternalVersionControlProjectsResponse.Project](#bytebase-v1-SearchExternalVersionControlProjectsResponse-Project)- - [UpdateExternalVersionControlRequest](#bytebase-v1-UpdateExternalVersionControlRequest)-- - [ExternalVersionControl.Type](#bytebase-v1-ExternalVersionControl-Type)-- - [ExternalVersionControlService](#bytebase-v1-ExternalVersionControlService)-- [v1/idp_service.proto](#v1_idp_service-proto)- [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest)- [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest)@@ -371,6 +349,28 @@- [LoggingService](#bytebase-v1-LoggingService)+- [v1/vcs_provider_service.proto](#v1_vcs_provider_service-proto)+ - [CreateVCSProviderRequest](#bytebase-v1-CreateVCSProviderRequest)+ - [DeleteVCSProviderRequest](#bytebase-v1-DeleteVCSProviderRequest)+ - [ExchangeToken](#bytebase-v1-ExchangeToken)+ - [ExchangeTokenRequest](#bytebase-v1-ExchangeTokenRequest)+ - [GetVCSProviderRequest](#bytebase-v1-GetVCSProviderRequest)+ - [ListProjectGitOpsInfoRequest](#bytebase-v1-ListProjectGitOpsInfoRequest)+ - [ListProjectGitOpsInfoResponse](#bytebase-v1-ListProjectGitOpsInfoResponse)+ - [ListVCSProvidersRequest](#bytebase-v1-ListVCSProvidersRequest)+ - [ListVCSProvidersResponse](#bytebase-v1-ListVCSProvidersResponse)+ - [OAuthToken](#bytebase-v1-OAuthToken)+ - [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo)+ - [SearchVCSProviderProjectsRequest](#bytebase-v1-SearchVCSProviderProjectsRequest)+ - [SearchVCSProviderProjectsResponse](#bytebase-v1-SearchVCSProviderProjectsResponse)+ - [SearchVCSProviderProjectsResponse.Project](#bytebase-v1-SearchVCSProviderProjectsResponse-Project)+ - [UpdateVCSProviderRequest](#bytebase-v1-UpdateVCSProviderRequest)+ - [VCSProvider](#bytebase-v1-VCSProvider)++ - [VCSProvider.Type](#bytebase-v1-VCSProvider-Type)++ - [VCSProviderService](#bytebase-v1-VCSProviderService)+- [v1/project_service.proto](#v1_project_service-proto)- [Activity](#bytebase-v1-Activity)- [AddWebhookRequest](#bytebase-v1-AddWebhookRequest)@@ -4634,283 +4634,294 @@ The environment's `name` field is used to identify the environment to update-<a name="v1_externalvs_service-proto"></a>+<a name="v1_idp_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/externalvs_service.proto+## v1/idp_service.proto-<a name="bytebase-v1-CreateExternalVersionControlRequest"></a>+<a name="bytebase-v1-CreateIdentityProviderRequest"></a>-### CreateExternalVersionControlRequest+### CreateIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| external_version_control | [ExternalVersionControl](#bytebase-v1-ExternalVersionControl) | | |+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to create. |+| identity_provider_id | [string](#string) | | The ID to use for the identity provider, which will become the final component of the identity provider's resource name.++This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-DeleteExternalVersionControlRequest"></a>+<a name="bytebase-v1-DeleteIdentityProviderRequest"></a>-### DeleteExternalVersionControlRequest+### DeleteIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the external version control to delete. Format: externalVersionControls/{externalVersionControl} |+| name | [string](#string) | | The name of the identity provider to delete. Format: idps/{identity_provider} |-<a name="bytebase-v1-ExchangeToken"></a>+<a name="bytebase-v1-FieldMapping"></a>-### ExchangeToken+### FieldMapping+FieldMapping saves the field names from user info API of identity provider.+As we save all raw json string of user info response data into `principal.idp_user_info`,+we can extract the relevant data based with `FieldMapping`.+e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.+Then the identifier of FieldMapping will be `login`, display_name will be `name`,+and email will be `email`.+reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the external version control to retrieve the linked projects. Format: externalVersionControls/{externalVersionControl} |-| code | [string](#string) | | |-| type | [ExternalVersionControl.Type](#bytebase-v1-ExternalVersionControl-Type) | | |-| instance_url | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |+| identifier | [string](#string) | | Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. |+| display_name | [string](#string) | | DisplayName is the field name of display name in 3rd-party idp user info. |+| email | [string](#string) | | Email is the field name of primary email in 3rd-party idp user info. |+| phone | [string](#string) | | Phone is the field name of primary phone in 3rd-party idp user info. |-<a name="bytebase-v1-ExchangeTokenRequest"></a>+<a name="bytebase-v1-GetIdentityProviderRequest"></a>-### ExchangeTokenRequest+### GetIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| exchange_token | [ExchangeToken](#bytebase-v1-ExchangeToken) | | |+| name | [string](#string) | | |-<a name="bytebase-v1-ExternalVersionControl"></a>+<a name="bytebase-v1-IdentityProvider"></a>-### ExternalVersionControl+### IdentityProvider| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the external version control, generated by the server, and also is the unique identifier. Format: externalVersionControls/{externalVersionControl} |-| title | [string](#string) | | The title of the external version control. It is used to display in the UI. Specified by the client. |-| type | [ExternalVersionControl.Type](#bytebase-v1-ExternalVersionControl-Type) | | |-| url | [string](#string) | | The url of the external version control. Specified by the client. For example: github.com, gitlab.com, gitlab.bytebase.com. |-| api_url | [string](#string) | | The API url of the external version control. Derived from the url. |-| application_id | [string](#string) | | The application ID of the external version control. Specified by the client. |-| secret | [string](#string) | | The application secret of the external version control. Specified by the client. |+| name | [string](#string) | | The name of the identity provider. Format: idps/{identity_provider} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| domain | [string](#string) | | |+| type | [IdentityProviderType](#bytebase-v1-IdentityProviderType) | | |+| config | [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig) | | |-<a name="bytebase-v1-GetExternalVersionControlRequest"></a>+<a name="bytebase-v1-IdentityProviderConfig"></a>-### GetExternalVersionControlRequest+### IdentityProviderConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the external version control to retrieve. Format: externalVersionControls/{externalVersionControl} |-+| oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | |+| oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |+| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |-<a name="bytebase-v1-ListExternalVersionControlsRequest"></a>-### ListExternalVersionControlsRequest+<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>+### LDAPIdentityProviderConfig+LDAPIdentityProviderConfig is the structure for LDAP identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | Not used. The maximum number of external version control to return. The service may return fewer than this value. If unspecified, at most 100 external version control will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListExternalVersionControls` call. Provide this to retrieve the subsequent page. |+| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |+| port | [int32](#int32) | | Port is the port number of the LDAP server, e.g. 389. When not set, the default port of the corresponding security protocol will be used, i.e. 389 for StartTLS and 636 for LDAPS. |+| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |+| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |+| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |+| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |+| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |+| security_protocol | [string](#string) | | SecurityProtocol is the security protocol to be used for establishing connections with the LDAP server. It should be either StartTLS or LDAPS, and cannot be empty. |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |-<a name="bytebase-v1-ListExternalVersionControlsResponse"></a>+<a name="bytebase-v1-ListIdentityProvidersRequest"></a>-### ListExternalVersionControlsResponse+### ListIdentityProvidersRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| external_version_controls | [ExternalVersionControl](#bytebase-v1-ExternalVersionControl) | repeated | The list of external version control. |-| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| page_size | [int32](#int32) | | The maximum number of identity providers to return. The service may return fewer than this value. If unspecified, at most 50 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListIdentityProviders` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIdentityProviders` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted identity providers if specified. |-<a name="bytebase-v1-ListProjectGitOpsInfoRequest"></a>+<a name="bytebase-v1-ListIdentityProvidersResponse"></a>-### ListProjectGitOpsInfoRequest+### ListIdentityProvidersResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the external version control to retrieve the linked projects. Format: externalVersionControls/{externalVersionControl} |-+| identity_providers | [IdentityProvider](#bytebase-v1-IdentityProvider) | repeated | The identity providers from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-ListProjectGitOpsInfoResponse"></a>-### ListProjectGitOpsInfoResponse+<a name="bytebase-v1-OAuth2IdentityProviderConfig"></a>+### OAuth2IdentityProviderConfig+OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project_gitops_info | [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo) | repeated | The binding between external version control and project. |+| auth_url | [string](#string) | | |+| token_url | [string](#string) | | |+| user_info_url | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |+| scopes | [string](#string) | repeated | |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |+| skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |-<a name="bytebase-v1-OAuthToken"></a>+<a name="bytebase-v1-OAuth2IdentityProviderTestRequestContext"></a>-### OAuthToken+### OAuth2IdentityProviderTestRequestContext| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| access_token | [string](#string) | | |-| refresh_token | [string](#string) | | |-| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-+| code | [string](#string) | | Authorize code from website. |-<a name="bytebase-v1-ProjectGitOpsInfo"></a>-### ProjectGitOpsInfo+<a name="bytebase-v1-OIDCIdentityProviderConfig"></a>+### OIDCIdentityProviderConfig+OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the linked repository, generated by the server, and also is the unique identifier. Format: projects/{project}/gitOpsInfo |-| vcs_uid | [string](#string) | | The uid for related VCS. |-| title | [string](#string) | | The title of the repository. For axample: sample. |-| full_path | [string](#string) | | The full_path of the repository. For example: bytebase/sample. |-| web_url | [string](#string) | | The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample. |-| branch_filter | [string](#string) | | The branch Bytebase listens to for changes. For example: main. |-| base_directory | [string](#string) | | The root directory where Bytebase observes the file change. If empty, then it observes the entire repository. |-| file_path_template | [string](#string) | | Bytebase only observes the file path name matching the template pattern **relative** to the base directory. Required Placeholder: {{DB_NAME}}, {{VERSION}}, {{TYPE]}. Optional Placeholder: {{ENV_ID}}, {{DESCRIPTION}}. Optional Directory Wildcard: '*', '**'. |-| schema_path_template | [string](#string) | | The file path template for storing the latest schema auto-generated by Bytebase after migration. If empty, then Bytebase won't auto generate it. If specified, required placeholder: {{DB_NAME}}, optional placeholder: {{ENV_ID}}. |-| sheet_path_template | [string](#string) | | The file path template for matching the sql files for sheet. If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}}, {{DB_NAME}}. |-| external_id | [string](#string) | | The reposition external id in target VCS. |-| enable_sql_review_ci | [bool](#bool) | | Set to true to enable SQL review CI for all PR/MRs. |-| webhook_endpoint_id | [string](#string) | | The webhook endpoint ID of the repository. |-| access_token | [string](#string) | | |-| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| refresh_token | [string](#string) | | |+| issuer | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |+| scopes | [string](#string) | repeated | |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |+| skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |-<a name="bytebase-v1-SearchExternalVersionControlProjectsRequest"></a>+<a name="bytebase-v1-TestIdentityProviderRequest"></a>-### SearchExternalVersionControlProjectsRequest+### TestIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the external version control to retrieve the external version control repositories. Format: externalVersionControls/{externalVersionControl} |-| access_token | [string](#string) | | |-| refresh_token | [string](#string) | | |--+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to test connection including uncreated. |+| oauth2_context | [OAuth2IdentityProviderTestRequestContext](#bytebase-v1-OAuth2IdentityProviderTestRequestContext) | | |-<a name="bytebase-v1-SearchExternalVersionControlProjectsResponse"></a>-### SearchExternalVersionControlProjectsResponse+<a name="bytebase-v1-TestIdentityProviderResponse"></a>+### TestIdentityProviderResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| projects | [SearchExternalVersionControlProjectsResponse.Project](#bytebase-v1-SearchExternalVersionControlProjectsResponse-Project) | repeated | The list of project in external version control. |-<a name="bytebase-v1-SearchExternalVersionControlProjectsResponse-Project"></a>+<a name="bytebase-v1-UndeleteIdentityProviderRequest"></a>-### SearchExternalVersionControlProjectsResponse.Project+### UndeleteIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | The id of the project in external version control. |-| title | [string](#string) | | The title of the project in external version control. |-| fullpath | [string](#string) | | The fullpath of the project in external version control. |-| web_url | [string](#string) | | Web url of the project in external version control. |+| name | [string](#string) | | The name of the deleted identity provider. Format: idps/{identity_provider} |-<a name="bytebase-v1-UpdateExternalVersionControlRequest"></a>+<a name="bytebase-v1-UpdateIdentityProviderRequest"></a>-### UpdateExternalVersionControlRequest+### UpdateIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| external_version_control | [ExternalVersionControl](#bytebase-v1-ExternalVersionControl) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to update.++The identity provider's `name` field is used to identify the identity provider to update. Format: idps/{identity_provider} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |@@ -4919,18 +4930,30 @@ The environment's `name` field is used to identify the environment to update-<a name="bytebase-v1-ExternalVersionControl-Type"></a>+<a name="bytebase-v1-IdentityProviderType"></a>-### ExternalVersionControl.Type+### IdentityProviderType| Name | Number | Description || ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| GITHUB | 1 | GitHub type. Using for GitHub community edition(ce). |-| GITLAB | 2 | GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee). |-| BITBUCKET | 3 | BitBucket type. Using for BitBucket cloud or BitBucket server. |-| AZURE_DEVOPS | 4 | Azure DevOps. Using for Azure DevOps GitOps workflow. |+| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | |+| OAUTH2 | 1 | |+| OIDC | 2 | |+| LDAP | 3 | |++++<a name="bytebase-v1-OAuth2AuthStyle"></a>++### OAuth2AuthStyle+++| Name | Number | Description |+| ---- | ------ | ----------- |+| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |+| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |+| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |@@ -4938,1250 +4961,1222 @@ The environment's `name` field is used to identify the environment to update-<a name="bytebase-v1-ExternalVersionControlService"></a>+<a name="bytebase-v1-IdentityProviderService"></a>-### ExternalVersionControlService+### IdentityProviderService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetExternalVersionControl | [GetExternalVersionControlRequest](#bytebase-v1-GetExternalVersionControlRequest) | [ExternalVersionControl](#bytebase-v1-ExternalVersionControl) | |-| ListExternalVersionControls | [ListExternalVersionControlsRequest](#bytebase-v1-ListExternalVersionControlsRequest) | [ListExternalVersionControlsResponse](#bytebase-v1-ListExternalVersionControlsResponse) | |-| CreateExternalVersionControl | [CreateExternalVersionControlRequest](#bytebase-v1-CreateExternalVersionControlRequest) | [ExternalVersionControl](#bytebase-v1-ExternalVersionControl) | |-| UpdateExternalVersionControl | [UpdateExternalVersionControlRequest](#bytebase-v1-UpdateExternalVersionControlRequest) | [ExternalVersionControl](#bytebase-v1-ExternalVersionControl) | |-| ExchangeToken | [ExchangeTokenRequest](#bytebase-v1-ExchangeTokenRequest) | [OAuthToken](#bytebase-v1-OAuthToken) | |-| DeleteExternalVersionControl | [DeleteExternalVersionControlRequest](#bytebase-v1-DeleteExternalVersionControlRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| SearchExternalVersionControlProjects | [SearchExternalVersionControlProjectsRequest](#bytebase-v1-SearchExternalVersionControlProjectsRequest) | [SearchExternalVersionControlProjectsResponse](#bytebase-v1-SearchExternalVersionControlProjectsResponse) | |-| ListProjectGitOpsInfo | [ListProjectGitOpsInfoRequest](#bytebase-v1-ListProjectGitOpsInfoRequest) | [ListProjectGitOpsInfoResponse](#bytebase-v1-ListProjectGitOpsInfoResponse) | |+| GetIdentityProvider | [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| ListIdentityProviders | [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest) | [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse) | |+| CreateIdentityProvider | [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| UpdateIdentityProvider | [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| DeleteIdentityProvider | [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteIdentityProvider | [UndeleteIdentityProviderRequest](#bytebase-v1-UndeleteIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| TestIdentityProvider | [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest) | [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse) | |-<a name="v1_idp_service-proto"></a>+<a name="v1_instance_role_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/idp_service.proto+## v1/instance_role_service.proto-<a name="bytebase-v1-CreateIdentityProviderRequest"></a>+<a name="bytebase-v1-CreateInstanceRoleRequest"></a>-### CreateIdentityProviderRequest+### CreateInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to create. |-| identity_provider_id | [string](#string) | | The ID to use for the identity provider, which will become the final component of the identity provider's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| parent | [string](#string) | | The parent resource where this role will be created. Format: instances/{instance} |+| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to create. |-<a name="bytebase-v1-DeleteIdentityProviderRequest"></a>+<a name="bytebase-v1-DeleteInstanceRoleRequest"></a>-### DeleteIdentityProviderRequest+### DeleteInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the identity provider to delete. Format: idps/{identity_provider} |+| name | [string](#string) | | The name of the role to delete. Format: instances/{instance}/roles/{role name} |-<a name="bytebase-v1-FieldMapping"></a>+<a name="bytebase-v1-GetInstanceRoleRequest"></a>-### FieldMapping-FieldMapping saves the field names from user info API of identity provider.-As we save all raw json string of user info response data into `principal.idp_user_info`,-we can extract the relevant data based with `FieldMapping`.+### GetInstanceRoleRequest-e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.-Then the identifier of FieldMapping will be `login`, display_name will be `name`,-and email will be `email`.-reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identifier | [string](#string) | | Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. |-| display_name | [string](#string) | | DisplayName is the field name of display name in 3rd-party idp user info. |-| email | [string](#string) | | Email is the field name of primary email in 3rd-party idp user info. |-| phone | [string](#string) | | Phone is the field name of primary phone in 3rd-party idp user info. |-+| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |-<a name="bytebase-v1-GetIdentityProviderRequest"></a>-### GetIdentityProviderRequest+<a name="bytebase-v1-InstanceRole"></a>+### InstanceRole+InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |+| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |+| role_name | [string](#string) | | The role name. It's unique within the instance. |+| password | [string](#string) | optional | The role password. |+| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |+| valid_until | [string](#string) | optional | The expiration for the role's password. |+| attribute | [string](#string) | optional | The role attribute. For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html |-<a name="bytebase-v1-IdentityProvider"></a>+<a name="bytebase-v1-ListInstanceRolesRequest"></a>-### IdentityProvider+### ListInstanceRolesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the identity provider. Format: idps/{identity_provider} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| domain | [string](#string) | | |-| type | [IdentityProviderType](#bytebase-v1-IdentityProviderType) | | |-| config | [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig) | | |+| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |+| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 roles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |+| refresh | [bool](#bool) | | Refresh will refresh and return the latest data. |-<a name="bytebase-v1-IdentityProviderConfig"></a>-### IdentityProviderConfig+<a name="bytebase-v1-ListInstanceRolesResponse"></a>++### ListInstanceRolesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | |-| oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |-| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |+| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | The roles from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>+<a name="bytebase-v1-UndeleteInstanceRoleRequest"></a>++### UndeleteInstanceRoleRequest-### LDAPIdentityProviderConfig-LDAPIdentityProviderConfig is the structure for LDAP identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |-| port | [int32](#int32) | | Port is the port number of the LDAP server, e.g. 389. When not set, the default port of the corresponding security protocol will be used, i.e. 389 for StartTLS and 636 for LDAPS. |-| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |-| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |-| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |-| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |-| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |-| security_protocol | [string](#string) | | SecurityProtocol is the security protocol to be used for establishing connections with the LDAP server. It should be either StartTLS or LDAPS, and cannot be empty. |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |+| name | [string](#string) | | The name of the deleted role. Format: instances/{instance}/roles/{role name} |-<a name="bytebase-v1-ListIdentityProvidersRequest"></a>+<a name="bytebase-v1-UpdateInstanceRoleRequest"></a>-### ListIdentityProvidersRequest+### UpdateInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of identity providers to return. The service may return fewer than this value. If unspecified, at most 50 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListIdentityProviders` call. Provide this to retrieve the subsequent page.+| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to update.-When paginating, all other parameters provided to `ListIdentityProviders` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted identity providers if specified. |+The role's `name` and `instance` field is used to identify the role to update. Format: instances/{instance}/roles/{role name} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+-<a name="bytebase-v1-ListIdentityProvidersResponse"></a>+++-### ListIdentityProvidersResponse+<a name="bytebase-v1-InstanceRoleService"></a>+### InstanceRoleService-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| identity_providers | [IdentityProvider](#bytebase-v1-IdentityProvider) | repeated | The identity providers from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |+| CreateInstanceRole | [CreateInstanceRoleRequest](#bytebase-v1-CreateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| UpdateInstanceRole | [UpdateInstanceRoleRequest](#bytebase-v1-UpdateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| DeleteInstanceRole | [DeleteInstanceRoleRequest](#bytebase-v1-DeleteInstanceRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteInstanceRole | [UndeleteInstanceRoleRequest](#bytebase-v1-UndeleteInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+++<a name="v1_issue_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/issue_service.proto-<a name="bytebase-v1-OAuth2IdentityProviderConfig"></a>-### OAuth2IdentityProviderConfig-OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.+<a name="bytebase-v1-ApprovalFlow"></a>++### ApprovalFlow+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| auth_url | [string](#string) | | |-| token_url | [string](#string) | | |-| user_info_url | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |-| scopes | [string](#string) | repeated | |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |-| skip_tls_verify | [bool](#bool) | | |-| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |+| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |-<a name="bytebase-v1-OAuth2IdentityProviderTestRequestContext"></a>+<a name="bytebase-v1-ApprovalNode"></a>-### OAuth2IdentityProviderTestRequestContext+### ApprovalNode| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| code | [string](#string) | | Authorize code from website. |+| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |+| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |+| role | [string](#string) | | Format: roles/{role} |+| external_node_id | [string](#string) | | |-<a name="bytebase-v1-OIDCIdentityProviderConfig"></a>+<a name="bytebase-v1-ApprovalStep"></a>++### ApprovalStep-### OIDCIdentityProviderConfig-OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issuer | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |-| scopes | [string](#string) | repeated | |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |-| skip_tls_verify | [bool](#bool) | | |-| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |+| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |+| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |-<a name="bytebase-v1-TestIdentityProviderRequest"></a>+<a name="bytebase-v1-ApprovalTemplate"></a>-### TestIdentityProviderRequest+### ApprovalTemplate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to test connection including uncreated. |-| oauth2_context | [OAuth2IdentityProviderTestRequestContext](#bytebase-v1-OAuth2IdentityProviderTestRequestContext) | | |+| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |+| creator | [string](#string) | | The name of the creator in users/{email} format. TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. |-<a name="bytebase-v1-TestIdentityProviderResponse"></a>+<a name="bytebase-v1-ApproveIssueRequest"></a>-### TestIdentityProviderResponse+### ApproveIssueRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the issue to add an approver. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-UndeleteIdentityProviderRequest"></a>-### UndeleteIdentityProviderRequest++<a name="bytebase-v1-BatchUpdateIssuesStatusRequest"></a>++### BatchUpdateIssuesStatusRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted identity provider. Format: idps/{identity_provider} |+| parent | [string](#string) | | The parent resource shared by all issues being updated. Format: projects/{project} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the status of databases for now. |+| issues | [string](#string) | repeated | The list of issues to update. Format: projects/{project}/issues/{issue} |+| status | [IssueStatus](#bytebase-v1-IssueStatus) | | The new status. |+| reason | [string](#string) | | |-<a name="bytebase-v1-UpdateIdentityProviderRequest"></a>+<a name="bytebase-v1-BatchUpdateIssuesStatusResponse"></a>-### UpdateIdentityProviderRequest+### BatchUpdateIssuesStatusResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to update.-The identity provider's `name` field is used to identify the identity provider to update. Format: idps/{identity_provider} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+<a name="bytebase-v1-CreateIssueCommentRequest"></a>+### CreateIssueCommentRequest--<a name="bytebase-v1-IdentityProviderType"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |+| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |-### IdentityProviderType-| Name | Number | Description |-| ---- | ------ | ----------- |-| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | |-| OAUTH2 | 1 | |-| OIDC | 2 | |-| LDAP | 3 | |-<a name="bytebase-v1-OAuth2AuthStyle"></a>+<a name="bytebase-v1-CreateIssueRequest"></a>-### OAuth2AuthStyle+### CreateIssueRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |-| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |-| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |+| issue | [Issue](#bytebase-v1-Issue) | | The issue to create. |---<a name="bytebase-v1-IdentityProviderService"></a>-### IdentityProviderService+<a name="bytebase-v1-GetIssueRequest"></a>-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetIdentityProvider | [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| ListIdentityProviders | [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest) | [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse) | |-| CreateIdentityProvider | [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| UpdateIdentityProvider | [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| DeleteIdentityProvider | [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteIdentityProvider | [UndeleteIdentityProviderRequest](#bytebase-v1-UndeleteIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| TestIdentityProvider | [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest) | [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse) | |+### GetIssueRequest-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the issue to retrieve. Format: projects/{project}/issues/{issue} |+| force | [bool](#bool) | | |-<a name="v1_instance_role_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/instance_role_service.proto-<a name="bytebase-v1-CreateInstanceRoleRequest"></a>-### CreateInstanceRoleRequest+<a name="bytebase-v1-GrantRequest"></a>++### GrantRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this role will be created. Format: instances/{instance} |-| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to create. |+| role | [string](#string) | | The requested role. Format: roles/EXPORTER. |+| user | [string](#string) | | The user to be granted. Format: users/{email}. |+| condition | [google.type.Expr](#google-type-Expr) | | |+| expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | |-<a name="bytebase-v1-DeleteInstanceRoleRequest"></a>+<a name="bytebase-v1-Issue"></a>-### DeleteInstanceRoleRequest+### Issue| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role to delete. Format: instances/{instance}/roles/{role name} |+| name | [string](#string) | | The name of the issue. Format: projects/{project}/issues/{issue} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| type | [Issue.Type](#bytebase-v1-Issue-Type) | | |+| status | [IssueStatus](#bytebase-v1-IssueStatus) | | |+| assignee | [string](#string) | | Format: users/[email protected] |+| assignee_attention | [bool](#bool) | | |+| approvers | [Issue.Approver](#bytebase-v1-Issue-Approver) | repeated | |+| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |+| approval_finding_done | [bool](#bool) | | If the value is `false`, it means that the backend is still finding matching approval templates. If `true`, approval_templates & approvers & approval_finding_error are available. |+| approval_finding_error | [string](#string) | | |+| subscribers | [string](#string) | repeated | The subscribers. Format: users/[email protected] |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| plan | [string](#string) | | The plan associated with the issue. Can be empty. Format: projects/{project}/plans/{plan} |+| rollout | [string](#string) | | The rollout associated with the issue. Can be empty. Format: projects/{project}/rollouts/{rollout} |+| grant_request | [GrantRequest](#bytebase-v1-GrantRequest) | | Used if the issue type is GRANT_REQUEST. |+| releasers | [string](#string) | repeated | The releasers of the pending stage of the issue rollout, judging from the rollout policy. If the policy is auto rollout, the releasers are the project owners and the issue creator. Format: - roles/workspaceOwner - roles/workspaceDBA - roles/projectOwner - roles/projectReleaser - users/{email} |+| risk_level | [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel) | | |+| task_status_count | [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry) | repeated | The status count of the issue. Keys are the following: - NOT_STARTED - SKIPPED - PENDING - RUNNING - DONE - FAILED - CANCELED |-<a name="bytebase-v1-GetInstanceRoleRequest"></a>+<a name="bytebase-v1-Issue-Approver"></a>-### GetInstanceRoleRequest+### Issue.Approver| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |+| status | [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status) | | The new status. |+| principal | [string](#string) | | Format: users/[email protected] |-<a name="bytebase-v1-InstanceRole"></a>+<a name="bytebase-v1-Issue-TaskStatusCountEntry"></a>++### Issue.TaskStatusCountEntry-### InstanceRole-InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |-| role_name | [string](#string) | | The role name. It's unique within the instance. |-| password | [string](#string) | optional | The role password. |-| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |-| valid_until | [string](#string) | optional | The expiration for the role's password. |-| attribute | [string](#string) | optional | The role attribute. For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html |+| key | [string](#string) | | |+| value | [int32](#int32) | | |-<a name="bytebase-v1-ListInstanceRolesRequest"></a>+<a name="bytebase-v1-IssueComment"></a>-### ListInstanceRolesRequest+### IssueComment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |-| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 roles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |-| refresh | [bool](#bool) | | Refresh will refresh and return the latest data. |+| uid | [string](#string) | | |+| comment | [string](#string) | | |+| payload | [string](#string) | | TODO: use struct message instead. |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-ListInstanceRolesResponse"></a>+<a name="bytebase-v1-ListIssuesRequest"></a>-### ListInstanceRolesResponse+### ListIssuesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | The roles from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |+| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |+| filter | [string](#string) | | Filter is used to filter issues returned in the list. |+| query | [string](#string) | | Query is the query statement. |-<a name="bytebase-v1-UndeleteInstanceRoleRequest"></a>-### UndeleteInstanceRoleRequest+<a name="bytebase-v1-ListIssuesResponse"></a>++### ListIssuesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted role. Format: instances/{instance}/roles/{role name} |+| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UpdateInstanceRoleRequest"></a>+<a name="bytebase-v1-RejectIssueRequest"></a>-### UpdateInstanceRoleRequest+### RejectIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to update.--The role's `name` and `instance` field is used to identify the role to update. Format: instances/{instance}/roles/{role name} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |----+| name | [string](#string) | | The name of the issue to add an rejection. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |----<a name="bytebase-v1-InstanceRoleService"></a>-### InstanceRoleService+<a name="bytebase-v1-RequestIssueRequest"></a>+### RequestIssueRequest-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |-| CreateInstanceRole | [CreateInstanceRoleRequest](#bytebase-v1-CreateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| UpdateInstanceRole | [UpdateInstanceRoleRequest](#bytebase-v1-UpdateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| DeleteInstanceRole | [DeleteInstanceRoleRequest](#bytebase-v1-DeleteInstanceRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteInstanceRole | [UndeleteInstanceRoleRequest](#bytebase-v1-UndeleteInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the issue to request a issue. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="v1_issue_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/issue_service.proto-<a name="bytebase-v1-ApprovalFlow"></a>+<a name="bytebase-v1-SearchIssuesRequest"></a>-### ApprovalFlow+### SearchIssuesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |+| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |+| filter | [string](#string) | | Filter is used to filter issues returned in the list. |+| query | [string](#string) | | Query is the query statement. |-<a name="bytebase-v1-ApprovalNode"></a>-### ApprovalNode+<a name="bytebase-v1-SearchIssuesResponse"></a>++### SearchIssuesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |-| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |-| role | [string](#string) | | Format: roles/{role} |-| external_node_id | [string](#string) | | |+| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-ApprovalStep"></a>+<a name="bytebase-v1-UpdateIssueCommentRequest"></a>-### ApprovalStep+### UpdateIssueCommentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |-| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |+| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |+| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-ApprovalTemplate"></a>+<a name="bytebase-v1-UpdateIssueRequest"></a>-### ApprovalTemplate+### UpdateIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |-| title | [string](#string) | | |-| description | [string](#string) | | |-| creator | [string](#string) | | The name of the creator in users/{email} format. TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. |----+| issue | [Issue](#bytebase-v1-Issue) | | The issue to update.+The issue's `name` field is used to identify the issue to update. Format: projects/{project}/issues/{issue} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-ApproveIssueRequest"></a>-### ApproveIssueRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to add an approver. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |++<a name="bytebase-v1-ApprovalNode-GroupValue"></a>+### ApprovalNode.GroupValue+The predefined user groups are:+- WORKSPACE_OWNER+- WORKSPACE_DBA+- PROJECT_OWNER+- PROJECT_MEMBER+| Name | Number | Description |+| ---- | ------ | ----------- |+| GROUP_VALUE_UNSPECIFILED | 0 | |+| WORKSPACE_OWNER | 1 | |+| WORKSPACE_DBA | 2 | |+| PROJECT_OWNER | 3 | |+| PROJECT_MEMBER | 4 | |-<a name="bytebase-v1-BatchUpdateIssuesStatusRequest"></a>-### BatchUpdateIssuesStatusRequest+<a name="bytebase-v1-ApprovalNode-Type"></a>+### ApprovalNode.Type+Type of the ApprovalNode.+type determines who should approve this node.+ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+See GroupValue below for the predefined user groups.+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ANY_IN_GROUP | 1 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource shared by all issues being updated. Format: projects/{project} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the status of databases for now. |-| issues | [string](#string) | repeated | The list of issues to update. Format: projects/{project}/issues/{issue} |-| status | [IssueStatus](#bytebase-v1-IssueStatus) | | The new status. |-| reason | [string](#string) | | |+<a name="bytebase-v1-ApprovalStep-Type"></a>+### ApprovalStep.Type+Type of the ApprovalStep+ALL means every node must be approved to proceed.+ANY means approving any node will proceed.+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ALL | 1 | |+| ANY | 2 | |-<a name="bytebase-v1-BatchUpdateIssuesStatusResponse"></a>-### BatchUpdateIssuesStatusResponse+<a name="bytebase-v1-Issue-Approver-Status"></a>+### Issue.Approver.Status+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| APPROVED | 2 | |+| REJECTED | 3 | |+<a name="bytebase-v1-Issue-RiskLevel"></a>-<a name="bytebase-v1-CreateIssueCommentRequest"></a>+### Issue.RiskLevel-### CreateIssueCommentRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| RISK_LEVEL_UNSPECIFIED | 0 | |+| LOW | 1 | |+| MODERATE | 2 | |+| HIGH | 3 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |-| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |+<a name="bytebase-v1-Issue-Type"></a>+### Issue.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| DATABASE_CHANGE | 1 | |+| GRANT_REQUEST | 2 | |+| DATABASE_DATA_EXPORT | 3 | |-<a name="bytebase-v1-CreateIssueRequest"></a>-### CreateIssueRequest+<a name="bytebase-v1-IssueStatus"></a>+### IssueStatus-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |-| issue | [Issue](#bytebase-v1-Issue) | | The issue to create. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| ISSUE_STATUS_UNSPECIFIED | 0 | |+| OPEN | 1 | |+| DONE | 2 | |+| CANCELED | 3 | |+++<a name="bytebase-v1-IssueService"></a>-<a name="bytebase-v1-GetIssueRequest"></a>+### IssueService-### GetIssueRequest+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetIssue | [GetIssueRequest](#bytebase-v1-GetIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| CreateIssue | [CreateIssueRequest](#bytebase-v1-CreateIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| ListIssues | [ListIssuesRequest](#bytebase-v1-ListIssuesRequest) | [ListIssuesResponse](#bytebase-v1-ListIssuesResponse) | |+| SearchIssues | [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest) | [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse) | Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. |+| UpdateIssue | [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| CreateIssueComment | [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |+| UpdateIssueComment | [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |+| BatchUpdateIssuesStatus | [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest) | [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse) | |+| ApproveIssue | [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| RejectIssue | [RejectIssueRequest](#bytebase-v1-RejectIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| RequestIssue | [RequestIssueRequest](#bytebase-v1-RequestIssueRequest) | [Issue](#bytebase-v1-Issue) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to retrieve. Format: projects/{project}/issues/{issue} |-| force | [bool](#bool) | | |+<a name="v1_logging_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/logging_service.proto-<a name="bytebase-v1-GrantRequest"></a>+<a name="bytebase-v1-ExportLogsRequest"></a>-### GrantRequest+### ExportLogsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [string](#string) | | The requested role. Format: roles/EXPORTER. |-| user | [string](#string) | | The user to be granted. Format: users/{email}. |-| condition | [google.type.Expr](#google-type-Expr) | | |-| expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| filter | [string](#string) | | Consistent with filter and order by in ListLogs. filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |+| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |-<a name="bytebase-v1-Issue"></a>+<a name="bytebase-v1-ExportLogsResponse"></a>-### Issue+### ExportLogsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue. Format: projects/{project}/issues/{issue} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| title | [string](#string) | | |-| description | [string](#string) | | |-| type | [Issue.Type](#bytebase-v1-Issue-Type) | | |-| status | [IssueStatus](#bytebase-v1-IssueStatus) | | |-| assignee | [string](#string) | | Format: users/[email protected] |-| assignee_attention | [bool](#bool) | | |-| approvers | [Issue.Approver](#bytebase-v1-Issue-Approver) | repeated | |-| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |-| approval_finding_done | [bool](#bool) | | If the value is `false`, it means that the backend is still finding matching approval templates. If `true`, approval_templates & approvers & approval_finding_error are available. |-| approval_finding_error | [string](#string) | | |-| subscribers | [string](#string) | repeated | The subscribers. Format: users/[email protected] |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| plan | [string](#string) | | The plan associated with the issue. Can be empty. Format: projects/{project}/plans/{plan} |-| rollout | [string](#string) | | The rollout associated with the issue. Can be empty. Format: projects/{project}/rollouts/{rollout} |-| grant_request | [GrantRequest](#bytebase-v1-GrantRequest) | | Used if the issue type is GRANT_REQUEST. |-| releasers | [string](#string) | repeated | The releasers of the pending stage of the issue rollout, judging from the rollout policy. If the policy is auto rollout, the releasers are the project owners and the issue creator. Format: - roles/workspaceOwner - roles/workspaceDBA - roles/projectOwner - roles/projectReleaser - users/{email} |-| risk_level | [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel) | | |-| task_status_count | [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry) | repeated | The status count of the issue. Keys are the following: - NOT_STARTED - SKIPPED - PENDING - RUNNING - DONE - FAILED - CANCELED |+| content | [bytes](#bytes) | | |-<a name="bytebase-v1-Issue-Approver"></a>+<a name="bytebase-v1-GetLogRequest"></a>-### Issue.Approver+### GetLogRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status) | | The new status. |-| principal | [string](#string) | | Format: users/[email protected] |+| name | [string](#string) | | The name of the log to retrieve. Format: logs/{uid} |-<a name="bytebase-v1-Issue-TaskStatusCountEntry"></a>+<a name="bytebase-v1-ListLogsRequest"></a>-### Issue.TaskStatusCountEntry+### ListLogsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [int32](#int32) | | |+| filter | [string](#string) | | filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |+| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |+| page_size | [int32](#int32) | | Not used. The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 100 log entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListLogs` call. Provide this to retrieve the subsequent page. |-<a name="bytebase-v1-IssueComment"></a>+<a name="bytebase-v1-ListLogsResponse"></a>-### IssueComment+### ListLogsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| uid | [string](#string) | | |-| comment | [string](#string) | | |-| payload | [string](#string) | | TODO: use struct message instead. |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| log_entities | [LogEntity](#bytebase-v1-LogEntity) | repeated | The list of log entities. |+| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to `ListLogs` method to retrieve the next page of log entities. |-<a name="bytebase-v1-ListIssuesRequest"></a>+<a name="bytebase-v1-LogEntity"></a>-### ListIssuesRequest+### LogEntity| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |-| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list. |-| query | [string](#string) | | Query is the query statement. |+| name | [string](#string) | | The name of the log. Format: logs/{uid} |+| creator | [string](#string) | | The creator of the log entity. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| action | [LogEntity.Action](#bytebase-v1-LogEntity-Action) | | |+| level | [LogEntity.Level](#bytebase-v1-LogEntity-Level) | | |+| resource | [string](#string) | | The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE". Format: For ACTION_MEMBER_*: users/{email} For ACTION_ISSUE_*: issues/{issue uid} For ACTION_PIPELINE_*: pipelines/{pipeline uid} For ACTION_PROJECT_*: projects/{project resource id} For ACTION_DATABASE_*: instances/{instance resource id} |+| payload | [string](#string) | | The payload of the log entity. TODO: use oneof |+| comment | [string](#string) | | |+-<a name="bytebase-v1-ListIssuesResponse"></a>-### ListIssuesResponse+<a name="bytebase-v1-LogEntity-Action"></a>+### LogEntity.Action-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| ACTION_UNSPECIFIED | 0 | In worksapce resource only. |+| ACTION_MEMBER_CREATE | 1 | Member related activity types. Enum value 1 - 20+ACTION_MEMBER_CREATE is the type for creating a new member. |+| ACTION_MEMBER_ROLE_UPDATE | 2 | ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role. |+| ACTION_MEMBER_ACTIVATE | 3 | ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members. |+| ACTION_MEMBER_DEACTIVE | 4 | ACTION_MEMBER_DEACTIVE is the type for deactiving members. |+| ACTION_ISSUE_CREATE | 21 | Issue related activity types. Enum value 21 - 40+ACTION_ISSUE_CREATE is the type for creating a new issue. |+| ACTION_ISSUE_COMMENT_CREATE | 22 | ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue. |+| ACTION_ISSUE_FIELD_UPDATE | 23 | ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field. |+| ACTION_ISSUE_STATUS_UPDATE | 24 | ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status. |+| ACTION_ISSUE_APPROVAL_NOTIFY | 25 | ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |+| ACTION_PIPELINE_STAGE_STATUS_UPDATE | 31 | ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |+| ACTION_PIPELINE_TASK_STATUS_UPDATE | 32 | ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| ACTION_PIPELINE_TASK_FILE_COMMIT | 33 | ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement. |+| ACTION_PIPELINE_TASK_STATEMENT_UPDATE | 34 | ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |+| ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 35 | ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |+| ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE | 36 | ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| ACTION_PIPELINE_TASK_PRIOR_BACKUP | 37 | ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity. |+| ACTION_PROJECT_REPOSITORY_PUSH | 41 | Project related activity types. Enum value 41 - 60+ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |+| ACTION_PROJECT_MEMBER_CREATE | 42 | ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project. |+| ACTION_PROJECT_MEMBER_DELETE | 43 | ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project. |+| ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE | 44 | ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE is the type for database PITR recovery done. |+| ACTION_PROJECT_DATABASE_TRANSFER | 45 | ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another. |+| ACTION_DATABASE_SQL_EDITOR_QUERY | 61 | Database related activity types. Enum value 61 - 80+ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |+| ACTION_DATABASE_SQL_EXPORT | 62 | ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL. |-<a name="bytebase-v1-RejectIssueRequest"></a>-### RejectIssueRequest+<a name="bytebase-v1-LogEntity-Level"></a>+### LogEntity.Level-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to add an rejection. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| LEVEL_UNSPECIFIED | 0 | |+| LEVEL_INFO | 1 | LEVEL_INFO is the type for information. |+| LEVEL_WARNING | 2 | LEVEL_WARNING is the type for warning. |+| LEVEL_ERROR | 3 | LEVEL_ERROR is the type for error. |+++<a name="bytebase-v1-LoggingService"></a>-<a name="bytebase-v1-RequestIssueRequest"></a>+### LoggingService-### RequestIssueRequest+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListLogs | [ListLogsRequest](#bytebase-v1-ListLogsRequest) | [ListLogsResponse](#bytebase-v1-ListLogsResponse) | |+| GetLog | [GetLogRequest](#bytebase-v1-GetLogRequest) | [LogEntity](#bytebase-v1-LogEntity) | |+| ExportLogs | [ExportLogsRequest](#bytebase-v1-ExportLogsRequest) | [ExportLogsResponse](#bytebase-v1-ExportLogsResponse) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to request a issue. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+<a name="v1_vcs_provider_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/vcs_provider_service.proto-<a name="bytebase-v1-SearchIssuesRequest"></a>+<a name="bytebase-v1-CreateVCSProviderRequest"></a>-### SearchIssuesRequest+### CreateVCSProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |-| page_size | [int32](#int32) | | The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list. |-| query | [string](#string) | | Query is the query statement. |+| vcs_provider | [VCSProvider](#bytebase-v1-VCSProvider) | | |-<a name="bytebase-v1-SearchIssuesResponse"></a>+<a name="bytebase-v1-DeleteVCSProviderRequest"></a>-### SearchIssuesResponse+### DeleteVCSProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the vcs provider to delete. Format: vcsProviders/{vcsProvider} |-<a name="bytebase-v1-UpdateIssueCommentRequest"></a>+<a name="bytebase-v1-ExchangeToken"></a>-### UpdateIssueCommentRequest+### ExchangeToken| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |-| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| name | [string](#string) | | The name of the vcs provider to retrieve the linked projects. Format: vcsProviders/{vcsProvider} |+| code | [string](#string) | | |+| type | [VCSProvider.Type](#bytebase-v1-VCSProvider-Type) | | |+| instance_url | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |-<a name="bytebase-v1-UpdateIssueRequest"></a>+<a name="bytebase-v1-ExchangeTokenRequest"></a>-### UpdateIssueRequest+### ExchangeTokenRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issue | [Issue](#bytebase-v1-Issue) | | The issue to update.--The issue's `name` field is used to identify the issue to update. Format: projects/{project}/issues/{issue} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |---+| exchange_token | [ExchangeToken](#bytebase-v1-ExchangeToken) | | |--<a name="bytebase-v1-ApprovalNode-GroupValue"></a>-### ApprovalNode.GroupValue-The predefined user groups are:-- WORKSPACE_OWNER-- WORKSPACE_DBA-- PROJECT_OWNER-- PROJECT_MEMBER-| Name | Number | Description |-| ---- | ------ | ----------- |-| GROUP_VALUE_UNSPECIFILED | 0 | |-| WORKSPACE_OWNER | 1 | |-| WORKSPACE_DBA | 2 | |-| PROJECT_OWNER | 3 | |-| PROJECT_MEMBER | 4 | |+<a name="bytebase-v1-GetVCSProviderRequest"></a>+### GetVCSProviderRequest-<a name="bytebase-v1-ApprovalNode-Type"></a>-### ApprovalNode.Type-Type of the ApprovalNode.-type determines who should approve this node.-ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.-See GroupValue below for the predefined user groups.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the vcs provider to retrieve. Format: vcsProviders/{vcsProvider} |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| ANY_IN_GROUP | 1 | |-<a name="bytebase-v1-ApprovalStep-Type"></a>-### ApprovalStep.Type-Type of the ApprovalStep-ALL means every node must be approved to proceed.-ANY means approving any node will proceed.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| ALL | 1 | |-| ANY | 2 | |+<a name="bytebase-v1-ListProjectGitOpsInfoRequest"></a>+### ListProjectGitOpsInfoRequest-<a name="bytebase-v1-Issue-Approver-Status"></a>-### Issue.Approver.Status+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the vcs provider to retrieve the linked projects. Format: vcsProviders/{vcsProvider} |-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| APPROVED | 2 | |-| REJECTED | 3 | |-<a name="bytebase-v1-Issue-RiskLevel"></a>-### Issue.RiskLevel+<a name="bytebase-v1-ListProjectGitOpsInfoResponse"></a>+### ListProjectGitOpsInfoResponse-| Name | Number | Description |-| ---- | ------ | ----------- |-| RISK_LEVEL_UNSPECIFIED | 0 | |-| LOW | 1 | |-| MODERATE | 2 | |-| HIGH | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| project_gitops_info | [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo) | repeated | The binding between vcs provider and project. |-<a name="bytebase-v1-Issue-Type"></a>-### Issue.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| DATABASE_CHANGE | 1 | |-| GRANT_REQUEST | 2 | |-| DATABASE_DATA_EXPORT | 3 | |+<a name="bytebase-v1-ListVCSProvidersRequest"></a>-<a name="bytebase-v1-IssueStatus"></a>+### ListVCSProvidersRequest-### IssueStatus-| Name | Number | Description |-| ---- | ------ | ----------- |-| ISSUE_STATUS_UNSPECIFIED | 0 | |-| OPEN | 1 | |-| DONE | 2 | |-| CANCELED | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| page_size | [int32](#int32) | | Not used. The maximum number of vcs provider to return. The service may return fewer than this value. If unspecified, at most 100 vcs provider will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListVCSProviders` call. Provide this to retrieve the subsequent page. |---<a name="bytebase-v1-IssueService"></a>-### IssueService+<a name="bytebase-v1-ListVCSProvidersResponse"></a>+### ListVCSProvidersResponse-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetIssue | [GetIssueRequest](#bytebase-v1-GetIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| CreateIssue | [CreateIssueRequest](#bytebase-v1-CreateIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| ListIssues | [ListIssuesRequest](#bytebase-v1-ListIssuesRequest) | [ListIssuesResponse](#bytebase-v1-ListIssuesResponse) | |-| SearchIssues | [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest) | [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse) | Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. |-| UpdateIssue | [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| CreateIssueComment | [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |-| UpdateIssueComment | [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |-| BatchUpdateIssuesStatus | [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest) | [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse) | |-| ApproveIssue | [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| RejectIssue | [RejectIssueRequest](#bytebase-v1-RejectIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| RequestIssue | [RequestIssueRequest](#bytebase-v1-RequestIssueRequest) | [Issue](#bytebase-v1-Issue) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| vcs_providers | [VCSProvider](#bytebase-v1-VCSProvider) | repeated | The list of vcs providers. |+| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="v1_logging_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/logging_service.proto-<a name="bytebase-v1-ExportLogsRequest"></a>+<a name="bytebase-v1-OAuthToken"></a>-### ExportLogsRequest+### OAuthToken| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | Consistent with filter and order by in ListLogs. filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |-| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |+| access_token | [string](#string) | | |+| refresh_token | [string](#string) | | |+| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-ExportLogsResponse"></a>+<a name="bytebase-v1-ProjectGitOpsInfo"></a>-### ExportLogsResponse+### ProjectGitOpsInfo| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| content | [bytes](#bytes) | | |+| name | [string](#string) | | The name of the linked repository, generated by the server, and also is the unique identifier. Format: projects/{project}/gitOpsInfo |+| vcs_uid | [string](#string) | | The uid for related VCS. |+| title | [string](#string) | | The title of the repository. For axample: sample. |+| full_path | [string](#string) | | The full_path of the repository. For example: bytebase/sample. |+| web_url | [string](#string) | | The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample. |+| branch_filter | [string](#string) | | The branch Bytebase listens to for changes. For example: main. |+| base_directory | [string](#string) | | The root directory where Bytebase observes the file change. If empty, then it observes the entire repository. |+| file_path_template | [string](#string) | | Bytebase only observes the file path name matching the template pattern **relative** to the base directory. Required Placeholder: {{DB_NAME}}, {{VERSION}}, {{TYPE]}. Optional Placeholder: {{ENV_ID}}, {{DESCRIPTION}}. Optional Directory Wildcard: '*', '**'. |+| schema_path_template | [string](#string) | | The file path template for storing the latest schema auto-generated by Bytebase after migration. If empty, then Bytebase won't auto generate it. If specified, required placeholder: {{DB_NAME}}, optional placeholder: {{ENV_ID}}. |+| sheet_path_template | [string](#string) | | The file path template for matching the sql files for sheet. If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}}, {{DB_NAME}}. |+| external_id | [string](#string) | | The reposition external id in target VCS. |+| enable_sql_review_ci | [bool](#bool) | | Set to true to enable SQL review CI for all PR/MRs. |+| webhook_endpoint_id | [string](#string) | | The webhook endpoint ID of the repository. |+| access_token | [string](#string) | | |+| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| refresh_token | [string](#string) | | |-<a name="bytebase-v1-GetLogRequest"></a>+<a name="bytebase-v1-SearchVCSProviderProjectsRequest"></a>-### GetLogRequest+### SearchVCSProviderProjectsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log to retrieve. Format: logs/{uid} |+| name | [string](#string) | | The name of the vcs provider to retrieve the vcs provider repositories. Format: vcsProviders/{vcsProvider} |+| access_token | [string](#string) | | |+| refresh_token | [string](#string) | | |-<a name="bytebase-v1-ListLogsRequest"></a>+<a name="bytebase-v1-SearchVCSProviderProjectsResponse"></a>-### ListLogsRequest+### SearchVCSProviderProjectsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | filter is the filter to apply on the list logs request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. The field only support in filter: - creator, example: - creator = "users/{email}" - resource, example: - resource = "projects/{project resource id}" - level, example: - level = "INFO" - level = "ERROR | WARN" - action, example: - action = "ACTION_MEMBER_CREATE" - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE" - create_time, example: - create_time <= "2022-01-01T12:00:00.000Z" - create_time >= "2022-01-01T12:00:00.000Z" For example: List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' |-| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |-| page_size | [int32](#int32) | | Not used. The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 100 log entries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListLogs` call. Provide this to retrieve the subsequent page. |+| projects | [SearchVCSProviderProjectsResponse.Project](#bytebase-v1-SearchVCSProviderProjectsResponse-Project) | repeated | The list of project in vcs provider. |-<a name="bytebase-v1-ListLogsResponse"></a>+<a name="bytebase-v1-SearchVCSProviderProjectsResponse-Project"></a>-### ListLogsResponse+### SearchVCSProviderProjectsResponse.Project| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| log_entities | [LogEntity](#bytebase-v1-LogEntity) | repeated | The list of log entities. |-| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to `ListLogs` method to retrieve the next page of log entities. |+| id | [string](#string) | | The id of the project in vcs provider. |+| title | [string](#string) | | The title of the project in vcs provider. |+| fullpath | [string](#string) | | The fullpath of the project in vcs provider. |+| web_url | [string](#string) | | Web url of the project in vcs provider. |-<a name="bytebase-v1-LogEntity"></a>+<a name="bytebase-v1-UpdateVCSProviderRequest"></a>-### LogEntity+### UpdateVCSProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log. Format: logs/{uid} |-| creator | [string](#string) | | The creator of the log entity. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| action | [LogEntity.Action](#bytebase-v1-LogEntity-Action) | | |-| level | [LogEntity.Level](#bytebase-v1-LogEntity-Level) | | |-| resource | [string](#string) | | The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE". Format: For ACTION_MEMBER_*: users/{email} For ACTION_ISSUE_*: issues/{issue uid} For ACTION_PIPELINE_*: pipelines/{pipeline uid} For ACTION_PROJECT_*: projects/{project resource id} For ACTION_DATABASE_*: instances/{instance resource id} |-| payload | [string](#string) | | The payload of the log entity. TODO: use oneof |-| comment | [string](#string) | | |+| vcs_provider | [VCSProvider](#bytebase-v1-VCSProvider) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |-+<a name="bytebase-v1-VCSProvider"></a>-<a name="bytebase-v1-LogEntity-Action"></a>+### VCSProvider-### LogEntity.Action-| Name | Number | Description |-| ---- | ------ | ----------- |-| ACTION_UNSPECIFIED | 0 | In worksapce resource only. |-| ACTION_MEMBER_CREATE | 1 | Member related activity types. Enum value 1 - 20+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the vcs provider, generated by the server, and also is the unique identifier. Format: vcsProviders/{vcsProvider} |+| title | [string](#string) | | The title of the vcs provider. It is used to display in the UI. Specified by the client. |+| type | [VCSProvider.Type](#bytebase-v1-VCSProvider-Type) | | |+| url | [string](#string) | | The url of the vcs provider. Specified by the client. For example: github.com, gitlab.com, gitlab.bytebase.com. |+| api_url | [string](#string) | | The API url of the vcs provider. Derived from the url. |+| application_id | [string](#string) | | The application ID of the vcs provider. Specified by the client. |+| secret | [string](#string) | | The application secret of the vcs provider. Specified by the client. |-ACTION_MEMBER_CREATE is the type for creating a new member. |-| ACTION_MEMBER_ROLE_UPDATE | 2 | ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role. |-| ACTION_MEMBER_ACTIVATE | 3 | ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members. |-| ACTION_MEMBER_DEACTIVE | 4 | ACTION_MEMBER_DEACTIVE is the type for deactiving members. |-| ACTION_ISSUE_CREATE | 21 | Issue related activity types. Enum value 21 - 40-ACTION_ISSUE_CREATE is the type for creating a new issue. |-| ACTION_ISSUE_COMMENT_CREATE | 22 | ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue. |-| ACTION_ISSUE_FIELD_UPDATE | 23 | ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field. |-| ACTION_ISSUE_STATUS_UPDATE | 24 | ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status. |-| ACTION_ISSUE_APPROVAL_NOTIFY | 25 | ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |-| ACTION_PIPELINE_STAGE_STATUS_UPDATE | 31 | ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |-| ACTION_PIPELINE_TASK_STATUS_UPDATE | 32 | ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| ACTION_PIPELINE_TASK_FILE_COMMIT | 33 | ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement. |-| ACTION_PIPELINE_TASK_STATEMENT_UPDATE | 34 | ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |-| ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 35 | ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |-| ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE | 36 | ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| ACTION_PIPELINE_TASK_PRIOR_BACKUP | 37 | ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity. |-| ACTION_PROJECT_REPOSITORY_PUSH | 41 | Project related activity types. Enum value 41 - 60-ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |-| ACTION_PROJECT_MEMBER_CREATE | 42 | ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project. |-| ACTION_PROJECT_MEMBER_DELETE | 43 | ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project. |-| ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE | 44 | ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE is the type for database PITR recovery done. |-| ACTION_PROJECT_DATABASE_TRANSFER | 45 | ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another. |-| ACTION_DATABASE_SQL_EDITOR_QUERY | 61 | Database related activity types. Enum value 61 - 80-ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |-| ACTION_DATABASE_SQL_EXPORT | 62 | ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL. |+-<a name="bytebase-v1-LogEntity-Level"></a>+<a name="bytebase-v1-VCSProvider-Type"></a>-### LogEntity.Level+### VCSProvider.Type| Name | Number | Description || ---- | ------ | ----------- |-| LEVEL_UNSPECIFIED | 0 | |-| LEVEL_INFO | 1 | LEVEL_INFO is the type for information. |-| LEVEL_WARNING | 2 | LEVEL_WARNING is the type for warning. |-| LEVEL_ERROR | 3 | LEVEL_ERROR is the type for error. |+| TYPE_UNSPECIFIED | 0 | |+| GITHUB | 1 | GitHub type. Using for GitHub community edition(ce). |+| GITLAB | 2 | GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee). |+| BITBUCKET | 3 | BitBucket type. Using for BitBucket cloud or BitBucket server. |+| AZURE_DEVOPS | 4 | Azure DevOps. Using for Azure DevOps GitOps workflow. |@@ -6189,16 +6184,21 @@ ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query. |-<a name="bytebase-v1-LoggingService"></a>+<a name="bytebase-v1-VCSProviderService"></a>-### LoggingService+### VCSProviderService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| ListLogs | [ListLogsRequest](#bytebase-v1-ListLogsRequest) | [ListLogsResponse](#bytebase-v1-ListLogsResponse) | |-| GetLog | [GetLogRequest](#bytebase-v1-GetLogRequest) | [LogEntity](#bytebase-v1-LogEntity) | |-| ExportLogs | [ExportLogsRequest](#bytebase-v1-ExportLogsRequest) | [ExportLogsResponse](#bytebase-v1-ExportLogsResponse) | |+| GetVCSProvider | [GetVCSProviderRequest](#bytebase-v1-GetVCSProviderRequest) | [VCSProvider](#bytebase-v1-VCSProvider) | |+| ListVCSProviders | [ListVCSProvidersRequest](#bytebase-v1-ListVCSProvidersRequest) | [ListVCSProvidersResponse](#bytebase-v1-ListVCSProvidersResponse) | |+| CreateVCSProvider | [CreateVCSProviderRequest](#bytebase-v1-CreateVCSProviderRequest) | [VCSProvider](#bytebase-v1-VCSProvider) | |+| UpdateVCSProvider | [UpdateVCSProviderRequest](#bytebase-v1-UpdateVCSProviderRequest) | [VCSProvider](#bytebase-v1-VCSProvider) | |+| ExchangeToken | [ExchangeTokenRequest](#bytebase-v1-ExchangeTokenRequest) | [OAuthToken](#bytebase-v1-OAuthToken) | |+| DeleteVCSProvider | [DeleteVCSProviderRequest](#bytebase-v1-DeleteVCSProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| SearchVCSProviderProjects | [SearchVCSProviderProjectsRequest](#bytebase-v1-SearchVCSProviderProjectsRequest) | [SearchVCSProviderProjectsResponse](#bytebase-v1-SearchVCSProviderProjectsResponse) | |+| ListProjectGitOpsInfo | [ListProjectGitOpsInfoRequest](#bytebase-v1-ListProjectGitOpsInfoRequest) | [ListProjectGitOpsInfoResponse](#bytebase-v1-ListProjectGitOpsInfoResponse) | |@@ -7020,7 +7020,7 @@ The database group's `name` field is used to identify the database group to| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project_gitops_info | [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo) | | The binding for the project and external version control. |+| project_gitops_info | [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo) | | The binding for the project and vcs provider. || update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The mask of the fields to be updated. || allow_missing | [bool](#bool) | | If true, the gitops will be created if it does not exist. |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 2869a3e573..0de721fc3d 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1193,89 +1193,6 @@</li>- <li>- <a href="#v1%2fexternalvs_service.proto">v1/externalvs_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.CreateExternalVersionControlRequest"><span class="badge">M</span>CreateExternalVersionControlRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DeleteExternalVersionControlRequest"><span class="badge">M</span>DeleteExternalVersionControlRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ExchangeToken"><span class="badge">M</span>ExchangeToken</a>- </li>-- <li>- <a href="#bytebase.v1.ExchangeTokenRequest"><span class="badge">M</span>ExchangeTokenRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ExternalVersionControl"><span class="badge">M</span>ExternalVersionControl</a>- </li>-- <li>- <a href="#bytebase.v1.GetExternalVersionControlRequest"><span class="badge">M</span>GetExternalVersionControlRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListExternalVersionControlsRequest"><span class="badge">M</span>ListExternalVersionControlsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListExternalVersionControlsResponse"><span class="badge">M</span>ListExternalVersionControlsResponse</a>- </li>-- <li>- <a href="#bytebase.v1.ListProjectGitOpsInfoRequest"><span class="badge">M</span>ListProjectGitOpsInfoRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListProjectGitOpsInfoResponse"><span class="badge">M</span>ListProjectGitOpsInfoResponse</a>- </li>-- <li>- <a href="#bytebase.v1.OAuthToken"><span class="badge">M</span>OAuthToken</a>- </li>-- <li>- <a href="#bytebase.v1.ProjectGitOpsInfo"><span class="badge">M</span>ProjectGitOpsInfo</a>- </li>-- <li>- <a href="#bytebase.v1.SearchExternalVersionControlProjectsRequest"><span class="badge">M</span>SearchExternalVersionControlProjectsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchExternalVersionControlProjectsResponse"><span class="badge">M</span>SearchExternalVersionControlProjectsResponse</a>- </li>-- <li>- <a href="#bytebase.v1.SearchExternalVersionControlProjectsResponse.Project"><span class="badge">M</span>SearchExternalVersionControlProjectsResponse.Project</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateExternalVersionControlRequest"><span class="badge">M</span>UpdateExternalVersionControlRequest</a>- </li>--- <li>- <a href="#bytebase.v1.ExternalVersionControl.Type"><span class="badge">E</span>ExternalVersionControl.Type</a>- </li>---- <li>- <a href="#bytebase.v1.ExternalVersionControlService"><span class="badge">S</span>ExternalVersionControlService</a>- </li>-- </ul>- </li>--<li><a href="#v1%2fidp_service.proto">v1/idp_service.proto</a><ul>@@ -1592,6 +1509,89 @@</li>+ <li>+ <a href="#v1%2fvcs_provider_service.proto">v1/vcs_provider_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.CreateVCSProviderRequest"><span class="badge">M</span>CreateVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.DeleteVCSProviderRequest"><span class="badge">M</span>DeleteVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExchangeToken"><span class="badge">M</span>ExchangeToken</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExchangeTokenRequest"><span class="badge">M</span>ExchangeTokenRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.GetVCSProviderRequest"><span class="badge">M</span>GetVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListProjectGitOpsInfoRequest"><span class="badge">M</span>ListProjectGitOpsInfoRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListProjectGitOpsInfoResponse"><span class="badge">M</span>ListProjectGitOpsInfoResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListVCSProvidersRequest"><span class="badge">M</span>ListVCSProvidersRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListVCSProvidersResponse"><span class="badge">M</span>ListVCSProvidersResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.OAuthToken"><span class="badge">M</span>OAuthToken</a>+ </li>++ <li>+ <a href="#bytebase.v1.ProjectGitOpsInfo"><span class="badge">M</span>ProjectGitOpsInfo</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchVCSProviderProjectsRequest"><span class="badge">M</span>SearchVCSProviderProjectsRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchVCSProviderProjectsResponse"><span class="badge">M</span>SearchVCSProviderProjectsResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchVCSProviderProjectsResponse.Project"><span class="badge">M</span>SearchVCSProviderProjectsResponse.Project</a>+ </li>++ <li>+ <a href="#bytebase.v1.UpdateVCSProviderRequest"><span class="badge">M</span>UpdateVCSProviderRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.VCSProvider"><span class="badge">M</span>VCSProvider</a>+ </li>+++ <li>+ <a href="#bytebase.v1.VCSProvider.Type"><span class="badge">E</span>VCSProvider.Type</a>+ </li>++++ <li>+ <a href="#bytebase.v1.VCSProviderService"><span class="badge">S</span>VCSProviderService</a>+ </li>++ </ul>+ </li>++<li><a href="#v1%2fproject_service.proto">v1/project_service.proto</a><ul>@@ -13520,12 +13520,12 @@ Format: environments/{environment} </p></td><div class="file-heading">- <h2 id="v1/externalvs_service.proto">v1/externalvs_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateExternalVersionControlRequest">CreateExternalVersionControlRequest</h3>+ <h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3><p></p>@@ -13536,10 +13536,21 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>external_version_control</td>- <td><a href="#bytebase.v1.ExternalVersionControl">ExternalVersionControl</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td></td>+ <td><p>The identity provider to create. </p></td>+ </tr>++ <tr>+ <td>identity_provider_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The ID to use for the identity provider, which will become the final component of+the identity provider's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td></tr></tbody>@@ -13549,7 +13560,7 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.DeleteExternalVersionControlRequest">DeleteExternalVersionControlRequest</h3>+ <h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3><p></p>@@ -13563,8 +13574,8 @@ Format: environments/{environment} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the external version control to delete.-Format: externalVersionControls/{externalVersionControl} </p></td>+ <td><p>The name of the identity provider to delete.+Format: idps/{identity_provider} </p></td></tr></tbody>@@ -13574,8 +13585,8 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ExchangeToken">ExchangeToken</h3>- <p></p>+ <h3 id="bytebase.v1.FieldMapping">FieldMapping</h3>+ <p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p><p>e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.</p><p>Then the identifier of FieldMapping will be `login`, display_name will be `name`,</p><p>and email will be `email`.</p><p>reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user</p><table class="field-table">@@ -13585,46 +13596,31 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the external version control to retrieve the linked projects.-Format: externalVersionControls/{externalVersionControl} </p></td>- </tr>-- <tr>- <td>code</td>+ <td>identifier</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.ExternalVersionControl.Type">ExternalVersionControl.Type</a></td>- <td></td>- <td><p> </p></td>+ <td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td></tr><tr>- <td>instance_url</td>+ <td>display_name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>DisplayName is the field name of display name in 3rd-party idp user info. </p></td></tr><tr>- <td>client_id</td>+ <td>email</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Email is the field name of primary email in 3rd-party idp user info. </p></td></tr><tr>- <td>client_secret</td>+ <td>phone</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Phone is the field name of primary phone in 3rd-party idp user info. </p></td></tr></tbody>@@ -13634,7 +13630,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ExchangeTokenRequest">ExchangeTokenRequest</h3>+ <h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3><p></p>@@ -13645,8 +13641,8 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>exchange_token</td>- <td><a href="#bytebase.v1.ExchangeToken">ExchangeToken</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -13658,7 +13654,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ExternalVersionControl">ExternalVersionControl</h3>+ <h3 id="bytebase.v1.IdentityProvider">IdentityProvider</h3><p></p>@@ -13672,51 +13668,50 @@ Format: externalVersionControls/{externalVersionControl} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the external version control, generated by the server, and also is the unique identifier.-Format: externalVersionControls/{externalVersionControl} </p></td>+ <td><p>The name of the identity provider.+Format: idps/{identity_provider} </p></td></tr><tr>- <td>title</td>+ <td>uid</td><td><a href="#string">string</a></td><td></td>- <td><p>The title of the external version control. It is used to display in the UI. Specified by the client. </p></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.ExternalVersionControl.Type">ExternalVersionControl.Type</a></td>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td><td></td><td><p> </p></td></tr><tr>- <td>url</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The url of the external version control. Specified by the client.-For example: github.com, gitlab.com, gitlab.bytebase.com. </p></td>+ <td><p> </p></td></tr><tr>- <td>api_url</td>+ <td>domain</td><td><a href="#string">string</a></td><td></td>- <td><p>The API url of the external version control. Derived from the url. </p></td>+ <td><p> </p></td></tr><tr>- <td>application_id</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td><td></td>- <td><p>The application ID of the external version control. Specified by the client. </p></td>+ <td><p> </p></td></tr><tr>- <td>secret</td>- <td><a href="#string">string</a></td>+ <td>config</td>+ <td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td><td></td>- <td><p>The application secret of the external version control. Specified by the client. </p></td>+ <td><p> </p></td></tr></tbody>@@ -13726,7 +13721,7 @@ For example: github.com, gitlab.com, gitlab.bytebase.com. </p></td>- <h3 id="bytebase.v1.GetExternalVersionControlRequest">GetExternalVersionControlRequest</h3>+ <h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3><p></p>@@ -13737,11 +13732,24 @@ For example: github.com, gitlab.com, gitlab.bytebase.com. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>oauth2_config</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>oidc_config</td>+ <td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>ldap_config</td>+ <td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td><td></td>- <td><p>The name of the external version control to retrieve.-Format: externalVersionControls/{externalVersionControl} </p></td>+ <td><p> </p></td></tr></tbody>@@ -13751,8 +13759,8 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ListExternalVersionControlsRequest">ListExternalVersionControlsRequest</h3>- <p></p>+ <h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3>+ <p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p><table class="field-table">@@ -13762,77 +13770,73 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>host</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Not used. The maximum number of external version control to return. The service may return fewer than this value.-If unspecified, at most 100 external version control will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p>Host is the hostname or IP address of the LDAP server, e.g.+"ldap.example.com". </p></td></tr><tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>port</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Not used. A page token, received from a previous `ListExternalVersionControls` call.-Provide this to retrieve the subsequent page. </p></td>+ <td><p>Port is the port number of the LDAP server, e.g. 389. When not set, the+default port of the corresponding security protocol will be used, i.e. 389+for StartTLS and 636 for LDAPS. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListExternalVersionControlsResponse">ListExternalVersionControlsResponse</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>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td>+ </tr><tr>- <td>external_version_controls</td>- <td><a href="#bytebase.v1.ExternalVersionControl">ExternalVersionControl</a></td>- <td>repeated</td>- <td><p>The list of external version control. </p></td>+ <td>bind_dn</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>BindDN is the DN of the user to bind as a service account to perform+search requests. </p></td></tr><tr>- <td>next_page_token</td>+ <td>bind_password</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>BindPassword is the password of the user to bind as a service account. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListProjectGitOpsInfoRequest">ListProjectGitOpsInfoRequest</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>base_dn</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td>+ </tr><tr>- <td>name</td>+ <td>user_filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td>+ </tr>++ <tr>+ <td>security_protocol</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the external version control to retrieve the linked projects.-Format: externalVersionControls/{externalVersionControl} </p></td>+ <td><p>SecurityProtocol is the security protocol to be used for establishing+connections with the LDAP server. It should be either StartTLS or LDAPS, and+cannot be empty. </p></td>+ </tr>++ <tr>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td></td>+ <td><p>FieldMapping is the mapping of the user attributes returned by the LDAP+server. </p></td></tr></tbody>@@ -13842,7 +13846,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ListProjectGitOpsInfoResponse">ListProjectGitOpsInfoResponse</h3>+ <h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</h3><p></p>@@ -13853,10 +13857,31 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>project_gitops_info</td>- <td><a href="#bytebase.v1.ProjectGitOpsInfo">ProjectGitOpsInfo</a></td>- <td>repeated</td>- <td><p>The binding between external version control and project. </p></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of identity providers to return. The service may return fewer than+this value.+If unspecified, at most 50 will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListIdentityProviders` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIdentityProviders` must match+the call that provided the page token. </p></td>+ </tr>++ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted identity providers if specified. </p></td></tr></tbody>@@ -13866,7 +13891,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.OAuthToken">OAuthToken</h3>+ <h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</h3><p></p>@@ -13877,24 +13902,18 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>access_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>identity_providers</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>repeated</td>+ <td><p>The identity providers from the specified request. </p></td></tr><tr>- <td>refresh_token</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>expires_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -13904,8 +13923,8 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ProjectGitOpsInfo">ProjectGitOpsInfo</h3>- <p></p>+ <h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3>+ <p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p><table class="field-table">@@ -13915,120 +13934,154 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>name</td>+ <td>auth_url</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the linked repository, generated by the server, and also is the unique identifier.-Format: projects/{project}/gitOpsInfo </p></td>+ <td><p> </p></td></tr><tr>- <td>vcs_uid</td>+ <td>token_url</td><td><a href="#string">string</a></td><td></td>- <td><p>The uid for related VCS. </p></td>+ <td><p> </p></td></tr><tr>- <td>title</td>+ <td>user_info_url</td><td><a href="#string">string</a></td><td></td>- <td><p>The title of the repository. For axample: sample. </p></td>+ <td><p> </p></td></tr><tr>- <td>full_path</td>+ <td>client_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The full_path of the repository. For example: bytebase/sample. </p></td>+ <td><p> </p></td></tr><tr>- <td>web_url</td>+ <td>client_secret</td><td><a href="#string">string</a></td><td></td>- <td><p>The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample. </p></td>+ <td><p> </p></td></tr><tr>- <td>branch_filter</td>+ <td>scopes</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The branch Bytebase listens to for changes. For example: main. </p></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>base_directory</td>- <td><a href="#string">string</a></td>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td>- <td><p>The root directory where Bytebase observes the file change. If empty, then it observes the entire repository. </p></td>+ <td><p> </p></td></tr><tr>- <td>file_path_template</td>- <td><a href="#string">string</a></td>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Bytebase only observes the file path name matching the template pattern **relative** to the base directory.-Required Placeholder: {{DB_NAME}}, {{VERSION}}, {{TYPE]}.-Optional Placeholder: {{ENV_ID}}, {{DESCRIPTION}}.-Optional Directory Wildcard: '*', '**'. </p></td>+ <td><p> </p></td></tr><tr>- <td>schema_path_template</td>- <td><a href="#string">string</a></td>+ <td>auth_style</td>+ <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td>- <td><p>The file path template for storing the latest schema auto-generated by Bytebase after migration.-If empty, then Bytebase won't auto generate it.-If specified, required placeholder: {{DB_NAME}}, optional placeholder: {{ENV_ID}}. </p></td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</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>sheet_path_template</td>+ <td>code</td><td><a href="#string">string</a></td><td></td>- <td><p>The file path template for matching the sql files for sheet.-If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}}, {{DB_NAME}}. </p></td>+ <td><p>Authorize code from website. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3>+ <p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>external_id</td>+ <td>issuer</td><td><a href="#string">string</a></td><td></td>- <td><p>The reposition external id in target VCS. </p></td>+ <td><p> </p></td></tr><tr>- <td>enable_sql_review_ci</td>- <td><a href="#bool">bool</a></td>+ <td>client_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Set to true to enable SQL review CI for all PR/MRs. </p></td>+ <td><p> </p></td></tr><tr>- <td>webhook_endpoint_id</td>+ <td>client_secret</td><td><a href="#string">string</a></td><td></td>- <td><p>The webhook endpoint ID of the repository. </p></td>+ <td><p> </p></td></tr><tr>- <td>access_token</td>+ <td>scopes</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td><td><p> </p></td></tr><tr>- <td>expires_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>refresh_token</td>- <td><a href="#string">string</a></td>+ <td>auth_style</td>+ <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p> </p></td></tr>@@ -14040,7 +14093,7 @@ If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}},- <h3 id="bytebase.v1.SearchExternalVersionControlProjectsRequest">SearchExternalVersionControlProjectsRequest</h3>+ <h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3><p></p>@@ -14051,23 +14104,15 @@ If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}},<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the external version control to retrieve the external version control repositories.-Format: externalVersionControls/{externalVersionControl} </p></td>- </tr>-- <tr>- <td>access_token</td>- <td><a href="#string">string</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td>- <td><p> </p></td>+ <td><p>The identity provider to test connection including uncreated. </p></td></tr><tr>- <td>refresh_token</td>- <td><a href="#string">string</a></td>+ <td>oauth2_context</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td><td></td><td><p> </p></td></tr>@@ -14079,31 +14124,14 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.SearchExternalVersionControlProjectsResponse">SearchExternalVersionControlProjectsResponse</h3>+ <h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</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>projects</td>- <td><a href="#bytebase.v1.SearchExternalVersionControlProjectsResponse.Project">SearchExternalVersionControlProjectsResponse.Project</a></td>- <td>repeated</td>- <td><p>The list of project in external version control. </p></td>- </tr>-- </tbody>- </table>--- <h3 id="bytebase.v1.SearchExternalVersionControlProjectsResponse.Project">SearchExternalVersionControlProjectsResponse.Project</h3>+ <h3 id="bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</h3><p></p>@@ -14114,31 +14142,11 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The id of the project in external version control. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The title of the project in external version control. </p></td>- </tr>-- <tr>- <td>fullpath</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The fullpath of the project in external version control. </p></td>- </tr>-- <tr>- <td>web_url</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Web url of the project in external version control. </p></td>+ <td><p>The name of the deleted identity provider.+Format: idps/{identity_provider} </p></td></tr></tbody>@@ -14148,7 +14156,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.UpdateExternalVersionControlRequest">UpdateExternalVersionControlRequest</h3>+ <h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</h3><p></p>@@ -14159,17 +14167,20 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>external_version_control</td>- <td><a href="#bytebase.v1.ExternalVersionControl">ExternalVersionControl</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td>- <td><p> </p></td>+ <td><p>The identity provider to update.++The identity provider's `name` field is used to identify the identity provider to update.+Format: idps/{identity_provider} </p></td></tr><tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>The list of fields to be updated. </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -14181,7 +14192,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ExternalVersionControl.Type">ExternalVersionControl.Type</h3>+ <h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3><p></p><table class="enum-table"><thead>@@ -14190,33 +14201,58 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>GITHUB</td>+ <td>OAUTH2</td><td>1</td>- <td><p>GitHub type. Using for GitHub community edition(ce).</p></td>+ <td><p></p></td></tr><tr>- <td>GITLAB</td>+ <td>OIDC</td><td>2</td>- <td><p>GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee).</p></td>+ <td><p></p></td></tr><tr>- <td>BITBUCKET</td>+ <td>LDAP</td><td>3</td>- <td><p>BitBucket type. Using for BitBucket cloud or BitBucket server.</p></td>+ <td><p></p></td></tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>AZURE_DEVOPS</td>- <td>4</td>- <td><p>Azure DevOps. Using for Azure DevOps GitOps workflow.</p></td>+ <td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>IN_PARAMS</td>+ <td>1</td>+ <td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST body+as application/x-www-form-urlencoded parameters.</p></td>+ </tr>++ <tr>+ <td>IN_HEADER</td>+ <td>2</td>+ <td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td></tr></tbody>@@ -14226,7 +14262,7 @@ Format: externalVersionControls/{externalVersionControl} </p></td>- <h3 id="bytebase.v1.ExternalVersionControlService">ExternalVersionControlService</h3>+ <h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3><p></p><table class="enum-table"><thead>@@ -14235,58 +14271,51 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>GetExternalVersionControl</td>- <td><a href="#bytebase.v1.GetExternalVersionControlRequest">GetExternalVersionControlRequest</a></td>- <td><a href="#bytebase.v1.ExternalVersionControl">ExternalVersionControl</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListExternalVersionControls</td>- <td><a href="#bytebase.v1.ListExternalVersionControlsRequest">ListExternalVersionControlsRequest</a></td>- <td><a href="#bytebase.v1.ListExternalVersionControlsResponse">ListExternalVersionControlsResponse</a></td>+ <td>GetIdentityProvider</td>+ <td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>CreateExternalVersionControl</td>- <td><a href="#bytebase.v1.CreateExternalVersionControlRequest">CreateExternalVersionControlRequest</a></td>- <td><a href="#bytebase.v1.ExternalVersionControl">ExternalVersionControl</a></td>+ <td>ListIdentityProviders</td>+ <td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>+ <td><a href="#bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</a></td><td><p></p></td></tr><tr>- <td>UpdateExternalVersionControl</td>- <td><a href="#bytebase.v1.UpdateExternalVersionControlRequest">UpdateExternalVersionControlRequest</a></td>- <td><a href="#bytebase.v1.ExternalVersionControl">ExternalVersionControl</a></td>+ <td>CreateIdentityProvider</td>+ <td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>ExchangeToken</td>- <td><a href="#bytebase.v1.ExchangeTokenRequest">ExchangeTokenRequest</a></td>- <td><a href="#bytebase.v1.OAuthToken">OAuthToken</a></td>+ <td>UpdateIdentityProvider</td>+ <td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>DeleteExternalVersionControl</td>- <td><a href="#bytebase.v1.DeleteExternalVersionControlRequest">DeleteExternalVersionControlRequest</a></td>+ <td>DeleteIdentityProvider</td>+ <td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td><td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr><tr>- <td>SearchExternalVersionControlProjects</td>- <td><a href="#bytebase.v1.SearchExternalVersionControlProjectsRequest">SearchExternalVersionControlProjectsRequest</a></td>- <td><a href="#bytebase.v1.SearchExternalVersionControlProjectsResponse">SearchExternalVersionControlProjectsResponse</a></td>+ <td>UndeleteIdentityProvider</td>+ <td><a href="#bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>ListProjectGitOpsInfo</td>- <td><a href="#bytebase.v1.ListProjectGitOpsInfoRequest">ListProjectGitOpsInfoRequest</a></td>- <td><a href="#bytebase.v1.ListProjectGitOpsInfoResponse">ListProjectGitOpsInfoResponse</a></td>+ <td>TestIdentityProvider</td>+ <td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</a></td><td><p></p></td></tr>@@ -14311,9 +14340,9 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tr>- <td>GetExternalVersionControl</td>+ <td>GetIdentityProvider</td><td>GET</td>- <td>/v1/{name=externalVersionControls/*}</td>+ <td>/v1/{name=idps/*}</td><td></td></tr>@@ -14321,9 +14350,9 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tr>- <td>ListExternalVersionControls</td>+ <td>ListIdentityProviders</td><td>GET</td>- <td>/v1/externalVersionControls</td>+ <td>/v1/idps</td><td></td></tr>@@ -14331,39 +14360,29 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tr>- <td>CreateExternalVersionControl</td>+ <td>CreateIdentityProvider</td><td>POST</td>- <td>/v1/externalVersionControls</td>- <td>external_version_control</td>+ <td>/v1/idps</td>+ <td>identity_provider</td></tr><tr>- <td>UpdateExternalVersionControl</td>+ <td>UpdateIdentityProvider</td><td>PATCH</td>- <td>/v1/{external_version_control.name=externalVersionControls/*}</td>- <td>external_version_control</td>- </tr>----- <tr>- <td>ExchangeToken</td>- <td>POST</td>- <td>/v1/{exchange_token.name=externalVersionControls/*}:exchangeToken</td>- <td>exchange_token</td>+ <td>/v1/{identity_provider.name=idps/*}</td>+ <td>identity_provider</td></tr><tr>- <td>DeleteExternalVersionControl</td>+ <td>DeleteIdentityProvider</td><td>DELETE</td>- <td>/v1/{name=externalVersionControls/*}</td>+ <td>/v1/{name=idps/*}</td><td></td></tr>@@ -14371,9 +14390,9 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tr>- <td>SearchExternalVersionControlProjects</td>+ <td>UndeleteIdentityProvider</td><td>POST</td>- <td>/v1/{name=externalVersionControls/*}:searchProjects</td>+ <td>/v1/{name=idps/*}:undelete</td><td>*</td></tr>@@ -14381,10 +14400,10 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tr>- <td>ListProjectGitOpsInfo</td>- <td>GET</td>- <td>/v1/{name=externalVersionControls/*}/projects</td>- <td></td>+ <td>TestIdentityProvider</td>+ <td>POST</td>+ <td>/v1/idps/*:test</td>+ <td>*</td></tr>@@ -14395,12 +14414,12 @@ Format: externalVersionControls/{externalVersionControl} </p></td><div class="file-heading">- <h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</h3><p></p>@@ -14411,21 +14430,18 @@ Format: externalVersionControls/{externalVersionControl} </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The identity provider to create. </p></td>+ <td><p>The parent resource where this role will be created.+Format: instances/{instance} </p></td></tr><tr>- <td>identity_provider_id</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td></td>- <td><p>The ID to use for the identity provider, which will become the final component of-the identity provider's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>+ <td><p>The role to create. </p></td></tr></tbody>@@ -14435,7 +14451,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</h3><p></p>@@ -14449,8 +14465,8 @@ are /[a-z][0-9]-/. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the identity provider to delete.-Format: idps/{identity_provider} </p></td>+ <td><p>The name of the role to delete.+Format: instances/{instance}/roles/{role name} </p></td></tr></tbody>@@ -14460,8 +14476,8 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.FieldMapping">FieldMapping</h3>- <p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p><p>e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.</p><p>Then the identifier of FieldMapping will be `login`, display_name will be `name`,</p><p>and email will be `email`.</p><p>reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user</p>+ <h3 id="bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</h3>+ <p></p><table class="field-table">@@ -14471,31 +14487,12 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>identifier</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td>- </tr>-- <tr>- <td>display_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>DisplayName is the field name of display name in 3rd-party idp user info. </p></td>- </tr>-- <tr>- <td>email</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Email is the field name of primary email in 3rd-party idp user info. </p></td>- </tr>-- <tr>- <td>phone</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Phone is the field name of primary phone in 3rd-party idp user info. </p></td>+ <td><p>The name of the role to retrieve.+Format: instances/{instance}/roles/{role name}+The role name is the unique name for the role. </p></td></tr></tbody>@@ -14505,8 +14502,8 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3>- <p></p>+ <h3 id="bytebase.v1.InstanceRole">InstanceRole</h3>+ <p>InstanceRole is the API message for instance role.</p><table class="field-table">@@ -14519,74 +14516,46 @@ Format: idps/{identity_provider} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the role.+Format: instances/{instance}/roles/{role name}+The role name is the unique name for the role. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.IdentityProvider">IdentityProvider</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>name</td>+ <td>role_name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the identity provider.-Format: idps/{identity_provider} </p></td>+ <td><p>The role name. It's unique within the instance. </p></td></tr><tr>- <td>uid</td>+ <td>password</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>+ <td>optional</td>+ <td><p>The role password. </p></td></tr><tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>- <td></td>- <td><p> </p></td>+ <td>connection_limit</td>+ <td><a href="#int32">int32</a></td>+ <td>optional</td>+ <td><p>The connection count limit for this role. </p></td></tr><tr>- <td>title</td>+ <td>valid_until</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>optional</td>+ <td><p>The expiration for the role's password. </p></td></tr><tr>- <td>domain</td>+ <td>attribute</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>config</td>- <td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td>- <td></td>- <td><p> </p></td>+ <td>optional</td>+ <td><p>The role attribute.+For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html+For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html </p></td></tr></tbody>@@ -14596,7 +14565,7 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3>+ <h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</h3><p></p>@@ -14607,111 +14576,39 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>oauth2_config</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>oidc_config</td>- <td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>ldap_config</td>- <td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3>- <p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>host</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>Host is the hostname or IP address of the LDAP server, e.g.-"ldap.example.com". </p></td>+ <td><p>The parent, which owns this collection of roles.+Format: instances/{instance} </p></td></tr><tr>- <td>port</td>+ <td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>Port is the port number of the LDAP server, e.g. 389. When not set, the-default port of the corresponding security protocol will be used, i.e. 389-for StartTLS and 636 for LDAPS. </p></td>- </tr>-- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td>- </tr>-- <tr>- <td>bind_dn</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BindDN is the DN of the user to bind as a service account to perform-search requests. </p></td>- </tr>-- <tr>- <td>bind_password</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BindPassword is the password of the user to bind as a service account. </p></td>- </tr>-- <tr>- <td>base_dn</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td>- </tr>-- <tr>- <td>user_filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td>+ <td><p>The maximum number of roles to return. The service may return fewer than+this value.+If unspecified, at most 50 roles will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>security_protocol</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>SecurityProtocol is the security protocol to be used for establishing-connections with the LDAP server. It should be either StartTLS or LDAPS, and-cannot be empty. </p></td>+ <td><p>A page token, received from a previous `ListRoles` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRoles` must match+the call that provided the page token. </p></td></tr><tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td>refresh</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>FieldMapping is the mapping of the user attributes returned by the LDAP-server. </p></td>+ <td><p>Refresh will refresh and return the latest data. </p></td></tr></tbody>@@ -14721,7 +14618,7 @@ server. </p></td>- <h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</h3>+ <h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</h3><p></p>@@ -14732,31 +14629,18 @@ server. </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of identity providers to return. The service may return fewer than-this value.-If unspecified, at most 50 will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td>roles</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>repeated</td>+ <td><p>The roles from the specified request. </p></td></tr><tr>- <td>page_token</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListIdentityProviders` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIdentityProviders` must match-the call that provided the page token. </p></td>- </tr>-- <tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted identity providers if specified. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -14766,7 +14650,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</h3>+ <h3 id="bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</h3><p></p>@@ -14777,18 +14661,11 @@ the call that provided the page token. </p></td><tbody><tr>- <td>identity_providers</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td>repeated</td>- <td><p>The identity providers from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the deleted role.+Format: instances/{instance}/roles/{role name} </p></td></tr></tbody>@@ -14798,8 +14675,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3>- <p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p>+ <h3 id="bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</h3>+ <p></p><table class="field-table">@@ -14809,66 +14686,20 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>auth_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>token_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>user_info_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_secret</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>scopes</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>The role to update.++The role's `name` and `instance` field is used to identify the role to update.+Format: instances/{instance}/roles/{role name} </p></td></tr><tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>auth_style</td>- <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -14878,7 +14709,153 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</h3>+++++++ <h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetInstanceRole</td>+ <td><a href="#bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListInstanceRoles</td>+ <td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>+ <td><a href="#bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateInstanceRole</td>+ <td><a href="#bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateInstanceRole</td>+ <td><a href="#bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteInstanceRole</td>+ <td><a href="#bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UndeleteInstanceRole</td>+ <td><a href="#bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>++++ <tr>+ <td>GetInstanceRole</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/roles/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListInstanceRoles</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*}/roles</td>+ <td></td>+ </tr>+++++ <tr>+ <td>CreateInstanceRole</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*}/roles</td>+ <td>role</td>+ </tr>+++++ <tr>+ <td>UpdateInstanceRole</td>+ <td>PATCH</td>+ <td>/v1/{role.name=instances/*/roles/*}</td>+ <td>role</td>+ </tr>+++++ <tr>+ <td>DeleteInstanceRole</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/roles/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UndeleteInstanceRole</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/roles/*}:undelete</td>+ <td>*</td>+ </tr>+++ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</h3><p></p>@@ -14889,10 +14866,10 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>code</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Authorize code from website. </p></td>+ <td>steps</td>+ <td><a href="#bytebase.v1.ApprovalStep">ApprovalStep</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -14902,8 +14879,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3>- <p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p>+ <h3 id="bytebase.v1.ApprovalNode">ApprovalNode</h3>+ <p></p><table class="field-table">@@ -14913,51 +14890,61 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>issuer</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</a></td><td></td><td><p> </p></td></tr><tr>- <td>client_id</td>- <td><a href="#string">string</a></td>+ <td>group_value</td>+ <td><a href="#bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td><td></td><td><p> </p></td></tr><tr>- <td>client_secret</td>+ <td>role</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: roles/{role} </p></td></tr><tr>- <td>scopes</td>+ <td>external_node_id</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ApprovalStep">ApprovalStep</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>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</a></td><td></td><td><p> </p></td></tr><tr>- <td>auth_style</td>- <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>- <td></td>+ <td>nodes</td>+ <td><a href="#bytebase.v1.ApprovalNode">ApprovalNode</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -14968,7 +14955,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</h3><p></p>@@ -14979,19 +14966,34 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>flow</td>+ <td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td><td></td>- <td><p>The identity provider to test connection including uncreated. </p></td>+ <td><p> </p></td></tr><tr>- <td>oauth2_context</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>+ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the creator in users/{email} format.+TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. </p></td>+ </tr>+</tbody></table>@@ -14999,14 +15001,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</h3>- <p></p>------ <h3 id="bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</h3><p></p>@@ -15020,8 +15015,15 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted identity provider.-Format: idps/{identity_provider} </p></td>+ <td><p>The name of the issue to add an approver.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>++ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -15031,7 +15033,7 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</h3><p></p>@@ -15042,20 +15044,35 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The identity provider to update.--The identity provider's `name` field is used to identify the identity provider to update.-Format: idps/{identity_provider} </p></td>+ <td><p>The parent resource shared by all issues being updated.+Format: projects/{project}+If the operation spans parents, a dash (-) may be accepted as a wildcard.+We only support updating the status of databases for now. </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>issues</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The list of issues to update.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>++ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>The new status. </p></td>+ </tr>++ <tr>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -15065,236 +15082,78 @@ Format: idps/{identity_provider} </p></td>--- <h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>OAUTH2</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>OIDC</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>LDAP</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3>+ <h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>IN_PARAMS</td>- <td>1</td>- <td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST body-as application/x-www-form-urlencoded parameters.</p></td>- </tr>-- <tr>- <td>IN_HEADER</td>- <td>2</td>- <td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.-This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td>- </tr>-- </tbody>- </table>--++- <h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3>+ <h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetIdentityProvider</td>- <td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListIdentityProviders</td>- <td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>- <td><a href="#bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateIdentityProvider</td>- <td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateIdentityProvider</td>- <td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteIdentityProvider</td>- <td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteIdentityProvider</td>- <td><a href="#bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>TestIdentityProvider</td>- <td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetIdentityProvider</td>- <td>GET</td>- <td>/v1/{name=idps/*}</td>- <td></td>- </tr>----- <tr>- <td>ListIdentityProviders</td>- <td>GET</td>- <td>/v1/idps</td>- <td></td>- </tr>-+ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The issue name+Format: projects/{project}/issues/{issue} </p></td>+ </tr>+ <tr>+ <td>issue_comment</td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>CreateIdentityProvider</td>- <td>POST</td>- <td>/v1/idps</td>- <td>identity_provider</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</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>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project} </p></td>+ </tr>+ <tr>+ <td>issue</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td></td>+ <td><p>The issue to create. </p></td>+ </tr>- <tr>- <td>UpdateIdentityProvider</td>- <td>PATCH</td>- <td>/v1/{identity_provider.name=idps/*}</td>- <td>identity_provider</td>- </tr>----- <tr>- <td>DeleteIdentityProvider</td>- <td>DELETE</td>- <td>/v1/{name=idps/*}</td>- <td></td>- </tr>----- <tr>- <td>UndeleteIdentityProvider</td>- <td>POST</td>- <td>/v1/{name=idps/*}:undelete</td>- <td>*</td>- </tr>----- <tr>- <td>TestIdentityProvider</td>- <td>POST</td>- <td>/v1/idps/*:test</td>- <td>*</td>- </tr>--</tbody></table>+---- <div class="file-heading">- <h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</h3>+ <h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3><p></p>@@ -15305,18 +15164,18 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this role will be created.-Format: instances/{instance} </p></td>+ <td><p>The name of the issue to retrieve.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>role</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>force</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The role to create. </p></td>+ <td><p> </p></td></tr></tbody>@@ -15326,7 +15185,7 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</h3>+ <h3 id="bytebase.v1.GrantRequest">GrantRequest</h3><p></p>@@ -15337,37 +15196,33 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>name</td>+ <td>role</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role to delete.-Format: instances/{instance}/roles/{role name} </p></td>+ <td><p>The requested role.+Format: roles/EXPORTER. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</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>name</td>+ <td>user</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role to retrieve.-Format: instances/{instance}/roles/{role name}-The role name is the unique name for the role. </p></td>+ <td><p>The user to be granted.+Format: users/{email}. </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -15377,8 +15232,8 @@ The role name is the unique name for the role. </p></td>- <h3 id="bytebase.v1.InstanceRole">InstanceRole</h3>- <p>InstanceRole is the API message for instance role.</p>+ <h3 id="bytebase.v1.Issue">Issue</h3>+ <p></p><table class="field-table">@@ -15391,166 +15246,187 @@ The role name is the unique name for the role. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role.-Format: instances/{instance}/roles/{role name}-The role name is the unique name for the role. </p></td>+ <td><p>The name of the issue.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>role_name</td>+ <td>uid</td><td><a href="#string">string</a></td><td></td>- <td><p>The role name. It's unique within the instance. </p></td>- </tr>-- <tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The role password. </p></td>- </tr>-- <tr>- <td>connection_limit</td>- <td><a href="#int32">int32</a></td>- <td>optional</td>- <td><p>The connection count limit for this role. </p></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td></tr><tr>- <td>valid_until</td>+ <td>title</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The expiration for the role's password. </p></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>attribute</td>+ <td>description</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The role attribute.-For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html-For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html </p></td>+ <td></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</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>parent</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td><td></td>- <td><p>The parent, which owns this collection of roles.-Format: instances/{instance} </p></td>+ <td><p> </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td><td></td>- <td><p>The maximum number of roles to return. The service may return fewer than-this value.-If unspecified, at most 50 roles will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>assignee</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListRoles` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match-the call that provided the page token. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>refresh</td>+ <td>assignee_attention</td><td><a href="#bool">bool</a></td><td></td>- <td><p>Refresh will refresh and return the latest data. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</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>approvers</td>+ <td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr><tr>- <td>roles</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>approval_templates</td>+ <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td><td>repeated</td>- <td><p>The roles from the specified request. </p></td>+ <td><p> </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>approval_finding_done</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>If the value is `false`, it means that the backend is still finding matching approval templates.+If `true`, approval_templates & approvers & approval_finding_error are available. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</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>name</td>+ <td>approval_finding_error</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted role.-Format: instances/{instance}/roles/{role name} </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>---+ <tr>+ <td>subscribers</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The subscribers.+Format: users/[email protected] </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>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>plan</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The plan associated with the issue.+Can be empty.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>++ <tr>+ <td>rollout</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The rollout associated with the issue.+Can be empty.+Format: projects/{project}/rollouts/{rollout} </p></td>+ </tr>++ <tr>+ <td>grant_request</td>+ <td><a href="#bytebase.v1.GrantRequest">GrantRequest</a></td>+ <td></td>+ <td><p>Used if the issue type is GRANT_REQUEST. </p></td>+ </tr>++ <tr>+ <td>releasers</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The releasers of the pending stage of the issue rollout, judging+from the rollout policy.+If the policy is auto rollout, the releasers are the project owners and the issue creator.+Format:+- roles/workspaceOwner+- roles/workspaceDBA+- roles/projectOwner+- roles/projectReleaser+- users/{email} </p></td>+ </tr>++ <tr>+ <td>risk_level</td>+ <td><a href="#bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>task_status_count</td>+ <td><a href="#bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</a></td>+ <td>repeated</td>+ <td><p>The status count of the issue.+Keys are the following:+- NOT_STARTED+- SKIPPED+- PENDING+- RUNNING+- DONE+- FAILED+- CANCELED </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</h3>+ <h3 id="bytebase.v1.Issue.Approver">Issue.Approver</h3><p></p>@@ -15561,20 +15437,17 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>role</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td><td></td>- <td><p>The role to update.--The role's `name` and `instance` field is used to identify the role to update.-Format: instances/{instance}/roles/{role name} </p></td>+ <td><p>The new status. </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>principal</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr></tbody>@@ -15584,153 +15457,90 @@ Format: instances/{instance}/roles/{role name} </p></td>+ <h3 id="bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</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>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>-++- <h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3>+ <h3 id="bytebase.v1.IssueComment">IssueComment</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetInstanceRole</td>- <td><a href="#bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListInstanceRoles</td>- <td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>- <td><a href="#bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateInstanceRole</td>- <td><a href="#bytebase.v1.CreateInstanceRoleRequest">CreateInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateInstanceRole</td>- <td><a href="#bytebase.v1.UpdateInstanceRoleRequest">UpdateInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteInstanceRole</td>- <td><a href="#bytebase.v1.DeleteInstanceRoleRequest">DeleteInstanceRoleRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteInstanceRole</td>- <td><a href="#bytebase.v1.UndeleteInstanceRoleRequest">UndeleteInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>--- <tr>- <td>GetInstanceRole</td>- <td>GET</td>- <td>/v1/{name=instances/*/roles/*}</td>- <td></td>- </tr>--+ <tr>+ <td>uid</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>ListInstanceRoles</td>- <td>GET</td>- <td>/v1/{parent=instances/*}/roles</td>- <td></td>- </tr>+ <tr>+ <td>payload</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>TODO: use struct message instead. </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>+ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>CreateInstanceRole</td>- <td>POST</td>- <td>/v1/{parent=instances/*}/roles</td>- <td>role</td>- </tr>----- <tr>- <td>UpdateInstanceRole</td>- <td>PATCH</td>- <td>/v1/{role.name=instances/*/roles/*}</td>- <td>role</td>- </tr>----- <tr>- <td>DeleteInstanceRole</td>- <td>DELETE</td>- <td>/v1/{name=instances/*/roles/*}</td>- <td></td>- </tr>----- <tr>- <td>UndeleteInstanceRole</td>- <td>POST</td>- <td>/v1/{name=instances/*/roles/*}:undelete</td>- <td>*</td>- </tr>--</tbody></table>+---- <div class="file-heading">- <h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</h3>+ <h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3><p></p>@@ -15741,55 +15551,47 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>steps</td>- <td><a href="#bytebase.v1.ApprovalStep">ApprovalStep</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project}+Use "projects/-" to list all issues from all projects. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ApprovalNode">ApprovalNode</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>type</td>- <td><a href="#bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>The maximum number of issues to return. The service may return fewer than+this value.+If unspecified, at most 50 issues will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>group_value</td>- <td><a href="#bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td>+ <td>page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A page token, received from a previous `ListIssues` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIssues` must match+the call that provided the page token. </p></td></tr><tr>- <td>role</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: roles/{role} </p></td>+ <td><p>Filter is used to filter issues returned in the list. </p></td></tr><tr>- <td>external_node_id</td>+ <td>query</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Query is the query statement. </p></td></tr></tbody>@@ -15799,7 +15601,7 @@ Format: instances/{instance}/roles/{role name} </p></td>- <h3 id="bytebase.v1.ApprovalStep">ApprovalStep</h3>+ <h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</h3><p></p>@@ -15810,17 +15612,18 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</a></td>- <td></td>- <td><p> </p></td>+ <td>issues</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>repeated</td>+ <td><p>The issues from the specified request. </p></td></tr><tr>- <td>nodes</td>- <td><a href="#bytebase.v1.ApprovalNode">ApprovalNode</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -15830,7 +15633,7 @@ Format: instances/{instance}/roles/{role name} </p></td>- <h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</h3>+ <h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</h3><p></p>@@ -15841,34 +15644,20 @@ Format: instances/{instance}/roles/{role name} </p></td><tbody><tr>- <td>flow</td>- <td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>title</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the issue to add an rejection.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>description</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the creator in users/{email} format.-TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator. </p></td>- </tr>-</tbody></table>@@ -15876,7 +15665,7 @@ TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the- <h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</h3>+ <h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3><p></p>@@ -15890,7 +15679,7 @@ TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the issue to add an approver.+ <td><p>The name of the issue to request a issue.Format: projects/{project}/issues/{issue} </p></td></tr>@@ -15908,7 +15697,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</h3>+ <h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</h3><p></p>@@ -15922,32 +15711,44 @@ Format: projects/{project}/issues/{issue} </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource shared by all issues being updated.+ <td><p>The parent, which owns this collection of issues.Format: projects/{project}-If the operation spans parents, a dash (-) may be accepted as a wildcard.-We only support updating the status of databases for now. </p></td>+Use "projects/-" to list all issues from all projects. </p></td></tr><tr>- <td>issues</td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of issues to return. The service may return fewer than+this value.+If unspecified, at most 50 issues will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The list of issues to update.-Format: projects/{project}/issues/{issue} </p></td>+ <td></td>+ <td><p>A page token, received from a previous `ListIssues` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListIssues` must match+the call that provided the page token. </p></td></tr><tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td>filter</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The new status. </p></td>+ <td><p>Filter is used to filter issues returned in the list. </p></td></tr><tr>- <td>reason</td>+ <td>query</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Query is the query statement. </p></td></tr></tbody>@@ -15957,14 +15758,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3>- <p></p>------ <h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3>+ <h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</h3><p></p>@@ -15975,18 +15769,18 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The issue name-Format: projects/{project}/issues/{issue} </p></td>+ <td>issues</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>repeated</td>+ <td><p>The issues from the specified request. </p></td></tr><tr>- <td>issue_comment</td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -15996,7 +15790,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</h3>+ <h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3><p></p>@@ -16010,15 +15804,22 @@ Format: projects/{project}/issues/{issue} </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project} </p></td>+ <td><p>The issue name+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>issue</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>issue_comment</td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td></td>- <td><p>The issue to create. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -16028,7 +15829,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3>+ <h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</h3><p></p>@@ -16039,18 +15840,20 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>issue</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td><td></td>- <td><p>The name of the issue to retrieve.+ <td><p>The issue to update.++The issue's `name` field is used to identify the issue to update.Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>force</td>- <td><a href="#bool">bool</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -16060,362 +15863,471 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.GrantRequest">GrantRequest</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>role</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The requested role.-Format: roles/EXPORTER. </p></td>- </tr>-- <tr>- <td>user</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The user to be granted.-Format: users/{email}. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>expiration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>++ <h3 id="bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>+ <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GROUP_VALUE_UNSPECIFILED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE_OWNER</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE_DBA</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROJECT_OWNER</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROJECT_MEMBER</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</h3>+ <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</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>ANY_IN_GROUP</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</h3>+ <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</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>ALL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ANY</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>APPROVED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REJECTED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>RISK_LEVEL_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LOW</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MODERATE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>HIGH</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Issue.Type">Issue.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>DATABASE_CHANGE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GRANT_REQUEST</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_EXPORT</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ISSUE_STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OPEN</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+-+-- <h3 id="bytebase.v1.Issue">Issue</h3>+ <h3 id="bytebase.v1.IssueService">IssueService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetIssue</td>+ <td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateIssue</td>+ <td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListIssues</td>+ <td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>+ <td><a href="#bytebase.v1.ListIssuesResponse">ListIssuesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SearchIssues</td>+ <td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>+ <td><a href="#bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</a></td>+ <td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.</p></td>+ </tr>++ <tr>+ <td>UpdateIssue</td>+ <td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateIssueComment</td>+ <td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateIssueComment</td>+ <td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchUpdateIssuesStatus</td>+ <td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>+ <td><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ApproveIssue</td>+ <td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RejectIssue</td>+ <td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RequestIssue</td>+ <td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>assignee</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>- <tr>- <td>assignee_attention</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetIssue</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/issues/*}</td>+ <td></td>+ </tr>- <tr>- <td>approvers</td>- <td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>+- <tr>- <td>approval_templates</td>- <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>- <tr>- <td>approval_finding_done</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If the value is `false`, it means that the backend is still finding matching approval templates.-If `true`, approval_templates & approvers & approval_finding_error are available. </p></td>- </tr>+ <tr>+ <td>CreateIssue</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/issues</td>+ <td>issue</td>+ </tr>- <tr>- <td>approval_finding_error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>subscribers</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The subscribers.-Format: users/[email protected] </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>ListIssues</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/issues</td>+ <td></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>+- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>plan</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The plan associated with the issue.-Can be empty.-Format: projects/{project}/plans/{plan} </p></td>- </tr>+ <tr>+ <td>SearchIssues</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/issues:search</td>+ <td></td>+ </tr>- <tr>- <td>rollout</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The rollout associated with the issue.-Can be empty.-Format: projects/{project}/rollouts/{rollout} </p></td>- </tr>+- <tr>- <td>grant_request</td>- <td><a href="#bytebase.v1.GrantRequest">GrantRequest</a></td>- <td></td>- <td><p>Used if the issue type is GRANT_REQUEST. </p></td>- </tr>- <tr>- <td>releasers</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The releasers of the pending stage of the issue rollout, judging-from the rollout policy.-If the policy is auto rollout, the releasers are the project owners and the issue creator.-Format:-- roles/workspaceOwner-- roles/workspaceDBA-- roles/projectOwner-- roles/projectReleaser-- users/{email} </p></td>- </tr>+ <tr>+ <td>UpdateIssue</td>+ <td>PATCH</td>+ <td>/v1/{issue.name=projects/*/issues/*}</td>+ <td>issue</td>+ </tr>- <tr>- <td>risk_level</td>- <td><a href="#bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>task_status_count</td>- <td><a href="#bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</a></td>- <td>repeated</td>- <td><p>The status count of the issue.-Keys are the following:-- NOT_STARTED-- SKIPPED-- PENDING-- RUNNING-- DONE-- FAILED-- CANCELED </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Issue.Approver">Issue.Approver</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>CreateIssueComment</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/issues/*}:comment</td>+ <td>issue_comment</td>+ </tr>- <tr>- <td>status</td>- <td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td>- <td></td>- <td><p>The new status. </p></td>- </tr>+- <tr>- <td>principal</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</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>UpdateIssueComment</td>+ <td>PATCH</td>+ <td>/v1/{parent=projects/*/issues/*}:comment</td>+ <td>issue_comment</td>+ </tr>- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>value</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment">IssueComment</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>BatchUpdateIssuesStatus</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td>+ <td>*</td>+ </tr>- <tr>- <td>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>payload</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>TODO: use struct message instead. </p></td>- </tr>+ <tr>+ <td>ApproveIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:approve</td>+ <td>*</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>+- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>RejectIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:reject</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>RequestIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:request</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3>+ <div class="file-heading">+ <h2 id="v1/logging_service.proto">v1/logging_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.ExportLogsRequest">ExportLogsRequest</h3><p></p>@@ -16425,80 +16337,46 @@ Keys are the following:</thead><tbody>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project}-Use "projects/-" to list all issues from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of issues to return. The service may return fewer than-this value.-If unspecified, at most 50 issues will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListIssues` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match-the call that provided the page token. </p></td>- </tr>-<tr><td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>Filter is used to filter issues returned in the list. </p></td>+ <td><p>Consistent with filter and order by in ListLogs.+filter is the filter to apply on the list logs request,+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+The field only support in filter:+- creator, example:+ - creator = "users/{email}"+- resource, example:+ - resource = "projects/{project resource id}"+- level, example:+ - level = "INFO"+ - level = "ERROR | WARN"+- action, example:+ - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE"+- create_time, example:+ - create_time <= "2022-01-01T12:00:00.000Z"+ - create_time >= "2022-01-01T12:00:00.000Z"+For example:+List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td></tr><tr>- <td>query</td>+ <td>order_by</td><td><a href="#string">string</a></td><td></td>- <td><p>Query is the query statement. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</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>issues</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td>repeated</td>- <td><p>The issues from the specified request. </p></td>+ <td><p>The order by of the log.+Only support order by create_time.+For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc" </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The export format. </p></td></tr></tbody>@@ -16508,7 +16386,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</h3>+ <h3 id="bytebase.v1.ExportLogsResponse">ExportLogsResponse</h3><p></p>@@ -16519,16 +16397,8 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue to add an rejection.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td><td></td><td><p> </p></td></tr>@@ -16540,7 +16410,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3>+ <h3 id="bytebase.v1.GetLogRequest">GetLogRequest</h3><p></p>@@ -16554,15 +16424,8 @@ Format: projects/{project}/issues/{issue} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the issue to request a issue.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the log to retrieve.+Format: logs/{uid} </p></td></tr></tbody>@@ -16572,7 +16435,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</h3>+ <h3 id="bytebase.v1.ListLogsRequest">ListLogsRequest</h3><p></p>@@ -16583,47 +16446,56 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>parent</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project}-Use "projects/-" to list all issues from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of issues to return. The service may return fewer than-this value.-If unspecified, at most 50 issues will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p>filter is the filter to apply on the list logs request,+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+The field only support in filter:+- creator, example:+ - creator = "users/{email}"+- resource, example:+ - resource = "projects/{project resource id}"+- level, example:+ - level = "INFO"+ - level = "ERROR | WARN"+- action, example:+ - action = "ACTION_MEMBER_CREATE"+ - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE"+- create_time, example:+ - create_time <= "2022-01-01T12:00:00.000Z"+ - create_time >= "2022-01-01T12:00:00.000Z"+For example:+List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td></tr><tr>- <td>page_token</td>+ <td>order_by</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListIssues` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListIssues` must match-the call that provided the page token. </p></td>+ <td><p>The order by of the log.+Only support order by create_time.+For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc" </p></td></tr><tr>- <td>filter</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Filter is used to filter issues returned in the list. </p></td>+ <td><p>Not used. The maximum number of logs to return.+The service may return fewer than this value.+If unspecified, at most 100 log entries will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>query</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>Query is the query statement. </p></td>+ <td><p>Not used. A page token, received from a previous `ListLogs` call.+Provide this to retrieve the subsequent page. </p></td></tr></tbody>@@ -16633,7 +16505,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</h3>+ <h3 id="bytebase.v1.ListLogsResponse">ListLogsResponse</h3><p></p>@@ -16644,18 +16516,19 @@ the call that provided the page token. </p></td><tbody><tr>- <td>issues</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>log_entities</td>+ <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td><td>repeated</td>- <td><p>The issues from the specified request. </p></td>+ <td><p>The list of log entities. </p></td></tr><tr><td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>A token to retrieve next page of log entities.+Pass this value in the page_token field in the subsequent call to `ListLogs` method+to retrieve the next page of log entities. </p></td></tr></tbody>@@ -16665,7 +16538,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3>+ <h3 id="bytebase.v1.LogEntity">LogEntity</h3><p></p>@@ -16676,59 +16549,75 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The issue name-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The name of the log.+Format: logs/{uid} </p></td></tr><tr>- <td>issue_comment</td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The creator of the log entity.+Format: users/{email} </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><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</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>action</td>+ <td><a href="#bytebase.v1.LogEntity.Action">LogEntity.Action</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>issue</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>level</td>+ <td><a href="#bytebase.v1.LogEntity.Level">LogEntity.Level</a></td><td></td>- <td><p>The issue to update.--The issue's `name` field is used to identify the issue to update.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>resource</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE".+Format:+For ACTION_MEMBER_*: users/{email}+For ACTION_ISSUE_*: issues/{issue uid}+For ACTION_PIPELINE_*: pipelines/{pipeline uid}+For ACTION_PROJECT_*: projects/{project resource id}+For ACTION_DATABASE_*: instances/{instance resource id} </p></td>+ </tr>++ <tr>+ <td>payload</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The payload of the log entity.+TODO: use oneof </p></td>+ </tr>++ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -16740,8 +16629,8 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>- <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>+ <h3 id="bytebase.v1.LogEntity.Action">LogEntity.Action</h3>+ <p></p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -16749,196 +16638,165 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>GROUP_VALUE_UNSPECIFILED</td>+ <td>ACTION_UNSPECIFIED</td><td>0</td>- <td><p></p></td>+ <td><p>In worksapce resource only.</p></td></tr><tr>- <td>WORKSPACE_OWNER</td>+ <td>ACTION_MEMBER_CREATE</td><td>1</td>- <td><p></p></td>+ <td><p>Member related activity types.+Enum value 1 - 20++ACTION_MEMBER_CREATE is the type for creating a new member.</p></td></tr><tr>- <td>WORKSPACE_DBA</td>+ <td>ACTION_MEMBER_ROLE_UPDATE</td><td>2</td>- <td><p></p></td>+ <td><p>ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role.</p></td></tr><tr>- <td>PROJECT_OWNER</td>+ <td>ACTION_MEMBER_ACTIVATE</td><td>3</td>- <td><p></p></td>+ <td><p>ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members.</p></td></tr><tr>- <td>PROJECT_MEMBER</td>+ <td>ACTION_MEMBER_DEACTIVE</td><td>4</td>- <td><p></p></td>+ <td><p>ACTION_MEMBER_DEACTIVE is the type for deactiving members.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</h3>- <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</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>+ <td>ACTION_ISSUE_CREATE</td>+ <td>21</td>+ <td><p>Issue related activity types.+Enum value 21 - 40++ACTION_ISSUE_CREATE is the type for creating a new issue.</p></td></tr><tr>- <td>ANY_IN_GROUP</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_ISSUE_COMMENT_CREATE</td>+ <td>22</td>+ <td><p>ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</h3>- <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</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>+ <td>ACTION_ISSUE_FIELD_UPDATE</td>+ <td>23</td>+ <td><p>ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field.</p></td></tr><tr>- <td>ALL</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_ISSUE_STATUS_UPDATE</td>+ <td>24</td>+ <td><p>ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status.</p></td></tr><tr>- <td>ANY</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_ISSUE_APPROVAL_NOTIFY</td>+ <td>25</td>+ <td><p>ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ACTION_PIPELINE_STAGE_STATUS_UPDATE</td>+ <td>31</td>+ <td><p>ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>+ </tr><tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_STATUS_UPDATE</td>+ <td>32</td>+ <td><p>ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td></tr><tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_FILE_COMMIT</td>+ <td>33</td>+ <td><p>ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement.</p></td></tr><tr>- <td>APPROVED</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_STATEMENT_UPDATE</td>+ <td>34</td>+ <td><p>ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td></tr><tr>- <td>REJECTED</td>- <td>3</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>+ <td>35</td>+ <td><p>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE</td>+ <td>36</td>+ <td><p>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>+ </tr><tr>- <td>RISK_LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>ACTION_PIPELINE_TASK_PRIOR_BACKUP</td>+ <td>37</td>+ <td><p>ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity.</p></td></tr><tr>- <td>LOW</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_PROJECT_REPOSITORY_PUSH</td>+ <td>41</td>+ <td><p>Project related activity types.+Enum value 41 - 60++ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td></tr><tr>- <td>MODERATE</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_PROJECT_MEMBER_CREATE</td>+ <td>42</td>+ <td><p>ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td></tr><tr>- <td>HIGH</td>- <td>3</td>- <td><p></p></td>+ <td>ACTION_PROJECT_MEMBER_DELETE</td>+ <td>43</td>+ <td><p>ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.Issue.Type">Issue.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>+ <td>ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE</td>+ <td>44</td>+ <td><p>ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE is the type for database PITR recovery done.</p></td></tr><tr>- <td>DATABASE_CHANGE</td>- <td>1</td>- <td><p></p></td>+ <td>ACTION_PROJECT_DATABASE_TRANSFER</td>+ <td>45</td>+ <td><p>ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another.</p></td></tr><tr>- <td>GRANT_REQUEST</td>- <td>2</td>- <td><p></p></td>+ <td>ACTION_DATABASE_SQL_EDITOR_QUERY</td>+ <td>61</td>+ <td><p>Database related activity types.+Enum value 61 - 80++ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td></tr><tr>- <td>DATABASE_DATA_EXPORT</td>- <td>3</td>- <td><p></p></td>+ <td>ACTION_DATABASE_SQL_EXPORT</td>+ <td>62</td>+ <td><p>ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL.</p></td></tr></tbody></table>- <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3>+ <h3 id="bytebase.v1.LogEntity.Level">LogEntity.Level</h3><p></p><table class="enum-table"><thead>@@ -16947,27 +16805,27 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>ISSUE_STATUS_UNSPECIFIED</td>+ <td>LEVEL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>OPEN</td>+ <td>LEVEL_INFO</td><td>1</td>- <td><p></p></td>+ <td><p>LEVEL_INFO is the type for information.</p></td></tr><tr>- <td>DONE</td>+ <td>LEVEL_WARNING</td><td>2</td>- <td><p></p></td>+ <td><p>LEVEL_WARNING is the type for warning.</p></td></tr><tr>- <td>CANCELED</td>+ <td>LEVEL_ERROR</td><td>3</td>- <td><p></p></td>+ <td><p>LEVEL_ERROR is the type for error.</p></td></tr></tbody>@@ -16977,7 +16835,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.IssueService">IssueService</h3>+ <h3 id="bytebase.v1.LoggingService">LoggingService</h3><p></p><table class="enum-table"><thead>@@ -16986,79 +16844,23 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>GetIssue</td>- <td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateIssue</td>- <td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListIssues</td>- <td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>- <td><a href="#bytebase.v1.ListIssuesResponse">ListIssuesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SearchIssues</td>- <td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>- <td><a href="#bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</a></td>- <td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.</p></td>- </tr>-- <tr>- <td>UpdateIssue</td>- <td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateIssueComment</td>- <td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateIssueComment</td>- <td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchUpdateIssuesStatus</td>- <td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>- <td><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ApproveIssue</td>- <td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>ListLogs</td>+ <td><a href="#bytebase.v1.ListLogsRequest">ListLogsRequest</a></td>+ <td><a href="#bytebase.v1.ListLogsResponse">ListLogsResponse</a></td><td><p></p></td></tr><tr>- <td>RejectIssue</td>- <td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>GetLog</td>+ <td><a href="#bytebase.v1.GetLogRequest">GetLogRequest</a></td>+ <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td><td><p></p></td></tr><tr>- <td>RequestIssue</td>- <td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>ExportLogs</td>+ <td><a href="#bytebase.v1.ExportLogsRequest">ExportLogsRequest</a></td>+ <td><a href="#bytebase.v1.ExportLogsResponse">ExportLogsResponse</a></td><td><p></p></td></tr>@@ -17083,9 +16885,9 @@ Format: projects/{project}/issues/{issue} </p></td><tr>- <td>GetIssue</td>+ <td>ListLogs</td><td>GET</td>- <td>/v1/{name=projects/*/issues/*}</td>+ <td>/v1/logs:search</td><td></td></tr>@@ -17093,116 +16895,347 @@ Format: projects/{project}/issues/{issue} </p></td><tr>- <td>CreateIssue</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/issues</td>- <td>issue</td>+ <td>GetLog</td>+ <td>GET</td>+ <td>/v1/{name=logs/*}</td>+ <td></td></tr><tr>- <td>ListIssues</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/issues</td>- <td></td>+ <td>ExportLogs</td>+ <td>POST</td>+ <td>/v1/logs:export</td>+ <td>*</td></tr>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/vcs_provider_service.proto">v1/vcs_provider_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateVCSProviderRequest">CreateVCSProviderRequest</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_provider</td>+ <td><a href="#bytebase.v1.VCSProvider">VCSProvider</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>SearchIssues</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/issues:search</td>- <td></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DeleteVCSProviderRequest">DeleteVCSProviderRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the vcs provider to delete.+Format: vcsProviders/{vcsProvider} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ExchangeToken">ExchangeToken</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the vcs provider to retrieve the linked projects.+Format: vcsProviders/{vcsProvider} </p></td>+ </tr>++ <tr>+ <td>code</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.VCSProvider.Type">VCSProvider.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>instance_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>UpdateIssue</td>- <td>PATCH</td>- <td>/v1/{issue.name=projects/*/issues/*}</td>- <td>issue</td>- </tr>+ <tr>+ <td>client_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>client_secret</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ExchangeTokenRequest">ExchangeTokenRequest</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>CreateIssueComment</td>- <td>POST</td>- <td>/v1/{parent=projects/*/issues/*}:comment</td>- <td>issue_comment</td>- </tr>+ <tr>+ <td>exchange_token</td>+ <td><a href="#bytebase.v1.ExchangeToken">ExchangeToken</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetVCSProviderRequest">GetVCSProviderRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the vcs provider to retrieve.+Format: vcsProviders/{vcsProvider} </p></td>+ </tr>- <tr>- <td>UpdateIssueComment</td>- <td>PATCH</td>- <td>/v1/{parent=projects/*/issues/*}:comment</td>- <td>issue_comment</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListProjectGitOpsInfoRequest">ListProjectGitOpsInfoRequest</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>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the vcs provider to retrieve the linked projects.+Format: vcsProviders/{vcsProvider} </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListProjectGitOpsInfoResponse">ListProjectGitOpsInfoResponse</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>BatchUpdateIssuesStatus</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td>- <td>*</td>- </tr>+ <tr>+ <td>project_gitops_info</td>+ <td><a href="#bytebase.v1.ProjectGitOpsInfo">ProjectGitOpsInfo</a></td>+ <td>repeated</td>+ <td><p>The binding between vcs provider and project. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListVCSProvidersRequest">ListVCSProvidersRequest</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>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>Not used. The maximum number of vcs provider to return. The service may return fewer than this value.+If unspecified, at most 100 vcs provider will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>- <tr>- <td>ApproveIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:approve</td>- <td>*</td>- </tr>+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A page token, received from a previous `ListVCSProviders` call.+Provide this to retrieve the subsequent page. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListVCSProvidersResponse">ListVCSProvidersResponse</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_providers</td>+ <td><a href="#bytebase.v1.VCSProvider">VCSProvider</a></td>+ <td>repeated</td>+ <td><p>The list of vcs providers. </p></td>+ </tr>- <tr>- <td>RejectIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:reject</td>- <td>*</td>- </tr>+ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.OAuthToken">OAuthToken</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>access_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>refresh_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>RequestIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:request</td>- <td>*</td>- </tr>+ <tr>+ <td>expires_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/logging_service.proto">v1/logging_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.ExportLogsRequest">ExportLogsRequest</h3>+ <h3 id="bytebase.v1.ProjectGitOpsInfo">ProjectGitOpsInfo</h3><p></p>@@ -17213,45 +17246,122 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>filter</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Consistent with filter and order by in ListLogs.-filter is the filter to apply on the list logs request,-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-The field only support in filter:-- creator, example:- - creator = "users/{email}"-- resource, example:- - resource = "projects/{project resource id}"-- level, example:- - level = "INFO"- - level = "ERROR | WARN"-- action, example:- - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE"-- create_time, example:- - create_time <= "2022-01-01T12:00:00.000Z"- - create_time >= "2022-01-01T12:00:00.000Z"-For example:-List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td>+ <td><p>The name of the linked repository, generated by the server, and also is the unique identifier.+Format: projects/{project}/gitOpsInfo </p></td></tr><tr>- <td>order_by</td>+ <td>vcs_uid</td><td><a href="#string">string</a></td><td></td>- <td><p>The order by of the log.-Only support order by create_time.-For example:- - order_by = "create_time asc"- - order_by = "create_time desc" </p></td>+ <td><p>The uid for related VCS. </p></td></tr><tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The export format. </p></td>+ <td><p>The title of the repository. For axample: sample. </p></td>+ </tr>++ <tr>+ <td>full_path</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The full_path of the repository. For example: bytebase/sample. </p></td>+ </tr>++ <tr>+ <td>web_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample. </p></td>+ </tr>++ <tr>+ <td>branch_filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The branch Bytebase listens to for changes. For example: main. </p></td>+ </tr>++ <tr>+ <td>base_directory</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The root directory where Bytebase observes the file change. If empty, then it observes the entire repository. </p></td>+ </tr>++ <tr>+ <td>file_path_template</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Bytebase only observes the file path name matching the template pattern **relative** to the base directory.+Required Placeholder: {{DB_NAME}}, {{VERSION}}, {{TYPE]}.+Optional Placeholder: {{ENV_ID}}, {{DESCRIPTION}}.+Optional Directory Wildcard: '*', '**'. </p></td>+ </tr>++ <tr>+ <td>schema_path_template</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The file path template for storing the latest schema auto-generated by Bytebase after migration.+If empty, then Bytebase won't auto generate it.+If specified, required placeholder: {{DB_NAME}}, optional placeholder: {{ENV_ID}}. </p></td>+ </tr>++ <tr>+ <td>sheet_path_template</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The file path template for matching the sql files for sheet.+If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}}, {{DB_NAME}}. </p></td>+ </tr>++ <tr>+ <td>external_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The reposition external id in target VCS. </p></td>+ </tr>++ <tr>+ <td>enable_sql_review_ci</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Set to true to enable SQL review CI for all PR/MRs. </p></td>+ </tr>++ <tr>+ <td>webhook_endpoint_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The webhook endpoint ID of the repository. </p></td>+ </tr>++ <tr>+ <td>access_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>expires_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>refresh_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -17261,7 +17371,7 @@ For example:- <h3 id="bytebase.v1.ExportLogsResponse">ExportLogsResponse</h3>+ <h3 id="bytebase.v1.SearchVCSProviderProjectsRequest">SearchVCSProviderProjectsRequest</h3><p></p>@@ -17272,8 +17382,23 @@ For example:<tbody><tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the vcs provider to retrieve the vcs provider repositories.+Format: vcsProviders/{vcsProvider} </p></td>+ </tr>++ <tr>+ <td>access_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>refresh_token</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -17285,7 +17410,7 @@ For example:- <h3 id="bytebase.v1.GetLogRequest">GetLogRequest</h3>+ <h3 id="bytebase.v1.SearchVCSProviderProjectsResponse">SearchVCSProviderProjectsResponse</h3><p></p>@@ -17296,11 +17421,10 @@ For example:<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the log to retrieve.-Format: logs/{uid} </p></td>+ <td>projects</td>+ <td><a href="#bytebase.v1.SearchVCSProviderProjectsResponse.Project">SearchVCSProviderProjectsResponse.Project</a></td>+ <td>repeated</td>+ <td><p>The list of project in vcs provider. </p></td></tr></tbody>@@ -17310,7 +17434,7 @@ Format: logs/{uid} </p></td>- <h3 id="bytebase.v1.ListLogsRequest">ListLogsRequest</h3>+ <h3 id="bytebase.v1.SearchVCSProviderProjectsResponse.Project">SearchVCSProviderProjectsResponse.Project</h3><p></p>@@ -17321,56 +17445,31 @@ Format: logs/{uid} </p></td><tbody><tr>- <td>filter</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>filter is the filter to apply on the list logs request,-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-The field only support in filter:-- creator, example:- - creator = "users/{email}"-- resource, example:- - resource = "projects/{project resource id}"-- level, example:- - level = "INFO"- - level = "ERROR | WARN"-- action, example:- - action = "ACTION_MEMBER_CREATE"- - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE"-- create_time, example:- - create_time <= "2022-01-01T12:00:00.000Z"- - create_time >= "2022-01-01T12:00:00.000Z"-For example:-List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"' </p></td>+ <td><p>The id of the project in vcs provider. </p></td></tr><tr>- <td>order_by</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The order by of the log.-Only support order by create_time.-For example:- - order_by = "create_time asc"- - order_by = "create_time desc" </p></td>+ <td><p>The title of the project in vcs provider. </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>fullpath</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Not used. The maximum number of logs to return.-The service may return fewer than this value.-If unspecified, at most 100 log entries will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p>The fullpath of the project in vcs provider. </p></td></tr><tr>- <td>page_token</td>+ <td>web_url</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used. A page token, received from a previous `ListLogs` call.-Provide this to retrieve the subsequent page. </p></td>+ <td><p>Web url of the project in vcs provider. </p></td></tr></tbody>@@ -17380,7 +17479,7 @@ Provide this to retrieve the subsequent page. </p></td>- <h3 id="bytebase.v1.ListLogsResponse">ListLogsResponse</h3>+ <h3 id="bytebase.v1.UpdateVCSProviderRequest">UpdateVCSProviderRequest</h3><p></p>@@ -17391,19 +17490,17 @@ Provide this to retrieve the subsequent page. </p></td><tbody><tr>- <td>log_entities</td>- <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td>- <td>repeated</td>- <td><p>The list of log entities. </p></td>+ <td>vcs_provider</td>+ <td><a href="#bytebase.v1.VCSProvider">VCSProvider</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>A token to retrieve next page of log entities.-Pass this value in the page_token field in the subsequent call to `ListLogs` method-to retrieve the next page of log entities. </p></td>+ <td><p>The list of fields to be updated. </p></td></tr></tbody>@@ -17413,7 +17510,7 @@ to retrieve the next page of log entities. </p></td>- <h3 id="bytebase.v1.LogEntity">LogEntity</h3>+ <h3 id="bytebase.v1.VCSProvider">VCSProvider</h3><p></p>@@ -17427,72 +17524,51 @@ to retrieve the next page of log entities. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the log.-Format: logs/{uid} </p></td>+ <td><p>The name of the vcs provider, generated by the server, and also is the unique identifier.+Format: vcsProviders/{vcsProvider} </p></td></tr><tr>- <td>creator</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The creator of the log entity.-Format: users/{email} </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>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The title of the vcs provider. It is used to display in the UI. Specified by the client. </p></td></tr><tr>- <td>action</td>- <td><a href="#bytebase.v1.LogEntity.Action">LogEntity.Action</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.VCSProvider.Type">VCSProvider.Type</a></td><td></td><td><p> </p></td></tr><tr>- <td>level</td>- <td><a href="#bytebase.v1.LogEntity.Level">LogEntity.Level</a></td>+ <td>url</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The url of the vcs provider. Specified by the client.+For example: github.com, gitlab.com, gitlab.bytebase.com. </p></td></tr><tr>- <td>resource</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE".-Format:-For ACTION_MEMBER_*: users/{email}-For ACTION_ISSUE_*: issues/{issue uid}-For ACTION_PIPELINE_*: pipelines/{pipeline uid}-For ACTION_PROJECT_*: projects/{project resource id}-For ACTION_DATABASE_*: instances/{instance resource id} </p></td>+ <td>api_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The API url of the vcs provider. Derived from the url. </p></td></tr><tr>- <td>payload</td>+ <td>application_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The payload of the log entity.-TODO: use oneof </p></td>+ <td><p>The application ID of the vcs provider. Specified by the client. </p></td></tr><tr>- <td>comment</td>+ <td>secret</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The application secret of the vcs provider. Specified by the client. </p></td></tr></tbody>@@ -17504,7 +17580,7 @@ TODO: use oneof </p></td>- <h3 id="bytebase.v1.LogEntity.Action">LogEntity.Action</h3>+ <h3 id="bytebase.v1.VCSProvider.Type">VCSProvider.Type</h3><p></p><table class="enum-table"><thead>@@ -17513,229 +17589,103 @@ TODO: use oneof </p></td><tbody><tr>- <td>ACTION_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td>- <td><p>In worksapce resource only.</p></td>+ <td><p></p></td></tr><tr>- <td>ACTION_MEMBER_CREATE</td>+ <td>GITHUB</td><td>1</td>- <td><p>Member related activity types.-Enum value 1 - 20--ACTION_MEMBER_CREATE is the type for creating a new member.</p></td>+ <td><p>GitHub type. Using for GitHub community edition(ce).</p></td></tr><tr>- <td>ACTION_MEMBER_ROLE_UPDATE</td>+ <td>GITLAB</td><td>2</td>- <td><p>ACTION_MEMBER_ROLE_UPDATE is the type for updating a member's role.</p></td>+ <td><p>GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee).</p></td></tr><tr>- <td>ACTION_MEMBER_ACTIVATE</td>+ <td>BITBUCKET</td><td>3</td>- <td><p>ACTION_MEMBER_ACTIVATE_UPDATE is the type for activating members.</p></td>+ <td><p>BitBucket type. Using for BitBucket cloud or BitBucket server.</p></td></tr><tr>- <td>ACTION_MEMBER_DEACTIVE</td>+ <td>AZURE_DEVOPS</td><td>4</td>- <td><p>ACTION_MEMBER_DEACTIVE is the type for deactiving members.</p></td>- </tr>-- <tr>- <td>ACTION_ISSUE_CREATE</td>- <td>21</td>- <td><p>Issue related activity types.-Enum value 21 - 40--ACTION_ISSUE_CREATE is the type for creating a new issue.</p></td>- </tr>-- <tr>- <td>ACTION_ISSUE_COMMENT_CREATE</td>- <td>22</td>- <td><p>ACTION_ISSUE_COMMENT_CREATE is the type for creating a new comment on an issue.</p></td>- </tr>-- <tr>- <td>ACTION_ISSUE_FIELD_UPDATE</td>- <td>23</td>- <td><p>ACTION_ISSUE_FIELD_UPDATE is the type for updating an issue's field.</p></td>- </tr>-- <tr>- <td>ACTION_ISSUE_STATUS_UPDATE</td>- <td>24</td>- <td><p>ACTION_ISSUE_STATUS_UPDATE is the type for updating an issue's status.</p></td>- </tr>-- <tr>- <td>ACTION_ISSUE_APPROVAL_NOTIFY</td>- <td>25</td>- <td><p>ACTION_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_STAGE_STATUS_UPDATE</td>- <td>31</td>- <td><p>ACTION_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_TASK_STATUS_UPDATE</td>- <td>32</td>- <td><p>ACTION_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_TASK_FILE_COMMIT</td>- <td>33</td>- <td><p>ACTION_PIPELINE_TASK_FILE_COMMIT represents the VCS trigger to commit a file to update the task statement.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_TASK_STATEMENT_UPDATE</td>- <td>34</td>- <td><p>ACTION_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>- <td>35</td>- <td><p>ACTION_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE</td>- <td>36</td>- <td><p>ACTION_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>- </tr>-- <tr>- <td>ACTION_PIPELINE_TASK_PRIOR_BACKUP</td>- <td>37</td>- <td><p>ACTION_PIPELINE_TASK_PRIOR_BACKUP represents the pipeline task prior backup activity.</p></td>- </tr>-- <tr>- <td>ACTION_PROJECT_REPOSITORY_PUSH</td>- <td>41</td>- <td><p>Project related activity types.-Enum value 41 - 60--ACTION_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td>- </tr>-- <tr>- <td>ACTION_PROJECT_MEMBER_CREATE</td>- <td>42</td>- <td><p>ACTION_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>- </tr>-- <tr>- <td>ACTION_PROJECT_MEMBER_DELETE</td>- <td>43</td>- <td><p>ACTION_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td>- </tr>-- <tr>- <td>ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE</td>- <td>44</td>- <td><p>ACTION_PROJECT_DATABASE_RECOVERY_PITR_DONE is the type for database PITR recovery done.</p></td>- </tr>-- <tr>- <td>ACTION_PROJECT_DATABASE_TRANSFER</td>- <td>45</td>- <td><p>ACTION_PROJECT_DATABASE_TRANSFER represents transfering the database from one project to another.</p></td>- </tr>-- <tr>- <td>ACTION_DATABASE_SQL_EDITOR_QUERY</td>- <td>61</td>- <td><p>Database related activity types.-Enum value 61 - 80--ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td>- </tr>-- <tr>- <td>ACTION_DATABASE_SQL_EXPORT</td>- <td>62</td>- <td><p>ACTION_DATABASE_SQL_EXPORT is the type for exporting SQL.</p></td>+ <td><p>Azure DevOps. Using for Azure DevOps GitOps workflow.</p></td></tr></tbody></table>- <h3 id="bytebase.v1.LogEntity.Level">LogEntity.Level</h3>+++++ <h3 id="bytebase.v1.VCSProviderService">VCSProviderService</h3><p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>LEVEL_UNSPECIFIED</td>- <td>0</td>+ <td>GetVCSProvider</td>+ <td><a href="#bytebase.v1.GetVCSProviderRequest">GetVCSProviderRequest</a></td>+ <td><a href="#bytebase.v1.VCSProvider">VCSProvider</a></td><td><p></p></td></tr><tr>- <td>LEVEL_INFO</td>- <td>1</td>- <td><p>LEVEL_INFO is the type for information.</p></td>+ <td>ListVCSProviders</td>+ <td><a href="#bytebase.v1.ListVCSProvidersRequest">ListVCSProvidersRequest</a></td>+ <td><a href="#bytebase.v1.ListVCSProvidersResponse">ListVCSProvidersResponse</a></td>+ <td><p></p></td></tr><tr>- <td>LEVEL_WARNING</td>- <td>2</td>- <td><p>LEVEL_WARNING is the type for warning.</p></td>+ <td>CreateVCSProvider</td>+ <td><a href="#bytebase.v1.CreateVCSProviderRequest">CreateVCSProviderRequest</a></td>+ <td><a href="#bytebase.v1.VCSProvider">VCSProvider</a></td>+ <td><p></p></td></tr><tr>- <td>LEVEL_ERROR</td>- <td>3</td>- <td><p>LEVEL_ERROR is the type for error.</p></td>+ <td>UpdateVCSProvider</td>+ <td><a href="#bytebase.v1.UpdateVCSProviderRequest">UpdateVCSProviderRequest</a></td>+ <td><a href="#bytebase.v1.VCSProvider">VCSProvider</a></td>+ <td><p></p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.LoggingService">LoggingService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ExchangeToken</td>+ <td><a href="#bytebase.v1.ExchangeTokenRequest">ExchangeTokenRequest</a></td>+ <td><a href="#bytebase.v1.OAuthToken">OAuthToken</a></td>+ <td><p></p></td>+ </tr><tr>- <td>ListLogs</td>- <td><a href="#bytebase.v1.ListLogsRequest">ListLogsRequest</a></td>- <td><a href="#bytebase.v1.ListLogsResponse">ListLogsResponse</a></td>+ <td>DeleteVCSProvider</td>+ <td><a href="#bytebase.v1.DeleteVCSProviderRequest">DeleteVCSProviderRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr><tr>- <td>GetLog</td>- <td><a href="#bytebase.v1.GetLogRequest">GetLogRequest</a></td>- <td><a href="#bytebase.v1.LogEntity">LogEntity</a></td>+ <td>SearchVCSProviderProjects</td>+ <td><a href="#bytebase.v1.SearchVCSProviderProjectsRequest">SearchVCSProviderProjectsRequest</a></td>+ <td><a href="#bytebase.v1.SearchVCSProviderProjectsResponse">SearchVCSProviderProjectsResponse</a></td><td><p></p></td></tr><tr>- <td>ExportLogs</td>- <td><a href="#bytebase.v1.ExportLogsRequest">ExportLogsRequest</a></td>- <td><a href="#bytebase.v1.ExportLogsResponse">ExportLogsResponse</a></td>+ <td>ListProjectGitOpsInfo</td>+ <td><a href="#bytebase.v1.ListProjectGitOpsInfoRequest">ListProjectGitOpsInfoRequest</a></td>+ <td><a href="#bytebase.v1.ListProjectGitOpsInfoResponse">ListProjectGitOpsInfoResponse</a></td><td><p></p></td></tr>@@ -17760,9 +17710,9 @@ ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td><tr>- <td>ListLogs</td>+ <td>GetVCSProvider</td><td>GET</td>- <td>/v1/logs:search</td>+ <td>/v1/{name=vcsProviders/*}</td><td></td></tr>@@ -17770,9 +17720,9 @@ ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td><tr>- <td>GetLog</td>+ <td>ListVCSProviders</td><td>GET</td>- <td>/v1/{name=logs/*}</td>+ <td>/v1/vcsProviders</td><td></td></tr>@@ -17780,13 +17730,63 @@ ACTION_DATABASE_SQL_EDITOR_QUERY is the type for SQL editor query.</p></td><tr>- <td>ExportLogs</td>+ <td>CreateVCSProvider</td><td>POST</td>- <td>/v1/logs:export</td>+ <td>/v1/vcsProviders</td>+ <td>vcs_provider</td>+ </tr>+++++ <tr>+ <td>UpdateVCSProvider</td>+ <td>PATCH</td>+ <td>/v1/{vcs_provider.name=vcsProviders/*}</td>+ <td>vcs_provider</td>+ </tr>+++++ <tr>+ <td>ExchangeToken</td>+ <td>POST</td>+ <td>/v1/{exchange_token.name=vcsProviders/*}:exchangeToken</td>+ <td>exchange_token</td>+ </tr>+++++ <tr>+ <td>DeleteVCSProvider</td>+ <td>DELETE</td>+ <td>/v1/{name=vcsProviders/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>SearchVCSProviderProjects</td>+ <td>POST</td>+ <td>/v1/{name=vcsProviders/*}:searchProjects</td><td>*</td></tr>+++ <tr>+ <td>ListProjectGitOpsInfo</td>+ <td>GET</td>+ <td>/v1/{name=vcsProviders/*}/projects</td>+ <td></td>+ </tr>++</tbody></table>@@ -19428,7 +19428,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><td>project_gitops_info</td><td><a href="#bytebase.v1.ProjectGitOpsInfo">ProjectGitOpsInfo</a></td><td></td>- <td><p>The binding for the project and external version control. </p></td>+ <td><p>The binding for the project and vcs provider. </p></td></tr><tr>diff --git a/proto/generated-go/v1/externalvs_service.pb.go b/proto/generated-go/v1/externalvs_service.pb.godeleted file mode 100644index bbc0788c4f..0000000000--- a/proto/generated-go/v1/externalvs_service.pb.go+++ /dev/null@@ -1,1761 +0,0 @@-// Code generated by protoc-gen-go. DO NOT EDIT.-// versions:-// protoc-gen-go v1.33.0-// protoc (unknown)-// source: v1/externalvs_service.proto--package v1--import (- _ "google.golang.org/genproto/googleapis/api/annotations"- protoreflect "google.golang.org/protobuf/reflect/protoreflect"- protoimpl "google.golang.org/protobuf/runtime/protoimpl"- emptypb "google.golang.org/protobuf/types/known/emptypb"- fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"- timestamppb "google.golang.org/protobuf/types/known/timestamppb"- reflect "reflect"- sync "sync"-)--const (- // Verify that this generated code is sufficiently up-to-date.- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)- // Verify that runtime/protoimpl is sufficiently up-to-date.- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)-)--type ExternalVersionControl_Type int32--const (- ExternalVersionControl_TYPE_UNSPECIFIED ExternalVersionControl_Type = 0- // GitHub type. Using for GitHub community edition(ce).- ExternalVersionControl_GITHUB ExternalVersionControl_Type = 1- // GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee).- ExternalVersionControl_GITLAB ExternalVersionControl_Type = 2- // BitBucket type. Using for BitBucket cloud or BitBucket server.- ExternalVersionControl_BITBUCKET ExternalVersionControl_Type = 3- // Azure DevOps. Using for Azure DevOps GitOps workflow.- ExternalVersionControl_AZURE_DEVOPS ExternalVersionControl_Type = 4-)--// Enum value maps for ExternalVersionControl_Type.-var (- ExternalVersionControl_Type_name = map[int32]string{- 0: "TYPE_UNSPECIFIED",- 1: "GITHUB",- 2: "GITLAB",- 3: "BITBUCKET",- 4: "AZURE_DEVOPS",- }- ExternalVersionControl_Type_value = map[string]int32{- "TYPE_UNSPECIFIED": 0,- "GITHUB": 1,- "GITLAB": 2,- "BITBUCKET": 3,- "AZURE_DEVOPS": 4,- }-)--func (x ExternalVersionControl_Type) Enum() *ExternalVersionControl_Type {- p := new(ExternalVersionControl_Type)- *p = x- return p-}--func (x ExternalVersionControl_Type) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (ExternalVersionControl_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_externalvs_service_proto_enumTypes[0].Descriptor()-}--func (ExternalVersionControl_Type) Type() protoreflect.EnumType {- return &file_v1_externalvs_service_proto_enumTypes[0]-}--func (x ExternalVersionControl_Type) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use ExternalVersionControl_Type.Descriptor instead.-func (ExternalVersionControl_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{10, 0}-}--type CreateExternalVersionControlRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- ExternalVersionControl *ExternalVersionControl `protobuf:"bytes,1,opt,name=external_version_control,json=externalVersionControl,proto3" json:"external_version_control,omitempty"`-}--func (x *CreateExternalVersionControlRequest) Reset() {- *x = CreateExternalVersionControlRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[0]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *CreateExternalVersionControlRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*CreateExternalVersionControlRequest) ProtoMessage() {}--func (x *CreateExternalVersionControlRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_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 CreateExternalVersionControlRequest.ProtoReflect.Descriptor instead.-func (*CreateExternalVersionControlRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{0}-}--func (x *CreateExternalVersionControlRequest) GetExternalVersionControl() *ExternalVersionControl {- if x != nil {- return x.ExternalVersionControl- }- return nil-}--type GetExternalVersionControlRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the external version control to retrieve.- // Format: externalVersionControls/{externalVersionControl}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *GetExternalVersionControlRequest) Reset() {- *x = GetExternalVersionControlRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[1]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *GetExternalVersionControlRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*GetExternalVersionControlRequest) ProtoMessage() {}--func (x *GetExternalVersionControlRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_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 GetExternalVersionControlRequest.ProtoReflect.Descriptor instead.-func (*GetExternalVersionControlRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{1}-}--func (x *GetExternalVersionControlRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--type ListExternalVersionControlsRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Not used. The maximum number of external version control to return. The service may return fewer than this value.- // If unspecified, at most 100 external version control will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`- // Not used. A page token, received from a previous `ListExternalVersionControls` call.- // Provide this to retrieve the subsequent page.- PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`-}--func (x *ListExternalVersionControlsRequest) Reset() {- *x = ListExternalVersionControlsRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[2]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListExternalVersionControlsRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListExternalVersionControlsRequest) ProtoMessage() {}--func (x *ListExternalVersionControlsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_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 ListExternalVersionControlsRequest.ProtoReflect.Descriptor instead.-func (*ListExternalVersionControlsRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{2}-}--func (x *ListExternalVersionControlsRequest) GetPageSize() int32 {- if x != nil {- return x.PageSize- }- return 0-}--func (x *ListExternalVersionControlsRequest) GetPageToken() string {- if x != nil {- return x.PageToken- }- return ""-}--type ListExternalVersionControlsResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The list of external version control.- ExternalVersionControls []*ExternalVersionControl `protobuf:"bytes,1,rep,name=external_version_controls,json=externalVersionControls,proto3" json:"external_version_controls,omitempty"`- // Not used. A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`-}--func (x *ListExternalVersionControlsResponse) Reset() {- *x = ListExternalVersionControlsResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[3]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListExternalVersionControlsResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListExternalVersionControlsResponse) ProtoMessage() {}--func (x *ListExternalVersionControlsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[3]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ListExternalVersionControlsResponse.ProtoReflect.Descriptor instead.-func (*ListExternalVersionControlsResponse) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{3}-}--func (x *ListExternalVersionControlsResponse) GetExternalVersionControls() []*ExternalVersionControl {- if x != nil {- return x.ExternalVersionControls- }- return nil-}--func (x *ListExternalVersionControlsResponse) GetNextPageToken() string {- if x != nil {- return x.NextPageToken- }- return ""-}--type UpdateExternalVersionControlRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- ExternalVersionControl *ExternalVersionControl `protobuf:"bytes,1,opt,name=external_version_control,json=externalVersionControl,proto3" json:"external_version_control,omitempty"`- // The list of fields to be updated.- UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`-}--func (x *UpdateExternalVersionControlRequest) Reset() {- *x = UpdateExternalVersionControlRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[4]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *UpdateExternalVersionControlRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*UpdateExternalVersionControlRequest) ProtoMessage() {}--func (x *UpdateExternalVersionControlRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[4]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use UpdateExternalVersionControlRequest.ProtoReflect.Descriptor instead.-func (*UpdateExternalVersionControlRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{4}-}--func (x *UpdateExternalVersionControlRequest) GetExternalVersionControl() *ExternalVersionControl {- if x != nil {- return x.ExternalVersionControl- }- return nil-}--func (x *UpdateExternalVersionControlRequest) GetUpdateMask() *fieldmaskpb.FieldMask {- if x != nil {- return x.UpdateMask- }- return nil-}--type DeleteExternalVersionControlRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the external version control to delete.- // Format: externalVersionControls/{externalVersionControl}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *DeleteExternalVersionControlRequest) Reset() {- *x = DeleteExternalVersionControlRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *DeleteExternalVersionControlRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*DeleteExternalVersionControlRequest) ProtoMessage() {}--func (x *DeleteExternalVersionControlRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[5]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use DeleteExternalVersionControlRequest.ProtoReflect.Descriptor instead.-func (*DeleteExternalVersionControlRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{5}-}--func (x *DeleteExternalVersionControlRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--type SearchExternalVersionControlProjectsRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the external version control to retrieve the external version control repositories.- // Format: externalVersionControls/{externalVersionControl}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`- RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`-}--func (x *SearchExternalVersionControlProjectsRequest) Reset() {- *x = SearchExternalVersionControlProjectsRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[6]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SearchExternalVersionControlProjectsRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SearchExternalVersionControlProjectsRequest) ProtoMessage() {}--func (x *SearchExternalVersionControlProjectsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[6]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SearchExternalVersionControlProjectsRequest.ProtoReflect.Descriptor instead.-func (*SearchExternalVersionControlProjectsRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{6}-}--func (x *SearchExternalVersionControlProjectsRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *SearchExternalVersionControlProjectsRequest) GetAccessToken() string {- if x != nil {- return x.AccessToken- }- return ""-}--func (x *SearchExternalVersionControlProjectsRequest) GetRefreshToken() string {- if x != nil {- return x.RefreshToken- }- return ""-}--type SearchExternalVersionControlProjectsResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The list of project in external version control.- Projects []*SearchExternalVersionControlProjectsResponse_Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`-}--func (x *SearchExternalVersionControlProjectsResponse) Reset() {- *x = SearchExternalVersionControlProjectsResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[7]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SearchExternalVersionControlProjectsResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SearchExternalVersionControlProjectsResponse) ProtoMessage() {}--func (x *SearchExternalVersionControlProjectsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[7]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SearchExternalVersionControlProjectsResponse.ProtoReflect.Descriptor instead.-func (*SearchExternalVersionControlProjectsResponse) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{7}-}--func (x *SearchExternalVersionControlProjectsResponse) GetProjects() []*SearchExternalVersionControlProjectsResponse_Project {- if x != nil {- return x.Projects- }- return nil-}--type ListProjectGitOpsInfoRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the external version control to retrieve the linked projects.- // Format: externalVersionControls/{externalVersionControl}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *ListProjectGitOpsInfoRequest) Reset() {- *x = ListProjectGitOpsInfoRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[8]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListProjectGitOpsInfoRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListProjectGitOpsInfoRequest) ProtoMessage() {}--func (x *ListProjectGitOpsInfoRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_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 ListProjectGitOpsInfoRequest.ProtoReflect.Descriptor instead.-func (*ListProjectGitOpsInfoRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{8}-}--func (x *ListProjectGitOpsInfoRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--type ListProjectGitOpsInfoResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The binding between external version control and project.- ProjectGitopsInfo []*ProjectGitOpsInfo `protobuf:"bytes,1,rep,name=project_gitops_info,json=projectGitopsInfo,proto3" json:"project_gitops_info,omitempty"`-}--func (x *ListProjectGitOpsInfoResponse) Reset() {- *x = ListProjectGitOpsInfoResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[9]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListProjectGitOpsInfoResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListProjectGitOpsInfoResponse) ProtoMessage() {}--func (x *ListProjectGitOpsInfoResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[9]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ListProjectGitOpsInfoResponse.ProtoReflect.Descriptor instead.-func (*ListProjectGitOpsInfoResponse) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{9}-}--func (x *ListProjectGitOpsInfoResponse) GetProjectGitopsInfo() []*ProjectGitOpsInfo {- if x != nil {- return x.ProjectGitopsInfo- }- return nil-}--type ExternalVersionControl struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the external version control, generated by the server, and also is the unique identifier.- // Format: externalVersionControls/{externalVersionControl}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The title of the external version control. It is used to display in the UI. Specified by the client.- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- Type ExternalVersionControl_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.ExternalVersionControl_Type" json:"type,omitempty"`- // The url of the external version control. Specified by the client.- // For example: github.com, gitlab.com, gitlab.bytebase.com.- Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`- // The API url of the external version control. Derived from the url.- ApiUrl string `protobuf:"bytes,5,opt,name=api_url,json=apiUrl,proto3" json:"api_url,omitempty"`- // The application ID of the external version control. Specified by the client.- ApplicationId string `protobuf:"bytes,6,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`- // The application secret of the external version control. Specified by the client.- Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"`-}--func (x *ExternalVersionControl) Reset() {- *x = ExternalVersionControl{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[10]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ExternalVersionControl) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ExternalVersionControl) ProtoMessage() {}--func (x *ExternalVersionControl) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[10]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ExternalVersionControl.ProtoReflect.Descriptor instead.-func (*ExternalVersionControl) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{10}-}--func (x *ExternalVersionControl) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *ExternalVersionControl) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *ExternalVersionControl) GetType() ExternalVersionControl_Type {- if x != nil {- return x.Type- }- return ExternalVersionControl_TYPE_UNSPECIFIED-}--func (x *ExternalVersionControl) GetUrl() string {- if x != nil {- return x.Url- }- return ""-}--func (x *ExternalVersionControl) GetApiUrl() string {- if x != nil {- return x.ApiUrl- }- return ""-}--func (x *ExternalVersionControl) GetApplicationId() string {- if x != nil {- return x.ApplicationId- }- return ""-}--func (x *ExternalVersionControl) GetSecret() string {- if x != nil {- return x.Secret- }- return ""-}--type ProjectGitOpsInfo struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the linked repository, generated by the server, and also is the unique identifier.- // Format: projects/{project}/gitOpsInfo- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The uid for related VCS.- VcsUid string `protobuf:"bytes,2,opt,name=vcs_uid,json=vcsUid,proto3" json:"vcs_uid,omitempty"`- // The title of the repository. For axample: sample.- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`- // The full_path of the repository. For example: bytebase/sample.- FullPath string `protobuf:"bytes,4,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"`- // The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample.- WebUrl string `protobuf:"bytes,5,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`- // The branch Bytebase listens to for changes. For example: main.- BranchFilter string `protobuf:"bytes,6,opt,name=branch_filter,json=branchFilter,proto3" json:"branch_filter,omitempty"`- // The root directory where Bytebase observes the file change. If empty, then it observes the entire repository.- BaseDirectory string `protobuf:"bytes,7,opt,name=base_directory,json=baseDirectory,proto3" json:"base_directory,omitempty"`- // Bytebase only observes the file path name matching the template pattern **relative** to the base directory.- // Required Placeholder: {{DB_NAME}}, {{VERSION}}, {{TYPE]}.- // Optional Placeholder: {{ENV_ID}}, {{DESCRIPTION}}.- // Optional Directory Wildcard: '*', '**'.- FilePathTemplate string `protobuf:"bytes,8,opt,name=file_path_template,json=filePathTemplate,proto3" json:"file_path_template,omitempty"`- // The file path template for storing the latest schema auto-generated by Bytebase after migration.- // If empty, then Bytebase won't auto generate it.- // If specified, required placeholder: {{DB_NAME}}, optional placeholder: {{ENV_ID}}.- SchemaPathTemplate string `protobuf:"bytes,9,opt,name=schema_path_template,json=schemaPathTemplate,proto3" json:"schema_path_template,omitempty"`- // The file path template for matching the sql files for sheet.- // If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}}, {{DB_NAME}}.- SheetPathTemplate string `protobuf:"bytes,10,opt,name=sheet_path_template,json=sheetPathTemplate,proto3" json:"sheet_path_template,omitempty"`- // The reposition external id in target VCS.- ExternalId string `protobuf:"bytes,11,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`- // Set to true to enable SQL review CI for all PR/MRs.- EnableSqlReviewCi bool `protobuf:"varint,12,opt,name=enable_sql_review_ci,json=enableSqlReviewCi,proto3" json:"enable_sql_review_ci,omitempty"`- // The webhook endpoint ID of the repository.- WebhookEndpointId string `protobuf:"bytes,13,opt,name=webhook_endpoint_id,json=webhookEndpointId,proto3" json:"webhook_endpoint_id,omitempty"`- AccessToken string `protobuf:"bytes,14,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`- ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`- RefreshToken string `protobuf:"bytes,16,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`-}--func (x *ProjectGitOpsInfo) Reset() {- *x = ProjectGitOpsInfo{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[11]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ProjectGitOpsInfo) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ProjectGitOpsInfo) ProtoMessage() {}--func (x *ProjectGitOpsInfo) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[11]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ProjectGitOpsInfo.ProtoReflect.Descriptor instead.-func (*ProjectGitOpsInfo) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{11}-}--func (x *ProjectGitOpsInfo) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *ProjectGitOpsInfo) GetVcsUid() string {- if x != nil {- return x.VcsUid- }- return ""-}--func (x *ProjectGitOpsInfo) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *ProjectGitOpsInfo) GetFullPath() string {- if x != nil {- return x.FullPath- }- return ""-}--func (x *ProjectGitOpsInfo) GetWebUrl() string {- if x != nil {- return x.WebUrl- }- return ""-}--func (x *ProjectGitOpsInfo) GetBranchFilter() string {- if x != nil {- return x.BranchFilter- }- return ""-}--func (x *ProjectGitOpsInfo) GetBaseDirectory() string {- if x != nil {- return x.BaseDirectory- }- return ""-}--func (x *ProjectGitOpsInfo) GetFilePathTemplate() string {- if x != nil {- return x.FilePathTemplate- }- return ""-}--func (x *ProjectGitOpsInfo) GetSchemaPathTemplate() string {- if x != nil {- return x.SchemaPathTemplate- }- return ""-}--func (x *ProjectGitOpsInfo) GetSheetPathTemplate() string {- if x != nil {- return x.SheetPathTemplate- }- return ""-}--func (x *ProjectGitOpsInfo) GetExternalId() string {- if x != nil {- return x.ExternalId- }- return ""-}--func (x *ProjectGitOpsInfo) GetEnableSqlReviewCi() bool {- if x != nil {- return x.EnableSqlReviewCi- }- return false-}--func (x *ProjectGitOpsInfo) GetWebhookEndpointId() string {- if x != nil {- return x.WebhookEndpointId- }- return ""-}--func (x *ProjectGitOpsInfo) GetAccessToken() string {- if x != nil {- return x.AccessToken- }- return ""-}--func (x *ProjectGitOpsInfo) GetExpiresTime() *timestamppb.Timestamp {- if x != nil {- return x.ExpiresTime- }- return nil-}--func (x *ProjectGitOpsInfo) GetRefreshToken() string {- if x != nil {- return x.RefreshToken- }- return ""-}--type ExchangeTokenRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- ExchangeToken *ExchangeToken `protobuf:"bytes,1,opt,name=exchange_token,json=exchangeToken,proto3" json:"exchange_token,omitempty"`-}--func (x *ExchangeTokenRequest) Reset() {- *x = ExchangeTokenRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[12]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ExchangeTokenRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ExchangeTokenRequest) ProtoMessage() {}--func (x *ExchangeTokenRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[12]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ExchangeTokenRequest.ProtoReflect.Descriptor instead.-func (*ExchangeTokenRequest) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{12}-}--func (x *ExchangeTokenRequest) GetExchangeToken() *ExchangeToken {- if x != nil {- return x.ExchangeToken- }- return nil-}--type ExchangeToken struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the external version control to retrieve the linked projects.- // Format: externalVersionControls/{externalVersionControl}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`- Type ExternalVersionControl_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.ExternalVersionControl_Type" json:"type,omitempty"`- InstanceUrl string `protobuf:"bytes,4,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`- ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`- ClientSecret string `protobuf:"bytes,6,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`-}--func (x *ExchangeToken) Reset() {- *x = ExchangeToken{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[13]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ExchangeToken) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ExchangeToken) ProtoMessage() {}--func (x *ExchangeToken) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[13]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ExchangeToken.ProtoReflect.Descriptor instead.-func (*ExchangeToken) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{13}-}--func (x *ExchangeToken) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *ExchangeToken) GetCode() string {- if x != nil {- return x.Code- }- return ""-}--func (x *ExchangeToken) GetType() ExternalVersionControl_Type {- if x != nil {- return x.Type- }- return ExternalVersionControl_TYPE_UNSPECIFIED-}--func (x *ExchangeToken) GetInstanceUrl() string {- if x != nil {- return x.InstanceUrl- }- return ""-}--func (x *ExchangeToken) GetClientId() string {- if x != nil {- return x.ClientId- }- return ""-}--func (x *ExchangeToken) GetClientSecret() string {- if x != nil {- return x.ClientSecret- }- return ""-}--type OAuthToken struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`- RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`- ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`-}--func (x *OAuthToken) Reset() {- *x = OAuthToken{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[14]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *OAuthToken) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*OAuthToken) ProtoMessage() {}--func (x *OAuthToken) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[14]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use OAuthToken.ProtoReflect.Descriptor instead.-func (*OAuthToken) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{14}-}--func (x *OAuthToken) GetAccessToken() string {- if x != nil {- return x.AccessToken- }- return ""-}--func (x *OAuthToken) GetRefreshToken() string {- if x != nil {- return x.RefreshToken- }- return ""-}--func (x *OAuthToken) GetExpiresTime() *timestamppb.Timestamp {- if x != nil {- return x.ExpiresTime- }- return nil-}--type SearchExternalVersionControlProjectsResponse_Project struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The id of the project in external version control.- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`- // The title of the project in external version control.- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- // The fullpath of the project in external version control.- Fullpath string `protobuf:"bytes,3,opt,name=fullpath,proto3" json:"fullpath,omitempty"`- // Web url of the project in external version control.- WebUrl string `protobuf:"bytes,4,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`-}--func (x *SearchExternalVersionControlProjectsResponse_Project) Reset() {- *x = SearchExternalVersionControlProjectsResponse_Project{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_externalvs_service_proto_msgTypes[15]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SearchExternalVersionControlProjectsResponse_Project) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SearchExternalVersionControlProjectsResponse_Project) ProtoMessage() {}--func (x *SearchExternalVersionControlProjectsResponse_Project) ProtoReflect() protoreflect.Message {- mi := &file_v1_externalvs_service_proto_msgTypes[15]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SearchExternalVersionControlProjectsResponse_Project.ProtoReflect.Descriptor instead.-func (*SearchExternalVersionControlProjectsResponse_Project) Descriptor() ([]byte, []int) {- return file_v1_externalvs_service_proto_rawDescGZIP(), []int{7, 0}-}--func (x *SearchExternalVersionControlProjectsResponse_Project) GetId() string {- if x != nil {- return x.Id- }- return ""-}--func (x *SearchExternalVersionControlProjectsResponse_Project) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *SearchExternalVersionControlProjectsResponse_Project) GetFullpath() string {- if x != nil {- return x.Fullpath- }- return ""-}--func (x *SearchExternalVersionControlProjectsResponse_Project) GetWebUrl() string {- if x != nil {- return x.WebUrl- }- return ""-}--var File_v1_externalvs_service_proto protoreflect.FileDescriptor--var file_v1_externalvs_service_proto_rawDesc = []byte{- 0x0a, 0x1b, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x76, 0x73, 0x5f,- 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,- 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,- 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x23, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x74,- 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74,- 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x62, 0x0a, 0x18, 0x65, 0x78,- 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63,- 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72,- 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,- 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x16, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,- 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x3b,- 0x0a, 0x20, 0x47, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72,- 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x60, 0x0a, 0x22, 0x4c,- 0x69, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,- 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01,- 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, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xae, 0x01,- 0x0a, 0x23, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x19, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,- 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,- 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x17, 0x65,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,- 0x6e, 0x74, 0x72, 0x6f, 0x6c, 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, 0xcb,- 0x01, 0x0a, 0x23, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,- 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x62, 0x0a, 0x18, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e,- 0x61, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72,- 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x16, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73,- 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,- 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x3e, 0x0a, 0x23,- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x98, 0x01, 0x0a,- 0x2b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x28, 0x0a,- 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65,- 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xf3, 0x01, 0x0a, 0x2c, 0x53, 0x65, 0x61, 0x72,- 0x63, 0x68, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,- 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x45,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,- 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x1a, 0x64, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,- 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c,- 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c,- 0x70, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x5f, 0x75, 0x72, 0x6c, 0x18,- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x65, 0x62, 0x55, 0x72, 0x6c, 0x22, 0x37, 0x0a,- 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f,- 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6f, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,- 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74,- 0x6f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xe4, 0x02, 0x0a, 0x16, 0x45, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72,- 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74,- 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,- 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03,- 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c,- 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x70, 0x69, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x61, 0x70, 0x69, 0x55, 0x72, 0x6c, 0x12, 0x2a,- 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x61, 0x70, 0x70,- 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x06, 0x73, 0x65,- 0x63, 0x72, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52,- 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x55, 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, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10,- 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a,- 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c,- 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04, 0x22, 0x8f,- 0x05, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,- 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a,- 0x07, 0x76, 0x63, 0x73, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x76, 0x63, 0x73, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09,- 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x65, 0x62,- 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x65, 0x62, 0x55,- 0x72, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x66, 0x69, 0x6c,- 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63,- 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x0d, 0x62, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x31,- 0x0a, 0x12, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70,- 0x6c, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x10, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,- 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x61, 0x74, 0x68,- 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x12, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c,- 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x74,- 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x11, 0x73, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c,- 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f,- 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e,- 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73,- 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x69, 0x18, 0x0c, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x43, 0x69, 0x12, 0x33, 0x0a, 0x13, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x63,- 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b,- 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x0f, 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, 0x04, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72,- 0x65, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73,- 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e,- 0x22, 0x59, 0x0a, 0x14, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,- 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x78, 0x63, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45,- 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0d, 0x65, 0x78,- 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xda, 0x01, 0x0a, 0x0d,- 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,- 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f,- 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,- 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e,- 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65,- 0x63, 0x72, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65,- 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0xa2, 0x01, 0x0a, 0x0a, 0x4f, 0x41, 0x75,- 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,- 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x03, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,- 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x66,- 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70,- 0x69, 0x72, 0x65, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 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, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x32, 0xf7, 0x0b,- 0x0a, 0x1d, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,- 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,- 0xa4, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x2d, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,- 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72,- 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,- 0x6c, 0x22, 0x33, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26,- 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72,- 0x6f, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x45,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,- 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x12, 0x2f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,- 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e,- 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0xda, 0x41, 0x00, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e,- 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,- 0x73, 0x12, 0xb7, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72,- 0x6f, 0x6c, 0x12, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,- 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x40, 0xda, 0x41, 0x00, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x18, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x76,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x1b,- 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73,- 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x12, 0xfe, 0x01, 0x0a, 0x1c,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x30, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74,- 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74,- 0x72, 0x6f, 0x6c, 0x22, 0x86, 0x01, 0xda, 0x41, 0x24, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,- 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,- 0x6c, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x59, 0x3a, 0x18, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x76, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x32, 0x3d, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x76, 0x65, 0x72,- 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,- 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa9, 0x01, 0x0a,- 0x0d, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x63,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x4f, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5c, 0xda, 0x41, 0x00, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x53, 0x3a, 0x0e, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f,- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x65, 0x78, 0x63, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43,- 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x63, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x96, 0x01, 0x0a, 0x1c, 0x44, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,- 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x78,- 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,- 0x74, 0x72, 0x6f, 0x6c, 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, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x2a, 0x24, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56,- 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0xdb, 0x01, 0x0a, 0x24, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x45, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72,- 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x38, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x45,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,- 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,- 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x01, 0x2a, 0x22, 0x33, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x2f, 0x2a, 0x7d,- 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12,- 0xa5, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47,- 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69,- 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x73,- 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,- 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x33,-}--var (- file_v1_externalvs_service_proto_rawDescOnce sync.Once- file_v1_externalvs_service_proto_rawDescData = file_v1_externalvs_service_proto_rawDesc-)--func file_v1_externalvs_service_proto_rawDescGZIP() []byte {- file_v1_externalvs_service_proto_rawDescOnce.Do(func() {- file_v1_externalvs_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_externalvs_service_proto_rawDescData)- })- return file_v1_externalvs_service_proto_rawDescData-}--var file_v1_externalvs_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_externalvs_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)-var file_v1_externalvs_service_proto_goTypes = []interface{}{- (ExternalVersionControl_Type)(0), // 0: bytebase.v1.ExternalVersionControl.Type- (*CreateExternalVersionControlRequest)(nil), // 1: bytebase.v1.CreateExternalVersionControlRequest- (*GetExternalVersionControlRequest)(nil), // 2: bytebase.v1.GetExternalVersionControlRequest- (*ListExternalVersionControlsRequest)(nil), // 3: bytebase.v1.ListExternalVersionControlsRequest- (*ListExternalVersionControlsResponse)(nil), // 4: bytebase.v1.ListExternalVersionControlsResponse- (*UpdateExternalVersionControlRequest)(nil), // 5: bytebase.v1.UpdateExternalVersionControlRequest- (*DeleteExternalVersionControlRequest)(nil), // 6: bytebase.v1.DeleteExternalVersionControlRequest- (*SearchExternalVersionControlProjectsRequest)(nil), // 7: bytebase.v1.SearchExternalVersionControlProjectsRequest- (*SearchExternalVersionControlProjectsResponse)(nil), // 8: bytebase.v1.SearchExternalVersionControlProjectsResponse- (*ListProjectGitOpsInfoRequest)(nil), // 9: bytebase.v1.ListProjectGitOpsInfoRequest- (*ListProjectGitOpsInfoResponse)(nil), // 10: bytebase.v1.ListProjectGitOpsInfoResponse- (*ExternalVersionControl)(nil), // 11: bytebase.v1.ExternalVersionControl- (*ProjectGitOpsInfo)(nil), // 12: bytebase.v1.ProjectGitOpsInfo- (*ExchangeTokenRequest)(nil), // 13: bytebase.v1.ExchangeTokenRequest- (*ExchangeToken)(nil), // 14: bytebase.v1.ExchangeToken- (*OAuthToken)(nil), // 15: bytebase.v1.OAuthToken- (*SearchExternalVersionControlProjectsResponse_Project)(nil), // 16: bytebase.v1.SearchExternalVersionControlProjectsResponse.Project- (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp- (*emptypb.Empty)(nil), // 19: google.protobuf.Empty-}-var file_v1_externalvs_service_proto_depIdxs = []int32{- 11, // 0: bytebase.v1.CreateExternalVersionControlRequest.external_version_control:type_name -> bytebase.v1.ExternalVersionControl- 11, // 1: bytebase.v1.ListExternalVersionControlsResponse.external_version_controls:type_name -> bytebase.v1.ExternalVersionControl- 11, // 2: bytebase.v1.UpdateExternalVersionControlRequest.external_version_control:type_name -> bytebase.v1.ExternalVersionControl- 17, // 3: bytebase.v1.UpdateExternalVersionControlRequest.update_mask:type_name -> google.protobuf.FieldMask- 16, // 4: bytebase.v1.SearchExternalVersionControlProjectsResponse.projects:type_name -> bytebase.v1.SearchExternalVersionControlProjectsResponse.Project- 12, // 5: bytebase.v1.ListProjectGitOpsInfoResponse.project_gitops_info:type_name -> bytebase.v1.ProjectGitOpsInfo- 0, // 6: bytebase.v1.ExternalVersionControl.type:type_name -> bytebase.v1.ExternalVersionControl.Type- 18, // 7: bytebase.v1.ProjectGitOpsInfo.expires_time:type_name -> google.protobuf.Timestamp- 14, // 8: bytebase.v1.ExchangeTokenRequest.exchange_token:type_name -> bytebase.v1.ExchangeToken- 0, // 9: bytebase.v1.ExchangeToken.type:type_name -> bytebase.v1.ExternalVersionControl.Type- 18, // 10: bytebase.v1.OAuthToken.expires_time:type_name -> google.protobuf.Timestamp- 2, // 11: bytebase.v1.ExternalVersionControlService.GetExternalVersionControl:input_type -> bytebase.v1.GetExternalVersionControlRequest- 3, // 12: bytebase.v1.ExternalVersionControlService.ListExternalVersionControls:input_type -> bytebase.v1.ListExternalVersionControlsRequest- 1, // 13: bytebase.v1.ExternalVersionControlService.CreateExternalVersionControl:input_type -> bytebase.v1.CreateExternalVersionControlRequest- 5, // 14: bytebase.v1.ExternalVersionControlService.UpdateExternalVersionControl:input_type -> bytebase.v1.UpdateExternalVersionControlRequest- 13, // 15: bytebase.v1.ExternalVersionControlService.ExchangeToken:input_type -> bytebase.v1.ExchangeTokenRequest- 6, // 16: bytebase.v1.ExternalVersionControlService.DeleteExternalVersionControl:input_type -> bytebase.v1.DeleteExternalVersionControlRequest- 7, // 17: bytebase.v1.ExternalVersionControlService.SearchExternalVersionControlProjects:input_type -> bytebase.v1.SearchExternalVersionControlProjectsRequest- 9, // 18: bytebase.v1.ExternalVersionControlService.ListProjectGitOpsInfo:input_type -> bytebase.v1.ListProjectGitOpsInfoRequest- 11, // 19: bytebase.v1.ExternalVersionControlService.GetExternalVersionControl:output_type -> bytebase.v1.ExternalVersionControl- 4, // 20: bytebase.v1.ExternalVersionControlService.ListExternalVersionControls:output_type -> bytebase.v1.ListExternalVersionControlsResponse- 11, // 21: bytebase.v1.ExternalVersionControlService.CreateExternalVersionControl:output_type -> bytebase.v1.ExternalVersionControl- 11, // 22: bytebase.v1.ExternalVersionControlService.UpdateExternalVersionControl:output_type -> bytebase.v1.ExternalVersionControl- 15, // 23: bytebase.v1.ExternalVersionControlService.ExchangeToken:output_type -> bytebase.v1.OAuthToken- 19, // 24: bytebase.v1.ExternalVersionControlService.DeleteExternalVersionControl:output_type -> google.protobuf.Empty- 8, // 25: bytebase.v1.ExternalVersionControlService.SearchExternalVersionControlProjects:output_type -> bytebase.v1.SearchExternalVersionControlProjectsResponse- 10, // 26: bytebase.v1.ExternalVersionControlService.ListProjectGitOpsInfo:output_type -> bytebase.v1.ListProjectGitOpsInfoResponse- 19, // [19:27] is the sub-list for method output_type- 11, // [11:19] is the sub-list for method input_type- 11, // [11:11] is the sub-list for extension type_name- 11, // [11:11] is the sub-list for extension extendee- 0, // [0:11] is the sub-list for field type_name-}--func init() { file_v1_externalvs_service_proto_init() }-func file_v1_externalvs_service_proto_init() {- if File_v1_externalvs_service_proto != nil {- return- }- if !protoimpl.UnsafeEnabled {- file_v1_externalvs_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*CreateExternalVersionControlRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetExternalVersionControlRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListExternalVersionControlsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListExternalVersionControlsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdateExternalVersionControlRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DeleteExternalVersionControlRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SearchExternalVersionControlProjectsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SearchExternalVersionControlProjectsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListProjectGitOpsInfoRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListProjectGitOpsInfoResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ExternalVersionControl); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ProjectGitOpsInfo); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ExchangeTokenRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ExchangeToken); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*OAuthToken); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_externalvs_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SearchExternalVersionControlProjectsResponse_Project); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- }- type x struct{}- out := protoimpl.TypeBuilder{- File: protoimpl.DescBuilder{- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),- RawDescriptor: file_v1_externalvs_service_proto_rawDesc,- NumEnums: 1,- NumMessages: 16,- NumExtensions: 0,- NumServices: 1,- },- GoTypes: file_v1_externalvs_service_proto_goTypes,- DependencyIndexes: file_v1_externalvs_service_proto_depIdxs,- EnumInfos: file_v1_externalvs_service_proto_enumTypes,- MessageInfos: file_v1_externalvs_service_proto_msgTypes,- }.Build()- File_v1_externalvs_service_proto = out.File- file_v1_externalvs_service_proto_rawDesc = nil- file_v1_externalvs_service_proto_goTypes = nil- file_v1_externalvs_service_proto_depIdxs = nil-}diff --git a/proto/generated-go/v1/externalvs_service.pb.gw.go b/proto/generated-go/v1/externalvs_service.pb.gw.godeleted file mode 100644index 0774e717aa..0000000000--- a/proto/generated-go/v1/externalvs_service.pb.gw.go+++ /dev/null@@ -1,932 +0,0 @@-// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.-// source: v1/externalvs_service.proto--/*-Package v1 is a reverse proxy.--It translates gRPC into RESTful JSON APIs.-*/-package v1--import (- "context"- "io"- "net/http"-- "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"- "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"- "google.golang.org/grpc"- "google.golang.org/grpc/codes"- "google.golang.org/grpc/grpclog"- "google.golang.org/grpc/metadata"- "google.golang.org/grpc/status"- "google.golang.org/protobuf/proto"-)--// Suppress "imported and not used" errors-var _ codes.Code-var _ io.Reader-var _ status.Status-var _ = runtime.String-var _ = utilities.NewDoubleArray-var _ = metadata.Join--func request_ExternalVersionControlService_GetExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetExternalVersionControlRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.GetExternalVersionControl(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_GetExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetExternalVersionControlRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.GetExternalVersionControl(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ExternalVersionControlService_ListExternalVersionControls_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}-)--func request_ExternalVersionControlService_ListExternalVersionControls_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListExternalVersionControlsRequest- var metadata runtime.ServerMetadata-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ExternalVersionControlService_ListExternalVersionControls_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.ListExternalVersionControls(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_ListExternalVersionControls_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListExternalVersionControlsRequest- var metadata runtime.ServerMetadata-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ExternalVersionControlService_ListExternalVersionControls_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.ListExternalVersionControls(ctx, &protoReq)- return msg, metadata, err--}--func request_ExternalVersionControlService_CreateExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateExternalVersionControlRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.ExternalVersionControl); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.CreateExternalVersionControl(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_CreateExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateExternalVersionControlRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.ExternalVersionControl); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.CreateExternalVersionControl(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ExternalVersionControlService_UpdateExternalVersionControl_0 = &utilities.DoubleArray{Encoding: map[string]int{"external_version_control": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}}-)--func request_ExternalVersionControlService_UpdateExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateExternalVersionControlRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.ExternalVersionControl); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.ExternalVersionControl); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["external_version_control.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "external_version_control.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "external_version_control.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "external_version_control.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ExternalVersionControlService_UpdateExternalVersionControl_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.UpdateExternalVersionControl(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_UpdateExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateExternalVersionControlRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.ExternalVersionControl); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.ExternalVersionControl); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["external_version_control.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "external_version_control.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "external_version_control.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "external_version_control.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ExternalVersionControlService_UpdateExternalVersionControl_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.UpdateExternalVersionControl(ctx, &protoReq)- return msg, metadata, err--}--func request_ExternalVersionControlService_ExchangeToken_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ExchangeTokenRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.ExchangeToken); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["exchange_token.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exchange_token.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "exchange_token.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exchange_token.name", err)- }-- msg, err := client.ExchangeToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_ExchangeToken_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ExchangeTokenRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.ExchangeToken); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["exchange_token.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exchange_token.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "exchange_token.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exchange_token.name", err)- }-- msg, err := server.ExchangeToken(ctx, &protoReq)- return msg, metadata, err--}--func request_ExternalVersionControlService_DeleteExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq DeleteExternalVersionControlRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.DeleteExternalVersionControl(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_DeleteExternalVersionControl_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq DeleteExternalVersionControlRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.DeleteExternalVersionControl(ctx, &protoReq)- return msg, metadata, err--}--func request_ExternalVersionControlService_SearchExternalVersionControlProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq SearchExternalVersionControlProjectsRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.SearchExternalVersionControlProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_SearchExternalVersionControlProjects_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq SearchExternalVersionControlProjectsRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.SearchExternalVersionControlProjects(ctx, &protoReq)- return msg, metadata, err--}--func request_ExternalVersionControlService_ListProjectGitOpsInfo_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalVersionControlServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListProjectGitOpsInfoRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.ListProjectGitOpsInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ExternalVersionControlService_ListProjectGitOpsInfo_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalVersionControlServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListProjectGitOpsInfoRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.ListProjectGitOpsInfo(ctx, &protoReq)- return msg, metadata, err--}--// RegisterExternalVersionControlServiceHandlerServer registers the http handlers for service ExternalVersionControlService to "mux".-// UnaryRPC :call ExternalVersionControlServiceServer directly.-// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.-// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExternalVersionControlServiceHandlerFromEndpoint instead.-func RegisterExternalVersionControlServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExternalVersionControlServiceServer) error {-- mux.Handle("GET", pattern_ExternalVersionControlService_GetExternalVersionControl_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.ExternalVersionControlService/GetExternalVersionControl", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_GetExternalVersionControl_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_ExternalVersionControlService_GetExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ExternalVersionControlService_ListExternalVersionControls_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.ExternalVersionControlService/ListExternalVersionControls", runtime.WithHTTPPathPattern("/v1/externalVersionControls"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_ListExternalVersionControls_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_ExternalVersionControlService_ListExternalVersionControls_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ExternalVersionControlService_CreateExternalVersionControl_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.ExternalVersionControlService/CreateExternalVersionControl", runtime.WithHTTPPathPattern("/v1/externalVersionControls"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_CreateExternalVersionControl_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_ExternalVersionControlService_CreateExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_ExternalVersionControlService_UpdateExternalVersionControl_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.ExternalVersionControlService/UpdateExternalVersionControl", runtime.WithHTTPPathPattern("/v1/{external_version_control.name=externalVersionControls/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_UpdateExternalVersionControl_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_ExternalVersionControlService_UpdateExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ExternalVersionControlService_ExchangeToken_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.ExternalVersionControlService/ExchangeToken", runtime.WithHTTPPathPattern("/v1/{exchange_token.name=externalVersionControls/*}:exchangeToken"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_ExchangeToken_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_ExternalVersionControlService_ExchangeToken_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("DELETE", pattern_ExternalVersionControlService_DeleteExternalVersionControl_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.ExternalVersionControlService/DeleteExternalVersionControl", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_DeleteExternalVersionControl_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_ExternalVersionControlService_DeleteExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ExternalVersionControlService_SearchExternalVersionControlProjects_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.ExternalVersionControlService/SearchExternalVersionControlProjects", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}:searchProjects"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_SearchExternalVersionControlProjects_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_ExternalVersionControlService_SearchExternalVersionControlProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ExternalVersionControlService_ListProjectGitOpsInfo_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.ExternalVersionControlService/ListProjectGitOpsInfo", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}/projects"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ExternalVersionControlService_ListProjectGitOpsInfo_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_ExternalVersionControlService_ListProjectGitOpsInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- return nil-}--// RegisterExternalVersionControlServiceHandlerFromEndpoint is same as RegisterExternalVersionControlServiceHandler but-// automatically dials to "endpoint" and closes the connection when "ctx" gets done.-func RegisterExternalVersionControlServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {- conn, err := grpc.DialContext(ctx, endpoint, opts...)- if err != nil {- return err- }- defer func() {- if err != nil {- if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)- }- return- }- go func() {- <-ctx.Done()- if cerr := conn.Close(); cerr != nil {- grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)- }- }()- }()-- return RegisterExternalVersionControlServiceHandler(ctx, mux, conn)-}--// RegisterExternalVersionControlServiceHandler registers the http handlers for service ExternalVersionControlService to "mux".-// The handlers forward requests to the grpc endpoint over "conn".-func RegisterExternalVersionControlServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {- return RegisterExternalVersionControlServiceHandlerClient(ctx, mux, NewExternalVersionControlServiceClient(conn))-}--// RegisterExternalVersionControlServiceHandlerClient registers the http handlers for service ExternalVersionControlService-// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExternalVersionControlServiceClient".-// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExternalVersionControlServiceClient"-// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in-// "ExternalVersionControlServiceClient" to call the correct interceptors.-func RegisterExternalVersionControlServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExternalVersionControlServiceClient) error {-- mux.Handle("GET", pattern_ExternalVersionControlService_GetExternalVersionControl_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.ExternalVersionControlService/GetExternalVersionControl", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_GetExternalVersionControl_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_GetExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ExternalVersionControlService_ListExternalVersionControls_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.ExternalVersionControlService/ListExternalVersionControls", runtime.WithHTTPPathPattern("/v1/externalVersionControls"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_ListExternalVersionControls_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_ListExternalVersionControls_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ExternalVersionControlService_CreateExternalVersionControl_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.ExternalVersionControlService/CreateExternalVersionControl", runtime.WithHTTPPathPattern("/v1/externalVersionControls"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_CreateExternalVersionControl_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_CreateExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_ExternalVersionControlService_UpdateExternalVersionControl_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.ExternalVersionControlService/UpdateExternalVersionControl", runtime.WithHTTPPathPattern("/v1/{external_version_control.name=externalVersionControls/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_UpdateExternalVersionControl_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_UpdateExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ExternalVersionControlService_ExchangeToken_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.ExternalVersionControlService/ExchangeToken", runtime.WithHTTPPathPattern("/v1/{exchange_token.name=externalVersionControls/*}:exchangeToken"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_ExchangeToken_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_ExchangeToken_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("DELETE", pattern_ExternalVersionControlService_DeleteExternalVersionControl_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.ExternalVersionControlService/DeleteExternalVersionControl", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_DeleteExternalVersionControl_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_DeleteExternalVersionControl_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ExternalVersionControlService_SearchExternalVersionControlProjects_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.ExternalVersionControlService/SearchExternalVersionControlProjects", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}:searchProjects"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_SearchExternalVersionControlProjects_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_SearchExternalVersionControlProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ExternalVersionControlService_ListProjectGitOpsInfo_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.ExternalVersionControlService/ListProjectGitOpsInfo", runtime.WithHTTPPathPattern("/v1/{name=externalVersionControls/*}/projects"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ExternalVersionControlService_ListProjectGitOpsInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ExternalVersionControlService_ListProjectGitOpsInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- return nil-}--var (- pattern_ExternalVersionControlService_GetExternalVersionControl_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "externalVersionControls", "name"}, ""))-- pattern_ExternalVersionControlService_ListExternalVersionControls_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "externalVersionControls"}, ""))-- pattern_ExternalVersionControlService_CreateExternalVersionControl_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "externalVersionControls"}, ""))-- pattern_ExternalVersionControlService_UpdateExternalVersionControl_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "externalVersionControls", "external_version_control.name"}, ""))-- pattern_ExternalVersionControlService_ExchangeToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "externalVersionControls", "exchange_token.name"}, "exchangeToken"))-- pattern_ExternalVersionControlService_DeleteExternalVersionControl_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "externalVersionControls", "name"}, ""))-- pattern_ExternalVersionControlService_SearchExternalVersionControlProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "externalVersionControls", "name"}, "searchProjects"))-- pattern_ExternalVersionControlService_ListProjectGitOpsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "externalVersionControls", "name", "projects"}, ""))-)--var (- forward_ExternalVersionControlService_GetExternalVersionControl_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_ListExternalVersionControls_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_CreateExternalVersionControl_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_UpdateExternalVersionControl_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_ExchangeToken_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_DeleteExternalVersionControl_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_SearchExternalVersionControlProjects_0 = runtime.ForwardResponseMessage-- forward_ExternalVersionControlService_ListProjectGitOpsInfo_0 = runtime.ForwardResponseMessage-)diff --git a/proto/generated-go/v1/externalvs_service_grpc.pb.go b/proto/generated-go/v1/externalvs_service_grpc.pb.godeleted file mode 100644index ff866735b9..0000000000--- a/proto/generated-go/v1/externalvs_service_grpc.pb.go+++ /dev/null@@ -1,370 +0,0 @@-// Code generated by protoc-gen-go-grpc. DO NOT EDIT.-// versions:-// - protoc-gen-go-grpc v1.3.0-// - protoc (unknown)-// source: v1/externalvs_service.proto--package v1--import (- context "context"- grpc "google.golang.org/grpc"- codes "google.golang.org/grpc/codes"- status "google.golang.org/grpc/status"- emptypb "google.golang.org/protobuf/types/known/emptypb"-)--// This is a compile-time assertion to ensure that this generated file-// is compatible with the grpc package it is being compiled against.-// Requires gRPC-Go v1.32.0 or later.-const _ = grpc.SupportPackageIsVersion7--const (- ExternalVersionControlService_GetExternalVersionControl_FullMethodName = "/bytebase.v1.ExternalVersionControlService/GetExternalVersionControl"- ExternalVersionControlService_ListExternalVersionControls_FullMethodName = "/bytebase.v1.ExternalVersionControlService/ListExternalVersionControls"- ExternalVersionControlService_CreateExternalVersionControl_FullMethodName = "/bytebase.v1.ExternalVersionControlService/CreateExternalVersionControl"- ExternalVersionControlService_UpdateExternalVersionControl_FullMethodName = "/bytebase.v1.ExternalVersionControlService/UpdateExternalVersionControl"- ExternalVersionControlService_ExchangeToken_FullMethodName = "/bytebase.v1.ExternalVersionControlService/ExchangeToken"- ExternalVersionControlService_DeleteExternalVersionControl_FullMethodName = "/bytebase.v1.ExternalVersionControlService/DeleteExternalVersionControl"- ExternalVersionControlService_SearchExternalVersionControlProjects_FullMethodName = "/bytebase.v1.ExternalVersionControlService/SearchExternalVersionControlProjects"- ExternalVersionControlService_ListProjectGitOpsInfo_FullMethodName = "/bytebase.v1.ExternalVersionControlService/ListProjectGitOpsInfo"-)--// ExternalVersionControlServiceClient is the client API for ExternalVersionControlService service.-//-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.-type ExternalVersionControlServiceClient interface {- GetExternalVersionControl(ctx context.Context, in *GetExternalVersionControlRequest, opts ...grpc.CallOption) (*ExternalVersionControl, error)- ListExternalVersionControls(ctx context.Context, in *ListExternalVersionControlsRequest, opts ...grpc.CallOption) (*ListExternalVersionControlsResponse, error)- CreateExternalVersionControl(ctx context.Context, in *CreateExternalVersionControlRequest, opts ...grpc.CallOption) (*ExternalVersionControl, error)- UpdateExternalVersionControl(ctx context.Context, in *UpdateExternalVersionControlRequest, opts ...grpc.CallOption) (*ExternalVersionControl, error)- ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*OAuthToken, error)- DeleteExternalVersionControl(ctx context.Context, in *DeleteExternalVersionControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)- SearchExternalVersionControlProjects(ctx context.Context, in *SearchExternalVersionControlProjectsRequest, opts ...grpc.CallOption) (*SearchExternalVersionControlProjectsResponse, error)- ListProjectGitOpsInfo(ctx context.Context, in *ListProjectGitOpsInfoRequest, opts ...grpc.CallOption) (*ListProjectGitOpsInfoResponse, error)-}--type externalVersionControlServiceClient struct {- cc grpc.ClientConnInterface-}--func NewExternalVersionControlServiceClient(cc grpc.ClientConnInterface) ExternalVersionControlServiceClient {- return &externalVersionControlServiceClient{cc}-}--func (c *externalVersionControlServiceClient) GetExternalVersionControl(ctx context.Context, in *GetExternalVersionControlRequest, opts ...grpc.CallOption) (*ExternalVersionControl, error) {- out := new(ExternalVersionControl)- err := c.cc.Invoke(ctx, ExternalVersionControlService_GetExternalVersionControl_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) ListExternalVersionControls(ctx context.Context, in *ListExternalVersionControlsRequest, opts ...grpc.CallOption) (*ListExternalVersionControlsResponse, error) {- out := new(ListExternalVersionControlsResponse)- err := c.cc.Invoke(ctx, ExternalVersionControlService_ListExternalVersionControls_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) CreateExternalVersionControl(ctx context.Context, in *CreateExternalVersionControlRequest, opts ...grpc.CallOption) (*ExternalVersionControl, error) {- out := new(ExternalVersionControl)- err := c.cc.Invoke(ctx, ExternalVersionControlService_CreateExternalVersionControl_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) UpdateExternalVersionControl(ctx context.Context, in *UpdateExternalVersionControlRequest, opts ...grpc.CallOption) (*ExternalVersionControl, error) {- out := new(ExternalVersionControl)- err := c.cc.Invoke(ctx, ExternalVersionControlService_UpdateExternalVersionControl_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*OAuthToken, error) {- out := new(OAuthToken)- err := c.cc.Invoke(ctx, ExternalVersionControlService_ExchangeToken_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) DeleteExternalVersionControl(ctx context.Context, in *DeleteExternalVersionControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {- out := new(emptypb.Empty)- err := c.cc.Invoke(ctx, ExternalVersionControlService_DeleteExternalVersionControl_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) SearchExternalVersionControlProjects(ctx context.Context, in *SearchExternalVersionControlProjectsRequest, opts ...grpc.CallOption) (*SearchExternalVersionControlProjectsResponse, error) {- out := new(SearchExternalVersionControlProjectsResponse)- err := c.cc.Invoke(ctx, ExternalVersionControlService_SearchExternalVersionControlProjects_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *externalVersionControlServiceClient) ListProjectGitOpsInfo(ctx context.Context, in *ListProjectGitOpsInfoRequest, opts ...grpc.CallOption) (*ListProjectGitOpsInfoResponse, error) {- out := new(ListProjectGitOpsInfoResponse)- err := c.cc.Invoke(ctx, ExternalVersionControlService_ListProjectGitOpsInfo_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--// ExternalVersionControlServiceServer is the server API for ExternalVersionControlService service.-// All implementations must embed UnimplementedExternalVersionControlServiceServer-// for forward compatibility-type ExternalVersionControlServiceServer interface {- GetExternalVersionControl(context.Context, *GetExternalVersionControlRequest) (*ExternalVersionControl, error)- ListExternalVersionControls(context.Context, *ListExternalVersionControlsRequest) (*ListExternalVersionControlsResponse, error)- CreateExternalVersionControl(context.Context, *CreateExternalVersionControlRequest) (*ExternalVersionControl, error)- UpdateExternalVersionControl(context.Context, *UpdateExternalVersionControlRequest) (*ExternalVersionControl, error)- ExchangeToken(context.Context, *ExchangeTokenRequest) (*OAuthToken, error)- DeleteExternalVersionControl(context.Context, *DeleteExternalVersionControlRequest) (*emptypb.Empty, error)- SearchExternalVersionControlProjects(context.Context, *SearchExternalVersionControlProjectsRequest) (*SearchExternalVersionControlProjectsResponse, error)- ListProjectGitOpsInfo(context.Context, *ListProjectGitOpsInfoRequest) (*ListProjectGitOpsInfoResponse, error)- mustEmbedUnimplementedExternalVersionControlServiceServer()-}--// UnimplementedExternalVersionControlServiceServer must be embedded to have forward compatible implementations.-type UnimplementedExternalVersionControlServiceServer struct {-}--func (UnimplementedExternalVersionControlServiceServer) GetExternalVersionControl(context.Context, *GetExternalVersionControlRequest) (*ExternalVersionControl, error) {- return nil, status.Errorf(codes.Unimplemented, "method GetExternalVersionControl not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) ListExternalVersionControls(context.Context, *ListExternalVersionControlsRequest) (*ListExternalVersionControlsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListExternalVersionControls not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) CreateExternalVersionControl(context.Context, *CreateExternalVersionControlRequest) (*ExternalVersionControl, error) {- return nil, status.Errorf(codes.Unimplemented, "method CreateExternalVersionControl not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) UpdateExternalVersionControl(context.Context, *UpdateExternalVersionControlRequest) (*ExternalVersionControl, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdateExternalVersionControl not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) ExchangeToken(context.Context, *ExchangeTokenRequest) (*OAuthToken, error) {- return nil, status.Errorf(codes.Unimplemented, "method ExchangeToken not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) DeleteExternalVersionControl(context.Context, *DeleteExternalVersionControlRequest) (*emptypb.Empty, error) {- return nil, status.Errorf(codes.Unimplemented, "method DeleteExternalVersionControl not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) SearchExternalVersionControlProjects(context.Context, *SearchExternalVersionControlProjectsRequest) (*SearchExternalVersionControlProjectsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method SearchExternalVersionControlProjects not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) ListProjectGitOpsInfo(context.Context, *ListProjectGitOpsInfoRequest) (*ListProjectGitOpsInfoResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListProjectGitOpsInfo not implemented")-}-func (UnimplementedExternalVersionControlServiceServer) mustEmbedUnimplementedExternalVersionControlServiceServer() {-}--// UnsafeExternalVersionControlServiceServer may be embedded to opt out of forward compatibility for this service.-// Use of this interface is not recommended, as added methods to ExternalVersionControlServiceServer will-// result in compilation errors.-type UnsafeExternalVersionControlServiceServer interface {- mustEmbedUnimplementedExternalVersionControlServiceServer()-}--func RegisterExternalVersionControlServiceServer(s grpc.ServiceRegistrar, srv ExternalVersionControlServiceServer) {- s.RegisterService(&ExternalVersionControlService_ServiceDesc, srv)-}--func _ExternalVersionControlService_GetExternalVersionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(GetExternalVersionControlRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).GetExternalVersionControl(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_GetExternalVersionControl_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).GetExternalVersionControl(ctx, req.(*GetExternalVersionControlRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_ListExternalVersionControls_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListExternalVersionControlsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).ListExternalVersionControls(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_ListExternalVersionControls_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).ListExternalVersionControls(ctx, req.(*ListExternalVersionControlsRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_CreateExternalVersionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(CreateExternalVersionControlRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).CreateExternalVersionControl(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_CreateExternalVersionControl_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).CreateExternalVersionControl(ctx, req.(*CreateExternalVersionControlRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_UpdateExternalVersionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdateExternalVersionControlRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).UpdateExternalVersionControl(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_UpdateExternalVersionControl_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).UpdateExternalVersionControl(ctx, req.(*UpdateExternalVersionControlRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_ExchangeToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ExchangeTokenRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).ExchangeToken(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_ExchangeToken_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).ExchangeToken(ctx, req.(*ExchangeTokenRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_DeleteExternalVersionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(DeleteExternalVersionControlRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).DeleteExternalVersionControl(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_DeleteExternalVersionControl_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).DeleteExternalVersionControl(ctx, req.(*DeleteExternalVersionControlRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_SearchExternalVersionControlProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(SearchExternalVersionControlProjectsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).SearchExternalVersionControlProjects(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_SearchExternalVersionControlProjects_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).SearchExternalVersionControlProjects(ctx, req.(*SearchExternalVersionControlProjectsRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ExternalVersionControlService_ListProjectGitOpsInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListProjectGitOpsInfoRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ExternalVersionControlServiceServer).ListProjectGitOpsInfo(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ExternalVersionControlService_ListProjectGitOpsInfo_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ExternalVersionControlServiceServer).ListProjectGitOpsInfo(ctx, req.(*ListProjectGitOpsInfoRequest))- }- return interceptor(ctx, in, info, handler)-}--// ExternalVersionControlService_ServiceDesc is the grpc.ServiceDesc for ExternalVersionControlService service.-// It's only intended for direct use with grpc.RegisterService,-// and not to be introspected or modified (even as a copy)-var ExternalVersionControlService_ServiceDesc = grpc.ServiceDesc{- ServiceName: "bytebase.v1.ExternalVersionControlService",- HandlerType: (*ExternalVersionControlServiceServer)(nil),- Methods: []grpc.MethodDesc{- {- MethodName: "GetExternalVersionControl",- Handler: _ExternalVersionControlService_GetExternalVersionControl_Handler,- },- {- MethodName: "ListExternalVersionControls",- Handler: _ExternalVersionControlService_ListExternalVersionControls_Handler,- },- {- MethodName: "CreateExternalVersionControl",- Handler: _ExternalVersionControlService_CreateExternalVersionControl_Handler,- },- {- MethodName: "UpdateExternalVersionControl",- Handler: _ExternalVersionControlService_UpdateExternalVersionControl_Handler,- },- {- MethodName: "ExchangeToken",- Handler: _ExternalVersionControlService_ExchangeToken_Handler,- },- {- MethodName: "DeleteExternalVersionControl",- Handler: _ExternalVersionControlService_DeleteExternalVersionControl_Handler,- },- {- MethodName: "SearchExternalVersionControlProjects",- Handler: _ExternalVersionControlService_SearchExternalVersionControlProjects_Handler,- },- {- MethodName: "ListProjectGitOpsInfo",- Handler: _ExternalVersionControlService_ListProjectGitOpsInfo_Handler,- },- },- Streams: []grpc.StreamDesc{},- Metadata: "v1/externalvs_service.proto",-}diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.goindex 6413d16fa5..e040127ef6 100644--- a/proto/generated-go/v1/project_service.pb.go+++ b/proto/generated-go/v1/project_service.pb.go@@ -1546,7 +1546,7 @@ type UpdateProjectGitOpsInfoRequest struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The binding for the project and external version control.+ // The binding for the project and vcs provider.ProjectGitopsInfo *ProjectGitOpsInfo `protobuf:"bytes,2,opt,name=project_gitops_info,json=projectGitopsInfo,proto3" json:"project_gitops_info,omitempty"`// The mask of the fields to be updated.UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`@@ -4018,823 +4018,823 @@ var file_v1_project_service_proto_rawDesc = []byte{0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16,0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x70, 0x72,0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,- 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x76, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x11, 0x47, 0x65, 0x74,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x74, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,- 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68,- 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,- 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x70, 0x0a,- 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 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,- 0x3a, 0x0a, 0x15, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77,- 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b,- 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x4a, 0x0a, 0x16, 0x53,- 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x6a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,- 0x33, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f,- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x49, 0x64, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,- 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x45,- 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,- 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x31, 0x0a, 0x16, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74,- 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,- 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x34, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x49,- 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,- 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x4b,- 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x63,- 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05,- 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02,- 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xd1, 0x01, 0x0a, 0x19,- 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0e, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,- 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x58, 0x0a, 0x0c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,- 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,- 0x2e, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61,- 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,- 0x69, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x35, 0x0a, 0x1a, 0x47, 0x65,- 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x76, 0x31,+ 0x2f, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65,+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x11, 0x47,+ 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,+ 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x74, 0x0a, 0x13, 0x4c, 0x69, 0x73,+ 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c,+ 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22,+ 0x70, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52,+ 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 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, 0x3a, 0x0a, 0x15, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68,+ 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,+ 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x4a, 0x0a,+ 0x16, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52,+ 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x6a, 0x0a, 0x14, 0x43, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33,+ 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,+ 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,+ 0x22, 0x45, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x22, 0x5b, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xd7,- 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x53, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74,- 0x6f, 0x70, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x03,- 0xe0, 0x41, 0x02, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x6f,- 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,- 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,- 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73,- 0x73, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f,- 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x38, 0x0a, 0x1d, 0x55, 0x6e, 0x73, 0x65,- 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e,- 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x22, 0x36, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,+ 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x31, 0x0a, 0x16, 0x55, 0x6e, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x17, 0x53, 0x65,- 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x44,- 0x0a, 0x18, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x43, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75,- 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x55, 0x72, 0x6c, 0x22, 0xe1, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x05, 0x73,- 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05,- 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b,- 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a,- 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f,- 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77,- 0x12, 0x37, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x07,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76,- 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x0b, 0x74, 0x65, 0x6e,- 0x61, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e,- 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d,- 0x6f, 0x64, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x63, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x18,- 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x08, 0x77, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6c,- 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x64, 0x61,- 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x22, 0x67, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x57,- 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a,- 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,- 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x07,- 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,- 0x6b, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65,- 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f,- 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12,- 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b,- 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x4b, 0x0a, 0x14,- 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x68, 0x0a, 0x12, 0x54, 0x65, 0x73,- 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x34, 0x0a, 0x13, 0x47, 0x65,+ 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x22, 0x4b, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05,+ 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,+ 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73,+ 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xd1, 0x01,+ 0x0a, 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0e, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x58, 0x0a, 0x0c, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x22, 0x69, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x35, 0x0a, 0x1a,+ 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x22, 0x5b, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70,+ 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x22, 0xd7, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67,+ 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69,+ 0x74, 0x6f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,+ 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d,+ 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c,+ 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x38, 0x0a, 0x1d, 0x55, 0x6e,+ 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,+ 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x36, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x17,+ 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x22, 0x44, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x43, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10,+ 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x22, 0xe1, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x28, 0x0a,+ 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65,+ 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x10, 0x0a,+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,+ 0x31, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c,+ 0x6f, 0x77, 0x12, 0x37, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52,+ 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x0b, 0x74,+ 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,+ 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x74, 0x65, 0x6e, 0x61, 0x6e,+ 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,+ 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43,+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,+ 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x08, 0x77,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x64, 0x61, 0x74, 0x61, 0x5f,+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a,+ 0x64, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x22, 0x67, 0x0a, 0x11, 0x41, 0x64,+ 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33,0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65,0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x22, 0x2b, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,- 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,- 0x22, 0xe9, 0x02, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x12, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,- 0x74, 0x79, 0x70, 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,- 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4e, 0x0a, 0x12, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69,- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03,- 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03,- 0xe0, 0x41, 0x06, 0x52, 0x11, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x93, 0x01, 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, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c,- 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49,- 0x53, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x54, 0x45, 0x41, 0x4d, 0x53, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x44, 0x49, 0x4e, 0x47, 0x54, 0x41, 0x4c, 0x4b, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x43, 0x4f, 0x4d, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x07, 0x22, 0x6f, 0x0a, 0x10,- 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 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, 0x31, 0x0a, 0x08, 0x73, 0x63,- 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64,- 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x4d, 0x0a,- 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x65, 0x70,- 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,+ 0x6f, 0x6f, 0x6b, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65,+ 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07,+ 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68,+ 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,+ 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,+ 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x4b,+ 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,+ 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0,+ 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x68, 0x0a, 0x12, 0x54,+ 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65,+ 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x2b, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72,+ 0x6f, 0x72, 0x22, 0xe9, 0x02, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x12,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02,+ 0x52, 0x04, 0x74, 0x79, 0x70, 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, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,+ 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4e, 0x0a, 0x12, 0x6e, 0x6f, 0x74, 0x69,+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x05,+ 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65,+ 0x42, 0x03, 0xe0, 0x41, 0x06, 0x52, 0x11, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x93, 0x01, 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, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x53, 0x4c, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x44, 0x49, 0x53, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x54, 0x45, 0x41, 0x4d, 0x53, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x44, 0x49, 0x4e, 0x47, 0x54, 0x41, 0x4c, 0x4b, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55, 0x10, 0x05, 0x12, 0x0e, 0x0a,+ 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x43, 0x4f, 0x4d, 0x10, 0x06, 0x12, 0x0f, 0x0a,+ 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x07, 0x22, 0x6f,+ 0x0a, 0x10, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 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, 0x31, 0x0a, 0x08,+ 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68,- 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,- 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x5b, 0x0a, 0x12,- 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,- 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53,- 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x53, 0x0a, 0x0e, 0x44, 0x65, 0x70,- 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x0e, 0x6c,- 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52,- 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x63,- 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12,- 0x52, 0x0a, 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73,- 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65,+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22,+ 0x4d, 0x0a, 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x64,+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x52, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x5b,+ 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,+ 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x70,+ 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x53, 0x0a, 0x0e, 0x44,+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a,+ 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f,+ 0x72, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,+ 0x22, 0x63, 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f,+ 0x72, 0x12, 0x52, 0x0a, 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65,+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c,+ 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d,+ 0x65, 0x6e, 0x74, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73,+ 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65,0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e,- 0x74, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,- 0x6f, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65,- 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,- 0x79, 0x12, 0x35, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08,- 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,- 0x22, 0xcb, 0x06, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22, 0xbe, 0x06,- 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, 0x1e, 0x0a, 0x1a,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55,- 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x17, 0x12, 0x20, 0x0a, 0x1c,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x50, 0x49, 0x50, 0x45,- 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x10, 0x18, 0x12, 0x15,- 0x0a, 0x11, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45,- 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53,- 0x53, 0x55, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41,- 0x54, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53,- 0x55, 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10,- 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,- 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12,- 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x41, 0x50,- 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x10, 0x15, 0x12,- 0x2b, 0x0a, 0x27, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49,- 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x54, 0x41,- 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x05, 0x12, 0x2a, 0x0a, 0x26,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c,- 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,- 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x06, 0x12, 0x2e, 0x0a, 0x2a, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f,- 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,- 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x16, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f,- 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54,- 0x10, 0x07, 0x12, 0x2d, 0x0a, 0x29, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45,- 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53,- 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10,- 0x08, 0x12, 0x39, 0x0a, 0x35, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,- 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x41,- 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x5f, 0x54,- 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41,- 0x54, 0x45, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d,- 0x42, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10,- 0x0b, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52,- 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x1a, 0x0a, 0x16, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x41, 0x43, 0x54,- 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f,- 0x52, 0x59, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,- 0x53, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x0f, 0x12, 0x1e, 0x0a,- 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45,- 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x10, 0x12, 0x1e, 0x0a,- 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45,- 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12, 0x19, 0x0a,- 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52,- 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45,- 0x52, 0x59, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x14, 0x22, 0x74,- 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,- 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,- 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x66, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69,- 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xd2, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a, 0x0a, 0x11,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69,- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69,- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xa1, 0x01,- 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0e,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c,- 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,- 0x6b, 0x22, 0x35, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,- 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31,- 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65,- 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65,- 0x72, 0x12, 0x36, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78,- 0x70, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0c, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x6d, 0x61, 0x74,- 0x63, 0x68, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x04,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,+ 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65,+ 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61,+ 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x73, 0x22, 0xcb, 0x06, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22,+ 0xbe, 0x06, 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, 0x1e,+ 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x49, 0x53,+ 0x53, 0x55, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x17, 0x12, 0x20,+ 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x50, 0x49,+ 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x10, 0x18,+ 0x12, 0x15, 0x0a, 0x11, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43,+ 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52,+ 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49,+ 0x53, 0x53, 0x55, 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,+ 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55,+ 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10,+ 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,+ 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x10,+ 0x15, 0x12, 0x2b, 0x0a, 0x27, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,+ 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53,+ 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x05, 0x12, 0x2a,+ 0x0a, 0x26, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50,+ 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55,+ 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x06, 0x12, 0x2e, 0x0a, 0x2a, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e,+ 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55,+ 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x16, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e,+ 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d,+ 0x49, 0x54, 0x10, 0x07, 0x12, 0x2d, 0x0a, 0x29, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53,+ 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b,+ 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,+ 0x45, 0x10, 0x08, 0x12, 0x39, 0x0a, 0x35, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55,+ 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f,+ 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44,+ 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x16,+ 0x0a, 0x12, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52,+ 0x45, 0x41, 0x54, 0x45, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d,+ 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,+ 0x45, 0x10, 0x0b, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42,+ 0x45, 0x52, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x1a, 0x0a,+ 0x16, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x41,+ 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49,+ 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41,+ 0x42, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x0f, 0x12,+ 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f,+ 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x10, 0x12,+ 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f,+ 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12,+ 0x19, 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54,+ 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x4f,+ 0x56, 0x45, 0x52, 0x59, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x14,+ 0x22, 0x74, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,+ 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,+ 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x66, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10,- 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,- 0x12, 0x59, 0x0a, 0x13, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68,- 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x1e, 0x0a, 0x08, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x18,- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,- 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12,- 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,- 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75,- 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,- 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,- 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,- 0x22, 0x33, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x72, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a,- 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,- 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61,- 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,- 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x18, 0x4c, 0x69,- 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,- 0x72, 0x6f, 0x75, 0x70, 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, 0x62, 0x0a,- 0x15, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e,+ 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xd2, 0x01, 0x0a, 0x1a, 0x43,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a,+ 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,+ 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61,+ 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22,+ 0xa1, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46,+ 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,+ 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,+ 0x61, 0x73, 0x6b, 0x22, 0x35, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x12, 0x31, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x61,+ 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c,+ 0x64, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,+ 0x65, 0x78, 0x70, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f,+ 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0c, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x6d,+ 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,+ 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03,+ 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x73, 0x12, 0x59, 0x0a, 0x13, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x75, 0x6e, 0x6d, 0x61, 0x74,+ 0x63, 0x68, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x1e, 0x0a,+ 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc6, 0x01,+ 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65,- 0x77, 0x22, 0xef, 0x02, 0x0a, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65,- 0x78, 0x70, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x74, 0x61,- 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x61, 0x62, 0x6c, 0x65,- 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f,- 0x6c, 0x64, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,+ 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49,+ 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e,+ 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,+ 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72,+ 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,+ 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,+ 0x73, 0x6b, 0x22, 0x33, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x72, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,+ 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,+ 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x18,+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 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,+ 0x62, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x12, 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76,+ 0x69, 0x65, 0x77, 0x22, 0xef, 0x02, 0x0a, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65,+ 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09,+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x61, 0x62,+ 0x6c, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65,+ 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65,+ 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03,+ 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c,+ 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x10, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f,+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73,- 0x12, 0x4e, 0x0a, 0x10, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x74, 0x61,- 0x62, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,- 0x0f, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73,- 0x1a, 0x51, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a,- 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61,- 0x62, 0x6c, 0x65, 0x22, 0x3b, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x22, 0x73, 0x0a, 0x23, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x65,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x42,- 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74,- 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x05,- 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22,- 0xf7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75,- 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,- 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x2e,- 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1f,- 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,- 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73,- 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52,- 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x22, 0x47, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x21, 0x0a,- 0x1d, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x52, 0x47,- 0x45, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a,- 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x22, 0x3b, 0x0a, 0x0c,- 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x19,- 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44,- 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72,- 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f,- 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,- 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02,- 0x2a, 0x57, 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, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x5c, 0x0a, 0x0a, 0x54, 0x65, 0x6e,- 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x45, 0x4e, 0x41, 0x4e,- 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d,- 0x4f, 0x44, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x17,- 0x0a, 0x13, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x4e,- 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x43, 0x48, 0x45,- 0x4d, 0x41, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45,- 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x4d, 0x41, 0x4e,- 0x54, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x3f, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f,- 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x44, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a,- 0x03, 0x53, 0x44, 0x4c, 0x10, 0x02, 0x2a, 0x5d, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,- 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54,- 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f,- 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f,- 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x49,- 0x53, 0x54, 0x53, 0x10, 0x02, 0x2a, 0x75, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41,- 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45,- 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,- 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55,- 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c,- 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50,- 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x6d, 0x0a, 0x0f,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12,- 0x21, 0x0a, 0x1d, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f,- 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f,- 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12,- 0x1a, 0x0a, 0x16, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f,- 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0x93, 0x25, 0x0a, 0x0e,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x68,- 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74,+ 0x03, 0x52, 0x0f, 0x75, 0x6e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c,+ 0x65, 0x73, 0x1a, 0x51, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,+ 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x3b, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,+ 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x23, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,+ 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x72, 0x6f,+ 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65,+ 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31,+ 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74,+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65,+ 0x73, 0x22, 0xf7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,+ 0x65, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,+ 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65,+ 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65,+ 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,+ 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74,+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,+ 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x47, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12,+ 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41,+ 0x52, 0x47, 0x45, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,+ 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x0e,+ 0x0a, 0x0a, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x22, 0x3b,+ 0x0a, 0x0c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d,+ 0x0a, 0x19, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,+ 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x08, 0x57,+ 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46,+ 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53,+ 0x10, 0x02, 0x2a, 0x57, 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, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x5c, 0x0a, 0x0a, 0x54,+ 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x45, 0x4e,+ 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54,+ 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01,+ 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f,+ 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x4c, 0x0a, 0x0d, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x43,+ 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49,+ 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x4d,+ 0x41, 0x4e, 0x54, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x3f, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x43, 0x48, 0x45, 0x4d,+ 0x41, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x44, 0x4c, 0x10, 0x01, 0x12,+ 0x07, 0x0a, 0x03, 0x53, 0x44, 0x4c, 0x10, 0x02, 0x2a, 0x5d, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72,+ 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52,+ 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41,+ 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a,+ 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45,+ 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x2a, 0x75, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f,+ 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56,+ 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52,+ 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01,+ 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x52, 0x4f,+ 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x6d,+ 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x69, 0x65,+ 0x77, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55,+ 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47,+ 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10,+ 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x47, 0x52, 0x4f, 0x55,+ 0x50, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0x93, 0x25,+ 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,+ 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69,+ 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0xda,- 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x79, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,- 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,- 0x65, 0x22, 0x1e, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76,- 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63,- 0x68, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x20, 0xda, 0x41, 0x00,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22,- 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x8e, 0x01,- 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x44, 0xda, 0x41, 0x13, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32,- 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6e, 0x61,- 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x70,- 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,- 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 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, 0x24, 0xda, 0x41, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6a, 0x65, 0x63, 0x74, 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, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,+ 0x17, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x79, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72,+ 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61,+ 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0x1e, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13,+ 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61,+ 0x72, 0x63, 0x68, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x20, 0xda,+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12,+ 0x8e, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x44, 0xda, 0x41, 0x13, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e,0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0x77, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x29,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x77, 0x0a, 0x0c, 0x47, 0x65, 0x74,- 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x90, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49,- 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49,- 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,- 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12,- 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d,- 0x2f, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74,- 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x7a, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,- 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,- 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,- 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,- 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,- 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x3a, 0x3a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x30, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,- 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x72, 0x0a, 0x0a,- 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,+ 0x12, 0x70, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 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, 0x24, 0xda, 0x41,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x12, 0x77, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x57, 0xda, 0x41, 0x13,- 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76,+ 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x77, 0x0a, 0x0c, 0x47,+ 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x90, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,+ 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65,+ 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x62,+ 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x7a, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61,+ 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f,+ 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70,+ 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c,+ 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x40, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x30, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,+ 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x72,+ 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65,+ 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x12, 0xa1, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x57, 0xda,+ 0x41, 0x13, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x8b, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76,+ 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76,0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x8b, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57,- 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22,- 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x12, 0x81, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f,- 0x6f, 0x6b, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73,- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a,- 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x57,- 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xa7, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e,- 0x66, 0x6f, 0x12, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69,- 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22,- 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x32, 0x34, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f,- 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d,- 0x12, 0x8d, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f,- 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,- 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d,- 0x12, 0xa4, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x24, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70,- 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43,- 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x36, 0x3a, 0x01, 0x2a, 0x32, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x81, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a,+ 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73,+ 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xa7, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,+ 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,+ 0x6f, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x32, 0x34, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74, 0x6f, 0x70,+ 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,+ 0x6f, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65,+ 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e,+ 0x66, 0x6f, 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, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,+ 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,+ 0x6f, 0x7d, 0x12, 0xa4, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x24,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74,+ 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65,+ 0x77, 0x43, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x36, 0x3a, 0x01, 0x2a, 0x32, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x69, 0x74,+ 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51,+ 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x8a, 0x01, 0x0a, 0x14, 0x47, 0x65,+ 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e,+ 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70,+ 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x28, 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, 0x67, 0x69, 0x74, 0x4f, 0x70,- 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x75, 0x70, 0x53, 0x51, 0x4c, 0x52,- 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x49, 0x12, 0x8a, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f,- 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,- 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49,- 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x28, 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, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49,- 0x6e, 0x66, 0x6f, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0xda, 0x41,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35, 0xda, 0x41,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0xb1, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,- 0x22, 0x55, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a,- 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22,+ 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37,+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12,0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,- 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35,+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb1, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x22, 0x55, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x38, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75,+ 0x70, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x55, 0x70,0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x22, 0x6a, 0xda, 0x41, 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61,- 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0xa7, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x46, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x94, 0x01, 0x0a, 0x0e, 0x47,- 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x22, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x44, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x2f,+ 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x6a, 0xda, 0x41, 0x1a, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f,+ 0x2a, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x35, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x31, 0x2f,0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f,- 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x62, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,- 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc9, 0x01, 0x0a,- 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72,- 0x6f, 0x75, 0x70, 0x22, 0x73, 0xda, 0x41, 0x18, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67,- 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67,- 0x72, 0x6f, 0x75, 0x70, 0x32, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,- 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x44, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35, 0x2f, 0x76,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x94, 0x01, 0x0a,+ 0x0e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,+ 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x44, 0xda,+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76,0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0x97, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65,- 0x73, 0x12, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x2d,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f,- 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x7d, 0x12, 0xb1, 0x01,- 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50,- 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x30,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x41,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x32, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73,- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,- 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,+ 0x2f, 0x2a, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x62, 0xda, 0x41, 0x14, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72,+ 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc9,+ 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x73, 0xda, 0x41, 0x18, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x11, 0x44,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 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,+ 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,+ 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x97, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75,+ 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74,+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,+ 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70,+ 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x7d, 0x12,+ 0xb1, 0x01, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,+ 0x12, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74,+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73,+ 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x32, 0x36, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c,+ 0x65, 0x73, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c,+ 0x65, 0x73, 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 (@@ -5054,8 +5054,8 @@ func file_v1_project_service_proto_init() {return}file_v1_common_proto_init()- file_v1_externalvs_service_proto_init()file_v1_iam_policy_proto_init()+ file_v1_vcs_provider_service_proto_init()if !protoimpl.UnsafeEnabled {file_v1_project_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*GetProjectRequest); i {diff --git a/proto/generated-go/v1/vcs_provider_service.pb.go b/proto/generated-go/v1/vcs_provider_service.pb.gonew file mode 100644index 0000000000..1394fd6111--- /dev/null+++ b/proto/generated-go/v1/vcs_provider_service.pb.go@@ -0,0 +1,1725 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.33.0+// protoc (unknown)+// source: v1/vcs_provider_service.proto++package v1++import (+ _ "google.golang.org/genproto/googleapis/api/annotations"+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ emptypb "google.golang.org/protobuf/types/known/emptypb"+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++type VCSProvider_Type int32++const (+ VCSProvider_TYPE_UNSPECIFIED VCSProvider_Type = 0+ // GitHub type. Using for GitHub community edition(ce).+ VCSProvider_GITHUB VCSProvider_Type = 1+ // GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee).+ VCSProvider_GITLAB VCSProvider_Type = 2+ // BitBucket type. Using for BitBucket cloud or BitBucket server.+ VCSProvider_BITBUCKET VCSProvider_Type = 3+ // Azure DevOps. Using for Azure DevOps GitOps workflow.+ VCSProvider_AZURE_DEVOPS VCSProvider_Type = 4+)++// Enum value maps for VCSProvider_Type.+var (+ VCSProvider_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "GITHUB",+ 2: "GITLAB",+ 3: "BITBUCKET",+ 4: "AZURE_DEVOPS",+ }+ VCSProvider_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "GITHUB": 1,+ "GITLAB": 2,+ "BITBUCKET": 3,+ "AZURE_DEVOPS": 4,+ }+)++func (x VCSProvider_Type) Enum() *VCSProvider_Type {+ p := new(VCSProvider_Type)+ *p = x+ return p+}++func (x VCSProvider_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (VCSProvider_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_vcs_provider_service_proto_enumTypes[0].Descriptor()+}++func (VCSProvider_Type) Type() protoreflect.EnumType {+ return &file_v1_vcs_provider_service_proto_enumTypes[0]+}++func (x VCSProvider_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use VCSProvider_Type.Descriptor instead.+func (VCSProvider_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{10, 0}+}++type CreateVCSProviderRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ VcsProvider *VCSProvider `protobuf:"bytes,1,opt,name=vcs_provider,json=vcsProvider,proto3" json:"vcs_provider,omitempty"`+}++func (x *CreateVCSProviderRequest) Reset() {+ *x = CreateVCSProviderRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *CreateVCSProviderRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*CreateVCSProviderRequest) ProtoMessage() {}++func (x *CreateVCSProviderRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_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 CreateVCSProviderRequest.ProtoReflect.Descriptor instead.+func (*CreateVCSProviderRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{0}+}++func (x *CreateVCSProviderRequest) GetVcsProvider() *VCSProvider {+ if x != nil {+ return x.VcsProvider+ }+ return nil+}++type GetVCSProviderRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the vcs provider to retrieve.+ // Format: vcsProviders/{vcsProvider}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *GetVCSProviderRequest) Reset() {+ *x = GetVCSProviderRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *GetVCSProviderRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*GetVCSProviderRequest) ProtoMessage() {}++func (x *GetVCSProviderRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_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 GetVCSProviderRequest.ProtoReflect.Descriptor instead.+func (*GetVCSProviderRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{1}+}++func (x *GetVCSProviderRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type ListVCSProvidersRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Not used. The maximum number of vcs provider to return. The service may return fewer than this value.+ // If unspecified, at most 100 vcs provider will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ // Not used. A page token, received from a previous `ListVCSProviders` call.+ // Provide this to retrieve the subsequent page.+ PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+}++func (x *ListVCSProvidersRequest) Reset() {+ *x = ListVCSProvidersRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListVCSProvidersRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListVCSProvidersRequest) ProtoMessage() {}++func (x *ListVCSProvidersRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_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 ListVCSProvidersRequest.ProtoReflect.Descriptor instead.+func (*ListVCSProvidersRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{2}+}++func (x *ListVCSProvidersRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListVCSProvidersRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListVCSProvidersResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The list of vcs providers.+ VcsProviders []*VCSProvider `protobuf:"bytes,1,rep,name=vcs_providers,json=vcsProviders,proto3" json:"vcs_providers,omitempty"`+ // Not used. A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+}++func (x *ListVCSProvidersResponse) Reset() {+ *x = ListVCSProvidersResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListVCSProvidersResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListVCSProvidersResponse) ProtoMessage() {}++func (x *ListVCSProvidersResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[3]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ListVCSProvidersResponse.ProtoReflect.Descriptor instead.+func (*ListVCSProvidersResponse) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{3}+}++func (x *ListVCSProvidersResponse) GetVcsProviders() []*VCSProvider {+ if x != nil {+ return x.VcsProviders+ }+ return nil+}++func (x *ListVCSProvidersResponse) GetNextPageToken() string {+ if x != nil {+ return x.NextPageToken+ }+ return ""+}++type UpdateVCSProviderRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ VcsProvider *VCSProvider `protobuf:"bytes,1,opt,name=vcs_provider,json=vcsProvider,proto3" json:"vcs_provider,omitempty"`+ // The list of fields to be updated.+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+}++func (x *UpdateVCSProviderRequest) Reset() {+ *x = UpdateVCSProviderRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *UpdateVCSProviderRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*UpdateVCSProviderRequest) ProtoMessage() {}++func (x *UpdateVCSProviderRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[4]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use UpdateVCSProviderRequest.ProtoReflect.Descriptor instead.+func (*UpdateVCSProviderRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{4}+}++func (x *UpdateVCSProviderRequest) GetVcsProvider() *VCSProvider {+ if x != nil {+ return x.VcsProvider+ }+ return nil+}++func (x *UpdateVCSProviderRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+ if x != nil {+ return x.UpdateMask+ }+ return nil+}++type DeleteVCSProviderRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the vcs provider to delete.+ // Format: vcsProviders/{vcsProvider}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *DeleteVCSProviderRequest) Reset() {+ *x = DeleteVCSProviderRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[5]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DeleteVCSProviderRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DeleteVCSProviderRequest) ProtoMessage() {}++func (x *DeleteVCSProviderRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[5]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DeleteVCSProviderRequest.ProtoReflect.Descriptor instead.+func (*DeleteVCSProviderRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{5}+}++func (x *DeleteVCSProviderRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type SearchVCSProviderProjectsRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the vcs provider to retrieve the vcs provider repositories.+ // Format: vcsProviders/{vcsProvider}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`+ RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`+}++func (x *SearchVCSProviderProjectsRequest) Reset() {+ *x = SearchVCSProviderProjectsRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[6]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SearchVCSProviderProjectsRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SearchVCSProviderProjectsRequest) ProtoMessage() {}++func (x *SearchVCSProviderProjectsRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[6]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use SearchVCSProviderProjectsRequest.ProtoReflect.Descriptor instead.+func (*SearchVCSProviderProjectsRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{6}+}++func (x *SearchVCSProviderProjectsRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *SearchVCSProviderProjectsRequest) GetAccessToken() string {+ if x != nil {+ return x.AccessToken+ }+ return ""+}++func (x *SearchVCSProviderProjectsRequest) GetRefreshToken() string {+ if x != nil {+ return x.RefreshToken+ }+ return ""+}++type SearchVCSProviderProjectsResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The list of project in vcs provider.+ Projects []*SearchVCSProviderProjectsResponse_Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`+}++func (x *SearchVCSProviderProjectsResponse) Reset() {+ *x = SearchVCSProviderProjectsResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[7]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SearchVCSProviderProjectsResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SearchVCSProviderProjectsResponse) ProtoMessage() {}++func (x *SearchVCSProviderProjectsResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[7]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use SearchVCSProviderProjectsResponse.ProtoReflect.Descriptor instead.+func (*SearchVCSProviderProjectsResponse) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{7}+}++func (x *SearchVCSProviderProjectsResponse) GetProjects() []*SearchVCSProviderProjectsResponse_Project {+ if x != nil {+ return x.Projects+ }+ return nil+}++type ListProjectGitOpsInfoRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the vcs provider to retrieve the linked projects.+ // Format: vcsProviders/{vcsProvider}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *ListProjectGitOpsInfoRequest) Reset() {+ *x = ListProjectGitOpsInfoRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[8]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListProjectGitOpsInfoRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListProjectGitOpsInfoRequest) ProtoMessage() {}++func (x *ListProjectGitOpsInfoRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_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 ListProjectGitOpsInfoRequest.ProtoReflect.Descriptor instead.+func (*ListProjectGitOpsInfoRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{8}+}++func (x *ListProjectGitOpsInfoRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type ListProjectGitOpsInfoResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The binding between vcs provider and project.+ ProjectGitopsInfo []*ProjectGitOpsInfo `protobuf:"bytes,1,rep,name=project_gitops_info,json=projectGitopsInfo,proto3" json:"project_gitops_info,omitempty"`+}++func (x *ListProjectGitOpsInfoResponse) Reset() {+ *x = ListProjectGitOpsInfoResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[9]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListProjectGitOpsInfoResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListProjectGitOpsInfoResponse) ProtoMessage() {}++func (x *ListProjectGitOpsInfoResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[9]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ListProjectGitOpsInfoResponse.ProtoReflect.Descriptor instead.+func (*ListProjectGitOpsInfoResponse) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{9}+}++func (x *ListProjectGitOpsInfoResponse) GetProjectGitopsInfo() []*ProjectGitOpsInfo {+ if x != nil {+ return x.ProjectGitopsInfo+ }+ return nil+}++type VCSProvider struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the vcs provider, generated by the server, and also is the unique identifier.+ // Format: vcsProviders/{vcsProvider}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The title of the vcs provider. It is used to display in the UI. Specified by the client.+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Type VCSProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.VCSProvider_Type" json:"type,omitempty"`+ // The url of the vcs provider. Specified by the client.+ // For example: github.com, gitlab.com, gitlab.bytebase.com.+ Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`+ // The API url of the vcs provider. Derived from the url.+ ApiUrl string `protobuf:"bytes,5,opt,name=api_url,json=apiUrl,proto3" json:"api_url,omitempty"`+ // The application ID of the vcs provider. Specified by the client.+ ApplicationId string `protobuf:"bytes,6,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`+ // The application secret of the vcs provider. Specified by the client.+ Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"`+}++func (x *VCSProvider) Reset() {+ *x = VCSProvider{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *VCSProvider) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*VCSProvider) ProtoMessage() {}++func (x *VCSProvider) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[10]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use VCSProvider.ProtoReflect.Descriptor instead.+func (*VCSProvider) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{10}+}++func (x *VCSProvider) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *VCSProvider) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *VCSProvider) GetType() VCSProvider_Type {+ if x != nil {+ return x.Type+ }+ return VCSProvider_TYPE_UNSPECIFIED+}++func (x *VCSProvider) GetUrl() string {+ if x != nil {+ return x.Url+ }+ return ""+}++func (x *VCSProvider) GetApiUrl() string {+ if x != nil {+ return x.ApiUrl+ }+ return ""+}++func (x *VCSProvider) GetApplicationId() string {+ if x != nil {+ return x.ApplicationId+ }+ return ""+}++func (x *VCSProvider) GetSecret() string {+ if x != nil {+ return x.Secret+ }+ return ""+}++type ProjectGitOpsInfo struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the linked repository, generated by the server, and also is the unique identifier.+ // Format: projects/{project}/gitOpsInfo+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The uid for related VCS.+ VcsUid string `protobuf:"bytes,2,opt,name=vcs_uid,json=vcsUid,proto3" json:"vcs_uid,omitempty"`+ // The title of the repository. For axample: sample.+ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`+ // The full_path of the repository. For example: bytebase/sample.+ FullPath string `protobuf:"bytes,4,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"`+ // The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample.+ WebUrl string `protobuf:"bytes,5,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`+ // The branch Bytebase listens to for changes. For example: main.+ BranchFilter string `protobuf:"bytes,6,opt,name=branch_filter,json=branchFilter,proto3" json:"branch_filter,omitempty"`+ // The root directory where Bytebase observes the file change. If empty, then it observes the entire repository.+ BaseDirectory string `protobuf:"bytes,7,opt,name=base_directory,json=baseDirectory,proto3" json:"base_directory,omitempty"`+ // Bytebase only observes the file path name matching the template pattern **relative** to the base directory.+ // Required Placeholder: {{DB_NAME}}, {{VERSION}}, {{TYPE]}.+ // Optional Placeholder: {{ENV_ID}}, {{DESCRIPTION}}.+ // Optional Directory Wildcard: '*', '**'.+ FilePathTemplate string `protobuf:"bytes,8,opt,name=file_path_template,json=filePathTemplate,proto3" json:"file_path_template,omitempty"`+ // The file path template for storing the latest schema auto-generated by Bytebase after migration.+ // If empty, then Bytebase won't auto generate it.+ // If specified, required placeholder: {{DB_NAME}}, optional placeholder: {{ENV_ID}}.+ SchemaPathTemplate string `protobuf:"bytes,9,opt,name=schema_path_template,json=schemaPathTemplate,proto3" json:"schema_path_template,omitempty"`+ // The file path template for matching the sql files for sheet.+ // If specified, required Placeholder: {{NAME}}, optional Placeholder: {{ENV_ID}}, {{DB_NAME}}.+ SheetPathTemplate string `protobuf:"bytes,10,opt,name=sheet_path_template,json=sheetPathTemplate,proto3" json:"sheet_path_template,omitempty"`+ // The reposition external id in target VCS.+ ExternalId string `protobuf:"bytes,11,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`+ // Set to true to enable SQL review CI for all PR/MRs.+ EnableSqlReviewCi bool `protobuf:"varint,12,opt,name=enable_sql_review_ci,json=enableSqlReviewCi,proto3" json:"enable_sql_review_ci,omitempty"`+ // The webhook endpoint ID of the repository.+ WebhookEndpointId string `protobuf:"bytes,13,opt,name=webhook_endpoint_id,json=webhookEndpointId,proto3" json:"webhook_endpoint_id,omitempty"`+ AccessToken string `protobuf:"bytes,14,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`+ ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`+ RefreshToken string `protobuf:"bytes,16,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`+}++func (x *ProjectGitOpsInfo) Reset() {+ *x = ProjectGitOpsInfo{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[11]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ProjectGitOpsInfo) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ProjectGitOpsInfo) ProtoMessage() {}++func (x *ProjectGitOpsInfo) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[11]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ProjectGitOpsInfo.ProtoReflect.Descriptor instead.+func (*ProjectGitOpsInfo) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{11}+}++func (x *ProjectGitOpsInfo) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetVcsUid() string {+ if x != nil {+ return x.VcsUid+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetFullPath() string {+ if x != nil {+ return x.FullPath+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetWebUrl() string {+ if x != nil {+ return x.WebUrl+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetBranchFilter() string {+ if x != nil {+ return x.BranchFilter+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetBaseDirectory() string {+ if x != nil {+ return x.BaseDirectory+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetFilePathTemplate() string {+ if x != nil {+ return x.FilePathTemplate+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetSchemaPathTemplate() string {+ if x != nil {+ return x.SchemaPathTemplate+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetSheetPathTemplate() string {+ if x != nil {+ return x.SheetPathTemplate+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetExternalId() string {+ if x != nil {+ return x.ExternalId+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetEnableSqlReviewCi() bool {+ if x != nil {+ return x.EnableSqlReviewCi+ }+ return false+}++func (x *ProjectGitOpsInfo) GetWebhookEndpointId() string {+ if x != nil {+ return x.WebhookEndpointId+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetAccessToken() string {+ if x != nil {+ return x.AccessToken+ }+ return ""+}++func (x *ProjectGitOpsInfo) GetExpiresTime() *timestamppb.Timestamp {+ if x != nil {+ return x.ExpiresTime+ }+ return nil+}++func (x *ProjectGitOpsInfo) GetRefreshToken() string {+ if x != nil {+ return x.RefreshToken+ }+ return ""+}++type ExchangeTokenRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ ExchangeToken *ExchangeToken `protobuf:"bytes,1,opt,name=exchange_token,json=exchangeToken,proto3" json:"exchange_token,omitempty"`+}++func (x *ExchangeTokenRequest) Reset() {+ *x = ExchangeTokenRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[12]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ExchangeTokenRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ExchangeTokenRequest) ProtoMessage() {}++func (x *ExchangeTokenRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[12]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ExchangeTokenRequest.ProtoReflect.Descriptor instead.+func (*ExchangeTokenRequest) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{12}+}++func (x *ExchangeTokenRequest) GetExchangeToken() *ExchangeToken {+ if x != nil {+ return x.ExchangeToken+ }+ return nil+}++type ExchangeToken struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the vcs provider to retrieve the linked projects.+ // Format: vcsProviders/{vcsProvider}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`+ Type VCSProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.VCSProvider_Type" json:"type,omitempty"`+ InstanceUrl string `protobuf:"bytes,4,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"`+ ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`+ ClientSecret string `protobuf:"bytes,6,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`+}++func (x *ExchangeToken) Reset() {+ *x = ExchangeToken{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[13]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ExchangeToken) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ExchangeToken) ProtoMessage() {}++func (x *ExchangeToken) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[13]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ExchangeToken.ProtoReflect.Descriptor instead.+func (*ExchangeToken) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{13}+}++func (x *ExchangeToken) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *ExchangeToken) GetCode() string {+ if x != nil {+ return x.Code+ }+ return ""+}++func (x *ExchangeToken) GetType() VCSProvider_Type {+ if x != nil {+ return x.Type+ }+ return VCSProvider_TYPE_UNSPECIFIED+}++func (x *ExchangeToken) GetInstanceUrl() string {+ if x != nil {+ return x.InstanceUrl+ }+ return ""+}++func (x *ExchangeToken) GetClientId() string {+ if x != nil {+ return x.ClientId+ }+ return ""+}++func (x *ExchangeToken) GetClientSecret() string {+ if x != nil {+ return x.ClientSecret+ }+ return ""+}++type OAuthToken struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`+ RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`+ ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`+}++func (x *OAuthToken) Reset() {+ *x = OAuthToken{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[14]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *OAuthToken) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*OAuthToken) ProtoMessage() {}++func (x *OAuthToken) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[14]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use OAuthToken.ProtoReflect.Descriptor instead.+func (*OAuthToken) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{14}+}++func (x *OAuthToken) GetAccessToken() string {+ if x != nil {+ return x.AccessToken+ }+ return ""+}++func (x *OAuthToken) GetRefreshToken() string {+ if x != nil {+ return x.RefreshToken+ }+ return ""+}++func (x *OAuthToken) GetExpiresTime() *timestamppb.Timestamp {+ if x != nil {+ return x.ExpiresTime+ }+ return nil+}++type SearchVCSProviderProjectsResponse_Project struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The id of the project in vcs provider.+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ // The title of the project in vcs provider.+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ // The fullpath of the project in vcs provider.+ Fullpath string `protobuf:"bytes,3,opt,name=fullpath,proto3" json:"fullpath,omitempty"`+ // Web url of the project in vcs provider.+ WebUrl string `protobuf:"bytes,4,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`+}++func (x *SearchVCSProviderProjectsResponse_Project) Reset() {+ *x = SearchVCSProviderProjectsResponse_Project{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[15]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SearchVCSProviderProjectsResponse_Project) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SearchVCSProviderProjectsResponse_Project) ProtoMessage() {}++func (x *SearchVCSProviderProjectsResponse_Project) ProtoReflect() protoreflect.Message {+ mi := &file_v1_vcs_provider_service_proto_msgTypes[15]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use SearchVCSProviderProjectsResponse_Project.ProtoReflect.Descriptor instead.+func (*SearchVCSProviderProjectsResponse_Project) Descriptor() ([]byte, []int) {+ return file_v1_vcs_provider_service_proto_rawDescGZIP(), []int{7, 0}+}++func (x *SearchVCSProviderProjectsResponse_Project) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *SearchVCSProviderProjectsResponse_Project) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *SearchVCSProviderProjectsResponse_Project) GetFullpath() string {+ if x != nil {+ return x.Fullpath+ }+ return ""+}++func (x *SearchVCSProviderProjectsResponse_Project) GetWebUrl() string {+ if x != nil {+ return x.WebUrl+ }+ return ""+}++var File_v1_vcs_provider_service_proto protoreflect.FileDescriptor++var file_v1_vcs_provider_service_proto_rawDesc = []byte{+ 0x0a, 0x1d, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,+ 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,+ 0x0b, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,+ 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x43,+ 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x40, 0x0a, 0x0c, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x22, 0x30, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x55, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53, 0x50,+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x18,+ 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x76, 0x63, 0x73, 0x5f,+ 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43,+ 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x76, 0x63, 0x73, 0x50, 0x72,+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 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,+ 0x9e, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0c,+ 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x0b, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x40,+ 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,+ 0x22, 0x33, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x20, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,+ 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b,+ 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x28, 0x0a, 0x0d, 0x72,+ 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xdd, 0x01, 0x0a, 0x21, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,+ 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x08, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72,+ 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x1a,+ 0x64, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x70, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07,+ 0x77, 0x65, 0x62, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77,+ 0x65, 0x62, 0x55, 0x72, 0x6c, 0x22, 0x37, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6f,+ 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74,+ 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,+ 0x4e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x67, 0x69, 0x74, 0x6f, 0x70,+ 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22,+ 0xce, 0x02, 0x0a, 0x0b, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12,+ 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75,+ 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75,+ 0x72, 0x6c, 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x70, 0x69, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x61, 0x70, 0x69, 0x55, 0x72, 0x6c,+ 0x12, 0x2a, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,+ 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x61,+ 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x06,+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x04, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x55, 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, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55,+ 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x02, 0x12,+ 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03, 0x12, 0x10,+ 0x0a, 0x0c, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04,+ 0x22, 0x8f, 0x05, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f,+ 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,+ 0x17, 0x0a, 0x07, 0x76, 0x63, 0x73, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x06, 0x76, 0x63, 0x73, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1b,+ 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x77,+ 0x65, 0x62, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x65,+ 0x62, 0x55, 0x72, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x66,+ 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x72, 0x61,+ 0x6e, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,+ 0x12, 0x31, 0x0a, 0x12, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65,+ 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c,+ 0x61, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x61,+ 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x12, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d,+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x70,+ 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x11, 0x73, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d,+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,+ 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65,+ 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,+ 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x69, 0x18, 0x0c,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x71, 0x6c, 0x52,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x69, 0x12, 0x33, 0x0a, 0x13, 0x77, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x77, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c,+ 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0e, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54,+ 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f,+ 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 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, 0x04, 0x52, 0x0b, 0x65, 0x78, 0x70,+ 0x69, 0x72, 0x65, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72,+ 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b,+ 0x65, 0x6e, 0x22, 0x59, 0x0a, 0x14, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f,+ 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x78,+ 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0d,+ 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xcf, 0x01,+ 0x0a, 0x0d, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,+ 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a,+ 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c,+ 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22,+ 0xa2, 0x01, 0x0a, 0x0a, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x26,+ 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73,+ 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73,+ 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e,+ 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65,+ 0x18, 0x0f, 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, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,+ 0x54, 0x69, 0x6d, 0x65, 0x32, 0xa4, 0x09, 0x0a, 0x12, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0e, 0x47,+ 0x65, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56,+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x28, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,+ 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53, 0x50,+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x73, 0x12, 0x7f, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43,+ 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x29, 0xda, 0x41, 0x00, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x0c, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69,+ 0x64, 0x65, 0x72, 0x73, 0x12, 0xad, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56,+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56,+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x57, 0xda, 0x41, 0x18,+ 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x0c,+ 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x32, 0x26, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x0d, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x6b,+ 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b,+ 0x65, 0x6e, 0x22, 0x51, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x3a, 0x0e, 0x65,+ 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x36, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,+ 0x65, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69,+ 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x75, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56,+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56,+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 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, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x1b, 0x2a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xaf, 0x01, 0x0a,+ 0x19, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56,+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x43,+ 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,+ 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x9a,+ 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69,+ 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74,+ 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,+ 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67,+ 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_v1_vcs_provider_service_proto_rawDescOnce sync.Once+ file_v1_vcs_provider_service_proto_rawDescData = file_v1_vcs_provider_service_proto_rawDesc+)++func file_v1_vcs_provider_service_proto_rawDescGZIP() []byte {+ file_v1_vcs_provider_service_proto_rawDescOnce.Do(func() {+ file_v1_vcs_provider_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_vcs_provider_service_proto_rawDescData)+ })+ return file_v1_vcs_provider_service_proto_rawDescData+}++var file_v1_vcs_provider_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_v1_vcs_provider_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)+var file_v1_vcs_provider_service_proto_goTypes = []interface{}{+ (VCSProvider_Type)(0), // 0: bytebase.v1.VCSProvider.Type+ (*CreateVCSProviderRequest)(nil), // 1: bytebase.v1.CreateVCSProviderRequest+ (*GetVCSProviderRequest)(nil), // 2: bytebase.v1.GetVCSProviderRequest+ (*ListVCSProvidersRequest)(nil), // 3: bytebase.v1.ListVCSProvidersRequest+ (*ListVCSProvidersResponse)(nil), // 4: bytebase.v1.ListVCSProvidersResponse+ (*UpdateVCSProviderRequest)(nil), // 5: bytebase.v1.UpdateVCSProviderRequest+ (*DeleteVCSProviderRequest)(nil), // 6: bytebase.v1.DeleteVCSProviderRequest+ (*SearchVCSProviderProjectsRequest)(nil), // 7: bytebase.v1.SearchVCSProviderProjectsRequest+ (*SearchVCSProviderProjectsResponse)(nil), // 8: bytebase.v1.SearchVCSProviderProjectsResponse+ (*ListProjectGitOpsInfoRequest)(nil), // 9: bytebase.v1.ListProjectGitOpsInfoRequest+ (*ListProjectGitOpsInfoResponse)(nil), // 10: bytebase.v1.ListProjectGitOpsInfoResponse+ (*VCSProvider)(nil), // 11: bytebase.v1.VCSProvider+ (*ProjectGitOpsInfo)(nil), // 12: bytebase.v1.ProjectGitOpsInfo+ (*ExchangeTokenRequest)(nil), // 13: bytebase.v1.ExchangeTokenRequest+ (*ExchangeToken)(nil), // 14: bytebase.v1.ExchangeToken+ (*OAuthToken)(nil), // 15: bytebase.v1.OAuthToken+ (*SearchVCSProviderProjectsResponse_Project)(nil), // 16: bytebase.v1.SearchVCSProviderProjectsResponse.Project+ (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp+ (*emptypb.Empty)(nil), // 19: google.protobuf.Empty+}+var file_v1_vcs_provider_service_proto_depIdxs = []int32{+ 11, // 0: bytebase.v1.CreateVCSProviderRequest.vcs_provider:type_name -> bytebase.v1.VCSProvider+ 11, // 1: bytebase.v1.ListVCSProvidersResponse.vcs_providers:type_name -> bytebase.v1.VCSProvider+ 11, // 2: bytebase.v1.UpdateVCSProviderRequest.vcs_provider:type_name -> bytebase.v1.VCSProvider+ 17, // 3: bytebase.v1.UpdateVCSProviderRequest.update_mask:type_name -> google.protobuf.FieldMask+ 16, // 4: bytebase.v1.SearchVCSProviderProjectsResponse.projects:type_name -> bytebase.v1.SearchVCSProviderProjectsResponse.Project+ 12, // 5: bytebase.v1.ListProjectGitOpsInfoResponse.project_gitops_info:type_name -> bytebase.v1.ProjectGitOpsInfo+ 0, // 6: bytebase.v1.VCSProvider.type:type_name -> bytebase.v1.VCSProvider.Type+ 18, // 7: bytebase.v1.ProjectGitOpsInfo.expires_time:type_name -> google.protobuf.Timestamp+ 14, // 8: bytebase.v1.ExchangeTokenRequest.exchange_token:type_name -> bytebase.v1.ExchangeToken+ 0, // 9: bytebase.v1.ExchangeToken.type:type_name -> bytebase.v1.VCSProvider.Type+ 18, // 10: bytebase.v1.OAuthToken.expires_time:type_name -> google.protobuf.Timestamp+ 2, // 11: bytebase.v1.VCSProviderService.GetVCSProvider:input_type -> bytebase.v1.GetVCSProviderRequest+ 3, // 12: bytebase.v1.VCSProviderService.ListVCSProviders:input_type -> bytebase.v1.ListVCSProvidersRequest+ 1, // 13: bytebase.v1.VCSProviderService.CreateVCSProvider:input_type -> bytebase.v1.CreateVCSProviderRequest+ 5, // 14: bytebase.v1.VCSProviderService.UpdateVCSProvider:input_type -> bytebase.v1.UpdateVCSProviderRequest+ 13, // 15: bytebase.v1.VCSProviderService.ExchangeToken:input_type -> bytebase.v1.ExchangeTokenRequest+ 6, // 16: bytebase.v1.VCSProviderService.DeleteVCSProvider:input_type -> bytebase.v1.DeleteVCSProviderRequest+ 7, // 17: bytebase.v1.VCSProviderService.SearchVCSProviderProjects:input_type -> bytebase.v1.SearchVCSProviderProjectsRequest+ 9, // 18: bytebase.v1.VCSProviderService.ListProjectGitOpsInfo:input_type -> bytebase.v1.ListProjectGitOpsInfoRequest+ 11, // 19: bytebase.v1.VCSProviderService.GetVCSProvider:output_type -> bytebase.v1.VCSProvider+ 4, // 20: bytebase.v1.VCSProviderService.ListVCSProviders:output_type -> bytebase.v1.ListVCSProvidersResponse+ 11, // 21: bytebase.v1.VCSProviderService.CreateVCSProvider:output_type -> bytebase.v1.VCSProvider+ 11, // 22: bytebase.v1.VCSProviderService.UpdateVCSProvider:output_type -> bytebase.v1.VCSProvider+ 15, // 23: bytebase.v1.VCSProviderService.ExchangeToken:output_type -> bytebase.v1.OAuthToken+ 19, // 24: bytebase.v1.VCSProviderService.DeleteVCSProvider:output_type -> google.protobuf.Empty+ 8, // 25: bytebase.v1.VCSProviderService.SearchVCSProviderProjects:output_type -> bytebase.v1.SearchVCSProviderProjectsResponse+ 10, // 26: bytebase.v1.VCSProviderService.ListProjectGitOpsInfo:output_type -> bytebase.v1.ListProjectGitOpsInfoResponse+ 19, // [19:27] is the sub-list for method output_type+ 11, // [11:19] is the sub-list for method input_type+ 11, // [11:11] is the sub-list for extension type_name+ 11, // [11:11] is the sub-list for extension extendee+ 0, // [0:11] is the sub-list for field type_name+}++func init() { file_v1_vcs_provider_service_proto_init() }+func file_v1_vcs_provider_service_proto_init() {+ if File_v1_vcs_provider_service_proto != nil {+ return+ }+ if !protoimpl.UnsafeEnabled {+ file_v1_vcs_provider_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*CreateVCSProviderRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*GetVCSProviderRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListVCSProvidersRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListVCSProvidersResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*UpdateVCSProviderRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DeleteVCSProviderRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SearchVCSProviderProjectsRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SearchVCSProviderProjectsResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListProjectGitOpsInfoRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListProjectGitOpsInfoResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*VCSProvider); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ProjectGitOpsInfo); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ExchangeTokenRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ExchangeToken); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*OAuthToken); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_vcs_provider_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SearchVCSProviderProjectsResponse_Project); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ type x struct{}+ out := protoimpl.TypeBuilder{+ File: protoimpl.DescBuilder{+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),+ RawDescriptor: file_v1_vcs_provider_service_proto_rawDesc,+ NumEnums: 1,+ NumMessages: 16,+ NumExtensions: 0,+ NumServices: 1,+ },+ GoTypes: file_v1_vcs_provider_service_proto_goTypes,+ DependencyIndexes: file_v1_vcs_provider_service_proto_depIdxs,+ EnumInfos: file_v1_vcs_provider_service_proto_enumTypes,+ MessageInfos: file_v1_vcs_provider_service_proto_msgTypes,+ }.Build()+ File_v1_vcs_provider_service_proto = out.File+ file_v1_vcs_provider_service_proto_rawDesc = nil+ file_v1_vcs_provider_service_proto_goTypes = nil+ file_v1_vcs_provider_service_proto_depIdxs = nil+}diff --git a/proto/generated-go/v1/vcs_provider_service.pb.gw.go b/proto/generated-go/v1/vcs_provider_service.pb.gw.gonew file mode 100644index 0000000000..19762d737d--- /dev/null+++ b/proto/generated-go/v1/vcs_provider_service.pb.gw.go@@ -0,0 +1,932 @@+// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.+// source: v1/vcs_provider_service.proto++/*+Package v1 is a reverse proxy.++It translates gRPC into RESTful JSON APIs.+*/+package v1++import (+ "context"+ "io"+ "net/http"++ "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"+ "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"+ "google.golang.org/grpc"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/status"+ "google.golang.org/protobuf/proto"+)++// Suppress "imported and not used" errors+var _ codes.Code+var _ io.Reader+var _ status.Status+var _ = runtime.String+var _ = utilities.NewDoubleArray+var _ = metadata.Join++func request_VCSProviderService_GetVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetVCSProviderRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.GetVCSProvider(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_GetVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetVCSProviderRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.GetVCSProvider(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_VCSProviderService_ListVCSProviders_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}+)++func request_VCSProviderService_ListVCSProviders_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListVCSProvidersRequest+ var metadata runtime.ServerMetadata++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VCSProviderService_ListVCSProviders_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListVCSProviders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_ListVCSProviders_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListVCSProvidersRequest+ var metadata runtime.ServerMetadata++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VCSProviderService_ListVCSProviders_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListVCSProviders(ctx, &protoReq)+ return msg, metadata, err++}++func request_VCSProviderService_CreateVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreateVCSProviderRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VcsProvider); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.CreateVCSProvider(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_CreateVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreateVCSProviderRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VcsProvider); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.CreateVCSProvider(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_VCSProviderService_UpdateVCSProvider_0 = &utilities.DoubleArray{Encoding: map[string]int{"vcs_provider": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}}+)++func request_VCSProviderService_UpdateVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateVCSProviderRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VcsProvider); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.VcsProvider); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ } else {+ protoReq.UpdateMask = fieldMask+ }+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["vcs_provider.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "vcs_provider.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "vcs_provider.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "vcs_provider.name", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VCSProviderService_UpdateVCSProvider_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.UpdateVCSProvider(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_UpdateVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateVCSProviderRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VcsProvider); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.VcsProvider); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ } else {+ protoReq.UpdateMask = fieldMask+ }+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["vcs_provider.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "vcs_provider.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "vcs_provider.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "vcs_provider.name", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VCSProviderService_UpdateVCSProvider_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.UpdateVCSProvider(ctx, &protoReq)+ return msg, metadata, err++}++func request_VCSProviderService_ExchangeToken_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ExchangeTokenRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.ExchangeToken); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["exchange_token.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exchange_token.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "exchange_token.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exchange_token.name", err)+ }++ msg, err := client.ExchangeToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_ExchangeToken_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ExchangeTokenRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.ExchangeToken); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["exchange_token.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exchange_token.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "exchange_token.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exchange_token.name", err)+ }++ msg, err := server.ExchangeToken(ctx, &protoReq)+ return msg, metadata, err++}++func request_VCSProviderService_DeleteVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq DeleteVCSProviderRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.DeleteVCSProvider(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_DeleteVCSProvider_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq DeleteVCSProviderRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.DeleteVCSProvider(ctx, &protoReq)+ return msg, metadata, err++}++func request_VCSProviderService_SearchVCSProviderProjects_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq SearchVCSProviderProjectsRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.SearchVCSProviderProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_SearchVCSProviderProjects_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq SearchVCSProviderProjectsRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.SearchVCSProviderProjects(ctx, &protoReq)+ return msg, metadata, err++}++func request_VCSProviderService_ListProjectGitOpsInfo_0(ctx context.Context, marshaler runtime.Marshaler, client VCSProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListProjectGitOpsInfoRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.ListProjectGitOpsInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_VCSProviderService_ListProjectGitOpsInfo_0(ctx context.Context, marshaler runtime.Marshaler, server VCSProviderServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListProjectGitOpsInfoRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.ListProjectGitOpsInfo(ctx, &protoReq)+ return msg, metadata, err++}++// RegisterVCSProviderServiceHandlerServer registers the http handlers for service VCSProviderService to "mux".+// UnaryRPC :call VCSProviderServiceServer directly.+// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.+// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVCSProviderServiceHandlerFromEndpoint instead.+func RegisterVCSProviderServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VCSProviderServiceServer) error {++ mux.Handle("GET", pattern_VCSProviderService_GetVCSProvider_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.VCSProviderService/GetVCSProvider", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_GetVCSProvider_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_VCSProviderService_GetVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_VCSProviderService_ListVCSProviders_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.VCSProviderService/ListVCSProviders", runtime.WithHTTPPathPattern("/v1/vcsProviders"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_ListVCSProviders_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_VCSProviderService_ListVCSProviders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_VCSProviderService_CreateVCSProvider_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.VCSProviderService/CreateVCSProvider", runtime.WithHTTPPathPattern("/v1/vcsProviders"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_CreateVCSProvider_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_VCSProviderService_CreateVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_VCSProviderService_UpdateVCSProvider_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.VCSProviderService/UpdateVCSProvider", runtime.WithHTTPPathPattern("/v1/{vcs_provider.name=vcsProviders/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_UpdateVCSProvider_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_VCSProviderService_UpdateVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_VCSProviderService_ExchangeToken_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.VCSProviderService/ExchangeToken", runtime.WithHTTPPathPattern("/v1/{exchange_token.name=vcsProviders/*}:exchangeToken"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_ExchangeToken_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_VCSProviderService_ExchangeToken_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("DELETE", pattern_VCSProviderService_DeleteVCSProvider_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.VCSProviderService/DeleteVCSProvider", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_DeleteVCSProvider_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_VCSProviderService_DeleteVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_VCSProviderService_SearchVCSProviderProjects_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.VCSProviderService/SearchVCSProviderProjects", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}:searchProjects"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_SearchVCSProviderProjects_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_VCSProviderService_SearchVCSProviderProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_VCSProviderService_ListProjectGitOpsInfo_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.VCSProviderService/ListProjectGitOpsInfo", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}/projects"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_VCSProviderService_ListProjectGitOpsInfo_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_VCSProviderService_ListProjectGitOpsInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++// RegisterVCSProviderServiceHandlerFromEndpoint is same as RegisterVCSProviderServiceHandler but+// automatically dials to "endpoint" and closes the connection when "ctx" gets done.+func RegisterVCSProviderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {+ conn, err := grpc.DialContext(ctx, endpoint, opts...)+ if err != nil {+ return err+ }+ defer func() {+ if err != nil {+ if cerr := conn.Close(); cerr != nil {+ grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ }+ return+ }+ go func() {+ <-ctx.Done()+ if cerr := conn.Close(); cerr != nil {+ grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ }+ }()+ }()++ return RegisterVCSProviderServiceHandler(ctx, mux, conn)+}++// RegisterVCSProviderServiceHandler registers the http handlers for service VCSProviderService to "mux".+// The handlers forward requests to the grpc endpoint over "conn".+func RegisterVCSProviderServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {+ return RegisterVCSProviderServiceHandlerClient(ctx, mux, NewVCSProviderServiceClient(conn))+}++// RegisterVCSProviderServiceHandlerClient registers the http handlers for service VCSProviderService+// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VCSProviderServiceClient".+// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VCSProviderServiceClient"+// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in+// "VCSProviderServiceClient" to call the correct interceptors.+func RegisterVCSProviderServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VCSProviderServiceClient) error {++ mux.Handle("GET", pattern_VCSProviderService_GetVCSProvider_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.VCSProviderService/GetVCSProvider", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_GetVCSProvider_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_GetVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_VCSProviderService_ListVCSProviders_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.VCSProviderService/ListVCSProviders", runtime.WithHTTPPathPattern("/v1/vcsProviders"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_ListVCSProviders_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_ListVCSProviders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_VCSProviderService_CreateVCSProvider_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.VCSProviderService/CreateVCSProvider", runtime.WithHTTPPathPattern("/v1/vcsProviders"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_CreateVCSProvider_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_CreateVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_VCSProviderService_UpdateVCSProvider_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.VCSProviderService/UpdateVCSProvider", runtime.WithHTTPPathPattern("/v1/{vcs_provider.name=vcsProviders/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_UpdateVCSProvider_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_UpdateVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_VCSProviderService_ExchangeToken_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.VCSProviderService/ExchangeToken", runtime.WithHTTPPathPattern("/v1/{exchange_token.name=vcsProviders/*}:exchangeToken"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_ExchangeToken_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_ExchangeToken_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("DELETE", pattern_VCSProviderService_DeleteVCSProvider_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.VCSProviderService/DeleteVCSProvider", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_DeleteVCSProvider_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_DeleteVCSProvider_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_VCSProviderService_SearchVCSProviderProjects_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.VCSProviderService/SearchVCSProviderProjects", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}:searchProjects"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_SearchVCSProviderProjects_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_SearchVCSProviderProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_VCSProviderService_ListProjectGitOpsInfo_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.VCSProviderService/ListProjectGitOpsInfo", runtime.WithHTTPPathPattern("/v1/{name=vcsProviders/*}/projects"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_VCSProviderService_ListProjectGitOpsInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_VCSProviderService_ListProjectGitOpsInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++var (+ pattern_VCSProviderService_GetVCSProvider_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vcsProviders", "name"}, ""))++ pattern_VCSProviderService_ListVCSProviders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "vcsProviders"}, ""))++ pattern_VCSProviderService_CreateVCSProvider_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "vcsProviders"}, ""))++ pattern_VCSProviderService_UpdateVCSProvider_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vcsProviders", "vcs_provider.name"}, ""))++ pattern_VCSProviderService_ExchangeToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vcsProviders", "exchange_token.name"}, "exchangeToken"))++ pattern_VCSProviderService_DeleteVCSProvider_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vcsProviders", "name"}, ""))++ pattern_VCSProviderService_SearchVCSProviderProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vcsProviders", "name"}, "searchProjects"))++ pattern_VCSProviderService_ListProjectGitOpsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "vcsProviders", "name", "projects"}, ""))+)++var (+ forward_VCSProviderService_GetVCSProvider_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_ListVCSProviders_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_CreateVCSProvider_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_UpdateVCSProvider_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_ExchangeToken_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_DeleteVCSProvider_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_SearchVCSProviderProjects_0 = runtime.ForwardResponseMessage++ forward_VCSProviderService_ListProjectGitOpsInfo_0 = runtime.ForwardResponseMessage+)diff --git a/proto/generated-go/v1/vcs_provider_service_grpc.pb.go b/proto/generated-go/v1/vcs_provider_service_grpc.pb.gonew file mode 100644index 0000000000..c54051cb67--- /dev/null+++ b/proto/generated-go/v1/vcs_provider_service_grpc.pb.go@@ -0,0 +1,369 @@+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.+// versions:+// - protoc-gen-go-grpc v1.3.0+// - protoc (unknown)+// source: v1/vcs_provider_service.proto++package v1++import (+ context "context"+ grpc "google.golang.org/grpc"+ codes "google.golang.org/grpc/codes"+ status "google.golang.org/grpc/status"+ emptypb "google.golang.org/protobuf/types/known/emptypb"+)++// This is a compile-time assertion to ensure that this generated file+// is compatible with the grpc package it is being compiled against.+// Requires gRPC-Go v1.32.0 or later.+const _ = grpc.SupportPackageIsVersion7++const (+ VCSProviderService_GetVCSProvider_FullMethodName = "/bytebase.v1.VCSProviderService/GetVCSProvider"+ VCSProviderService_ListVCSProviders_FullMethodName = "/bytebase.v1.VCSProviderService/ListVCSProviders"+ VCSProviderService_CreateVCSProvider_FullMethodName = "/bytebase.v1.VCSProviderService/CreateVCSProvider"+ VCSProviderService_UpdateVCSProvider_FullMethodName = "/bytebase.v1.VCSProviderService/UpdateVCSProvider"+ VCSProviderService_ExchangeToken_FullMethodName = "/bytebase.v1.VCSProviderService/ExchangeToken"+ VCSProviderService_DeleteVCSProvider_FullMethodName = "/bytebase.v1.VCSProviderService/DeleteVCSProvider"+ VCSProviderService_SearchVCSProviderProjects_FullMethodName = "/bytebase.v1.VCSProviderService/SearchVCSProviderProjects"+ VCSProviderService_ListProjectGitOpsInfo_FullMethodName = "/bytebase.v1.VCSProviderService/ListProjectGitOpsInfo"+)++// VCSProviderServiceClient is the client API for VCSProviderService service.+//+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.+type VCSProviderServiceClient interface {+ GetVCSProvider(ctx context.Context, in *GetVCSProviderRequest, opts ...grpc.CallOption) (*VCSProvider, error)+ ListVCSProviders(ctx context.Context, in *ListVCSProvidersRequest, opts ...grpc.CallOption) (*ListVCSProvidersResponse, error)+ CreateVCSProvider(ctx context.Context, in *CreateVCSProviderRequest, opts ...grpc.CallOption) (*VCSProvider, error)+ UpdateVCSProvider(ctx context.Context, in *UpdateVCSProviderRequest, opts ...grpc.CallOption) (*VCSProvider, error)+ ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*OAuthToken, error)+ DeleteVCSProvider(ctx context.Context, in *DeleteVCSProviderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)+ SearchVCSProviderProjects(ctx context.Context, in *SearchVCSProviderProjectsRequest, opts ...grpc.CallOption) (*SearchVCSProviderProjectsResponse, error)+ ListProjectGitOpsInfo(ctx context.Context, in *ListProjectGitOpsInfoRequest, opts ...grpc.CallOption) (*ListProjectGitOpsInfoResponse, error)+}++type vCSProviderServiceClient struct {+ cc grpc.ClientConnInterface+}++func NewVCSProviderServiceClient(cc grpc.ClientConnInterface) VCSProviderServiceClient {+ return &vCSProviderServiceClient{cc}+}++func (c *vCSProviderServiceClient) GetVCSProvider(ctx context.Context, in *GetVCSProviderRequest, opts ...grpc.CallOption) (*VCSProvider, error) {+ out := new(VCSProvider)+ err := c.cc.Invoke(ctx, VCSProviderService_GetVCSProvider_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) ListVCSProviders(ctx context.Context, in *ListVCSProvidersRequest, opts ...grpc.CallOption) (*ListVCSProvidersResponse, error) {+ out := new(ListVCSProvidersResponse)+ err := c.cc.Invoke(ctx, VCSProviderService_ListVCSProviders_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) CreateVCSProvider(ctx context.Context, in *CreateVCSProviderRequest, opts ...grpc.CallOption) (*VCSProvider, error) {+ out := new(VCSProvider)+ err := c.cc.Invoke(ctx, VCSProviderService_CreateVCSProvider_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) UpdateVCSProvider(ctx context.Context, in *UpdateVCSProviderRequest, opts ...grpc.CallOption) (*VCSProvider, error) {+ out := new(VCSProvider)+ err := c.cc.Invoke(ctx, VCSProviderService_UpdateVCSProvider_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*OAuthToken, error) {+ out := new(OAuthToken)+ err := c.cc.Invoke(ctx, VCSProviderService_ExchangeToken_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) DeleteVCSProvider(ctx context.Context, in *DeleteVCSProviderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {+ out := new(emptypb.Empty)+ err := c.cc.Invoke(ctx, VCSProviderService_DeleteVCSProvider_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) SearchVCSProviderProjects(ctx context.Context, in *SearchVCSProviderProjectsRequest, opts ...grpc.CallOption) (*SearchVCSProviderProjectsResponse, error) {+ out := new(SearchVCSProviderProjectsResponse)+ err := c.cc.Invoke(ctx, VCSProviderService_SearchVCSProviderProjects_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *vCSProviderServiceClient) ListProjectGitOpsInfo(ctx context.Context, in *ListProjectGitOpsInfoRequest, opts ...grpc.CallOption) (*ListProjectGitOpsInfoResponse, error) {+ out := new(ListProjectGitOpsInfoResponse)+ err := c.cc.Invoke(ctx, VCSProviderService_ListProjectGitOpsInfo_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++// VCSProviderServiceServer is the server API for VCSProviderService service.+// All implementations must embed UnimplementedVCSProviderServiceServer+// for forward compatibility+type VCSProviderServiceServer interface {+ GetVCSProvider(context.Context, *GetVCSProviderRequest) (*VCSProvider, error)+ ListVCSProviders(context.Context, *ListVCSProvidersRequest) (*ListVCSProvidersResponse, error)+ CreateVCSProvider(context.Context, *CreateVCSProviderRequest) (*VCSProvider, error)+ UpdateVCSProvider(context.Context, *UpdateVCSProviderRequest) (*VCSProvider, error)+ ExchangeToken(context.Context, *ExchangeTokenRequest) (*OAuthToken, error)+ DeleteVCSProvider(context.Context, *DeleteVCSProviderRequest) (*emptypb.Empty, error)+ SearchVCSProviderProjects(context.Context, *SearchVCSProviderProjectsRequest) (*SearchVCSProviderProjectsResponse, error)+ ListProjectGitOpsInfo(context.Context, *ListProjectGitOpsInfoRequest) (*ListProjectGitOpsInfoResponse, error)+ mustEmbedUnimplementedVCSProviderServiceServer()+}++// UnimplementedVCSProviderServiceServer must be embedded to have forward compatible implementations.+type UnimplementedVCSProviderServiceServer struct {+}++func (UnimplementedVCSProviderServiceServer) GetVCSProvider(context.Context, *GetVCSProviderRequest) (*VCSProvider, error) {+ return nil, status.Errorf(codes.Unimplemented, "method GetVCSProvider not implemented")+}+func (UnimplementedVCSProviderServiceServer) ListVCSProviders(context.Context, *ListVCSProvidersRequest) (*ListVCSProvidersResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListVCSProviders not implemented")+}+func (UnimplementedVCSProviderServiceServer) CreateVCSProvider(context.Context, *CreateVCSProviderRequest) (*VCSProvider, error) {+ return nil, status.Errorf(codes.Unimplemented, "method CreateVCSProvider not implemented")+}+func (UnimplementedVCSProviderServiceServer) UpdateVCSProvider(context.Context, *UpdateVCSProviderRequest) (*VCSProvider, error) {+ return nil, status.Errorf(codes.Unimplemented, "method UpdateVCSProvider not implemented")+}+func (UnimplementedVCSProviderServiceServer) ExchangeToken(context.Context, *ExchangeTokenRequest) (*OAuthToken, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ExchangeToken not implemented")+}+func (UnimplementedVCSProviderServiceServer) DeleteVCSProvider(context.Context, *DeleteVCSProviderRequest) (*emptypb.Empty, error) {+ return nil, status.Errorf(codes.Unimplemented, "method DeleteVCSProvider not implemented")+}+func (UnimplementedVCSProviderServiceServer) SearchVCSProviderProjects(context.Context, *SearchVCSProviderProjectsRequest) (*SearchVCSProviderProjectsResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method SearchVCSProviderProjects not implemented")+}+func (UnimplementedVCSProviderServiceServer) ListProjectGitOpsInfo(context.Context, *ListProjectGitOpsInfoRequest) (*ListProjectGitOpsInfoResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListProjectGitOpsInfo not implemented")+}+func (UnimplementedVCSProviderServiceServer) mustEmbedUnimplementedVCSProviderServiceServer() {}++// UnsafeVCSProviderServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to VCSProviderServiceServer will+// result in compilation errors.+type UnsafeVCSProviderServiceServer interface {+ mustEmbedUnimplementedVCSProviderServiceServer()+}++func RegisterVCSProviderServiceServer(s grpc.ServiceRegistrar, srv VCSProviderServiceServer) {+ s.RegisterService(&VCSProviderService_ServiceDesc, srv)+}++func _VCSProviderService_GetVCSProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(GetVCSProviderRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).GetVCSProvider(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_GetVCSProvider_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).GetVCSProvider(ctx, req.(*GetVCSProviderRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_ListVCSProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListVCSProvidersRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).ListVCSProviders(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_ListVCSProviders_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).ListVCSProviders(ctx, req.(*ListVCSProvidersRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_CreateVCSProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(CreateVCSProviderRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).CreateVCSProvider(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_CreateVCSProvider_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).CreateVCSProvider(ctx, req.(*CreateVCSProviderRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_UpdateVCSProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(UpdateVCSProviderRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).UpdateVCSProvider(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_UpdateVCSProvider_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).UpdateVCSProvider(ctx, req.(*UpdateVCSProviderRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_ExchangeToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ExchangeTokenRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).ExchangeToken(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_ExchangeToken_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).ExchangeToken(ctx, req.(*ExchangeTokenRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_DeleteVCSProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(DeleteVCSProviderRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).DeleteVCSProvider(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_DeleteVCSProvider_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).DeleteVCSProvider(ctx, req.(*DeleteVCSProviderRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_SearchVCSProviderProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(SearchVCSProviderProjectsRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).SearchVCSProviderProjects(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_SearchVCSProviderProjects_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).SearchVCSProviderProjects(ctx, req.(*SearchVCSProviderProjectsRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _VCSProviderService_ListProjectGitOpsInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListProjectGitOpsInfoRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(VCSProviderServiceServer).ListProjectGitOpsInfo(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: VCSProviderService_ListProjectGitOpsInfo_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(VCSProviderServiceServer).ListProjectGitOpsInfo(ctx, req.(*ListProjectGitOpsInfoRequest))+ }+ return interceptor(ctx, in, info, handler)+}++// VCSProviderService_ServiceDesc is the grpc.ServiceDesc for VCSProviderService service.+// It's only intended for direct use with grpc.RegisterService,+// and not to be introspected or modified (even as a copy)+var VCSProviderService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "bytebase.v1.VCSProviderService",+ HandlerType: (*VCSProviderServiceServer)(nil),+ Methods: []grpc.MethodDesc{+ {+ MethodName: "GetVCSProvider",+ Handler: _VCSProviderService_GetVCSProvider_Handler,+ },+ {+ MethodName: "ListVCSProviders",+ Handler: _VCSProviderService_ListVCSProviders_Handler,+ },+ {+ MethodName: "CreateVCSProvider",+ Handler: _VCSProviderService_CreateVCSProvider_Handler,+ },+ {+ MethodName: "UpdateVCSProvider",+ Handler: _VCSProviderService_UpdateVCSProvider_Handler,+ },+ {+ MethodName: "ExchangeToken",+ Handler: _VCSProviderService_ExchangeToken_Handler,+ },+ {+ MethodName: "DeleteVCSProvider",+ Handler: _VCSProviderService_DeleteVCSProvider_Handler,+ },+ {+ MethodName: "SearchVCSProviderProjects",+ Handler: _VCSProviderService_SearchVCSProviderProjects_Handler,+ },+ {+ MethodName: "ListProjectGitOpsInfo",+ Handler: _VCSProviderService_ListProjectGitOpsInfo_Handler,+ },+ },+ Streams: []grpc.StreamDesc{},+ Metadata: "v1/vcs_provider_service.proto",+}diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.protoindex 040838a2d8..f2ac3a99b5 100644--- a/proto/v1/project_service.proto+++ b/proto/v1/project_service.proto@@ -9,8 +9,8 @@ import "google/protobuf/empty.proto";import "google/protobuf/field_mask.proto";import "google/type/expr.proto";import "v1/common.proto";-import "v1/externalvs_service.proto";import "v1/iam_policy.proto";+import "v1/vcs_provider_service.proto";option go_package = "generated-go/v1";@@ -332,7 +332,7 @@ message UpdateDeploymentConfigRequest {}message UpdateProjectGitOpsInfoRequest {- // The binding for the project and external version control.+ // The binding for the project and vcs provider.ProjectGitOpsInfo project_gitops_info = 2 [(google.api.field_behavior) = REQUIRED];// The mask of the fields to be updated.diff --git a/proto/v1/externalvs_service.proto b/proto/v1/vcs_provider_service.protosimilarity index 57%rename from proto/v1/externalvs_service.protorename to proto/v1/vcs_provider_service.protoindex 9b94ee541a..2ebd2624da 100644--- a/proto/v1/externalvs_service.proto+++ b/proto/v1/vcs_provider_service.proto@@ -11,103 +11,103 @@ import "google/protobuf/timestamp.proto";option go_package = "generated-go/v1";-service ExternalVersionControlService {- rpc GetExternalVersionControl(GetExternalVersionControlRequest) returns (ExternalVersionControl) {- option (google.api.http) = {get: "/v1/{name=externalVersionControls/*}"};+service VCSProviderService {+ rpc GetVCSProvider(GetVCSProviderRequest) returns (VCSProvider) {+ option (google.api.http) = {get: "/v1/{name=vcsProviders/*}"};option (google.api.method_signature) = "name";}- rpc ListExternalVersionControls(ListExternalVersionControlsRequest) returns (ListExternalVersionControlsResponse) {- option (google.api.http) = {get: "/v1/externalVersionControls"};+ rpc ListVCSProviders(ListVCSProvidersRequest) returns (ListVCSProvidersResponse) {+ option (google.api.http) = {get: "/v1/vcsProviders"};option (google.api.method_signature) = "";}- rpc CreateExternalVersionControl(CreateExternalVersionControlRequest) returns (ExternalVersionControl) {+ rpc CreateVCSProvider(CreateVCSProviderRequest) returns (VCSProvider) {option (google.api.http) = {- post: "/v1/externalVersionControls"- body: "external_version_control"+ post: "/v1/vcsProviders"+ body: "vcs_provider"};option (google.api.method_signature) = "";}- rpc UpdateExternalVersionControl(UpdateExternalVersionControlRequest) returns (ExternalVersionControl) {+ rpc UpdateVCSProvider(UpdateVCSProviderRequest) returns (VCSProvider) {option (google.api.http) = {- patch: "/v1/{external_version_control.name=externalVersionControls/*}"- body: "external_version_control"+ patch: "/v1/{vcs_provider.name=vcsProviders/*}"+ body: "vcs_provider"};- option (google.api.method_signature) = "external_version_control,update_mask";+ option (google.api.method_signature) = "vcs_provider,update_mask";}rpc ExchangeToken(ExchangeTokenRequest) returns (OAuthToken) {option (google.api.http) = {- post: "/v1/{exchange_token.name=externalVersionControls/*}:exchangeToken"+ post: "/v1/{exchange_token.name=vcsProviders/*}:exchangeToken"body: "exchange_token"};option (google.api.method_signature) = "";}- rpc DeleteExternalVersionControl(DeleteExternalVersionControlRequest) returns (google.protobuf.Empty) {- option (google.api.http) = {delete: "/v1/{name=externalVersionControls/*}"};+ rpc DeleteVCSProvider(DeleteVCSProviderRequest) returns (google.protobuf.Empty) {+ option (google.api.http) = {delete: "/v1/{name=vcsProviders/*}"};}- rpc SearchExternalVersionControlProjects(SearchExternalVersionControlProjectsRequest) returns (SearchExternalVersionControlProjectsResponse) {+ rpc SearchVCSProviderProjects(SearchVCSProviderProjectsRequest) returns (SearchVCSProviderProjectsResponse) {option (google.api.http) = {- post: "/v1/{name=externalVersionControls/*}:searchProjects"+ post: "/v1/{name=vcsProviders/*}:searchProjects"body: "*"};}rpc ListProjectGitOpsInfo(ListProjectGitOpsInfoRequest) returns (ListProjectGitOpsInfoResponse) {- option (google.api.http) = {get: "/v1/{name=externalVersionControls/*}/projects"};+ option (google.api.http) = {get: "/v1/{name=vcsProviders/*}/projects"};}}-message CreateExternalVersionControlRequest {- ExternalVersionControl external_version_control = 1 [(google.api.field_behavior) = REQUIRED];+message CreateVCSProviderRequest {+ VCSProvider vcs_provider = 1 [(google.api.field_behavior) = REQUIRED];}-message GetExternalVersionControlRequest {- // The name of the external version control to retrieve.- // Format: externalVersionControls/{externalVersionControl}+message GetVCSProviderRequest {+ // The name of the vcs provider to retrieve.+ // Format: vcsProviders/{vcsProvider}string name = 1 [(google.api.field_behavior) = REQUIRED];}-message ListExternalVersionControlsRequest {- // Not used. The maximum number of external version control to return. The service may return fewer than this value.- // If unspecified, at most 100 external version control will be returned.+message ListVCSProvidersRequest {+ // Not used. The maximum number of vcs provider to return. The service may return fewer than this value.+ // If unspecified, at most 100 vcs provider will be returned.// The maximum value is 1000; values above 1000 will be coerced to 1000.int32 page_size = 1;- // Not used. A page token, received from a previous `ListExternalVersionControls` call.+ // Not used. A page token, received from a previous `ListVCSProviders` call.// Provide this to retrieve the subsequent page.string page_token = 2;}-message ListExternalVersionControlsResponse {- // The list of external version control.- repeated ExternalVersionControl external_version_controls = 1;+message ListVCSProvidersResponse {+ // The list of vcs providers.+ repeated VCSProvider vcs_providers = 1;// Not used. A token, which can be sent as `page_token` to retrieve the next page.// If this field is omitted, there are no subsequent pages.string next_page_token = 2;}-message UpdateExternalVersionControlRequest {- ExternalVersionControl external_version_control = 1 [(google.api.field_behavior) = REQUIRED];+message UpdateVCSProviderRequest {+ VCSProvider vcs_provider = 1 [(google.api.field_behavior) = REQUIRED];// The list of fields to be updated.google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];}-message DeleteExternalVersionControlRequest {- // The name of the external version control to delete.- // Format: externalVersionControls/{externalVersionControl}+message DeleteVCSProviderRequest {+ // The name of the vcs provider to delete.+ // Format: vcsProviders/{vcsProvider}string name = 1 [(google.api.field_behavior) = REQUIRED];}-message SearchExternalVersionControlProjectsRequest {- // The name of the external version control to retrieve the external version control repositories.- // Format: externalVersionControls/{externalVersionControl}+message SearchVCSProviderProjectsRequest {+ // The name of the vcs provider to retrieve the vcs provider repositories.+ // Format: vcsProviders/{vcsProvider}string name = 1 [(google.api.field_behavior) = REQUIRED];string access_token = 2 [(google.api.field_behavior) = REQUIRED];@@ -115,38 +115,38 @@ message SearchExternalVersionControlProjectsRequest {string refresh_token = 3 [(google.api.field_behavior) = REQUIRED];}-message SearchExternalVersionControlProjectsResponse {+message SearchVCSProviderProjectsResponse {message Project {- // The id of the project in external version control.+ // The id of the project in vcs provider.string id = 1;- // The title of the project in external version control.+ // The title of the project in vcs provider.string title = 2;- // The fullpath of the project in external version control.+ // The fullpath of the project in vcs provider.string fullpath = 3;- // Web url of the project in external version control.+ // Web url of the project in vcs provider.string web_url = 4;}- // The list of project in external version control.+ // The list of project in vcs provider.repeated Project projects = 1;}message ListProjectGitOpsInfoRequest {- // The name of the external version control to retrieve the linked projects.- // Format: externalVersionControls/{externalVersionControl}+ // The name of the vcs provider to retrieve the linked projects.+ // Format: vcsProviders/{vcsProvider}string name = 1 [(google.api.field_behavior) = REQUIRED];}message ListProjectGitOpsInfoResponse {- // The binding between external version control and project.+ // The binding between vcs provider and project.repeated ProjectGitOpsInfo project_gitops_info = 1;}-message ExternalVersionControl {- // The name of the external version control, generated by the server, and also is the unique identifier.- // Format: externalVersionControls/{externalVersionControl}+message VCSProvider {+ // The name of the vcs provider, generated by the server, and also is the unique identifier.+ // Format: vcsProviders/{vcsProvider}string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];- // The title of the external version control. It is used to display in the UI. Specified by the client.+ // The title of the vcs provider. It is used to display in the UI. Specified by the client.string title = 2 [(google.api.field_behavior) = REQUIRED];enum Type {@@ -163,17 +163,17 @@ message ExternalVersionControl {Type type = 3 [(google.api.field_behavior) = REQUIRED];- // The url of the external version control. Specified by the client.+ // The url of the vcs provider. Specified by the client.// For example: github.com, gitlab.com, gitlab.bytebase.com.string url = 4 [(google.api.field_behavior) = REQUIRED];- // The API url of the external version control. Derived from the url.+ // The API url of the vcs provider. Derived from the url.string api_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY];- // The application ID of the external version control. Specified by the client.+ // The application ID of the vcs provider. Specified by the client.string application_id = 6 [(google.api.field_behavior) = REQUIRED];- // The application secret of the external version control. Specified by the client.+ // The application secret of the vcs provider. Specified by the client.string secret = 7 [(google.api.field_behavior) = INPUT_ONLY];}@@ -236,13 +236,13 @@ message ExchangeTokenRequest {}message ExchangeToken {- // The name of the external version control to retrieve the linked projects.- // Format: externalVersionControls/{externalVersionControl}+ // The name of the vcs provider to retrieve the linked projects.+ // Format: vcsProviders/{vcsProvider}string name = 1;string code = 2;- ExternalVersionControl.Type type = 3;+ VCSProvider.Type type = 3;string instance_url = 4;