Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: migrate deployment config store to proto (#14651)
p0nyb93b29507d9b
diff --git a/backend/api/v1/plan_service_plan_check.go b/backend/api/v1/plan_service_plan_check.goindex fec324a7d9..205e236bb7 100644--- a/backend/api/v1/plan_service_plan_check.go+++ b/backend/api/v1/plan_service_plan_check.go@@ -49,7 +49,7 @@ func getPlanCheckRunsFromPlanSpecs(ctx context.Context, s *store.Store, plan *stif err != nil {return nil, errors.Wrapf(err, "failed to get deployment config")}- if err := utils.ValidateDeploymentSchedule(deploymentConfig.Schedule); err != nil {+ if err := utils.ValidateDeploymentSchedule(deploymentConfig.Config.GetSchedule()); err != nil {return nil, errors.Wrapf(err, "failed to validate and get deployment schedule")}@@ -57,7 +57,7 @@ func getPlanCheckRunsFromPlanSpecs(ctx context.Context, s *store.Store, plan *stif err != nil {return nil, errors.Wrapf(err, "failed to list databases for project %q", project.ResourceID)}- matrix, err := utils.GetDatabaseMatrixFromDeploymentSchedule(deploymentConfig.Schedule, allDatabases)+ matrix, err := utils.GetDatabaseMatrixFromDeploymentSchedule(deploymentConfig.Config.GetSchedule(), allDatabases)if err != nil {return nil, errors.Wrapf(err, "failed to get database matrix from deployment schedule")}diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex 22192b142c..eb2d6b7b82 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -11,6 +11,7 @@ import ("github.com/google/cel-go/cel"celast "github.com/google/cel-go/common/ast"+ "github.com/google/uuid""github.com/gosimple/slug""github.com/pkg/errors""google.golang.org/genproto/googleapis/type/expr"@@ -1323,7 +1324,7 @@ func convertToDeploymentConfig(projectID string, deploymentConfig *store.Deploymreturn &v1pb.DeploymentConfig{Name: resourceName,Title: deploymentConfig.Name,- Schedule: convertToSchedule(deploymentConfig.Schedule),+ Schedule: convertToSchedule(deploymentConfig.Config.GetSchedule()),}}@@ -1334,12 +1335,17 @@ func convertToStoreDeploymentConfig(deploymentConfig *v1pb.DeploymentConfig) (*s}return &store.DeploymentConfigMessage{- Name: deploymentConfig.Title,- Schedule: schedule,+ Name: deploymentConfig.Title,+ Config: &storepb.DeploymentConfig{+ Schedule: schedule,+ },}, nil}-func convertToSchedule(schedule *store.Schedule) *v1pb.Schedule {+func convertToSchedule(schedule *storepb.Schedule) *v1pb.Schedule {+ if schedule == nil {+ return nil+ }var ds []*v1pb.ScheduleDeploymentfor _, d := range schedule.Deployments {ds = append(ds, convertToDeployment(d))@@ -1349,8 +1355,8 @@ func convertToSchedule(schedule *store.Schedule) *v1pb.Schedule {}}-func convertToStoreSchedule(schedule *v1pb.Schedule) (*store.Schedule, error) {- var ds []*store.Deployment+func convertToStoreSchedule(schedule *v1pb.Schedule) (*storepb.Schedule, error) {+ var ds []*storepb.ScheduleDeploymentfor _, d := range schedule.Deployments {deployment, err := convertToStoreDeployment(d)if err != nil {@@ -1358,47 +1364,49 @@ func convertToStoreSchedule(schedule *v1pb.Schedule) (*store.Schedule, error) {}ds = append(ds, deployment)}- return &store.Schedule{+ return &storepb.Schedule{Deployments: ds,}, nil}-func convertToDeployment(deployment *store.Deployment) *v1pb.ScheduleDeployment {+func convertToDeployment(deployment *storepb.ScheduleDeployment) *v1pb.ScheduleDeployment {return &v1pb.ScheduleDeployment{- Title: deployment.Name,+ Title: deployment.Title,+ Id: deployment.Id,Spec: convertToSpec(deployment.Spec),}}-func convertToStoreDeployment(deployment *v1pb.ScheduleDeployment) (*store.Deployment, error) {+func convertToStoreDeployment(deployment *v1pb.ScheduleDeployment) (*storepb.ScheduleDeployment, error) {spec, err := convertToStoreSpec(deployment.Spec)if err != nil {return nil, err}- return &store.Deployment{- Name: deployment.Title,- Spec: spec,+ return &storepb.ScheduleDeployment{+ Title: deployment.Title,+ Id: uuid.NewString(),+ Spec: spec,}, nil}-func convertToSpec(spec *store.DeploymentSpec) *v1pb.DeploymentSpec {+func convertToSpec(spec *storepb.DeploymentSpec) *v1pb.DeploymentSpec {return &v1pb.DeploymentSpec{LabelSelector: convertToLabelSelector(spec.Selector),}}-func convertToStoreSpec(spec *v1pb.DeploymentSpec) (*store.DeploymentSpec, error) {+func convertToStoreSpec(spec *v1pb.DeploymentSpec) (*storepb.DeploymentSpec, error) {selector, err := convertToStoreLabelSelector(spec.LabelSelector)if err != nil {return nil, err}- return &store.DeploymentSpec{+ return &storepb.DeploymentSpec{Selector: selector,}, nil}-func convertToLabelSelector(selector *store.LabelSelector) *v1pb.LabelSelector {+func convertToLabelSelector(selector *storepb.LabelSelector) *v1pb.LabelSelector {var exprs []*v1pb.LabelSelectorRequirementfor _, expr := range selector.MatchExpressions {exprs = append(exprs, convertToLabelSelectorRequirement(expr))@@ -1409,8 +1417,8 @@ func convertToLabelSelector(selector *store.LabelSelector) *v1pb.LabelSelector {}}-func convertToStoreLabelSelector(selector *v1pb.LabelSelector) (*store.LabelSelector, error) {- var exprs []*store.LabelSelectorRequirement+func convertToStoreLabelSelector(selector *v1pb.LabelSelector) (*storepb.LabelSelector, error) {+ var exprs []*storepb.LabelSelectorRequirementfor _, expr := range selector.MatchExpressions {requirement, err := convertToStoreLabelSelectorRequirement(expr)if err != nil {@@ -1418,12 +1426,12 @@ func convertToStoreLabelSelector(selector *v1pb.LabelSelector) (*store.LabelSele}exprs = append(exprs, requirement)}- return &store.LabelSelector{+ return &storepb.LabelSelector{MatchExpressions: exprs,}, nil}-func convertToLabelSelectorRequirement(requirements *store.LabelSelectorRequirement) *v1pb.LabelSelectorRequirement {+func convertToLabelSelectorRequirement(requirements *storepb.LabelSelectorRequirement) *v1pb.LabelSelectorRequirement {return &v1pb.LabelSelectorRequirement{Key: requirements.Key,Operator: convertToLabelSelectorOperator(requirements.Operator),@@ -1431,40 +1439,40 @@ func convertToLabelSelectorRequirement(requirements *store.LabelSelectorRequirem}}-func convertToStoreLabelSelectorRequirement(requirements *v1pb.LabelSelectorRequirement) (*store.LabelSelectorRequirement, error) {+func convertToStoreLabelSelectorRequirement(requirements *v1pb.LabelSelectorRequirement) (*storepb.LabelSelectorRequirement, error) {op, err := convertToStoreLabelSelectorOperator(requirements.Operator)if err != nil {return nil, err}- return &store.LabelSelectorRequirement{+ return &storepb.LabelSelectorRequirement{Key: requirements.Key,Operator: op,Values: requirements.Values,}, nil}-func convertToLabelSelectorOperator(operator store.OperatorType) v1pb.OperatorType {+func convertToLabelSelectorOperator(operator storepb.LabelSelectorRequirement_OperatorType) v1pb.OperatorType {switch operator {- case store.InOperatorType:+ case storepb.LabelSelectorRequirement_IN:return v1pb.OperatorType_OPERATOR_TYPE_IN- case store.NotInOperatorType:+ case storepb.LabelSelectorRequirement_NOT_IN:return v1pb.OperatorType_OPERATOR_TYPE_NOT_IN- case store.ExistsOperatorType:+ case storepb.LabelSelectorRequirement_EXISTS:return v1pb.OperatorType_OPERATOR_TYPE_EXISTS}return v1pb.OperatorType_OPERATOR_TYPE_UNSPECIFIED}-func convertToStoreLabelSelectorOperator(operator v1pb.OperatorType) (store.OperatorType, error) {+func convertToStoreLabelSelectorOperator(operator v1pb.OperatorType) (storepb.LabelSelectorRequirement_OperatorType, error) {switch operator {case v1pb.OperatorType_OPERATOR_TYPE_IN:- return store.InOperatorType, nil+ return storepb.LabelSelectorRequirement_IN, nilcase v1pb.OperatorType_OPERATOR_TYPE_NOT_IN:- return store.NotInOperatorType, nil+ return storepb.LabelSelectorRequirement_NOT_IN, nilcase v1pb.OperatorType_OPERATOR_TYPE_EXISTS:- return store.ExistsOperatorType, nil+ return storepb.LabelSelectorRequirement_EXISTS, nil}- return store.OperatorType(""), errors.Errorf("invalid operator type: %v", operator)+ return storepb.LabelSelectorRequirement_OPERATOR_TYPE_UNSPECIFIED, errors.Errorf("invalid operator type: %v", operator)}func (s *ProjectService) validateIAMPolicy(ctx context.Context, policy *v1pb.IamPolicy) error {diff --git a/backend/api/v1/project_service_test.go b/backend/api/v1/project_service_test.goindex 6aa26a9cb4..6134d1ff7f 100644--- a/backend/api/v1/project_service_test.go+++ b/backend/api/v1/project_service_test.go@@ -9,6 +9,7 @@ import ("github.com/google/go-cmp/cmp/cmpopts""github.com/stretchr/testify/require""google.golang.org/genproto/googleapis/type/expr"+ "google.golang.org/protobuf/testing/protocmp""google.golang.org/protobuf/types/known/durationpb""github.com/bytebase/bytebase/backend/store"@@ -256,22 +257,24 @@ func TestValidateAndConvertToStoreDeploymentSchedule(t *testing.T) {},wantCfg: &store.DeploymentConfigMessage{Name: "DeploymentConfig1",- Schedule: &store.Schedule{- Deployments: []*store.Deployment{- {- Name: "Deployment1",- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{- {- Key: "environment",- Operator: store.InOperatorType,- Values: []string{"prod"},- },- {- Key: "location",- Operator: store.ExistsOperatorType,- Values: []string{},+ Config: &storepb.DeploymentConfig{+ Schedule: &storepb.Schedule{+ Deployments: []*storepb.ScheduleDeployment{+ {+ Title: "Deployment1",+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{+ {+ Key: "environment",+ Operator: storepb.LabelSelectorRequirement_IN,+ Values: []string{"prod"},+ },+ {+ Key: "location",+ Operator: storepb.LabelSelectorRequirement_EXISTS,+ Values: []string{},+ },},},},@@ -400,7 +403,12 @@ func TestValidateAndConvertToStoreDeploymentSchedule(t *testing.T) {require.Error(t, err)} else {require.NoError(t, err)- require.Equal(t, tc.wantCfg, cfg)+ require.True(+ t,+ cmp.Equal(tc.wantCfg, cfg, protocmp.Transform(), protocmp.IgnoreFields(&storepb.ScheduleDeployment{}, "id")),+ tc.wantErr,+ cfg,+ )}}}diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.goindex 83ff6d02a2..88d10c5281 100644--- a/backend/api/v1/rollout_service.go+++ b/backend/api/v1/rollout_service.go@@ -1101,7 +1101,7 @@ func GetPipelineCreate(ctx context.Context, s *store.Store, sheetManager *sheet.if err != nil {return nil, errors.Wrapf(err, "failed to get deployment config")}- if err := utils.ValidateDeploymentSchedule(deploymentConfig.Schedule); err != nil {+ if err := utils.ValidateDeploymentSchedule(deploymentConfig.Config.GetSchedule()); err != nil {return nil, errors.Wrapf(err, "failed to validate and get deployment schedule")}// Get all databases from specs.@@ -1126,7 +1126,7 @@ func GetPipelineCreate(ctx context.Context, s *store.Store, sheetManager *sheet.}}// Calculate the matrix of databases based on the deployment schedule.- matrix, err := utils.GetDatabaseMatrixFromDeploymentSchedule(deploymentConfig.Schedule, databases)+ matrix, err := utils.GetDatabaseMatrixFromDeploymentSchedule(deploymentConfig.Config.GetSchedule(), databases)if err != nil {return nil, errors.Wrapf(err, "failed to get database matrix from deployment schedule")}@@ -1148,7 +1148,7 @@ func GetPipelineCreate(ctx context.Context, s *store.Store, sheetManager *sheet.}step := &storepb.PlanConfig_Step{- Title: deploymentConfig.Schedule.Deployments[i].Name,+ Title: deploymentConfig.Config.GetSchedule().Deployments[i].Title,}for _, database := range databases {name := common.FormatDatabase(database.InstanceID, database.DatabaseName)diff --git a/backend/migrator/migration/prod/3.1/0003##deployment_config_use_proto.sql b/backend/migrator/migration/prod/3.1/0003##deployment_config_use_proto.sqlnew file mode 100644index 0000000000..707544326b--- /dev/null+++ b/backend/migrator/migration/prod/3.1/0003##deployment_config_use_proto.sql@@ -0,0 +1,25 @@+UPDATE deployment_config+SET config = (+SELECT jsonb_build_object('schedule', jsonb_build_object('deployments', JSONB_AGG(v_new ORDER BY o1))) FROM (+ SELECT v, jsonb_set(v, '{spec,selector,matchExpressions}', JSONB_AGG(e ORDER BY o2)) -'name' || jsonb_build_object('title', v->>'name') || jsonb_build_object('id', gen_random_uuid()) AS v_new, o1+ FROM (+ SELECT+ v,+ o1,+ e || jsonb_build_object('operator', CASE e->>'operator'+ WHEN 'In' THEN 'IN'+ WHEN 'Exists' THEN 'EXISTS'+ WHEN 'Not_In' THEN 'NOT_IN'+ END+ ) AS e,+ o2+ FROM (+ SELECT v, o1, v#>'{spec,selector,matchExpressions}' AS es FROM (+ SELECT v, o1+ FROM jsonb_array_elements(deployment_config.config->'deployments') WITH ORDINALITY AS dso (v, o1)+ ) tt1+ ) tt2, LATERAL jsonb_array_elements(es) WITH ORDINALITY AS eso(e, o2)+ ) tt3+ GROUP BY v, o1+ ) tt4+) WHERE NOT (config ? 'schedule')\ No newline at end of filediff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 57c0db102f..1a6335f7dd 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -231,5 +231,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.1.2"), releaseVersion)+ require.Equal(t, semver.MustParse("3.1.3"), releaseVersion)}diff --git a/backend/runner/taskrun/database_create_executor.go b/backend/runner/taskrun/database_create_executor.goindex a890791968..d89768f20b 100644--- a/backend/runner/taskrun/database_create_executor.go+++ b/backend/runner/taskrun/database_create_executor.go@@ -498,10 +498,10 @@ func (exec *DatabaseCreateExecutor) getSchemaFromPeerTenantDatabase(ctx context.if err != nil {return nil, model.Version{}, "", errors.Wrapf(err, "Failed to fetch deployment config for project ID: %v", project.UID)}- if err := utils.ValidateDeploymentSchedule(deploymentConfig.Schedule); err != nil {+ if err := utils.ValidateDeploymentSchedule(deploymentConfig.Config.GetSchedule()); err != nil {return nil, model.Version{}, "", errors.Errorf("Failed to get deployment schedule")}- matrix, err := utils.GetDatabaseMatrixFromDeploymentSchedule(deploymentConfig.Schedule, matchedDatabases)+ matrix, err := utils.GetDatabaseMatrixFromDeploymentSchedule(deploymentConfig.Config.GetSchedule(), matchedDatabases)if err != nil {return nil, model.Version{}, "", errors.Errorf("Failed to create deployment pipeline")}diff --git a/backend/store/deploy.go b/backend/store/deploy.goindex 9cbd690376..b1f8f23ef2 100644--- a/backend/store/deploy.go+++ b/backend/store/deploy.go@@ -3,74 +3,29 @@ package storeimport ("context""database/sql"- "encoding/json""fmt""strings""time"+ "github.com/google/uuid""github.com/pkg/errors"+ "google.golang.org/protobuf/encoding/protojson"++ storepb "github.com/bytebase/bytebase/proto/generated-go/store""github.com/bytebase/bytebase/backend/common")// DeploymentConfigMessage is the message for deployment config.type DeploymentConfigMessage struct {- Name string- Schedule *Schedule+ Name string+ Config *storepb.DeploymentConfig// Output only fields.// ID is the ID of the deployment config.UID int}-// Schedule is the message for deployment schedule.-type Schedule struct {- Deployments []*Deployment `json:"deployments"`-}--// Deployment is the message for deployment.-type Deployment struct {- Name string `json:"name"`- Spec *DeploymentSpec `json:"spec"`-}--// DeploymentSpec is the message for deployment specification.-type DeploymentSpec struct {- Selector *LabelSelector `json:"selector"`-}--// LabelSelector is the message for label selector.-type LabelSelector struct {- // MatchExpressions is a list of label selector requirements. The requirements are ANDed.- MatchExpressions []*LabelSelectorRequirement `json:"matchExpressions"`-}--// OperatorType is the type of label selector requirement operator.-// Valid operators are In, Exists.-// Note: NotIn and DoesNotExist are not supported initially.-type OperatorType string--const (- // InOperatorType is the operator type for In.- InOperatorType OperatorType = "In"- // NotInOperatorType is the operator type for Not In.- NotInOperatorType OperatorType = "Not_In"- // ExistsOperatorType is the operator type for Exists.- ExistsOperatorType OperatorType = "Exists"-)--// LabelSelectorRequirement is the message for label selector.-type LabelSelectorRequirement struct {- // Key is the label key that the selector applies to.- Key string `json:"key"`-- // Operator represents a key's relationship to a set of values.- Operator OperatorType `json:"operator"`-- // Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.- Values []string `json:"values"`-}-// GetDeploymentConfigV2 returns the deployment config.func (s *Store) GetDeploymentConfigV2(ctx context.Context, projectUID int) (*DeploymentConfigMessage, error) {if v, ok := s.projectDeploymentCache.Get(projectUID); ok {@@ -79,8 +34,10 @@ func (s *Store) GetDeploymentConfigV2(ctx context.Context, projectUID int) (*Depwhere, args := []string{"TRUE"}, []any{}where, args = append(where, fmt.Sprintf("project_id = $%d", len(args)+1)), append(args, projectUID)- var deploymentConfig DeploymentConfigMessage- var payload string+ deploymentConfig := DeploymentConfigMessage{+ Config: &storepb.DeploymentConfig{},+ }+ var configB []bytetx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})if err != nil {@@ -96,23 +53,21 @@ func (s *Store) GetDeploymentConfigV2(ctx context.Context, projectUID int) (*DepFROM deployment_configWHERE `+strings.Join(where, " AND "),args...,- ).Scan(&deploymentConfig.UID, &deploymentConfig.Name, &payload); err != nil {+ ).Scan(&deploymentConfig.UID, &deploymentConfig.Name, &configB); err != nil {if err == sql.ErrNoRows {// Return default deployment config.return s.getDefaultDeploymentConfigV2(ctx)}- return nil, err+ return nil, errors.Wrapf(err, "failed to scan")}if err := tx.Commit(); err != nil {return nil, errors.Wrapf(err, "failed to commit transaction")}- var schedule Schedule- if err := json.Unmarshal([]byte(payload), &schedule); err != nil {- return nil, err+ if err := common.ProtojsonUnmarshaler.Unmarshal(configB, deploymentConfig.Config); err != nil {+ return nil, errors.Wrapf(err, "failed to unmarshal")}- deploymentConfig.Schedule = &schedules.projectDeploymentCache.Add(projectUID, &deploymentConfig)return &deploymentConfig, nil@@ -120,9 +75,9 @@ func (s *Store) GetDeploymentConfigV2(ctx context.Context, projectUID int) (*Dep// UpsertDeploymentConfigV2 upserts the deployment config.func (s *Store) UpsertDeploymentConfigV2(ctx context.Context, projectUID, principalUID int, upsert *DeploymentConfigMessage) (*DeploymentConfigMessage, error) {- payload, err := json.Marshal(upsert.Schedule)+ configB, err := protojson.Marshal(upsert.Config)if err != nil {- return nil, errors.Wrap(err, "failed to marshal deployment config")+ return nil, errors.Wrapf(err, "failed to marshal deployment config")}query := `@@ -142,7 +97,10 @@ func (s *Store) UpsertDeploymentConfigV2(ctx context.Context, projectUID, princiconfig = excluded.configRETURNING id, name, config`- var deploymentConfig DeploymentConfigMessage+ deploymentConfig := DeploymentConfigMessage{+ Config: &storepb.DeploymentConfig{},+ }+ var newConfigB []bytetx, err := s.db.BeginTx(ctx, nil)if err != nil {@@ -156,8 +114,8 @@ func (s *Store) UpsertDeploymentConfigV2(ctx context.Context, projectUID, princitime.Now().Unix(),projectUID,upsert.Name,- payload,- ).Scan(&deploymentConfig.UID, &deploymentConfig.Name, &payload); err != nil {+ configB,+ ).Scan(&deploymentConfig.UID, &deploymentConfig.Name, &newConfigB); err != nil {if err == sql.ErrNoRows {return nil, common.FormatDBErrorEmptyRowWithQuery(query)}@@ -167,8 +125,8 @@ func (s *Store) UpsertDeploymentConfigV2(ctx context.Context, projectUID, princireturn nil, errors.Wrapf(err, "failed to commit transaction")}- if err := json.Unmarshal([]byte(payload), &deploymentConfig.Schedule); err != nil {- return nil, err+ if err := common.ProtojsonUnmarshaler.Unmarshal(newConfigB, deploymentConfig.Config); err != nil {+ return nil, errors.Wrapf(err, "failed to unmarshal")}s.projectDeploymentCache.Add(projectUID, &deploymentConfig)@@ -180,21 +138,26 @@ func (s *Store) getDefaultDeploymentConfigV2(ctx context.Context) (*DeploymentCoif err != nil {return nil, err}- scheduleList := &Schedule{}+ var deployments []*storepb.ScheduleDeploymentfor _, environment := range environmentList {- scheduleList.Deployments = append(scheduleList.Deployments, &Deployment{- Name: fmt.Sprintf("%s Stage", environment.Title),- Spec: &DeploymentSpec{- Selector: &LabelSelector{- MatchExpressions: []*LabelSelectorRequirement{- {Key: "environment", Operator: InOperatorType, Values: []string{environment.ResourceID}},+ deployments = append(deployments, &storepb.ScheduleDeployment{+ Title: fmt.Sprintf("%s Stage", environment.Title),+ Id: uuid.NewString(),+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{+ {Key: "environment", Operator: storepb.LabelSelectorRequirement_IN, Values: []string{environment.ResourceID}},},},},})}return &DeploymentConfigMessage{- UID: 0,- Schedule: scheduleList,+ UID: 0,+ Config: &storepb.DeploymentConfig{+ Schedule: &storepb.Schedule{+ Deployments: deployments,+ },+ },}, nil}diff --git a/backend/utils/utils.go b/backend/utils/utils.goindex e339284c39..6a57561685 100644--- a/backend/utils/utils.go+++ b/backend/utils/utils.go@@ -43,13 +43,13 @@ func DataSourceFromInstanceWithType(instance *store.InstanceMessage, dataSourceT// isMatchExpression checks whether a databases matches the query.// labels is a mapping from database label key to value.-func isMatchExpression(labels map[string]string, expression *store.LabelSelectorRequirement) bool {+func isMatchExpression(labels map[string]string, expression *storepb.LabelSelectorRequirement) bool {switch expression.Operator {- case store.InOperatorType:+ case storepb.LabelSelectorRequirement_IN:return checkLabelIn(labels, expression)- case store.NotInOperatorType:+ case storepb.LabelSelectorRequirement_NOT_IN:return !checkLabelIn(labels, expression)- case store.ExistsOperatorType:+ case storepb.LabelSelectorRequirement_EXISTS:_, ok := labels[expression.Key]return okdefault:@@ -57,7 +57,7 @@ func isMatchExpression(labels map[string]string, expression *store.LabelSelector}}-func checkLabelIn(labels map[string]string, expression *store.LabelSelectorRequirement) bool {+func checkLabelIn(labels map[string]string, expression *storepb.LabelSelectorRequirement) bool {value, ok := labels[expression.Key]if !ok {return false@@ -71,7 +71,7 @@ func checkLabelIn(labels map[string]string, expression *store.LabelSelectorRequireturn false}-func isMatchExpressions(labels map[string]string, expressionList []*store.LabelSelectorRequirement) bool {+func isMatchExpressions(labels map[string]string, expressionList []*storepb.LabelSelectorRequirement) bool {// Empty expression list matches no databases.if len(expressionList) == 0 {return false@@ -87,19 +87,19 @@ func isMatchExpressions(labels map[string]string, expressionList []*store.LabelS// ValidateAndGetDeploymentSchedule validates and returns the deployment schedule.// Note: this validation only checks whether the payloads is a valid json, however, invalid field name errors are ignored.-func ValidateDeploymentSchedule(schedule *store.Schedule) error {+func ValidateDeploymentSchedule(schedule *storepb.Schedule) error {for _, d := range schedule.Deployments {- if d.Name == "" {- return common.Errorf(common.Invalid, "Deployment name must not be empty")+ if d.Title == "" {+ return common.Errorf(common.Invalid, "Deployment title must not be empty")}hasEnv := falsefor _, e := range d.Spec.Selector.MatchExpressions {switch e.Operator {- case store.InOperatorType, store.NotInOperatorType:+ case storepb.LabelSelectorRequirement_IN, storepb.LabelSelectorRequirement_NOT_IN:if len(e.Values) == 0 {return common.Errorf(common.Invalid, "expression key %q with %q operator should have at least one value", e.Key, e.Operator)}- case store.ExistsOperatorType:+ case storepb.LabelSelectorRequirement_EXISTS:if len(e.Values) > 0 {return common.Errorf(common.Invalid, "expression key %q with %q operator shouldn't have values", e.Key, e.Operator)}@@ -108,8 +108,8 @@ func ValidateDeploymentSchedule(schedule *store.Schedule) error {}if e.Key == api.EnvironmentLabelKey {hasEnv = true- if e.Operator != store.InOperatorType || len(e.Values) != 1 {- return common.Errorf(common.Invalid, "label %q should must use operator %q with exactly one value", api.EnvironmentLabelKey, store.InOperatorType)+ if e.Operator != storepb.LabelSelectorRequirement_IN || len(e.Values) != 1 {+ return common.Errorf(common.Invalid, "label %q should must use operator %q with exactly one value", api.EnvironmentLabelKey, storepb.LabelSelectorRequirement_IN)}}}@@ -122,7 +122,7 @@ func ValidateDeploymentSchedule(schedule *store.Schedule) error {// GetDatabaseMatrixFromDeploymentSchedule gets a pipeline based on deployment schedule.// The matrix will include the stage even if the stage has no database.-func GetDatabaseMatrixFromDeploymentSchedule(schedule *store.Schedule, databaseList []*store.DatabaseMessage) ([][]*store.DatabaseMessage, error) {+func GetDatabaseMatrixFromDeploymentSchedule(schedule *storepb.Schedule, databaseList []*store.DatabaseMessage) ([][]*store.DatabaseMessage, error) {var matrix [][]*store.DatabaseMessage// idToLabels maps databaseID -> label key -> label valuediff --git a/backend/utils/utils_test.go b/backend/utils/utils_test.goindex e09d35e638..2c74074420 100644--- a/backend/utils/utils_test.go+++ b/backend/utils/utils_test.go@@ -90,7 +90,7 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {tests := []struct {name string- schedule *store.Schedule+ schedule *storepb.ScheduledatabaseList []*store.DatabaseMessagewant [][]*store.DatabaseMessage// Notice relevant position is preserved from databaseList to want.@@ -98,15 +98,15 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {}{{"Tenant databases matching the query in a stage should exclude all databases from previous stages.",- &store.Schedule{- Deployments: []*store.Deployment{+ &storepb.Schedule{+ Deployments: []*storepb.ScheduleDeployment{{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"us-central1", "europe-west1"},},},@@ -114,12 +114,12 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},},{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "Exists",+ Operator: storepb.LabelSelectorRequirement_EXISTS,Values: nil,},},@@ -138,15 +138,15 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},{"simpleDeployments",- &store.Schedule{- Deployments: []*store.Deployment{+ &storepb.Schedule{+ Deployments: []*storepb.ScheduleDeployment{{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"us-central1", "europe-west1"},},},@@ -154,12 +154,12 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},},{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"earth"},},},@@ -178,15 +178,15 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},{"twoDifferentKeys",- &store.Schedule{- Deployments: []*store.Deployment{+ &storepb.Schedule{+ Deployments: []*storepb.ScheduleDeployment{{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "tenant",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"bytebase"},},},@@ -194,12 +194,12 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},},{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"us-central1", "europe-west1"},},},@@ -218,15 +218,15 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},{"differentDatabaseNames",- &store.Schedule{- Deployments: []*store.Deployment{+ &storepb.Schedule{+ Deployments: []*storepb.ScheduleDeployment{{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"earth"},},},@@ -244,15 +244,15 @@ func TestGetDatabaseMatrixFromDeploymentSchedule(t *testing.T) {},{"useDatabaseNameTemplate",- &store.Schedule{- Deployments: []*store.Deployment{+ &storepb.Schedule{+ Deployments: []*storepb.ScheduleDeployment{{- Spec: &store.DeploymentSpec{- Selector: &store.LabelSelector{- MatchExpressions: []*store.LabelSelectorRequirement{+ Spec: &storepb.DeploymentSpec{+ Selector: &storepb.LabelSelector{+ MatchExpressions: []*storepb.LabelSelectorRequirement{{Key: "location",- Operator: "In",+ Operator: storepb.LabelSelectorRequirement_IN,Values: []string{"us", "eu"},},},diff --git a/frontend/src/components/ProjectDeploymentConfigPanel.vue b/frontend/src/components/ProjectDeploymentConfigPanel.vueindex fbeea7ed42..4d9852a6f5 100644--- a/frontend/src/components/ProjectDeploymentConfigPanel.vue+++ b/frontend/src/components/ProjectDeploymentConfigPanel.vue@@ -197,6 +197,7 @@ const addStage = () => {state.deployment.schedule?.deployments.push({title: "New Stage",+ id: "",spec: {labelSelector: {matchExpressions: [rule],diff --git a/frontend/src/types/proto/store/deployment_config.ts b/frontend/src/types/proto/store/deployment_config.tsnew file mode 100644index 0000000000..2d5bbbf344--- /dev/null+++ b/frontend/src/types/proto/store/deployment_config.ts@@ -0,0 +1,561 @@+// Code generated by protoc-gen-ts_proto. DO NOT EDIT.+// versions:+// protoc-gen-ts_proto v2.3.0+// protoc unknown+// source: store/deployment_config.proto++/* eslint-disable */+import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";+import Long from "long";++export const protobufPackage = "bytebase.store";++export interface DeploymentConfig {+ schedule: Schedule | undefined;+}++/** Schedule is the message for deployment schedule. */+export interface Schedule {+ deployments: ScheduleDeployment[];+}++export interface ScheduleDeployment {+ /** The title of the deployment (stage) in a schedule. */+ title: string;+ id: string;+ spec: DeploymentSpec | undefined;+}++export interface DeploymentSpec {+ selector: LabelSelector | undefined;+}++export interface LabelSelector {+ /** match_expressions is a list of label selector requirements. The requirements are ANDed. */+ matchExpressions: LabelSelectorRequirement[];+}++export interface LabelSelectorRequirement {+ key: string;+ operator: LabelSelectorRequirement_OperatorType;+ /** Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */+ values: string[];+}++export enum LabelSelectorRequirement_OperatorType {+ /** OPERATOR_TYPE_UNSPECIFIED - The operator is not specified. */+ OPERATOR_TYPE_UNSPECIFIED = "OPERATOR_TYPE_UNSPECIFIED",+ /** IN - The operator is "In". */+ IN = "IN",+ /** EXISTS - The operator is "Exists". */+ EXISTS = "EXISTS",+ /** NOT_IN - The operator is "Not In". */+ NOT_IN = "NOT_IN",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function labelSelectorRequirement_OperatorTypeFromJSON(object: any): LabelSelectorRequirement_OperatorType {+ switch (object) {+ case 0:+ case "OPERATOR_TYPE_UNSPECIFIED":+ return LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED;+ case 1:+ case "IN":+ return LabelSelectorRequirement_OperatorType.IN;+ case 2:+ case "EXISTS":+ return LabelSelectorRequirement_OperatorType.EXISTS;+ case 3:+ case "NOT_IN":+ return LabelSelectorRequirement_OperatorType.NOT_IN;+ case -1:+ case "UNRECOGNIZED":+ default:+ return LabelSelectorRequirement_OperatorType.UNRECOGNIZED;+ }+}++export function labelSelectorRequirement_OperatorTypeToJSON(object: LabelSelectorRequirement_OperatorType): string {+ switch (object) {+ case LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED:+ return "OPERATOR_TYPE_UNSPECIFIED";+ case LabelSelectorRequirement_OperatorType.IN:+ return "IN";+ case LabelSelectorRequirement_OperatorType.EXISTS:+ return "EXISTS";+ case LabelSelectorRequirement_OperatorType.NOT_IN:+ return "NOT_IN";+ case LabelSelectorRequirement_OperatorType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function labelSelectorRequirement_OperatorTypeToNumber(object: LabelSelectorRequirement_OperatorType): number {+ switch (object) {+ case LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED:+ return 0;+ case LabelSelectorRequirement_OperatorType.IN:+ return 1;+ case LabelSelectorRequirement_OperatorType.EXISTS:+ return 2;+ case LabelSelectorRequirement_OperatorType.NOT_IN:+ return 3;+ case LabelSelectorRequirement_OperatorType.UNRECOGNIZED:+ default:+ return -1;+ }+}++function createBaseDeploymentConfig(): DeploymentConfig {+ return { schedule: undefined };+}++export const DeploymentConfig: MessageFns<DeploymentConfig> = {+ encode(message: DeploymentConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.schedule !== undefined) {+ Schedule.encode(message.schedule, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): DeploymentConfig {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDeploymentConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.schedule = Schedule.decode(reader, reader.uint32());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DeploymentConfig {+ return { schedule: isSet(object.schedule) ? Schedule.fromJSON(object.schedule) : undefined };+ },++ toJSON(message: DeploymentConfig): unknown {+ const obj: any = {};+ if (message.schedule !== undefined) {+ obj.schedule = Schedule.toJSON(message.schedule);+ }+ return obj;+ },++ create(base?: DeepPartial<DeploymentConfig>): DeploymentConfig {+ return DeploymentConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<DeploymentConfig>): DeploymentConfig {+ const message = createBaseDeploymentConfig();+ message.schedule = (object.schedule !== undefined && object.schedule !== null)+ ? Schedule.fromPartial(object.schedule)+ : undefined;+ return message;+ },+};++function createBaseSchedule(): Schedule {+ return { deployments: [] };+}++export const Schedule: MessageFns<Schedule> = {+ encode(message: Schedule, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.deployments) {+ ScheduleDeployment.encode(v!, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): Schedule {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseSchedule();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.deployments.push(ScheduleDeployment.decode(reader, reader.uint32()));+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Schedule {+ return {+ deployments: globalThis.Array.isArray(object?.deployments)+ ? object.deployments.map((e: any) => ScheduleDeployment.fromJSON(e))+ : [],+ };+ },++ toJSON(message: Schedule): unknown {+ const obj: any = {};+ if (message.deployments?.length) {+ obj.deployments = message.deployments.map((e) => ScheduleDeployment.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<Schedule>): Schedule {+ return Schedule.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Schedule>): Schedule {+ const message = createBaseSchedule();+ message.deployments = object.deployments?.map((e) => ScheduleDeployment.fromPartial(e)) || [];+ return message;+ },+};++function createBaseScheduleDeployment(): ScheduleDeployment {+ return { title: "", id: "", spec: undefined };+}++export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {+ encode(message: ScheduleDeployment, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.title !== "") {+ writer.uint32(10).string(message.title);+ }+ if (message.id !== "") {+ writer.uint32(18).string(message.id);+ }+ if (message.spec !== undefined) {+ DeploymentSpec.encode(message.spec, writer.uint32(26).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ScheduleDeployment {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseScheduleDeployment();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.title = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.id = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ message.spec = DeploymentSpec.decode(reader, reader.uint32());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ScheduleDeployment {+ return {+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ id: isSet(object.id) ? globalThis.String(object.id) : "",+ spec: isSet(object.spec) ? DeploymentSpec.fromJSON(object.spec) : undefined,+ };+ },++ toJSON(message: ScheduleDeployment): unknown {+ const obj: any = {};+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.id !== "") {+ obj.id = message.id;+ }+ if (message.spec !== undefined) {+ obj.spec = DeploymentSpec.toJSON(message.spec);+ }+ return obj;+ },++ create(base?: DeepPartial<ScheduleDeployment>): ScheduleDeployment {+ return ScheduleDeployment.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ScheduleDeployment>): ScheduleDeployment {+ const message = createBaseScheduleDeployment();+ message.title = object.title ?? "";+ message.id = object.id ?? "";+ message.spec = (object.spec !== undefined && object.spec !== null)+ ? DeploymentSpec.fromPartial(object.spec)+ : undefined;+ return message;+ },+};++function createBaseDeploymentSpec(): DeploymentSpec {+ return { selector: undefined };+}++export const DeploymentSpec: MessageFns<DeploymentSpec> = {+ encode(message: DeploymentSpec, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.selector !== undefined) {+ LabelSelector.encode(message.selector, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): DeploymentSpec {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDeploymentSpec();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.selector = LabelSelector.decode(reader, reader.uint32());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DeploymentSpec {+ return { selector: isSet(object.selector) ? LabelSelector.fromJSON(object.selector) : undefined };+ },++ toJSON(message: DeploymentSpec): unknown {+ const obj: any = {};+ if (message.selector !== undefined) {+ obj.selector = LabelSelector.toJSON(message.selector);+ }+ return obj;+ },++ create(base?: DeepPartial<DeploymentSpec>): DeploymentSpec {+ return DeploymentSpec.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<DeploymentSpec>): DeploymentSpec {+ const message = createBaseDeploymentSpec();+ message.selector = (object.selector !== undefined && object.selector !== null)+ ? LabelSelector.fromPartial(object.selector)+ : undefined;+ return message;+ },+};++function createBaseLabelSelector(): LabelSelector {+ return { matchExpressions: [] };+}++export const LabelSelector: MessageFns<LabelSelector> = {+ encode(message: LabelSelector, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.matchExpressions) {+ LabelSelectorRequirement.encode(v!, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): LabelSelector {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseLabelSelector();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.matchExpressions.push(LabelSelectorRequirement.decode(reader, reader.uint32()));+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): LabelSelector {+ return {+ matchExpressions: globalThis.Array.isArray(object?.matchExpressions)+ ? object.matchExpressions.map((e: any) => LabelSelectorRequirement.fromJSON(e))+ : [],+ };+ },++ toJSON(message: LabelSelector): unknown {+ const obj: any = {};+ if (message.matchExpressions?.length) {+ obj.matchExpressions = message.matchExpressions.map((e) => LabelSelectorRequirement.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<LabelSelector>): LabelSelector {+ return LabelSelector.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<LabelSelector>): LabelSelector {+ const message = createBaseLabelSelector();+ message.matchExpressions = object.matchExpressions?.map((e) => LabelSelectorRequirement.fromPartial(e)) || [];+ return message;+ },+};++function createBaseLabelSelectorRequirement(): LabelSelectorRequirement {+ return { key: "", operator: LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED, values: [] };+}++export const LabelSelectorRequirement: MessageFns<LabelSelectorRequirement> = {+ encode(message: LabelSelectorRequirement, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.operator !== LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED) {+ writer.uint32(16).int32(labelSelectorRequirement_OperatorTypeToNumber(message.operator));+ }+ for (const v of message.values) {+ writer.uint32(26).string(v!);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): LabelSelectorRequirement {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseLabelSelectorRequirement();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 16) {+ break;+ }++ message.operator = labelSelectorRequirement_OperatorTypeFromJSON(reader.int32());+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ message.values.push(reader.string());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): LabelSelectorRequirement {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ operator: isSet(object.operator)+ ? labelSelectorRequirement_OperatorTypeFromJSON(object.operator)+ : LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED,+ values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => globalThis.String(e)) : [],+ };+ },++ toJSON(message: LabelSelectorRequirement): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.operator !== LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED) {+ obj.operator = labelSelectorRequirement_OperatorTypeToJSON(message.operator);+ }+ if (message.values?.length) {+ obj.values = message.values;+ }+ return obj;+ },++ create(base?: DeepPartial<LabelSelectorRequirement>): LabelSelectorRequirement {+ return LabelSelectorRequirement.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<LabelSelectorRequirement>): LabelSelectorRequirement {+ const message = createBaseLabelSelectorRequirement();+ message.key = object.key ?? "";+ message.operator = object.operator ?? LabelSelectorRequirement_OperatorType.OPERATOR_TYPE_UNSPECIFIED;+ message.values = object.values?.map((e) => e) || [];+ return message;+ },+};++type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;++export type DeepPartial<T> = T extends Builtin ? T+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;++function isSet(value: any): boolean {+ return value !== null && value !== undefined;+}++export interface MessageFns<T> {+ encode(message: T, writer?: BinaryWriter): BinaryWriter;+ decode(input: BinaryReader | Uint8Array, length?: number): T;+ fromJSON(object: any): T;+ toJSON(message: T): unknown;+ create(base?: DeepPartial<T>): T;+ fromPartial(object: DeepPartial<T>): T;+}diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.tsindex 4bc97813f7..17b907f063 100644--- a/frontend/src/types/proto/v1/project_service.ts+++ b/frontend/src/types/proto/v1/project_service.ts@@ -486,6 +486,7 @@ export interface Schedule {export interface ScheduleDeployment {/** The title of the deployment (stage) in a schedule. */title: string;+ id: string;spec: DeploymentSpec | undefined;}@@ -2793,7 +2794,7 @@ export const Schedule: MessageFns<Schedule> = {};function createBaseScheduleDeployment(): ScheduleDeployment {- return { title: "", spec: undefined };+ return { title: "", id: "", spec: undefined };}export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {@@ -2801,6 +2802,9 @@ export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {if (message.title !== "") {writer.uint32(10).string(message.title);}+ if (message.id !== "") {+ writer.uint32(26).string(message.id);+ }if (message.spec !== undefined) {DeploymentSpec.encode(message.spec, writer.uint32(18).fork()).join();}@@ -2822,6 +2826,14 @@ export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {message.title = reader.string();continue;}+ case 3: {+ if (tag !== 26) {+ break;+ }++ message.id = reader.string();+ continue;+ }case 2: {if (tag !== 18) {break;@@ -2842,6 +2854,7 @@ export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {fromJSON(object: any): ScheduleDeployment {return {title: isSet(object.title) ? globalThis.String(object.title) : "",+ id: isSet(object.id) ? globalThis.String(object.id) : "",spec: isSet(object.spec) ? DeploymentSpec.fromJSON(object.spec) : undefined,};},@@ -2851,6 +2864,9 @@ export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {if (message.title !== "") {obj.title = message.title;}+ if (message.id !== "") {+ obj.id = message.id;+ }if (message.spec !== undefined) {obj.spec = DeploymentSpec.toJSON(message.spec);}@@ -2863,6 +2879,7 @@ export const ScheduleDeployment: MessageFns<ScheduleDeployment> = {fromPartial(object: DeepPartial<ScheduleDeployment>): ScheduleDeployment {const message = createBaseScheduleDeployment();message.title = object.title ?? "";+ message.id = object.id ?? "";message.spec = (object.spec !== undefined && object.spec !== null)? DeploymentSpec.fromPartial(object.spec): undefined;diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 15c16d4c61..c117081145 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -10225,20 +10225,12 @@ components:DeploymentConfig:type: objectproperties:- name:- type: string- description: |-- The name of the resource.- Format: projects/{project}/deploymentConfigs/default.- title:- type: string- description: The title of the deployment config.schedule:$ref: '#/components/schemas/Schedule'DeploymentSpec:type: objectproperties:- labelSelector:+ selector:$ref: '#/components/schemas/LabelSelector'DiffMetadataRequest:required:@@ -11379,6 +11371,7 @@ components:type: arrayitems:$ref: '#/components/schemas/LabelSelectorRequirement'+ description: match_expressions is a list of label selector requirements. The requirements are ANDed.LabelSelectorRequirement:type: objectproperties:@@ -11387,15 +11380,16 @@ components:operator:enum:- OPERATOR_TYPE_UNSPECIFIED- - OPERATOR_TYPE_IN- - OPERATOR_TYPE_EXISTS- - OPERATOR_TYPE_NOT_IN+ - IN+ - EXISTS+ - NOT_INtype: stringformat: enumvalues:type: arrayitems:type: string+ description: Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.ListBranchesResponse:type: objectproperties:@@ -13520,12 +13514,15 @@ components:type: arrayitems:$ref: '#/components/schemas/ScheduleDeployment'+ description: Schedule is the message for deployment schedule.ScheduleDeployment:type: objectproperties:title:type: stringdescription: The title of the deployment (stage) in a schedule.+ id:+ type: stringspec:$ref: '#/components/schemas/DeploymentSpec'SchedulerInfo_WaitingCause:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex da72ba6ea6..869cd49e9b 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -127,6 +127,16 @@- [store/db_group.proto](#store_db_group-proto)- [DatabaseGroupPayload](#bytebase-store-DatabaseGroupPayload)+- [store/deployment_config.proto](#store_deployment_config-proto)+ - [DeploymentConfig](#bytebase-store-DeploymentConfig)+ - [DeploymentSpec](#bytebase-store-DeploymentSpec)+ - [LabelSelector](#bytebase-store-LabelSelector)+ - [LabelSelectorRequirement](#bytebase-store-LabelSelectorRequirement)+ - [Schedule](#bytebase-store-Schedule)+ - [ScheduleDeployment](#bytebase-store-ScheduleDeployment)++ - [LabelSelectorRequirement.OperatorType](#bytebase-store-LabelSelectorRequirement-OperatorType)+- [store/export_archive.proto](#store_export_archive-proto)- [ExportArchivePayload](#bytebase-store-ExportArchivePayload)@@ -2217,6 +2227,130 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)+<a name="store_deployment_config-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## store/deployment_config.proto++++<a name="bytebase-store-DeploymentConfig"></a>++### DeploymentConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schedule | [Schedule](#bytebase-store-Schedule) | | |+++++++<a name="bytebase-store-DeploymentSpec"></a>++### DeploymentSpec++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| selector | [LabelSelector](#bytebase-store-LabelSelector) | | |+++++++<a name="bytebase-store-LabelSelector"></a>++### LabelSelector++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| match_expressions | [LabelSelectorRequirement](#bytebase-store-LabelSelectorRequirement) | repeated | match_expressions is a list of label selector requirements. The requirements are ANDed. |+++++++<a name="bytebase-store-LabelSelectorRequirement"></a>++### LabelSelectorRequirement++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| operator | [LabelSelectorRequirement.OperatorType](#bytebase-store-LabelSelectorRequirement-OperatorType) | | |+| values | [string](#string) | repeated | Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |+++++++<a name="bytebase-store-Schedule"></a>++### Schedule+Schedule is the message for deployment schedule.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| deployments | [ScheduleDeployment](#bytebase-store-ScheduleDeployment) | repeated | |+++++++<a name="bytebase-store-ScheduleDeployment"></a>++### ScheduleDeployment++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| title | [string](#string) | | The title of the deployment (stage) in a schedule. |+| id | [string](#string) | | |+| spec | [DeploymentSpec](#bytebase-store-DeploymentSpec) | | |+++++++++<a name="bytebase-store-LabelSelectorRequirement-OperatorType"></a>++### LabelSelectorRequirement.OperatorType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| OPERATOR_TYPE_UNSPECIFIED | 0 | The operator is not specified. |+| IN | 1 | The operator is "In". |+| EXISTS | 2 | The operator is "Exists". |+| NOT_IN | 3 | The operator is "Not In". |++++++++++<a name="store_export_archive-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 237abfdc61..e7db939684 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -678,6 +678,45 @@</li>+ <li>+ <a href="#store%2fdeployment_config.proto">store/deployment_config.proto</a>+ <ul>++ <li>+ <a href="#bytebase.store.DeploymentConfig"><span class="badge">M</span>DeploymentConfig</a>+ </li>++ <li>+ <a href="#bytebase.store.DeploymentSpec"><span class="badge">M</span>DeploymentSpec</a>+ </li>++ <li>+ <a href="#bytebase.store.LabelSelector"><span class="badge">M</span>LabelSelector</a>+ </li>++ <li>+ <a href="#bytebase.store.LabelSelectorRequirement"><span class="badge">M</span>LabelSelectorRequirement</a>+ </li>++ <li>+ <a href="#bytebase.store.Schedule"><span class="badge">M</span>Schedule</a>+ </li>++ <li>+ <a href="#bytebase.store.ScheduleDeployment"><span class="badge">M</span>ScheduleDeployment</a>+ </li>+++ <li>+ <a href="#bytebase.store.LabelSelectorRequirement.OperatorType"><span class="badge">E</span>LabelSelectorRequirement.OperatorType</a>+ </li>++++ </ul>+ </li>++<li><a href="#store%2fexport_archive.proto">store/export_archive.proto</a><ul>@@ -6293,6 +6332,227 @@ Used for authentication when connecting to the data source. </p></td>+ <div class="file-heading">+ <h2 id="store/deployment_config.proto">store/deployment_config.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.DeploymentConfig">DeploymentConfig</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>schedule</td>+ <td><a href="#bytebase.store.Schedule">Schedule</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.DeploymentSpec">DeploymentSpec</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>selector</td>+ <td><a href="#bytebase.store.LabelSelector">LabelSelector</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.LabelSelector">LabelSelector</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>match_expressions</td>+ <td><a href="#bytebase.store.LabelSelectorRequirement">LabelSelectorRequirement</a></td>+ <td>repeated</td>+ <td><p>match_expressions is a list of label selector requirements. The requirements are ANDed. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.LabelSelectorRequirement">LabelSelectorRequirement</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>operator</td>+ <td><a href="#bytebase.store.LabelSelectorRequirement.OperatorType">LabelSelectorRequirement.OperatorType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>values</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.Schedule">Schedule</h3>+ <p>Schedule is the message for deployment schedule.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>deployments</td>+ <td><a href="#bytebase.store.ScheduleDeployment">ScheduleDeployment</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.ScheduleDeployment">ScheduleDeployment</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title of the deployment (stage) in a schedule. </p></td>+ </tr>++ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>spec</td>+ <td><a href="#bytebase.store.DeploymentSpec">DeploymentSpec</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.store.LabelSelectorRequirement.OperatorType">LabelSelectorRequirement.OperatorType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>OPERATOR_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The operator is not specified.</p></td>+ </tr>++ <tr>+ <td>IN</td>+ <td>1</td>+ <td><p>The operator is "In".</p></td>+ </tr>++ <tr>+ <td>EXISTS</td>+ <td>2</td>+ <td><p>The operator is "Exists".</p></td>+ </tr>++ <tr>+ <td>NOT_IN</td>+ <td>3</td>+ <td><p>The operator is "Not In".</p></td>+ </tr>++ </tbody>+ </table>+++++++<div class="file-heading"><h2 id="store/export_archive.proto">store/export_archive.proto</h2><a href="#title">Top</a></div>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex c22b5869b7..31d6143189 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -8906,6 +8906,7 @@ When paginating, all other parameters provided to `ListProjects` must match the| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || title | [string](#string) | | The title of the deployment (stage) in a schedule. |+| id | [string](#string) | | || spec | [DeploymentSpec](#bytebase-v1-DeploymentSpec) | | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 83c25f6d34..d4930063b7 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -24755,6 +24755,13 @@ If enabled, the issue will be created with the pre-appended "set role <db<td><p>The title of the deployment (stage) in a schedule. </p></td></tr>+ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+<tr><td>spec</td><td><a href="#bytebase.v1.DeploymentSpec">DeploymentSpec</a></td>diff --git a/proto/generated-go/store/deployment_config.pb.go b/proto/generated-go/store/deployment_config.pb.gonew file mode 100644index 0000000000..245a6df233--- /dev/null+++ b/proto/generated-go/store/deployment_config.pb.go@@ -0,0 +1,499 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.35.2+// protoc (unknown)+// source: store/deployment_config.proto++package store++import (+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++type LabelSelectorRequirement_OperatorType int32++const (+ // The operator is not specified.+ LabelSelectorRequirement_OPERATOR_TYPE_UNSPECIFIED LabelSelectorRequirement_OperatorType = 0+ // The operator is "In".+ LabelSelectorRequirement_IN LabelSelectorRequirement_OperatorType = 1+ // The operator is "Exists".+ LabelSelectorRequirement_EXISTS LabelSelectorRequirement_OperatorType = 2+ // The operator is "Not In".+ LabelSelectorRequirement_NOT_IN LabelSelectorRequirement_OperatorType = 3+)++// Enum value maps for LabelSelectorRequirement_OperatorType.+var (+ LabelSelectorRequirement_OperatorType_name = map[int32]string{+ 0: "OPERATOR_TYPE_UNSPECIFIED",+ 1: "IN",+ 2: "EXISTS",+ 3: "NOT_IN",+ }+ LabelSelectorRequirement_OperatorType_value = map[string]int32{+ "OPERATOR_TYPE_UNSPECIFIED": 0,+ "IN": 1,+ "EXISTS": 2,+ "NOT_IN": 3,+ }+)++func (x LabelSelectorRequirement_OperatorType) Enum() *LabelSelectorRequirement_OperatorType {+ p := new(LabelSelectorRequirement_OperatorType)+ *p = x+ return p+}++func (x LabelSelectorRequirement_OperatorType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (LabelSelectorRequirement_OperatorType) Descriptor() protoreflect.EnumDescriptor {+ return file_store_deployment_config_proto_enumTypes[0].Descriptor()+}++func (LabelSelectorRequirement_OperatorType) Type() protoreflect.EnumType {+ return &file_store_deployment_config_proto_enumTypes[0]+}++func (x LabelSelectorRequirement_OperatorType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use LabelSelectorRequirement_OperatorType.Descriptor instead.+func (LabelSelectorRequirement_OperatorType) EnumDescriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{5, 0}+}++type DeploymentConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`+}++func (x *DeploymentConfig) Reset() {+ *x = DeploymentConfig{}+ mi := &file_store_deployment_config_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *DeploymentConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DeploymentConfig) ProtoMessage() {}++func (x *DeploymentConfig) ProtoReflect() protoreflect.Message {+ mi := &file_store_deployment_config_proto_msgTypes[0]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DeploymentConfig.ProtoReflect.Descriptor instead.+func (*DeploymentConfig) Descriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{0}+}++func (x *DeploymentConfig) GetSchedule() *Schedule {+ if x != nil {+ return x.Schedule+ }+ return nil+}++// Schedule is the message for deployment schedule.+type Schedule struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Deployments []*ScheduleDeployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"`+}++func (x *Schedule) Reset() {+ *x = Schedule{}+ mi := &file_store_deployment_config_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *Schedule) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Schedule) ProtoMessage() {}++func (x *Schedule) ProtoReflect() protoreflect.Message {+ mi := &file_store_deployment_config_proto_msgTypes[1]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Schedule.ProtoReflect.Descriptor instead.+func (*Schedule) Descriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{1}+}++func (x *Schedule) GetDeployments() []*ScheduleDeployment {+ if x != nil {+ return x.Deployments+ }+ return nil+}++type ScheduleDeployment struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The title of the deployment (stage) in a schedule.+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`+ Spec *DeploymentSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`+}++func (x *ScheduleDeployment) Reset() {+ *x = ScheduleDeployment{}+ mi := &file_store_deployment_config_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ScheduleDeployment) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ScheduleDeployment) ProtoMessage() {}++func (x *ScheduleDeployment) ProtoReflect() protoreflect.Message {+ mi := &file_store_deployment_config_proto_msgTypes[2]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ScheduleDeployment.ProtoReflect.Descriptor instead.+func (*ScheduleDeployment) Descriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{2}+}++func (x *ScheduleDeployment) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *ScheduleDeployment) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *ScheduleDeployment) GetSpec() *DeploymentSpec {+ if x != nil {+ return x.Spec+ }+ return nil+}++type DeploymentSpec struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Selector *LabelSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`+}++func (x *DeploymentSpec) Reset() {+ *x = DeploymentSpec{}+ mi := &file_store_deployment_config_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *DeploymentSpec) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DeploymentSpec) ProtoMessage() {}++func (x *DeploymentSpec) ProtoReflect() protoreflect.Message {+ mi := &file_store_deployment_config_proto_msgTypes[3]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DeploymentSpec.ProtoReflect.Descriptor instead.+func (*DeploymentSpec) Descriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{3}+}++func (x *DeploymentSpec) GetSelector() *LabelSelector {+ if x != nil {+ return x.Selector+ }+ return nil+}++type LabelSelector struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // match_expressions is a list of label selector requirements. The requirements are ANDed.+ MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,1,rep,name=match_expressions,json=matchExpressions,proto3" json:"match_expressions,omitempty"`+}++func (x *LabelSelector) Reset() {+ *x = LabelSelector{}+ mi := &file_store_deployment_config_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *LabelSelector) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*LabelSelector) ProtoMessage() {}++func (x *LabelSelector) ProtoReflect() protoreflect.Message {+ mi := &file_store_deployment_config_proto_msgTypes[4]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use LabelSelector.ProtoReflect.Descriptor instead.+func (*LabelSelector) Descriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{4}+}++func (x *LabelSelector) GetMatchExpressions() []*LabelSelectorRequirement {+ if x != nil {+ return x.MatchExpressions+ }+ return nil+}++type LabelSelectorRequirement struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`+ Operator LabelSelectorRequirement_OperatorType `protobuf:"varint,2,opt,name=operator,proto3,enum=bytebase.store.LabelSelectorRequirement_OperatorType" json:"operator,omitempty"`+ // Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.+ Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`+}++func (x *LabelSelectorRequirement) Reset() {+ *x = LabelSelectorRequirement{}+ mi := &file_store_deployment_config_proto_msgTypes[5]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *LabelSelectorRequirement) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*LabelSelectorRequirement) ProtoMessage() {}++func (x *LabelSelectorRequirement) ProtoReflect() protoreflect.Message {+ mi := &file_store_deployment_config_proto_msgTypes[5]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use LabelSelectorRequirement.ProtoReflect.Descriptor instead.+func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) {+ return file_store_deployment_config_proto_rawDescGZIP(), []int{5}+}++func (x *LabelSelectorRequirement) GetKey() string {+ if x != nil {+ return x.Key+ }+ return ""+}++func (x *LabelSelectorRequirement) GetOperator() LabelSelectorRequirement_OperatorType {+ if x != nil {+ return x.Operator+ }+ return LabelSelectorRequirement_OPERATOR_TYPE_UNSPECIFIED+}++func (x *LabelSelectorRequirement) GetValues() []string {+ if x != nil {+ return x.Values+ }+ return nil+}++var File_store_deployment_config_proto protoreflect.FileDescriptor++var file_store_deployment_config_proto_rawDesc = []byte{+ 0x0a, 0x1d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,+ 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,+ 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22,+ 0x48, 0x0a, 0x10, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52,+ 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x50, 0x0a, 0x08, 0x53, 0x63, 0x68,+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,+ 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65,+ 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b,+ 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x6e, 0x0a, 0x12, 0x53,+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x4b, 0x0a, 0x0e, 0x44,+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x39, 0x0a,+ 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x08,+ 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x66, 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65,+ 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x6d, 0x61, 0x74,+ 0x63, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63,+ 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10,+ 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,+ 0x22, 0xe6, 0x01, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74,+ 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a,+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,+ 0x51, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x35, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,+ 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x72,+ 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,+ 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,+ 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x4d, 0x0a, 0x0c, 0x4f, 0x70,+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50,+ 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10,+ 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x12, 0x0a, 0x0a,+ 0x06, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e,+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62,+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_store_deployment_config_proto_rawDescOnce sync.Once+ file_store_deployment_config_proto_rawDescData = file_store_deployment_config_proto_rawDesc+)++func file_store_deployment_config_proto_rawDescGZIP() []byte {+ file_store_deployment_config_proto_rawDescOnce.Do(func() {+ file_store_deployment_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_deployment_config_proto_rawDescData)+ })+ return file_store_deployment_config_proto_rawDescData+}++var file_store_deployment_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_store_deployment_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)+var file_store_deployment_config_proto_goTypes = []any{+ (LabelSelectorRequirement_OperatorType)(0), // 0: bytebase.store.LabelSelectorRequirement.OperatorType+ (*DeploymentConfig)(nil), // 1: bytebase.store.DeploymentConfig+ (*Schedule)(nil), // 2: bytebase.store.Schedule+ (*ScheduleDeployment)(nil), // 3: bytebase.store.ScheduleDeployment+ (*DeploymentSpec)(nil), // 4: bytebase.store.DeploymentSpec+ (*LabelSelector)(nil), // 5: bytebase.store.LabelSelector+ (*LabelSelectorRequirement)(nil), // 6: bytebase.store.LabelSelectorRequirement+}+var file_store_deployment_config_proto_depIdxs = []int32{+ 2, // 0: bytebase.store.DeploymentConfig.schedule:type_name -> bytebase.store.Schedule+ 3, // 1: bytebase.store.Schedule.deployments:type_name -> bytebase.store.ScheduleDeployment+ 4, // 2: bytebase.store.ScheduleDeployment.spec:type_name -> bytebase.store.DeploymentSpec+ 5, // 3: bytebase.store.DeploymentSpec.selector:type_name -> bytebase.store.LabelSelector+ 6, // 4: bytebase.store.LabelSelector.match_expressions:type_name -> bytebase.store.LabelSelectorRequirement+ 0, // 5: bytebase.store.LabelSelectorRequirement.operator:type_name -> bytebase.store.LabelSelectorRequirement.OperatorType+ 6, // [6:6] is the sub-list for method output_type+ 6, // [6:6] is the sub-list for method input_type+ 6, // [6:6] is the sub-list for extension type_name+ 6, // [6:6] is the sub-list for extension extendee+ 0, // [0:6] is the sub-list for field type_name+}++func init() { file_store_deployment_config_proto_init() }+func file_store_deployment_config_proto_init() {+ if File_store_deployment_config_proto != nil {+ return+ }+ type x struct{}+ out := protoimpl.TypeBuilder{+ File: protoimpl.DescBuilder{+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),+ RawDescriptor: file_store_deployment_config_proto_rawDesc,+ NumEnums: 1,+ NumMessages: 6,+ NumExtensions: 0,+ NumServices: 0,+ },+ GoTypes: file_store_deployment_config_proto_goTypes,+ DependencyIndexes: file_store_deployment_config_proto_depIdxs,+ EnumInfos: file_store_deployment_config_proto_enumTypes,+ MessageInfos: file_store_deployment_config_proto_msgTypes,+ }.Build()+ File_store_deployment_config_proto = out.File+ file_store_deployment_config_proto_rawDesc = nil+ file_store_deployment_config_proto_goTypes = nil+ file_store_deployment_config_proto_depIdxs = nil+}diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.goindex c3a14055df..154bc254f8 100644--- a/proto/generated-go/v1/project_service.pb.go+++ b/proto/generated-go/v1/project_service.pb.go@@ -1717,6 +1717,7 @@ type ScheduleDeployment struct {// The title of the deployment (stage) in a schedule.Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`Spec *DeploymentSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`}@@ -1757,6 +1758,13 @@ func (x *ScheduleDeployment) GetTitle() string {return ""}+func (x *ScheduleDeployment) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}+func (x *ScheduleDeployment) GetSpec() *DeploymentSpec {if x != nil {return x.Spec@@ -2242,252 +2250,253 @@ var file_v1_project_service_proto_rawDesc = []byte{0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,- 0x73, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70,+ 0x73, 0x22, 0x71, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70,0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a,- 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,- 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x53,- 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63,- 0x12, 0x41, 0x0a, 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74,- 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65,- 0x63, 0x74, 0x6f, 0x72, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63,- 0x74, 0x6f, 0x72, 0x22, 0x63, 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65,- 0x63, 0x74, 0x6f, 0x72, 0x12, 0x52, 0x0a, 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x65, 0x78,- 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61,- 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69,- 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70,- 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65,- 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,- 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,- 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54,- 0x79, 0x70, 0x65, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a,- 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76,- 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xfb, 0x05, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69,- 0x74, 0x79, 0x22, 0xee, 0x05, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,- 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59,- 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10,- 0x17, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59,- 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55,- 0x54, 0x10, 0x18, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55,- 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54,- 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x50,- 0x44, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49,- 0x53, 0x53, 0x55, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41,- 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53,- 0x55, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x4e, 0x4f, 0x54, 0x49,- 0x46, 0x59, 0x10, 0x15, 0x12, 0x2b, 0x0a, 0x27, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53,- 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x47,- 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10,- 0x05, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,- 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54,- 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x06, 0x12, 0x2e, 0x0a,- 0x2a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45,- 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54,- 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x16, 0x12, 0x2d, 0x0a,- 0x29, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45,- 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d,- 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x39, 0x0a, 0x35,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c,- 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53,- 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55,- 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x0a, 0x12,- 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x52,- 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0b, 0x12, 0x18, 0x0a, 0x14,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x41, 0x43, 0x54, 0x49,- 0x56, 0x41, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d,- 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45,- 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45,- 0x43, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x50, 0x55,- 0x53, 0x48, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f,- 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x52,- 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f,- 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x10, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f,- 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52,- 0x59, 0x10, 0x13, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12,- 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10,- 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x2a, 0x77, 0x0a, 0x0c, 0x4f, 0x70,- 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50,- 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45,- 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x14, 0x0a,+ 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,+ 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04,+ 0x73, 0x70, 0x65, 0x63, 0x22, 0x53, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,+ 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f,+ 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62,+ 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65,+ 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x63, 0x0a, 0x0d, 0x4c, 0x61, 0x62,+ 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x52, 0x0a, 0x11, 0x6d, 0x61,+ 0x74, 0x63, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f,+ 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x6d, 0x61,+ 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7b,+ 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52,+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x08,+ 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65,+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61,+ 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20,+ 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xfb, 0x05, 0x0a, 0x08,+ 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22, 0xee, 0x05, 0x0a, 0x04, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x41, 0x50, 0x50,+ 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x17, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f,+ 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x10, 0x18, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01,+ 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43,+ 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12,+ 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x46, 0x49,+ 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55,+ 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41,+ 0x4c, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x10, 0x15, 0x12, 0x2b, 0x0a, 0x27, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e,+ 0x45, 0x5f, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,+ 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x05, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54,+ 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,+ 0x45, 0x10, 0x06, 0x12, 0x2e, 0x0a, 0x2a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55,+ 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f,+ 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,+ 0x45, 0x10, 0x16, 0x12, 0x2d, 0x0a, 0x29, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55,+ 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f,+ 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45,+ 0x10, 0x08, 0x12, 0x39, 0x0a, 0x35, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45,+ 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x45,+ 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x5f,+ 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x16, 0x0a,+ 0x12, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45,+ 0x41, 0x54, 0x45, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45,+ 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45,+ 0x10, 0x0b, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45,+ 0x52, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x1a, 0x0a, 0x16,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x41, 0x43,+ 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54,+ 0x4f, 0x52, 0x59, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42,+ 0x41, 0x53, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x0f, 0x12, 0x1e,+ 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d,+ 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x10, 0x12, 0x1e,+ 0x0a, 0x1a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d,+ 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12, 0x19,+ 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f,+ 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72,+ 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f,+ 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02,+ 0x2a, 0x77, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f,+ 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x12,0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45,- 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49,- 0x4e, 0x10, 0x03, 0x32, 0xf5, 0x13, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53,- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7f, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x3b, 0xda, 0x41, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17,- 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x84, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda,- 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e,- 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x80,- 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0xda, 0x41, 0x00, 0x90,- 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x3a, 0x01, 0x2a, 0x22, 0x13, 0x2f, 0x76,- 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63,- 0x68, 0x12, 0x84, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x3a, 0xda, 0x41,- 0x00, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,+ 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x03, 0x32, 0xf5, 0x13, 0x0a, 0x0e, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7f, 0x0a, 0x0a,+ 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x22, 0x3b, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x84, 0x01,+ 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,+ 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,+ 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x12, 0x80, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x22, 0x25, 0xda, 0x41, 0x00, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x3a,+ 0x01, 0x2a, 0x22, 0x13, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x84, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x22, 0x3a, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30,+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0xa8,+ 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x5e, 0xda, 0x41, 0x13, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,+ 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x0d, 0x44, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a,+ 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x64,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a,+ 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74,+ 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x45, 0x8a, 0xea, 0x30, 0x14, 0x62, 0x62, 0x2e, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90,+ 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x98, 0x01, 0x0a,+ 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49,+ 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61,+ 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x4e, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62, 0x2e,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12,+ 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61,+ 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0xb0, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63,+ 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63,+ 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x8a, 0xea,+ 0x30, 0x18, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65,+ 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65,+ 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x9f, 0x01, 0x0a, 0x0c, 0x53,+ 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x55, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62, 0x2e, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,+ 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0xa7, 0x01, 0x0a,+ 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c,+ 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x48, 0x8a, 0xea,+ 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65,+ 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xd5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c,+ 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x70, 0x8a, 0xea,+ 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, 0x3a, 0x11,+ 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x32, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,+ 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,+ 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8c,+ 0x01, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x22, 0x5e, 0xda, 0x41, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62,- 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,- 0x22, 0x3e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90,- 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0x93, 0x01, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22,- 0x45, 0x8a, 0xea, 0x30, 0x14, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2e, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e,- 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61,- 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x22, 0x4e, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x90,- 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0xb0, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61,- 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61,- 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,- 0x63, 0x68, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62, 0x2e, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f,- 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63,- 0x68, 0x47, 0x65, 0x74, 0x12, 0x9f, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,- 0x55, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2e, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x90, 0xea, 0x30,- 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0xa7, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65,- 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,- 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x48, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c,- 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0xd5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x70, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70,+ 0x65, 0x63, 0x74, 0x22, 0x48, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xbb, 0x01,+ 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12,+ 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x71, 0xda, 0x41, 0x13, 0x77, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,+ 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b,+ 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,+ 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xa5, 0x01, 0x0a, 0x0d,+ 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f,+ 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x5b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70,0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea,- 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, 0x3a, 0x11, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,- 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x3b, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0a, 0x41, 0x64, 0x64,- 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x48, 0x8a,- 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a,- 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64,- 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xbb, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65,- 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x22, 0x71, 0xda, 0x41, 0x13, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2c, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62,- 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65,- 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0xa5, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,- 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x22, 0x5b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,- 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x9b, 0x01,- 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1f, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74,- 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73,- 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x49, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,- 0x74, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 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,+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,+ 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68,+ 0x6f, 0x6f, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68,+ 0x6f, 0x6f, 0x6b, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea,+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f,+ 0x6b, 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/store/deployment_config.proto b/proto/store/deployment_config.protonew file mode 100644index 0000000000..b5d1d1d8a4--- /dev/null+++ b/proto/store/deployment_config.proto@@ -0,0 +1,47 @@+syntax = "proto3";++package bytebase.store;++option go_package = "generated-go/store";++message DeploymentConfig {+ Schedule schedule = 1;+}++// Schedule is the message for deployment schedule.+message Schedule {+ repeated ScheduleDeployment deployments = 1;+}++message ScheduleDeployment {+ // The title of the deployment (stage) in a schedule.+ string title = 1;+ string id = 2;+ DeploymentSpec spec = 3;+}++message DeploymentSpec {+ LabelSelector selector = 1;+}++message LabelSelector {+ // match_expressions is a list of label selector requirements. The requirements are ANDed.+ repeated LabelSelectorRequirement match_expressions = 1;+}++message LabelSelectorRequirement {+ string key = 1;+ OperatorType operator = 2;+ // Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.+ repeated string values = 3;+ enum OperatorType {+ // The operator is not specified.+ OPERATOR_TYPE_UNSPECIFIED = 0;+ // The operator is "In".+ IN = 1;+ // The operator is "Exists".+ EXISTS = 2;+ // The operator is "Not In".+ NOT_IN = 3;+ }+}diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.protoindex 6501b84b4a..8fa2a7a679 100644--- a/proto/v1/project_service.proto+++ b/proto/v1/project_service.proto@@ -443,6 +443,7 @@ message Schedule {message ScheduleDeployment {// The title of the deployment (stage) in a schedule.string title = 1;+ string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];DeploymentSpec spec = 2;}