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 resource ID (#11317)
Danny Xuae8613752ed3
diff --git a/backend/api/gitops/webhook.go b/backend/api/gitops/webhook.goindex 12b1bfc73b..ab82ed0d3f 100644--- a/backend/api/gitops/webhook.go+++ b/backend/api/gitops/webhook.go@@ -589,7 +589,7 @@ func (s *Service) filterRepository(ctx context.Context, webhookEndpointID string)continue}- externalVCS, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ID: &repo.VCSUID})+ externalVCS, err := s.store.GetVCSProvider(ctx, &store.FindVCSProviderMessage{ID: &repo.VCSUID})if err != nil {slog.Error("failed to find the vcs",slog.Int("vcs_uid", repo.VCSUID),@@ -1368,7 +1368,7 @@ func (s *Service) readFileContent(ctx context.Context, oauthContext *common.Oaut}repo := repos[0]- externalVCS, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ID: &repo.VCSUID})+ externalVCS, err := s.store.GetVCSProvider(ctx, &store.FindVCSProviderMessage{ID: &repo.VCSUID})if err != nil {return "", err}diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex eec183d12c..02658bc7f2 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -454,7 +454,7 @@ func (s *ProjectService) UpdateProjectGitOpsInfo(ctx context.Context, request *vreturn s.createProjectGitOpsInfo(ctx, request, project)}- vcs, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ResourceID: &repo.VCSResourceID})+ vcs, err := s.store.GetVCSProvider(ctx, &store.FindVCSProviderMessage{ResourceID: &repo.VCSResourceID})if err != nil {return nil, status.Errorf(codes.Internal, "failed to get vcs provider, error %v", err.Error())}@@ -558,7 +558,7 @@ func (s *ProjectService) UnsetProjectGitOpsInfo(ctx context.Context, request *v1return nil, err}- vcs, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ResourceID: &repo.VCSResourceID})+ vcs, err := s.store.GetVCSProvider(ctx, &store.FindVCSProviderMessage{ResourceID: &repo.VCSResourceID})if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}@@ -981,7 +981,7 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *v} else {find.ResourceID = &vcsResourceID}- vcs, err := s.store.GetVCSProviderV2(ctx, find)+ vcs, err := s.store.GetVCSProvider(ctx, find)if err != nil {return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())}diff --git a/backend/api/v1/vcs_provider_service.go b/backend/api/v1/vcs_provider_service.goindex abb0e33514..7d9e64f52e 100644--- a/backend/api/v1/vcs_provider_service.go+++ b/backend/api/v1/vcs_provider_service.go@@ -34,7 +34,7 @@ func (s *VCSProviderService) GetVCSProvider(ctx context.Context, request *v1pb.Greturn nil, err}- return convertToVCSProvider(vcs), nil+ return convertVCSProvider(vcs), nil}// ListVCSProviders lists vcs providers.@@ -48,7 +48,18 @@ func (s *VCSProviderService) ListVCSProviders(ctx context.Context, _ *v1pb.ListV// CreateVCSProvider creates a new vcs provider.func (s *VCSProviderService) CreateVCSProvider(ctx context.Context, request *v1pb.CreateVCSProviderRequest) (*v1pb.VCSProvider, error) {- vcsProvider, err := checkAndConvertToStoreVersionControl(request.VcsProvider)+ vcsProvider, err := s.store.GetVCSProvider(ctx, &store.FindVCSProviderMessage{ResourceID: &request.VcsProviderId})+ if err != nil {+ return nil, status.Errorf(codes.Internal, err.Error())+ }+ if vcsProvider != nil {+ return nil, status.Errorf(codes.AlreadyExists, "vcs provider %s already exists", request.VcsProviderId)+ }++ if !isValidResourceID(request.VcsProviderId) {+ return nil, status.Errorf(codes.InvalidArgument, "invalid vcs provider ID %v", request.VcsProviderId)+ }+ vcsProvider, err = convertV1VCSProvider(request)if err != nil {return nil, status.Errorf(codes.InvalidArgument, err.Error())}@@ -56,13 +67,11 @@ func (s *VCSProviderService) CreateVCSProvider(ctx context.Context, request *v1pif !ok {return nil, status.Errorf(codes.Internal, "principal ID not found")}- // TODO(d): pass in the resource ID from API.- vcsProvider.ResourceID = strings.ToLower(string(vcsProvider.Type))- storeVCSProvider, err := s.store.CreateVCSProviderV2(ctx, principalID, vcsProvider)+ storeVCSProvider, err := s.store.CreateVCSProvider(ctx, principalID, vcsProvider)if err != nil {return nil, status.Errorf(codes.Internal, "Failed to create vcs provider: %v", err)}- return convertToVCSProvider(storeVCSProvider), nil+ return convertVCSProvider(storeVCSProvider), nil}// UpdateVCSProvider updates an existing vcs provider.@@ -95,11 +104,11 @@ func (s *VCSProviderService) UpdateVCSProvider(ctx context.Context, request *v1pif !ok {return nil, status.Errorf(codes.Internal, "principal ID not found")}- vcsProvider, err = s.store.UpdateVCSProviderV2(ctx, principalID, vcsProvider.ID, update)+ vcsProvider, err = s.store.UpdateVCSProvider(ctx, principalID, vcsProvider.ID, update)if err != nil {return nil, status.Errorf(codes.Internal, err.Error())}- return convertToVCSProvider(vcsProvider), nil+ return convertVCSProvider(vcsProvider), nil}// DeleteVCSProvider deletes an existing vcs provider.@@ -109,7 +118,7 @@ func (s *VCSProviderService) DeleteVCSProvider(ctx context.Context, request *v1preturn nil, err}- if err := s.store.DeleteVCSProviderV2(ctx, vcsProvider.ID); err != nil {+ if err := s.store.DeleteVCSProvider(ctx, vcsProvider.ID); err != nil {return nil, status.Errorf(codes.Internal, "Failed to delete vcs provider: %v", err)}return &emptypb.Empty{}, nil@@ -190,7 +199,7 @@ func (s *VCSProviderService) getVCS(ctx context.Context, name string) (*store.VCfind.ResourceID = &vcsResourceID}- vcsProvider, err := s.store.GetVCSProviderV2(ctx, find)+ vcsProvider, err := s.store.GetVCSProvider(ctx, find)if err != nil {return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)}@@ -203,12 +212,12 @@ func (s *VCSProviderService) getVCS(ctx context.Context, name string) (*store.VCfunc convertToVCSProviders(vcsProviders []*store.VCSProviderMessage) []*v1pb.VCSProvider {var res []*v1pb.VCSProviderfor _, vcsProvider := range vcsProviders {- res = append(res, convertToVCSProvider(vcsProvider))+ res = append(res, convertVCSProvider(vcsProvider))}return res}-func convertToVCSProvider(vcsProvider *store.VCSProviderMessage) *v1pb.VCSProvider {+func convertVCSProvider(vcsProvider *store.VCSProviderMessage) *v1pb.VCSProvider {tp := v1pb.VCSProvider_TYPE_UNSPECIFIEDswitch vcsProvider.Type {case vcs.GitHub:@@ -222,38 +231,40 @@ func convertToVCSProvider(vcsProvider *store.VCSProviderMessage) *v1pb.VCSProvid}return &v1pb.VCSProvider{- Name: fmt.Sprintf("%s%d", common.VCSProviderPrefix, vcsProvider.ID),- Title: vcsProvider.Name,+ Name: fmt.Sprintf("%s%s", common.VCSProviderPrefix, vcsProvider.ResourceID),+ Title: vcsProvider.Title,Type: tp,Url: vcsProvider.InstanceURL,}}-func checkAndConvertToStoreVersionControl(vcsProvider *v1pb.VCSProvider) (*store.VCSProviderMessage, error) {- if vcsProvider.Title == "" {+func convertV1VCSProvider(request *v1pb.CreateVCSProviderRequest) (*store.VCSProviderMessage, error) {+ v1VCSProvider := request.GetVcsProvider()+ if v1VCSProvider.GetTitle() == "" {return nil, errors.Errorf("Empty VCSProvider.Title")}- if vcsProvider.Type == v1pb.VCSProvider_TYPE_UNSPECIFIED {+ if v1VCSProvider.GetType() == v1pb.VCSProvider_TYPE_UNSPECIFIED {return nil, errors.Errorf("Empty VCSProvider.Type")}- if vcsProvider.Url == "" {+ if v1VCSProvider.GetUrl() == "" {return nil, errors.Errorf("Empty VCSProvider.Url")}- if vcsProvider.AccessToken == "" {+ if v1VCSProvider.GetAccessToken() == "" {return nil, errors.Errorf("Empty VCSProvider.Secret")}- storeVCSProvider := &store.VCSProviderMessage{- Name: vcsProvider.Title,- AccessToken: vcsProvider.AccessToken,- }-- tp, err := convertVCSProviderTypeToVCSType(vcsProvider.Type)+ tp, err := convertVCSProviderTypeToVCSType(v1VCSProvider.GetType())if err != nil {return nil, err}- storeVCSProvider.InstanceURL = strings.TrimRight(vcsProvider.Url, "/")- storeVCSProvider.Type = tp+ storeVCSProvider := &store.VCSProviderMessage{+ ResourceID: request.GetVcsProviderId(),+ Title: v1VCSProvider.GetTitle(),+ Type: tp,+ InstanceURL: strings.TrimRight(v1VCSProvider.GetUrl(), "/"),+ AccessToken: v1VCSProvider.GetAccessToken(),+ }+return storeVCSProvider, nil}diff --git a/backend/store/vcs.go b/backend/store/vcs.goindex e537ede666..f9b263aa7e 100644--- a/backend/store/vcs.go+++ b/backend/store/vcs.go@@ -20,8 +20,8 @@ type VCSProviderMessage struct {Type vcs.Type// InstanceURL is the URL for the VCS provider instance.InstanceURL string- // Name is the name of the VCS provider.- Name string+ // Title is the name of the VCS provider.+ Title string// AccessToken is the access token for the VCS provider.AccessToken string@@ -45,8 +45,8 @@ type FindVCSProviderMessage struct {ResourceID *string}-// GetVCSProviderV2 gets an VCS provider by ID.-func (s *Store) GetVCSProviderV2(ctx context.Context, find *FindVCSProviderMessage) (*VCSProviderMessage, error) {+// GetVCSProvider gets an VCS provider by ID.+func (s *Store) GetVCSProvider(ctx context.Context, find *FindVCSProviderMessage) (*VCSProviderMessage, error) {if find.ID != nil {if v, ok := s.vcsIDCache.Get(*find.ID); ok {return v, nil@@ -59,7 +59,7 @@ func (s *Store) GetVCSProviderV2(ctx context.Context, find *FindVCSProviderMessa}defer tx.Rollback()- vcsProviders, err := s.findVCSProvidersImplV2(ctx, tx, find)+ vcsProviders, err := s.findVCSProvidersImpl(ctx, tx, find)if err != nil {return nil, err}@@ -85,7 +85,7 @@ func (s *Store) ListVCSProviders(ctx context.Context) ([]*VCSProviderMessage, er}defer tx.Rollback()- vcsProviders, err := s.findVCSProvidersImplV2(ctx, tx, &FindVCSProviderMessage{})+ vcsProviders, err := s.findVCSProvidersImpl(ctx, tx, &FindVCSProviderMessage{})if err != nil {return nil, err}@@ -99,8 +99,8 @@ func (s *Store) ListVCSProviders(ctx context.Context) ([]*VCSProviderMessage, erreturn vcsProviders, nil}-// CreateVCSProviderV2 creates an VCS provider.-func (s *Store) CreateVCSProviderV2(ctx context.Context, principalUID int, create *VCSProviderMessage) (*VCSProviderMessage, error) {+// CreateVCSProvider creates an VCS provider.+func (s *Store) CreateVCSProvider(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")@@ -125,14 +125,14 @@ func (s *Store) CreateVCSProviderV2(ctx context.Context, principalUID int, creatprincipalUID,principalUID,create.ResourceID,- create.Name,+ create.Title,create.Type,create.InstanceURL,create.AccessToken,).Scan(&vcsProvider.ID,&vcsProvider.ResourceID,- &vcsProvider.Name,+ &vcsProvider.Title,&vcsProvider.Type,&vcsProvider.InstanceURL,&vcsProvider.AccessToken,@@ -151,8 +151,8 @@ func (s *Store) CreateVCSProviderV2(ctx context.Context, principalUID int, creatreturn &vcsProvider, nil}-// UpdateVCSProviderV2 updates an VCS provider.-func (s *Store) UpdateVCSProviderV2(ctx context.Context, principalUID int, vcsProviderUID int, update *UpdateVCSProviderMessage) (*VCSProviderMessage, error) {+// UpdateVCSProvider updates an VCS provider.+func (s *Store) UpdateVCSProvider(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 {@@ -181,7 +181,7 @@ func (s *Store) UpdateVCSProviderV2(ctx context.Context, principalUID int, vcsPr).Scan(&vcsProvider.ID,&vcsProvider.ResourceID,- &vcsProvider.Name,+ &vcsProvider.Title,&vcsProvider.Type,&vcsProvider.InstanceURL,&vcsProvider.AccessToken,@@ -199,8 +199,8 @@ func (s *Store) UpdateVCSProviderV2(ctx context.Context, principalUID int, vcsPrreturn &vcsProvider, nil}-// DeleteVCSProviderV2 deletes an VCS provider.-func (s *Store) DeleteVCSProviderV2(ctx context.Context, vcsProviderUID int) error {+// DeleteVCSProvider deletes an VCS provider.+func (s *Store) DeleteVCSProvider(ctx context.Context, vcsProviderUID int) error {tx, err := s.db.BeginTx(ctx, nil)if err != nil {return errors.Wrapf(err, "failed to begin transaction")@@ -219,7 +219,7 @@ func (s *Store) DeleteVCSProviderV2(ctx context.Context, vcsProviderUID int) errreturn nil}-func (*Store) findVCSProvidersImplV2(ctx context.Context, tx *Tx, find *FindVCSProviderMessage) ([]*VCSProviderMessage, error) {+func (*Store) findVCSProvidersImpl(ctx context.Context, tx *Tx, find *FindVCSProviderMessage) ([]*VCSProviderMessage, error) {where, args := []string{"TRUE"}, []any{}if v := find.ID; v != nil {where, args = append(where, fmt.Sprintf("id = $%d", len(args)+1)), append(args, *v)@@ -250,7 +250,7 @@ func (*Store) findVCSProvidersImplV2(ctx context.Context, tx *Tx, find *FindVCSPif err := rows.Scan(&vcsProvider.ID,&vcsProvider.ResourceID,- &vcsProvider.Name,+ &vcsProvider.Title,&vcsProvider.Type,&vcsProvider.InstanceURL,&vcsProvider.AccessToken,diff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.goindex 9052ba271b..333c101e88 100644--- a/backend/tests/schema_update_test.go+++ b/backend/tests/schema_update_test.go@@ -303,6 +303,7 @@ func TestSimpleVCS(t *testing.T) {Url: ctl.vcsURL,AccessToken: "testApplicationSecret",},+ VcsProviderId: strings.ToLower(test.vcsType.String()),})a.NoError(err)// Create a repository.@@ -653,6 +654,7 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {Url: ctl.vcsURL,AccessToken: "testApplicationSecret",},+ VcsProviderId: strings.ToLower(test.vcsType.String()),})a.NoError(err)// Create a repository@@ -865,491 +867,6 @@ ALTER TABLE ONLY public.users}}-func TestWildcardInVCSFilePathTemplate(t *testing.T) {- branchFilter := "feature/foo"- dbName := "db1"- externalID := "121"- repoFullPath := "test/wildcard"-- defaultNewWebhookPushEvent := func(added []string, beforeSHA, afterSHA string) any {- return gitlab.WebhookPushEvent{- ObjectKind: gitlab.WebhookPush,- Ref: fmt.Sprintf("refs/heads/%s", branchFilter),- Before: beforeSHA,- After: afterSHA,- Project: gitlab.WebhookProject{- ID: 121,- },- CommitList: []gitlab.WebhookCommit{- {- Timestamp: "2021-01-13T13:14:00Z",- AddedList: added,- },- },- }- }- tests := []struct {- name string- vcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.VCSProvider_Type- baseDirectory string- envName string- filePathTemplate string- commitNewFileNames []string- commitNewFileContents []string- expect []bool- newWebhookPushEvent func(added []string, beforeSHA, afterSHA string) any- }{- {- name: "singleAsterisk",- vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.VCSProvider_GITLAB,- baseDirectory: "bbtest",- envName: "wildcard",- filePathTemplate: "{{ENV_ID}}/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- commitNewFileNames: []string{- // Normal- fmt.Sprintf("%s/%s/foo/%s##ver1##migrate##create_table_t1.sql", baseDirectory, "wildcard", dbName),- // One singleAsterisk cannot match two directories.- fmt.Sprintf("%s/%s/foo/bar/%s##ver2##data##insert_data.sql", baseDirectory, "wildcard", dbName),- // One singleAsterisk cannot match zero directory.- fmt.Sprintf("%s/%s/%s##ver3##migrate##create_table_t3.sql", baseDirectory, "wildcard", dbName),- },- commitNewFileContents: []string{- "CREATE TABLE t1 (id INT);",- "INSERT INTO t1 VALUES (1);",- "CREATE TABLE t3 (id INT);",- },- expect: []bool{- true,- false,- false,- },- newWebhookPushEvent: defaultNewWebhookPushEvent,- },- {- name: "continuousSingleAsterisk",- vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.VCSProvider_GITLAB,- baseDirectory: "bbtest",- envName: "wildcard",- filePathTemplate: "{{ENV_ID}}/*/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- commitNewFileNames: []string{- // The second single asterisk represents empty folder.- fmt.Sprintf("%s/%s/foo/bar/%s##ver1##migrate##create_table_t1.sql", baseDirectory, "wildcard", dbName),- // Any singleAsterisk cannot match zero directory.- fmt.Sprintf("%s/%s/foo/%s##ver2##data##insert_data.sql", baseDirectory, "wildcard", dbName),- fmt.Sprintf("%s/%s/%s##ver3##migrate##create_table_t3.sql", baseDirectory, "wildcard", dbName),- },- commitNewFileContents: []string{- "CREATE TABLE t1 (id INT);",- "INSERT INTO t1 VALUES (1);",- "CREATE TABLE t3 (id INT);",- },- expect: []bool{- true,- false,- false,- },- newWebhookPushEvent: defaultNewWebhookPushEvent,- },- {- name: "doubleAsterisks",- vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.VCSProvider_GITLAB,- baseDirectory: "bbtest",- envName: "wildcard",- filePathTemplate: "{{ENV_ID}}/**/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- commitNewFileNames: []string{- // Two singleAsterisk can match one directory.- fmt.Sprintf("%s/%s/foo/%s##ver1##migrate##create_table_t1.sql", baseDirectory, "wildcard", dbName),- // Two singleAsterisk can match two directories.- fmt.Sprintf("%s/%s/foo/bar/%s##ver2##migrate##create_table_t2.sql", baseDirectory, "wildcard", dbName),- // Two singleAsterisk can match three directories or more.- fmt.Sprintf("%s/%s/foo/bar/foo/%s##ver3##migrate##create_table_t3.sql", baseDirectory, "wildcard", dbName),- // Two singleAsterisk cannot match zero directory.- fmt.Sprintf("%s/%s/%s##ver4##migrate##create_table_t4.sql", baseDirectory, "wildcard", dbName),- },- commitNewFileContents: []string{- "CREATE TABLE t1 (id INT);",- "CREATE TABLE t2 (id INT);",- "CREATE TABLE t3 (id INT);",- "CREATE TABLE t4 (id INT);",- },- expect: []bool{- true,- true,- true,- false,- },- newWebhookPushEvent: defaultNewWebhookPushEvent,- },- {- name: "emptyBaseAndMixAsterisks",- vcsProviderCreator: fake.NewGitLab,- envName: "wildcard",- baseDirectory: "",- vcsType: v1pb.VCSProvider_GITLAB,- filePathTemplate: "{{ENV_ID}}/**/foo/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- commitNewFileNames: []string{- // ** matches foo, foo matches foo, * matches bar- fmt.Sprintf("%s/foo/foo/bar/%s##ver1##migrate##create_table_t1.sql", "wildcard", dbName),- // ** matches foo/bar/foo, foo matches foo, * matches bar- fmt.Sprintf("%s/foo/bar/foo/foo/bar/%s##ver2##migrate##create_table_t2.sql", "wildcard", dbName),- // cannot match- fmt.Sprintf("%s/%s##ver3##migrate##create_table_t3.sql", "wildcard", dbName),- },- commitNewFileContents: []string{- "CREATE TABLE t1 (id INT);",- "CREATE TABLE t2 (id INT);",- "CREATE TABLE t3 (id INT);",- },- expect: []bool{- true,- true,- false,- },- newWebhookPushEvent: defaultNewWebhookPushEvent,- },- // We test the combination of ** and *, and the place holder is not fully represented by the ascii character set.- {- name: "mixAsterisks",- vcsProviderCreator: fake.NewGitLab,- envName: "prod1",- baseDirectory: "bbtest",- vcsType: v1pb.VCSProvider_GITLAB,- filePathTemplate: "{{ENV_ID}}/**/foo/*/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- commitNewFileNames: []string{- // ** matches foo, foo matches foo, * matches bar- fmt.Sprintf("%s/%s/foo/foo/bar/%s##ver1##migrate##create_table_t1.sql", baseDirectory, "prod1", dbName),- // ** matches foo/bar/foo, foo matches foo, * matches bar- fmt.Sprintf("%s/%s/foo/bar/foo/foo/bar/%s##ver2##migrate##create_table_t2.sql", baseDirectory, "prod1", dbName),- // cannot match- fmt.Sprintf("%s/%s/%s##ver3##migrate##create_table_t3.sql", baseDirectory, "prod1", dbName),- },- commitNewFileContents: []string{- "CREATE TABLE t1 (id INT);",- "CREATE TABLE t2 (id INT);",- "CREATE TABLE t3 (id INT);",- },- expect: []bool{- true,- true,- false,- },- newWebhookPushEvent: defaultNewWebhookPushEvent,- },- // No asterisk- {- name: "placeholderAsFolder",- vcsProviderCreator: fake.NewGitLab,- envName: "ZO",- baseDirectory: "bbtest",- 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),- fmt.Sprintf("%s/%s/%s/%s##ver2##migrate##create_table_t2.sql", baseDirectory, "zo", dbName, dbName),- fmt.Sprintf("%s/%s/%s/sql/%s##ver3##migrate##create_table_t3.sql", baseDirectory, "zo", dbName, dbName),- },- commitNewFileContents: []string{- "CREATE TABLE t1 (id INT);",- "CREATE TABLE t2 (id INT);",- "CREATE TABLE t3 (id INT);",- },- expect: []bool{- true,- false,- true,- },- newWebhookPushEvent: defaultNewWebhookPushEvent,- },- }- for _, test := range tests {- // Fix the problem that closure in a for loop will always use the last element.- test := test- t.Run(test.name, func(t *testing.T) {- t.Parallel()-- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: test.vcsProviderCreator,- })- a.NoError(err)- defer func() {- _ = ctl.Close(ctx)- }()- // Create a VCS.- evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{- VcsProvider: &v1pb.VCSProvider{- Title: t.Name(),- Type: test.vcsType,- Url: ctl.vcsURL,- AccessToken: "testApplicationSecret",- },- })- a.NoError(err)- // Create a repository.- ctl.vcsProvider.CreateRepository(externalID)- // Create the branch.- err = ctl.vcsProvider.CreateBranch(externalID, branchFilter)- a.NoError(err)-- _, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{- ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{- Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- Vcs: evcs.Name,- Title: "Test Repository",- FullPath: repoFullPath,- WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, repoFullPath),- BranchFilter: branchFilter,- BaseDirectory: test.baseDirectory,- FilePathTemplate: test.filePathTemplate,- SchemaPathTemplate: "{{ENV_ID}}/.{{DB_NAME}}##LATEST.sql",- ExternalId: externalID,- },- AllowMissing: true,- })- a.NoError(err)-- environment, err := ctl.environmentServiceClient.CreateEnvironment(ctx,- &v1pb.CreateEnvironmentRequest{- Environment: &v1pb.Environment{Title: test.envName},- EnvironmentId: strings.ToLower(test.envName),- })- a.NoError(err)- // Provision an instance.- instanceRootDir := t.TempDir()- instanceName := "testInstance1"- instanceDir, err := ctl.provisionSQLiteInstance(instanceRootDir, instanceName)- a.NoError(err)-- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: generateRandomString("instance", 10),- Instance: &v1pb.Instance{- Title: instanceName,- Engine: v1pb.Engine_SQLITE,- Environment: environment.Name,- Activation: true,- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: instanceDir, Id: "admin"}},- },- })- a.NoError(err)-- // Create an issue that creates a database.- err = ctl.createDatabaseV2(ctx, ctl.project, instance, nil /* environment */, dbName, "", nil /* labelMap */)- a.NoError(err)-- a.Equal(len(test.expect), len(test.commitNewFileNames))- a.Equal(len(test.expect), len(test.commitNewFileContents))-- for idx, commitFileName := range test.commitNewFileNames {- // Simulate Git commits for schema update.- err = ctl.vcsProvider.AddFiles(externalID, map[string]string{commitFileName: test.commitNewFileContents[idx]})- a.NoError(err)- // We always commit one file at a time in this test.- beforeCommit := strconv.Itoa(idx)- afterCommit := strconv.Itoa(idx + 1)- err = ctl.vcsProvider.AddCommitsDiff(externalID, beforeCommit, afterCommit, []vcs.FileDiff{- {Path: commitFileName, Type: vcs.FileDiffTypeAdded},- })- a.NoError(err)- payload, err := json.Marshal(test.newWebhookPushEvent([]string{commitFileName}, beforeCommit, afterCommit))- a.NoError(err)- err = ctl.vcsProvider.SendWebhookPush(externalID, payload)- a.NoError(err)-- // Check for newly generated issues.- issue, err := ctl.getLastOpenIssue(ctx, ctl.project)- a.NoError(err)- if test.expect[idx] {- a.NotNil(issue)- err = ctl.waitRollout(ctx, issue.Name, issue.Rollout)- a.NoError(err)- err = ctl.closeIssue(ctx, ctl.project, issue.Name)- a.NoError(err)- } else {- a.Nil(issue)- }- }- })- }-}--func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {- type testCase struct {- name string- existedBranchList []string- branchFilter string- want bool- }- type vcsTestCase struct {- vcsType v1pb.VCSProvider_Type- vcsProviderCreator fake.VCSProviderCreator- externalID string- repoFullPath string- caseList []testCase- }-- tests := []vcsTestCase{- {- vcsType: v1pb.VCSProvider_GITLAB,- vcsProviderCreator: fake.NewGitLab,- externalID: "1234",- repoFullPath: "1234",- caseList: []testCase{- {- name: "mainBranchWithGitLab",- existedBranchList: []string{- "main",- "test/branch",- },- branchFilter: "main",- want: false,- }, {- name: "customBranchWithGitLab",- existedBranchList: []string{- "main",- "test/branch",- },- branchFilter: "test/branch",- want: false,- }, {- name: "nonExistedBranchWithGitLab",- existedBranchList: []string{- "main",- "test/branch",- },- branchFilter: "non_existed_branch",- want: true,- }, {- name: "wildcardBranchWithGitLab",- existedBranchList: []string{- "main",- },- branchFilter: "main*",- want: false,- },- },- },- {- vcsType: v1pb.VCSProvider_GITHUB,- vcsProviderCreator: fake.NewGitHub,- externalID: "test/branch",- repoFullPath: "test/branch",- caseList: []testCase{- {- name: "mainBranchWithGitHub",- existedBranchList: []string{- "main",- "test/branch",- },- branchFilter: "main",- want: false,- }, {- name: "customBranchWithGitHub",- existedBranchList: []string{- "main",- "test/branch",- },- branchFilter: "test/branch",- want: false,- }, {- name: "nonExistedBranchWithGitHub",- existedBranchList: []string{- "main",- "test/branch",- },- branchFilter: "non_existed_branch",- want: true,- }, {- name: "wildcardBranchWithGitHub",- existedBranchList: []string{- "main",- },- branchFilter: "main*",- want: false,- },- },- },- }-- for _, vcsTest := range tests {- // Wrap the defer statement in an anonymous func to make it work properly.- (func() {- a := require.New(t)- ctx := context.Background()- ctl := &controller{}-- // Create a server.- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: vcsTest.vcsProviderCreator,- })- a.NoError(err)-- defer func() {- _ = ctl.Close(ctx)- }()-- // Create a VCS.- evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{- VcsProvider: &v1pb.VCSProvider{- Title: "testName",- Type: vcsTest.vcsType,- Url: ctl.vcsURL,- AccessToken: "testSecret",- },- })- a.NoError(err)-- for _, test := range vcsTest.caseList {- test := test- t.Run(test.name, func(_ *testing.T) {- // Create a repository in the fake vsc provider.- ctl.vcsProvider.CreateRepository(vcsTest.externalID)-- // Create existed branches.- for _, existedBranch := range test.existedBranchList {- err := ctl.vcsProvider.CreateBranch(vcsTest.externalID, existedBranch)- a.NoError(err)- }-- // Create a repository.- _, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{- ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{- Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- Vcs: evcs.Name,- Title: "Test Repository",- FullPath: vcsTest.repoFullPath,- WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, vcsTest.repoFullPath),- BranchFilter: test.branchFilter,- BaseDirectory: "",- FilePathTemplate: "{{ENV_ID}}/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- SchemaPathTemplate: "",- ExternalId: vcsTest.externalID,- },- AllowMissing: true,- })-- if test.want {- a.Error(err)- } else {- a.NoError(err)- _, err = ctl.projectServiceClient.UnsetProjectGitOpsInfo(ctx, &v1pb.UnsetProjectGitOpsInfoRequest{- Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- })- a.NoError(err)- }- })- }- })()- }-}-func TestGetLatestSchema(t *testing.T) {tests := []struct {name string@@ -1816,6 +1333,7 @@ func TestVCS_SDL_MySQL(t *testing.T) {Url: ctl.vcsURL,AccessToken: "testApplicationSecret",},+ VcsProviderId: strings.ToLower(test.vcsType.String()),})a.NoError(err)diff --git a/backend/tests/tenant_test.go b/backend/tests/tenant_test.goindex df92d91a2d..9f8a6bcd5a 100644--- a/backend/tests/tenant_test.go+++ b/backend/tests/tenant_test.go@@ -2,20 +2,15 @@ package testsimport ("context"- "encoding/json""fmt""strings""testing"- "time""github.com/google/uuid""github.com/stretchr/testify/require""github.com/bytebase/bytebase/backend/common"api "github.com/bytebase/bytebase/backend/legacyapi"- "github.com/bytebase/bytebase/backend/plugin/vcs"- "github.com/bytebase/bytebase/backend/plugin/vcs/github"- "github.com/bytebase/bytebase/backend/plugin/vcs/gitlab""github.com/bytebase/bytebase/backend/tests/fake"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")@@ -192,588 +187,3 @@ func TestTenant(t *testing.T) {a.Equal(wantBookSchema, dbMetadata.Schema)}}--func TestTenantVCS(t *testing.T) {- t.Parallel()- tests := []struct {- name string- vcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.VCSProvider_Type- externalID string- repositoryFullPath string- newWebhookPushEvent func(gitFiles []string, beforeSHA, afterSHA string) any- }{- {- name: "GitLab",- vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.VCSProvider_GITLAB,- externalID: "121",- repositoryFullPath: "test/schemaUpdate",- newWebhookPushEvent: func(gitFiles []string, beforeSHA, afterSHA string) any {- return gitlab.WebhookPushEvent{- ObjectKind: gitlab.WebhookPush,- Ref: "refs/heads/feature/foo",- Before: beforeSHA,- After: afterSHA,- Project: gitlab.WebhookProject{- ID: 121,- },- CommitList: []gitlab.WebhookCommit{- {- Timestamp: "2021-01-13T13:14:00Z",- AddedList: gitFiles,- },- },- }- },- },- {- name: "GitHub",- vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.VCSProvider_GITHUB,- externalID: "octocat/Hello-World",- repositoryFullPath: "octocat/Hello-World",- newWebhookPushEvent: func(gitFiles []string, beforeSHA, afterSHA string) any {- return github.WebhookPushEvent{- Ref: "refs/heads/feature/foo",- Before: beforeSHA,- After: afterSHA,- Repository: github.WebhookRepository{- ID: 211,- FullName: "octocat/Hello-World",- HTMLURL: "https://github.com/octocat/Hello-World",- },- Sender: github.WebhookSender{- Login: "fake_github_author",- },- Commits: []github.WebhookCommit{- {- ID: "fake_github_commit_id",- Distinct: true,- Message: "Fake GitHub commit message",- Timestamp: time.Now(),- URL: "https://api.github.com/octocat/Hello-World/commits/fake_github_commit_id",- Author: github.WebhookCommitAuthor{- Name: "fake_github_author",- Email: "fake_github_author@localhost",- },- Added: gitFiles,- },- },- }- },- },- }- for _, test := range tests {- // Fix the problem that closure in a for loop will always use the last element.- test := test- t.Run(test.name, func(t *testing.T) {- t.Parallel()-- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: test.vcsProviderCreator,- })- a.NoError(err)- defer func() {- _ = ctl.Close(ctx)- }()-- // Create a VCS.- evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{- VcsProvider: &v1pb.VCSProvider{- Title: t.Name(),- Type: test.vcsType,- Url: ctl.vcsURL,- AccessToken: "testApplicationSecret",- },- })- a.NoError(err)-- // Create a project.- projectID := generateRandomString("project", 10)- project, err := ctl.projectServiceClient.CreateProject(ctx, &v1pb.CreateProjectRequest{- Project: &v1pb.Project{- Name: fmt.Sprintf("projects/%s", projectID),- Title: projectID,- Key: projectID,- TenantMode: v1pb.TenantMode_TENANT_MODE_ENABLED,- },- ProjectId: projectID,- })- a.NoError(err)-- // Create a repository.- ctl.vcsProvider.CreateRepository(test.externalID)-- // Create the branch- err = ctl.vcsProvider.CreateBranch(test.externalID, "feature/foo")- a.NoError(err)-- _, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{- ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{- Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),- Vcs: evcs.Name,- Title: "Test Repository",- FullPath: test.repositoryFullPath,- WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),- BranchFilter: "feature/foo",- BaseDirectory: baseDirectory,- FilePathTemplate: "{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- SchemaPathTemplate: ".LATEST.sql",- ExternalId: test.externalID,- },- AllowMissing: true,- })- a.NoError(err)-- // Provision instances.- instanceRootDir := t.TempDir()-- var testInstanceDirs []string- var prodInstanceDirs []string- for i := 0; i < testTenantNumber; i++ {- instanceDir, err := ctl.provisionSQLiteInstance(instanceRootDir, fmt.Sprintf("%s-%d", testInstanceName, i))- a.NoError(err)- testInstanceDirs = append(testInstanceDirs, instanceDir)- }- for i := 0; i < prodTenantNumber; i++ {- instanceDir, err := ctl.provisionSQLiteInstance(instanceRootDir, fmt.Sprintf("%s-%d", prodInstanceName, i))- a.NoError(err)- prodInstanceDirs = append(prodInstanceDirs, instanceDir)- }-- // Add the provisioned instances.- var testInstances []*v1pb.Instance- var prodInstances []*v1pb.Instance- for i, testInstanceDir := range testInstanceDirs {- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: generateRandomString("instance", 10),- Instance: &v1pb.Instance{- Title: fmt.Sprintf("%s-%d", testInstanceName, i),- Engine: v1pb.Engine_SQLITE,- Environment: "environments/test",- Activation: true,- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: testInstanceDir, Id: "admin"}},- },- })- a.NoError(err)- testInstances = append(testInstances, instance)- }- for i, prodInstanceDir := range prodInstanceDirs {- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: generateRandomString("instance", 10),- Instance: &v1pb.Instance{- Title: fmt.Sprintf("%s-%d", prodInstanceName, i),- Engine: v1pb.Engine_SQLITE,- Environment: "environments/prod",- Activation: true,- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: prodInstanceDir, Id: "admin"}},- },- })- a.NoError(err)- prodInstances = append(prodInstances, instance)- }-- // Create deployment configuration.- _, err = ctl.projectServiceClient.UpdateDeploymentConfig(ctx, &v1pb.UpdateDeploymentConfigRequest{- Config: &v1pb.DeploymentConfig{- Name: common.FormatDeploymentConfig(project.Name),- Schedule: deploySchedule,- },- })- a.NoError(err)-- // Create issues that create databases.- databaseName := "testTenantVCSSchemaUpdate"- for i, testInstance := range testInstances {- err := ctl.createDatabaseV2(ctx, project, testInstance, nil, databaseName, "", map[string]string{api.TenantLabelKey: fmt.Sprintf("tenant%d", i)})- a.NoError(err)- }- for i, prodInstance := range prodInstances {- err := ctl.createDatabaseV2(ctx, project, prodInstance, nil, databaseName, "", map[string]string{api.TenantLabelKey: fmt.Sprintf("tenant%d", i)})- a.NoError(err)- }-- // Getting databases for each environment.- resp, err := ctl.databaseServiceClient.ListDatabases(ctx, &v1pb.ListDatabasesRequest{- Parent: "instances/-",- Filter: fmt.Sprintf(`project == "%s"`, project.Name),- })- a.NoError(err)- databases := resp.Databases-- var testDatabases []*v1pb.Database- var prodDatabases []*v1pb.Database- for _, testInstance := range testInstances {- for _, database := range databases {- if strings.HasPrefix(database.Name, testInstance.Name) {- testDatabases = append(testDatabases, database)- break- }- }- }- for _, prodInstance := range prodInstances {- for _, database := range databases {- if strings.HasPrefix(database.Name, prodInstance.Name) {- prodDatabases = append(prodDatabases, database)- break- }- }- }-- a.Equal(len(testDatabases), testTenantNumber)- a.Equal(len(prodDatabases), prodTenantNumber)-- // Simulate Git commits.- gitFile := "bbtest/ver1##migrate##create_a_test_table.sql"- err = ctl.vcsProvider.AddFiles(test.externalID, map[string]string{gitFile: migrationStatement})- a.NoError(err)- err = ctl.vcsProvider.AddCommitsDiff(test.externalID, "1", "2", []vcs.FileDiff{- {Path: gitFile, Type: vcs.FileDiffTypeAdded},- })- a.NoError(err)- payload, err := json.Marshal(test.newWebhookPushEvent([]string{gitFile}, "1", "2"))- a.NoError(err)- err = ctl.vcsProvider.SendWebhookPush(test.externalID, payload)- a.NoError(err)-- // Get schema update issue.- issue, err := ctl.getLastOpenIssue(ctx, project)- a.NoError(err)- err = ctl.waitRollout(ctx, issue.Name, issue.Rollout)- a.NoError(err)- err = ctl.closeIssue(ctx, project, issue.Name)- a.NoError(err)-- // Query schema.- for _, testInstance := range testInstances {- dbMetadata, err := ctl.databaseServiceClient.GetDatabaseSchema(ctx, &v1pb.GetDatabaseSchemaRequest{Name: fmt.Sprintf("%s/databases/%s/schema", testInstance.Name, databaseName)})- a.NoError(err)- a.Equal(wantBookSchema, dbMetadata.Schema)- }- for _, prodInstance := range prodInstances {- dbMetadata, err := ctl.databaseServiceClient.GetDatabaseSchema(ctx, &v1pb.GetDatabaseSchemaRequest{Name: fmt.Sprintf("%s/databases/%s/schema", prodInstance.Name, databaseName)})- a.NoError(err)- a.Equal(wantBookSchema, dbMetadata.Schema)- }-- // Test a commit with multiple files.- gitFile2 := "bbtest/ver2##migrate##create_a_test_table.sql"- gitFile3 := "bbtest/ver3##migrate##create_a_test_table.sql"- err = ctl.vcsProvider.AddFiles(test.externalID, map[string]string{gitFile2: migrationStatement2, gitFile3: migrationStatement3})- a.NoError(err)- err = ctl.vcsProvider.AddCommitsDiff(test.externalID, "2", "3", []vcs.FileDiff{- {Path: gitFile2, Type: vcs.FileDiffTypeAdded},- {Path: gitFile3, Type: vcs.FileDiffTypeAdded},- })- a.NoError(err)- payload, err = json.Marshal(test.newWebhookPushEvent([]string{gitFile2, gitFile3}, "2", "3"))- a.NoError(err)- err = ctl.vcsProvider.SendWebhookPush(test.externalID, payload)- a.NoError(err)- // There are two issues created.- listIssueResp, err := ctl.issueServiceClient.ListIssues(ctx, &v1pb.ListIssuesRequest{- Parent: project.Name,- Filter: "status = OPEN",- })- a.NoError(err)- a.Len(listIssueResp.Issues, 2)- for i := len(listIssueResp.Issues) - 1; i >= 0; i-- {- issue = listIssueResp.Issues[i]- err = ctl.waitRollout(ctx, issue.Name, issue.Rollout)- a.NoError(err)- }-- // Query schema.- for _, testInstance := range testInstances {- dbMetadata, err := ctl.databaseServiceClient.GetDatabaseSchema(ctx, &v1pb.GetDatabaseSchemaRequest{Name: fmt.Sprintf("%s/databases/%s/schema", testInstance.Name, databaseName)})- a.NoError(err)- a.Equal(want3BookSchema, dbMetadata.Schema)- }- for _, prodInstance := range prodInstances {- dbMetadata, err := ctl.databaseServiceClient.GetDatabaseSchema(ctx, &v1pb.GetDatabaseSchemaRequest{Name: fmt.Sprintf("%s/databases/%s/schema", prodInstance.Name, databaseName)})- a.NoError(err)- a.Equal(want3BookSchema, dbMetadata.Schema)- }- })- }-}--// TestTenantVCS_YAML tests the behavior when use a YAML file to do DML in a-// tenant project.-func TestTenantVCS_YAML(t *testing.T) {- a := require.New(t)-- tests := []struct {- name string- vcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.VCSProvider_Type- externalID string- repositoryFullPath string- newWebhookPushEvent func(gitFile, beforeSHA, afterSHA string) any- }{- {- name: "GitLab",- vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.VCSProvider_GITLAB,- externalID: "121",- repositoryFullPath: "test/dataUpdate",- newWebhookPushEvent: func(gitFile, beforeSHA, afterSHA string) any {- return gitlab.WebhookPushEvent{- ObjectKind: gitlab.WebhookPush,- Ref: "refs/heads/feature/foo",- Before: beforeSHA,- After: afterSHA,- Project: gitlab.WebhookProject{- ID: 121,- },- CommitList: []gitlab.WebhookCommit{- {- Timestamp: "2021-01-13T13:14:00Z",- AddedList: []string{gitFile},- },- },- }- },- },- {- name: "GitHub",- vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.VCSProvider_GITHUB,- externalID: "octocat/Hello-World",- repositoryFullPath: "octocat/Hello-World",- newWebhookPushEvent: func(gitFile, beforeSHA, afterSHA string) any {- return github.WebhookPushEvent{- Ref: "refs/heads/feature/foo",- Before: beforeSHA,- After: afterSHA,- Repository: github.WebhookRepository{- ID: 211,- FullName: "octocat/Hello-World",- HTMLURL: "https://github.com/octocat/Hello-World",- },- Sender: github.WebhookSender{- Login: "fake_github_author",- },- Commits: []github.WebhookCommit{- {- ID: "fake_github_commit_id",- Distinct: true,- Message: "Fake GitHub commit message",- Timestamp: time.Now(),- URL: "https://api.github.com/octocat/Hello-World/commits/fake_github_commit_id",- Author: github.WebhookCommitAuthor{- Name: "fake_github_author",- Email: "fake_github_author@localhost",- },- Added: []string{gitFile},- },- },- }- },- },- }- for _, test := range tests {- // Fix the problem that closure in a for loop will always use the last element.- test := test- t.Run(test.name, func(t *testing.T) {- t.Parallel()-- ctx := context.Background()- ctl := &controller{}- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: test.vcsProviderCreator,- })- a.NoError(err)- defer func() {- _ = ctl.Close(ctx)- }()-- // Create a VCS.- evcs, err := ctl.evcsClient.CreateVCSProvider(ctx, &v1pb.CreateVCSProviderRequest{- VcsProvider: &v1pb.VCSProvider{- Title: t.Name(),- Type: test.vcsType,- Url: ctl.vcsURL,- AccessToken: "testApplicationSecret",- },- })- a.NoError(err)-- // Create a tenant project with empty database name template.- projectID := generateRandomString("project", 10)- project, err := ctl.projectServiceClient.CreateProject(ctx, &v1pb.CreateProjectRequest{- Project: &v1pb.Project{- Name: fmt.Sprintf("projects/%s", projectID),- Title: projectID,- Key: projectID,- TenantMode: v1pb.TenantMode_TENANT_MODE_ENABLED,- },- ProjectId: projectID,- })- a.NoError(err)- // Create a repository.- ctl.vcsProvider.CreateRepository(test.externalID)- // Create the branch- err = ctl.vcsProvider.CreateBranch(test.externalID, "feature/foo")- a.NoError(err)-- _, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{- ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{- Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),- Vcs: evcs.Name,- Title: "Test Repository",- FullPath: test.repositoryFullPath,- WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),- BranchFilter: "feature/foo",- BaseDirectory: baseDirectory,- FilePathTemplate: "{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- SchemaPathTemplate: ".LATEST.sql",- ExternalId: test.externalID,- },- AllowMissing: true,- })- a.NoError(err)-- // Provision instances.- instanceRootDir := t.TempDir()-- const testTenantNumber = 2 // We need more than one tenant to test database selection- var testInstanceDirs []string- for i := 0; i < testTenantNumber; i++ {- instanceDir, err := ctl.provisionSQLiteInstance(instanceRootDir, fmt.Sprintf("%s-%d", testInstanceName, i))- a.NoError(err)- testInstanceDirs = append(testInstanceDirs, instanceDir)- }- testEnvironment, err := ctl.getEnvironment(ctx, "test")- a.NoError(err)-- // Add the provisioned instances.- var testInstances []*v1pb.Instance- for i, testInstanceDir := range testInstanceDirs {- instance, err := ctl.instanceServiceClient.CreateInstance(ctx, &v1pb.CreateInstanceRequest{- InstanceId: generateRandomString("instance", 10),- Instance: &v1pb.Instance{- Title: fmt.Sprintf("%s-%d", testInstanceName, i),- Engine: v1pb.Engine_SQLITE,- Environment: testEnvironment.Name,- Activation: true,- DataSources: []*v1pb.DataSource{{Type: v1pb.DataSourceType_ADMIN, Host: testInstanceDir, Id: "admin"}},- },- })- a.NoError(err)- testInstances = append(testInstances, instance)- }-- // Create deployment configuration.- _, err = ctl.projectServiceClient.UpdateDeploymentConfig(ctx, &v1pb.UpdateDeploymentConfigRequest{- Config: &v1pb.DeploymentConfig{- Name: common.FormatDeploymentConfig(project.Name),- Schedule: &v1pb.Schedule{- Deployments: []*v1pb.ScheduleDeployment{- {- Title: "Test stage",- Spec: &v1pb.DeploymentSpec{- LabelSelector: &v1pb.LabelSelector{- MatchExpressions: []*v1pb.LabelSelectorRequirement{- {- Key: api.EnvironmentLabelKey,- Operator: v1pb.OperatorType_OPERATOR_TYPE_IN,- Values: []string{"test"},- },- },- },- },- },- },- },- },- })- a.NoError(err)-- // Create issues that create databases.- const baseDatabaseName = "TestTenantVCS_YAML"- for i, testInstance := range testInstances {- tenant := fmt.Sprintf("tenant%d", i)- databaseName := baseDatabaseName + "_" + tenant- err := ctl.createDatabaseV2(ctx, project, testInstance, nil /* environment */, databaseName, "", nil /* labelMap */)- a.NoError(err)- }-- // Getting databases for each environment.- resp, err := ctl.databaseServiceClient.ListDatabases(ctx, &v1pb.ListDatabasesRequest{- Parent: "instances/-",- Filter: fmt.Sprintf(`project == "%s"`, project.Name),- })- a.NoError(err)- databases := resp.Databases-- var testDatabases []*v1pb.Database- for _, testInstance := range testInstances {- for _, database := range databases {- if strings.HasPrefix(database.Name, testInstance.Name) {- testDatabases = append(testDatabases, database)- break- }- }- }- a.Equal(testTenantNumber, len(testDatabases))-- // Simulate Git commits for schema update.- gitFile1 := baseDirectory + "/ver1##migrate##create_a_test_table.sql"- err = ctl.vcsProvider.AddFiles(test.externalID, map[string]string{gitFile1: migrationStatement})- a.NoError(err)- err = ctl.vcsProvider.AddCommitsDiff(test.externalID, "1", "2", []vcs.FileDiff{- {Path: gitFile1, Type: vcs.FileDiffTypeAdded},- })- a.NoError(err)- payload, err := json.Marshal(test.newWebhookPushEvent(gitFile1, "1", "2"))- a.NoError(err)- err = ctl.vcsProvider.SendWebhookPush(test.externalID, payload)- a.NoError(err)-- // Get schema update issues.- issue, err := ctl.getLastOpenIssue(ctx, project)- a.NoError(err)- err = ctl.waitRollout(ctx, issue.Name, issue.Rollout)- a.NoError(err)-- // Simulate Git commits for data update.- database0Name := "TestTenantVCS_YAML_tenant0"- gitFile2 := baseDirectory + "/ver2##data##insert_a_new_row.yml"- err = ctl.vcsProvider.AddFiles(- test.externalID,- map[string]string{- gitFile2: fmt.Sprintf(`-databases:- - name: %s-statement: |- INSERT INTO book (name) VALUES ('Star Wars')-`,- database0Name,- ),- },- )- a.NoError(err)- err = ctl.vcsProvider.AddCommitsDiff(test.externalID, "2", "3", []vcs.FileDiff{- {Path: gitFile2, Type: vcs.FileDiffTypeAdded},- })- a.NoError(err)- payload, err = json.Marshal(test.newWebhookPushEvent(gitFile2, "2", "3"))- a.NoError(err)- err = ctl.vcsProvider.SendWebhookPush(test.externalID, payload)- a.NoError(err)-- // Get data update issues.- issue, err = ctl.getLastOpenIssue(ctx, project)- a.NoError(err)- err = ctl.waitRollout(ctx, issue.Name, issue.Rollout)- a.NoError(err)- })- }-}diff --git a/frontend/src/components/VCS/VCSCard.vue b/frontend/src/components/VCS/VCSCard.vueindex a4fae80467..2ad829949f 100644--- a/frontend/src/components/VCS/VCSCard.vue+++ b/frontend/src/components/VCS/VCSCard.vue@@ -34,8 +34,9 @@ import { PropType, computed } from "vue";import { useRouter } from "vue-router";import { WORKSPACE_ROUTE_GITOPS_DETAIL } from "@/router/dashboard/workspaceRoutes";import { useCurrentUserV1 } from "@/store";+import { getVCSId } from "@/store/modules/v1/common";import { VCSProvider } from "@/types/proto/v1/vcs_provider_service";-import { hasWorkspacePermissionV2, vcsSlugV1 } from "@/utils";+import { hasWorkspacePermissionV2 } from "@/utils";const props = defineProps({vcs: {@@ -55,7 +56,7 @@ const editVCS = () => {router.push({name: WORKSPACE_ROUTE_GITOPS_DETAIL,params: {- vcsSlug: vcsSlugV1(props.vcs),+ vcsResourceId: getVCSId(props.vcs.name),},});};diff --git a/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue b/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vueindex 09c01df954..733bd2d809 100644--- a/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue+++ b/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue@@ -27,6 +27,31 @@</NRadioGroup></div></div>+ <div>+ <div class="mt-4 textlabel">+ {{ $t("gitops.setting.add-git-provider.basic-info.display-name") }}+ </div>+ <p class="mt-1 textinfolabel">+ {{+ $t("gitops.setting.add-git-provider.basic-info.display-name-label")+ }}+ </p>+ <BBTextField+ v-model:value="config.name"+ class="mt-2 w-full"+ :placeholder="namePlaceholder"+ />+ <div>+ <ResourceIdField+ ref="resourceIdField"+ v-model:value="config.resourceId"+ class="max-w-full flex-nowrap"+ resource-type="vcsProvider"+ :resource-title="config.name"+ :validate="validateResourceId"+ />+ </div>+ </div><div><div class="mt-6 pt-6 border-t border-block-border textlabel">{{ instanceUrlLabel }} <span class="text-red-600">*</span>@@ -51,21 +76,6 @@}}</p></div>- <div>- <div class="mt-4 textlabel">- {{ $t("gitops.setting.add-git-provider.basic-info.display-name") }}- </div>- <p class="mt-1 textinfolabel">- {{- $t("gitops.setting.add-git-provider.basic-info.display-name-label")- }}- </p>- <BBTextField- v-model:value="config.name"- class="mt-2 w-full"- :placeholder="namePlaceholder"- />- </div><div><div class="mt-4 textlabel">Access Token <span class="text-red-600">*</span>@@ -158,11 +168,17 @@<script lang="ts" setup>import isEmpty from "lodash-es/isEmpty";import { NRadio, NRadioGroup } from "naive-ui";-import { computed, onUnmounted, reactive } from "vue";+import { Status } from "nice-grpc-common";+import { computed, onUnmounted, reactive, ref } from "vue";import { useI18n } from "vue-i18n";+import ResourceIdField from "@/components/v2/Form/ResourceIdField.vue";+import { useVCSV1Store } from "@/store";+import { vcsProviderPrefix } from "@/store/modules/v1/common";import { TEXT_VALIDATION_DELAY, VCSConfig } from "@/types";+import { ResourceId, ValidatedMessage } from "@/types";import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";import { isUrl } from "@/utils";+import { getErrorCode } from "@/utils/grpcweb";import { vcsListByUIType } from "./utils";interface LocalState {@@ -179,6 +195,9 @@ const state = reactive<LocalState>({showUrlError:!isEmpty(props.config.instanceUrl) && !isUrl(props.config.instanceUrl),});+const vcsV1Store = useVCSV1Store();++const resourceIdField = ref<InstanceType<typeof ResourceIdField>>();onUnmounted(() => {if (state.urlValidationTimer) {@@ -328,4 +347,34 @@ const changeAccessToken = (value: string) => {// eslint-disable-next-line vue/no-mutating-propsprops.config.accessToken = value;};++const validateResourceId = async (+ resourceId: ResourceId+): Promise<ValidatedMessage[]> => {+ if (!resourceId) {+ return [];+ }++ try {+ const instance = await vcsV1Store.fetchVCSByName(+ vcsProviderPrefix + resourceId,+ true /* silent */+ );+ if (instance) {+ return [+ {+ type: "error",+ message: t("resource-id.validation.duplicated", {+ resource: t("resource.instance"),+ }),+ },+ ];+ }+ } catch (error) {+ if (getErrorCode(error) !== Status.NOT_FOUND) {+ throw error;+ }+ }+ return [];+};</script>diff --git a/frontend/src/components/VCS/VCSSetupWizard.vue b/frontend/src/components/VCS/VCSSetupWizard.vueindex ac6894a095..ff4d57a592 100644--- a/frontend/src/components/VCS/VCSSetupWizard.vue+++ b/frontend/src/components/VCS/VCSSetupWizard.vue@@ -52,6 +52,7 @@ const state = reactive<LocalState>({config: {type: VCSProvider_Type.GITLAB,uiType: "GITLAB_SELF_HOST",+ resourceId: "",name: t("gitops.setting.add-git-provider.gitlab-self-host"),instanceUrl: "",accessToken: "",@@ -69,7 +70,7 @@ const allowCreate = computed(() => {const tryFinishSetup = () => {vcsV1Store- .createVCS({+ .createVCS(state.config.resourceId, {name: "",title: state.config.name,type: state.config.type,diff --git a/frontend/src/components/v2/Form/ResourceIdField.vue b/frontend/src/components/v2/Form/ResourceIdField.vueindex 2ed56f8452..92ff2bc685 100644--- a/frontend/src/components/v2/Form/ResourceIdField.vue+++ b/frontend/src/components/v2/Form/ResourceIdField.vue@@ -83,6 +83,7 @@ type ResourceType =| "instance"| "project"| "idp"+ | "vcsProvider"| "role"| "database-group"| "schema-group"diff --git a/frontend/src/router/dashboard/workspace.ts b/frontend/src/router/dashboard/workspace.tsindex a609dcbc74..3e9f15a818 100644--- a/frontend/src/router/dashboard/workspace.ts+++ b/frontend/src/router/dashboard/workspace.ts@@ -254,7 +254,7 @@ const workspaceRoutes: RouteRecordRaw[] = [props: true,},{- path: ":vcsSlug",+ path: ":vcsResourceId",name: WORKSPACE_ROUTE_GITOPS_DETAIL,meta: {requiredWorkspacePermissionList: () => ["bb.vcsProviders.get"],diff --git a/frontend/src/store/modules/v1/common.ts b/frontend/src/store/modules/v1/common.tsindex 9ddcb54f7b..8ffba0eeab 100644--- a/frontend/src/store/modules/v1/common.ts+++ b/frontend/src/store/modules/v1/common.ts@@ -152,8 +152,7 @@ export const getProjectPathFromRepoName = (repoName: string): string => {return repoName.split("/gitOpsInfo")[0];};-export const getVCSUid = (name: string): number => {+export const getVCSId = (name: string): string => {const tokens = getNameParentTokens(name, [vcsProviderPrefix]);- const vcsUid = Number(tokens[0] || UNKNOWN_ID);- return vcsUid;+ return tokens[0];};diff --git a/frontend/src/store/modules/v1/vcs.ts b/frontend/src/store/modules/v1/vcs.tsindex f7d3aae1c2..863100f359 100644--- a/frontend/src/store/modules/v1/vcs.ts+++ b/frontend/src/store/modules/v1/vcs.ts@@ -24,7 +24,7 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {return resp.vcsProviders;};- const fetchVCSByName = async (name: string) => {+ const fetchVCSByName = async (name: string, silent = false) => {const vcs = await vcsProviderServiceClient.getVCSProvider({name,});@@ -33,11 +33,11 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {return vcs;};- const fetchVCSByUid = async (vcsId: VCSId) => {+ const fetchVCSById = async (vcsId: VCSId) => {return fetchVCSByName(`${vcsProviderPrefix}${vcsId}`);};- const getVCSByUid = (vcsId: VCSId) => {+ const getVCSById = (vcsId: VCSId) => {return vcsMapByName.get(`${vcsProviderPrefix}${vcsId}`);};@@ -52,9 +52,10 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {vcsMapByName.delete(name);};- const createVCS = async (vcs: VCSProvider) => {+ const createVCS = async (resourceId: string, vcs: VCSProvider) => {const resp = await vcsProviderServiceClient.createVCSProvider({vcsProvider: vcs,+ vcsProviderId: resourceId,});vcsMapByName.set(resp.name, resp);return resp;@@ -79,10 +80,10 @@ export const useVCSV1Store = defineStore("vcs_v1", () => {return {listVCSExternalProjects,- getVCSByUid,+ getVCSById,getVCSList,fetchVCSByName,- fetchVCSByUid,+ fetchVCSById,fetchVCSList,deleteVCS,createVCS,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/vcs_provider_service.ts b/frontend/src/types/proto/v1/vcs_provider_service.tsindex 11a3780566..0104137b5c 100644--- a/frontend/src/types/proto/v1/vcs_provider_service.ts+++ b/frontend/src/types/proto/v1/vcs_provider_service.ts@@ -7,7 +7,17 @@ import { FieldMask } from "../google/protobuf/field_mask";export const protobufPackage = "bytebase.v1";export interface CreateVCSProviderRequest {- vcsProvider: VCSProvider | undefined;+ vcsProvider:+ | VCSProvider+ | undefined;+ /**+ * The ID to use for the VCS provider, which will become the final component of+ * the VCS provider's name.+ *+ * This value should be 4-63 characters, and valid characters+ * are /[a-z][0-9]-/.+ */+ vcsProviderId: string;}export interface GetVCSProviderRequest {@@ -97,7 +107,7 @@ export interface ListProjectGitOpsInfoResponse {export interface VCSProvider {/**- * The name of the vcs provider, generated by the server, and also is the unique identifier.+ * The name of the vcs provider.* Format: vcsProviders/{vcsProvider}*/name: string;@@ -206,7 +216,7 @@ export interface ProjectGitOpsInfo {}function createBaseCreateVCSProviderRequest(): CreateVCSProviderRequest {- return { vcsProvider: undefined };+ return { vcsProvider: undefined, vcsProviderId: "" };}export const CreateVCSProviderRequest = {@@ -214,6 +224,9 @@ export const CreateVCSProviderRequest = {if (message.vcsProvider !== undefined) {VCSProvider.encode(message.vcsProvider, writer.uint32(10).fork()).ldelim();}+ if (message.vcsProviderId !== "") {+ writer.uint32(18).string(message.vcsProviderId);+ }return writer;},@@ -231,6 +244,13 @@ export const CreateVCSProviderRequest = {message.vcsProvider = VCSProvider.decode(reader, reader.uint32());continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.vcsProviderId = reader.string();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -241,7 +261,10 @@ export const CreateVCSProviderRequest = {},fromJSON(object: any): CreateVCSProviderRequest {- return { vcsProvider: isSet(object.vcsProvider) ? VCSProvider.fromJSON(object.vcsProvider) : undefined };+ return {+ vcsProvider: isSet(object.vcsProvider) ? VCSProvider.fromJSON(object.vcsProvider) : undefined,+ vcsProviderId: isSet(object.vcsProviderId) ? globalThis.String(object.vcsProviderId) : "",+ };},toJSON(message: CreateVCSProviderRequest): unknown {@@ -249,6 +272,9 @@ export const CreateVCSProviderRequest = {if (message.vcsProvider !== undefined) {obj.vcsProvider = VCSProvider.toJSON(message.vcsProvider);}+ if (message.vcsProviderId !== "") {+ obj.vcsProviderId = message.vcsProviderId;+ }return obj;},@@ -260,6 +286,7 @@ export const CreateVCSProviderRequest = {message.vcsProvider = (object.vcsProvider !== undefined && object.vcsProvider !== null)? VCSProvider.fromPartial(object.vcsProvider): undefined;+ message.vcsProviderId = object.vcsProviderId ?? "";return message;},};diff --git a/frontend/src/types/vcs.ts b/frontend/src/types/vcs.tsindex d078cb1bf8..4241f7e98e 100644--- a/frontend/src/types/vcs.ts+++ b/frontend/src/types/vcs.ts@@ -16,6 +16,7 @@ export type VCSUIType =export interface VCSConfig {type: VCSProvider_Type;uiType: VCSUIType;+ resourceId: string;name: string;instanceUrl: string;accessToken: string;diff --git a/frontend/src/utils/slug.ts b/frontend/src/utils/slug.tsindex a86032cffa..3fec6efe7c 100644--- a/frontend/src/utils/slug.ts+++ b/frontend/src/utils/slug.ts@@ -3,10 +3,8 @@ import {getProjectName,getWorksheetId,worksheetNamePrefix,- getVCSUid,projectNamePrefix,} from "@/store/modules/v1/common";-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";@@ -58,10 +56,6 @@ export function taskSlug(name: string, id: IdType): string {return [slug(name), id].join("-");}-export function vcsSlugV1(vcs: VCSV1): string {- return [slug(vcs.title), getVCSUid(vcs.name)].join("-");-}-export function sqlReviewPolicySlug(reviewPolicy: SQLReviewPolicy): string {return [slug(reviewPolicy.name), reviewPolicy.environment.uid].join("-");}diff --git a/frontend/src/views/SettingWorkspaceVCSDetail.vue b/frontend/src/views/SettingWorkspaceVCSDetail.vueindex c5b6d6ea00..cf5efa7ca0 100644--- a/frontend/src/views/SettingWorkspaceVCSDetail.vue+++ b/frontend/src/views/SettingWorkspaceVCSDetail.vue@@ -117,12 +117,7 @@ import {} from "@/store";import { VCSUIType } from "@/types";import { VCSProvider } from "@/types/proto/v1/vcs_provider_service";-import {- idFromSlug,- uidFromSlug,- getVCSUIType,- hasWorkspacePermissionV2,-} from "@/utils";+import { getVCSUIType, hasWorkspacePermissionV2 } from "@/utils";interface LocalState {title: string;@@ -130,7 +125,7 @@ interface LocalState {}const props = defineProps<{- vcsSlug: string;+ vcsResourceId: string;}>();const router = useRouter();@@ -139,7 +134,7 @@ const vcsV1Store = useVCSV1Store();const repositoryV1Store = useRepositoryV1Store();const vcs = computed((): VCSProvider | undefined => {- return vcsV1Store.getVCSByUid(idFromSlug(props.vcsSlug));+ return vcsV1Store.getVCSById(props.vcsResourceId);});const vcsUIType = computed((): VCSUIType => {@@ -172,7 +167,7 @@ const hasDeleteVCSPermission = computed(() => {});watchEffect(async () => {- const vcs = await vcsV1Store.fetchVCSByUid(uidFromSlug(props.vcsSlug));+ const vcs = await vcsV1Store.fetchVCSById(props.vcsResourceId);resetState();if (vcs) {if (diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex f5a538b9ab..8603aea714 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -5618,6 +5618,9 @@ The policy's `name` field is used to identify the instance to update. Format| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || vcs_provider | [VCSProvider](#bytebase-v1-VCSProvider) | | |+| vcs_provider_id | [string](#string) | | The ID to use for the VCS provider, which will become the final component of the VCS provider's name.++This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |@@ -5813,7 +5816,7 @@ The policy's `name` field is used to identify the instance to update. Format| 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} |+| name | [string](#string) | | The name of the vcs provider. 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. |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 16d83f2428..fd39f10fae 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -16177,6 +16177,17 @@ In this situation, `update_mask` is ignored. </p></td><td><p> </p></td></tr>+ <tr>+ <td>vcs_provider_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The ID to use for the VCS provider, which will become the final component of+the VCS provider's name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>+</tbody></table>@@ -16588,7 +16599,7 @@ Format: vcsProviders/{vcsProvider} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the vcs provider, generated by the server, and also is the unique identifier.+ <td><p>The name of the vcs provider.Format: vcsProviders/{vcsProvider} </p></td></tr>diff --git a/proto/generated-go/v1/vcs_provider_service.pb.go b/proto/generated-go/v1/vcs_provider_service.pb.goindex 088d2a2e53..6e813fef37 100644--- a/proto/generated-go/v1/vcs_provider_service.pb.go+++ b/proto/generated-go/v1/vcs_provider_service.pb.go@@ -88,6 +88,12 @@ type CreateVCSProviderRequest struct {unknownFields protoimpl.UnknownFieldsVcsProvider *VCSProvider `protobuf:"bytes,1,opt,name=vcs_provider,json=vcsProvider,proto3" json:"vcs_provider,omitempty"`+ // The ID to use for the VCS provider, which will become the final component of+ // the VCS provider's name.+ //+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][0-9]-/.+ VcsProviderId string `protobuf:"bytes,2,opt,name=vcs_provider_id,json=vcsProviderId,proto3" json:"vcs_provider_id,omitempty"`}func (x *CreateVCSProviderRequest) Reset() {@@ -129,6 +135,13 @@ func (x *CreateVCSProviderRequest) GetVcsProvider() *VCSProvider {return nil}+func (x *CreateVCSProviderRequest) GetVcsProviderId() string {+ if x != nil {+ return x.VcsProviderId+ }+ return ""+}+type GetVCSProviderRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -600,7 +613,7 @@ type VCSProvider struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the vcs provider, generated by the server, and also is the unique identifier.+ // The name of the vcs provider.// 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.@@ -914,180 +927,182 @@ var file_v1_vcs_provider_service_proto_rawDesc = []byte{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, 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, 0x3b, 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, 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,+ 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x01, 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, 0x12, 0x26, 0x0a, 0x0f, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x76, 0x63, 0x73,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 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, 0x3b, 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, 0x22, 0x6f, 0x0a, 0x1d, 0x4c, 0x69,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 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, 0x8f, 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, 0x26,- 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73,- 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 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, 0x91, 0x03,- 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, 0x10, 0x0a, 0x03,- 0x76, 0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x63, 0x73, 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, 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, 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, 0x32, 0x83, 0x08, 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,+ 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, 0x8f, 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, 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,+ 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x04, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 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, 0x91, 0x03, 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, 0x10, 0x0a, 0x03, 0x76, 0x63, 0x73, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x03, 0x76, 0x63, 0x73, 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, 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, 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, 0x32, 0x83, 0x08, 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, 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, 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,+ 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, 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,+ 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 (diff --git a/proto/generated-go/v1/vcs_provider_service.pb.gw.go b/proto/generated-go/v1/vcs_provider_service.pb.gw.goindex 950a4ca81a..02be6eb7f8 100644--- a/proto/generated-go/v1/vcs_provider_service.pb.gw.go+++ b/proto/generated-go/v1/vcs_provider_service.pb.gw.go@@ -119,6 +119,10 @@ func local_request_VCSProviderService_ListVCSProviders_0(ctx context.Context, ma}+var (+ filter_VCSProviderService_CreateVCSProvider_0 = &utilities.DoubleArray{Encoding: map[string]int{"vcs_provider": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}+)+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 CreateVCSProviderRequestvar metadata runtime.ServerMetadata@@ -127,6 +131,13 @@ func request_VCSProviderService_CreateVCSProvider_0(ctx context.Context, marshalreturn nil, metadata, status.Errorf(codes.InvalidArgument, "%v", 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_CreateVCSProvider_0); err != nil {+ 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@@ -140,6 +151,13 @@ func local_request_VCSProviderService_CreateVCSProvider_0(ctx context.Context, mreturn nil, metadata, status.Errorf(codes.InvalidArgument, "%v", 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_CreateVCSProvider_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+msg, err := server.CreateVCSProvider(ctx, &protoReq)return msg, metadata, errdiff --git a/proto/v1/vcs_provider_service.proto b/proto/v1/vcs_provider_service.protoindex 43da4cedb6..9d47326daa 100644--- a/proto/v1/vcs_provider_service.proto+++ b/proto/v1/vcs_provider_service.proto@@ -55,6 +55,13 @@ service VCSProviderService {message CreateVCSProviderRequest {VCSProvider vcs_provider = 1 [(google.api.field_behavior) = REQUIRED];++ // The ID to use for the VCS provider, which will become the final component of+ // the VCS provider's name.+ //+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][0-9]-/.+ string vcs_provider_id = 2;}message GetVCSProviderRequest {@@ -129,7 +136,7 @@ message ListProjectGitOpsInfoResponse {}message VCSProvider {- // The name of the vcs provider, generated by the server, and also is the unique identifier.+ // The name of the vcs provider.// Format: vcsProviders/{vcsProvider}string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];