Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: remove pipeline approval policy (#9870)
p0ny085bb79eedf3
diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex 6841c11171..8759945d95 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -552,33 +552,6 @@ func (s *OrgPolicyService) convertPolicyPayloadToString(policy *v1pb.Policy) (streturn "", errors.Wrap(err, "failed to marshal rollout policy")}return string(payloadBytes), nil- case v1pb.PolicyType_DEPLOYMENT_APPROVAL:- payload, err := convertToPipelineApprovalPolicyPayload(policy.GetDeploymentApprovalPolicy())- if err != nil {- return "", status.Errorf(codes.InvalidArgument, err.Error())- }- if payload.Value != api.PipelineApprovalValueManualNever && payload.Value != api.PipelineApprovalValueManualAlways {- return "", status.Errorf(codes.InvalidArgument, "invalid approval policy value: %q", *payload)- }- if err := s.licenseService.IsFeatureEnabled(api.FeatureApprovalPolicy); err != nil {- if payload.Value != api.PipelineApprovalValueManualNever {- return "", status.Errorf(codes.PermissionDenied, err.Error())- }- }- issueTypeSeen := make(map[api.IssueType]bool)- for _, group := range payload.AssigneeGroupList {- if group.IssueType != issueDatabaseSchemaUpdate &&- group.IssueType != issueDatabaseSchemaUpdateGhost &&- group.IssueType != issueDatabaseDataUpdate &&- group.IssueType != api.IssueDatabaseGeneral {- return "", status.Errorf(codes.InvalidArgument, "invalid assignee group issue type %q", group.IssueType)- }- if issueTypeSeen[group.IssueType] {- return "", status.Errorf(codes.InvalidArgument, "duplicate assignee group issue type %q", group.IssueType)- }- issueTypeSeen[group.IssueType] = true- }- return payload.String()case v1pb.PolicyType_BACKUP_PLAN:payload, err := convertToBackupPlanPolicyPayload(policy.GetBackupPlanPolicy())if err != nil {@@ -721,13 +694,6 @@ func convertToPolicy(parentPath string, policyMessage *store.PolicyMessage) (*v1return nil, err}policy.Policy = payload- case api.PolicyTypePipelineApproval:- pType = v1pb.PolicyType_DEPLOYMENT_APPROVAL- payload, err := convertToV1PBDeploymentApprovalPolicy(policyMessage.Payload)- if err != nil {- return nil, err- }- policy.Policy = payloadcase api.PolicyTypeBackupPlan:pType = v1pb.PolicyType_BACKUP_PLANpayload, err := convertToV1PBBackupPlanPolicy(policyMessage.Payload)@@ -1070,51 +1036,6 @@ func convertToV1RolloutPolicyPayload(payloadStr string) (*v1pb.Policy_RolloutPol}, nil}-func convertToV1PBDeploymentApprovalPolicy(payloadStr string) (*v1pb.Policy_DeploymentApprovalPolicy, error) {- payload, err := api.UnmarshalPipelineApprovalPolicy(payloadStr)- if err != nil {- return nil, err- }-- approvalStrategy := v1pb.ApprovalStrategy_APPROVAL_STRATEGY_UNSPECIFIED- switch payload.Value {- case api.PipelineApprovalValueManualAlways:- approvalStrategy = v1pb.ApprovalStrategy_MANUAL- case api.PipelineApprovalValueManualNever:- approvalStrategy = v1pb.ApprovalStrategy_AUTOMATIC- }-- var approvalStrategies []*v1pb.DeploymentApprovalStrategy- for _, group := range payload.AssigneeGroupList {- // HACK(p0ny): skip if type is IssueDatabaseGeneral- if group.IssueType == api.IssueDatabaseGeneral {- continue- }-- assigneeGroupValue := v1pb.ApprovalGroup_ASSIGNEE_GROUP_UNSPECIFIED- switch group.Value {- case api.AssigneeGroupValueProjectOwner:- assigneeGroupValue = v1pb.ApprovalGroup_APPROVAL_GROUP_PROJECT_OWNER- case api.AssigneeGroupValueWorkspaceOwnerOrDBA:- assigneeGroupValue = v1pb.ApprovalGroup_APPROVAL_GROUP_DBA- }-- approvalStrategies = append(approvalStrategies, &v1pb.DeploymentApprovalStrategy{- ApprovalGroup: assigneeGroupValue,- DeploymentType: convertIssueTypeToDeplymentType(group.IssueType),- // TODO: support using different strategy for different assignee group.- ApprovalStrategy: approvalStrategy,- })- }-- return &v1pb.Policy_DeploymentApprovalPolicy{- DeploymentApprovalPolicy: &v1pb.DeploymentApprovalPolicy{- DefaultStrategy: approvalStrategy,- DeploymentApprovalStrategies: approvalStrategies,- },- }, nil-}-func convertToStorePBRolloutPolicy(policy *v1pb.RolloutPolicy) *storepb.RolloutPolicy {return &storepb.RolloutPolicy{Automatic: policy.Automatic,@@ -1124,74 +1045,6 @@ func convertToStorePBRolloutPolicy(policy *v1pb.RolloutPolicy) *storepb.RolloutP}}-func convertToPipelineApprovalPolicyPayload(policy *v1pb.DeploymentApprovalPolicy) (*api.PipelineApprovalPolicy, error) {- var strategy api.PipelineApprovalValue- switch policy.DefaultStrategy {- case v1pb.ApprovalStrategy_MANUAL:- strategy = api.PipelineApprovalValueManualAlways- case v1pb.ApprovalStrategy_AUTOMATIC:- strategy = api.PipelineApprovalValueManualNever- default:- return nil, errors.Errorf("invalid default strategy %v", policy.DefaultStrategy)- }-- // HACK(p0ny): always append issue type database general, the group value is set according to seenProjectOwnerGroupValue.- seenProjectOwnerGroupValue := false-- var assigneeGroupList []api.AssigneeGroup- for _, group := range policy.DeploymentApprovalStrategies {- var assigneeGroup api.AssigneeGroupValue- switch group.ApprovalGroup {- case v1pb.ApprovalGroup_APPROVAL_GROUP_PROJECT_OWNER:- assigneeGroup = api.AssigneeGroupValueProjectOwner- seenProjectOwnerGroupValue = true- case v1pb.ApprovalGroup_APPROVAL_GROUP_DBA:- assigneeGroup = api.AssigneeGroupValueWorkspaceOwnerOrDBA- default:- return nil, errors.Errorf("invalid assignee group %v", group.ApprovalGroup)- }-- var issueType api.IssueType- switch group.DeploymentType {- case v1pb.DeploymentType_DATABASE_CREATE:- issueType = issueDatabaseCreate- case v1pb.DeploymentType_DATABASE_DDL:- issueType = issueDatabaseSchemaUpdate- case v1pb.DeploymentType_DATABASE_DDL_GHOST:- issueType = issueDatabaseSchemaUpdateGhost- case v1pb.DeploymentType_DATABASE_DML:- issueType = issueDatabaseDataUpdate- case v1pb.DeploymentType_DATABASE_RESTORE_PITR:- issueType = issueDatabaseRestorePITR- default:- return nil, errors.Errorf("invalid deployment type %v", group.DeploymentType)- }-- assigneeGroupList = append(assigneeGroupList, api.AssigneeGroup{- Value: assigneeGroup,- IssueType: issueType,- })- }-- // HACK(p0ny): always append issue type database general.- if seenProjectOwnerGroupValue {- assigneeGroupList = append(assigneeGroupList, api.AssigneeGroup{- Value: api.AssigneeGroupValueProjectOwner,- IssueType: api.IssueDatabaseGeneral,- })- } else {- assigneeGroupList = append(assigneeGroupList, api.AssigneeGroup{- Value: api.AssigneeGroupValueWorkspaceOwnerOrDBA,- IssueType: api.IssueDatabaseGeneral,- })- }-- return &api.PipelineApprovalPolicy{- Value: strategy,- AssigneeGroupList: assigneeGroupList,- }, nil-}-func convertToV1PBSlowQueryPolicy(payloadStr string) (*v1pb.Policy_SlowQueryPolicy, error) {payload, err := api.UnmarshalSlowQueryPolicy(payloadStr)if err != nil {@@ -1328,46 +1181,11 @@ func convertToRestrictIssueCreationForSQLReviewPayload(policy *v1pb.RestrictIssu}, nil}-// This is to be deprecated.-const (- // IssueDatabaseCreate is the issue type for creating databases.- issueDatabaseCreate api.IssueType = "bb.issue.database.create"- // IssueDatabaseSchemaUpdate is the issue type for updating database schemas (DDL).- issueDatabaseSchemaUpdate api.IssueType = "bb.issue.database.schema.update"- // IssueDatabaseSchemaUpdateGhost is the issue type for updating database schemas using gh-ost.- issueDatabaseSchemaUpdateGhost api.IssueType = "bb.issue.database.schema.update.ghost"- // IssueDatabaseDataUpdate is the issue type for updating database data (DML).- issueDatabaseDataUpdate api.IssueType = "bb.issue.database.data.update"- // IssueDatabaseRestorePITR is the issue type for performing a Point-in-time Recovery.- issueDatabaseRestorePITR api.IssueType = "bb.issue.database.restore.pitr"-)--// TODO(p0ny): fix bb.issue.database.general.-func convertIssueTypeToDeplymentType(issueType api.IssueType) v1pb.DeploymentType {- res := v1pb.DeploymentType_DEPLOYMENT_TYPE_UNSPECIFIED- switch issueType {- case issueDatabaseCreate:- res = v1pb.DeploymentType_DATABASE_CREATE- case issueDatabaseSchemaUpdate:- res = v1pb.DeploymentType_DATABASE_DDL- case issueDatabaseSchemaUpdateGhost:- res = v1pb.DeploymentType_DATABASE_DDL_GHOST- case issueDatabaseDataUpdate:- res = v1pb.DeploymentType_DATABASE_DML- case issueDatabaseRestorePITR:- res = v1pb.DeploymentType_DATABASE_RESTORE_PITR- }-- return res-}-func convertPolicyType(pType string) (api.PolicyType, error) {var policyType api.PolicyTypeswitch strings.ToUpper(pType) {case v1pb.PolicyType_WORKSPACE_IAM.String():return api.PolicyTypeWorkspaceIAM, nil- case v1pb.PolicyType_DEPLOYMENT_APPROVAL.String():- return api.PolicyTypePipelineApproval, nilcase v1pb.PolicyType_ROLLOUT_POLICY.String():return api.PolicyTypeRollout, nilcase v1pb.PolicyType_BACKUP_PLAN.String():diff --git a/backend/legacyapi/policy.go b/backend/legacyapi/policy.goindex 261d7f7d24..72c7f811fb 100644--- a/backend/legacyapi/policy.go+++ b/backend/legacyapi/policy.go@@ -30,9 +30,6 @@ const (// PolicyTypeWorkspaceIAM is the workspace IAM policy type.PolicyTypeWorkspaceIAM PolicyType = "bb.policy.workspace-iam"- // PolicyTypePipelineApproval is the approval policy type.- // Deprecated: use PolicyTypeRollout instead.- PolicyTypePipelineApproval PolicyType = "bb.policy.pipeline-approval"// PolicyTypeRollout is the rollout policy type.PolicyTypeRollout PolicyType = "bb.policy.rollout"// PolicyTypeBackupPlan is the backup plan policy type.@@ -94,7 +91,6 @@ var (// AllowedResourceTypes includes allowed resource types for each policy type.AllowedResourceTypes = map[PolicyType][]PolicyResourceType{PolicyTypeWorkspaceIAM: {PolicyResourceTypeWorkspace},- PolicyTypePipelineApproval: {PolicyResourceTypeEnvironment},PolicyTypeRollout: {PolicyResourceTypeEnvironment},PolicyTypeBackupPlan: {PolicyResourceTypeEnvironment},PolicyTypeSQLReview: {PolicyResourceTypeEnvironment},@@ -108,46 +104,6 @@ var (})-// PipelineApprovalPolicy is the policy configuration for pipeline approval.-type PipelineApprovalPolicy struct {- Value PipelineApprovalValue `json:"value"`- // The AssigneeGroup is the final value of the assignee group which overrides the default value.- // If there is no value provided in the AssigneeGroupList, we use the the workspace owners and DBAs (default) as the available assignee.- // If the AssigneeGroupValue is PROJECT_OWNER, the available assignee is the project owners.- AssigneeGroupList []AssigneeGroup `json:"assigneeGroupList"`-}--func (pa *PipelineApprovalPolicy) String() (string, error) {- s, err := json.Marshal(pa)- if err != nil {- return "", err- }- return string(s), nil-}--// UnmarshalPipelineApprovalPolicy will unmarshal payload to pipeline approval policy.-func UnmarshalPipelineApprovalPolicy(payload string) (*PipelineApprovalPolicy, error) {- var pa PipelineApprovalPolicy- if err := json.Unmarshal([]byte(payload), &pa); err != nil {- return nil, errors.Wrapf(err, "failed to unmarshal pipeline approval policy %q", payload)- }- return &pa, nil-}--// AssigneeGroup is the configuration of the assignee group.-type AssigneeGroup struct {- IssueType IssueType `json:"issueType"`- Value AssigneeGroupValue `json:"value"`-}--func (p *AssigneeGroup) String() (string, error) {- s, err := json.Marshal(p)- if err != nil {- return "", err- }- return string(s), nil-}-// BackupPlanPolicy is the policy configuration for backup plan.type BackupPlanPolicy struct {Schedule BackupPlanPolicySchedule `json:"schedule"`diff --git a/backend/metric/collector/policy_count.go b/backend/metric/collector/policy_count.goindex 93373f9787..db7251161d 100644--- a/backend/metric/collector/policy_count.go+++ b/backend/metric/collector/policy_count.go@@ -55,13 +55,6 @@ func (c *policyCountCollector) Collect(ctx context.Context) ([]*metric.Metric, e}switch policy.Type {- case api.PolicyTypePipelineApproval:- payload, err := api.UnmarshalPipelineApprovalPolicy(policy.Payload)- if err != nil {- continue- }- value = string(payload.Value)- key = fmt.Sprintf("%s_%s_%s_%s", policy.Type, environment.Title, value, rowStatus)case api.PolicyTypeBackupPlan:payload, err := api.UnmarshalBackupPlanPolicy(policy.Payload)if err != nil {diff --git a/backend/migrator/migration/prod/2.12/0005##remove_pipeline_approval_policy.sql b/backend/migrator/migration/prod/2.12/0005##remove_pipeline_approval_policy.sqlnew file mode 100644index 0000000000..c662a62c60--- /dev/null+++ b/backend/migrator/migration/prod/2.12/0005##remove_pipeline_approval_policy.sql@@ -0,0 +1 @@+DELETE FROM policy WHERE type = 'bb.policy.pipeline-approval';diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex c3dbdedfaa..14fa00c8c1 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("2.12.4"), releaseVersion)+ require.Equal(t, semver.MustParse("2.12.5"), releaseVersion)}diff --git a/frontend/src/store/modules/v1/policy.ts b/frontend/src/store/modules/v1/policy.tsindex 6cf8166f4f..8573cac05a 100644--- a/frontend/src/store/modules/v1/policy.ts+++ b/frontend/src/store/modules/v1/policy.ts@@ -9,7 +9,6 @@ import {PolicyResourceType,policyTypeToJSON,BackupPlanSchedule,- ApprovalStrategy,RolloutPolicy,} from "@/types/proto/v1/org_policy_service";import { useCurrentUserV1 } from "../auth";@@ -272,8 +271,6 @@ export const getDefaultBackupPlanPolicy = (};};-export const defaultApprovalStrategy = ApprovalStrategy.AUTOMATIC;-// Default RolloutPolicy payload is somehow strict to prevent auto rolloutexport const getDefaultRolloutPolicyPayload = () => {return RolloutPolicy.fromPartial({diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex 824c1150fd..e5804c3efe 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -4,98 +4,6 @@ import _m0 from "protobufjs/minimal";export const protobufPackage = "google.protobuf";-/** The full set of known editions. */-export enum Edition {- /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */- EDITION_UNKNOWN = 0,- /**- * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like- * distinct editions. These can't be used to specify the edition of proto- * files, but feature definitions must supply proto2/proto3 defaults for- * backwards compatibility.- */- EDITION_PROTO2 = 998,- EDITION_PROTO3 = 999,- /**- * EDITION_2023 - Editions that have been released. The specific values are arbitrary and- * should not be depended on, but they will always be time-ordered for easy- * comparison.- */- EDITION_2023 = 1000,- /**- * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be- * used or relyed on outside of tests.- */- EDITION_1_TEST_ONLY = 1,- EDITION_2_TEST_ONLY = 2,- EDITION_99997_TEST_ONLY = 99997,- EDITION_99998_TEST_ONLY = 99998,- EDITION_99999_TEST_ONLY = 99999,- UNRECOGNIZED = -1,-}--export function editionFromJSON(object: any): Edition {- switch (object) {- case 0:- case "EDITION_UNKNOWN":- return Edition.EDITION_UNKNOWN;- case 998:- case "EDITION_PROTO2":- return Edition.EDITION_PROTO2;- case 999:- case "EDITION_PROTO3":- return Edition.EDITION_PROTO3;- case 1000:- case "EDITION_2023":- return Edition.EDITION_2023;- case 1:- case "EDITION_1_TEST_ONLY":- return Edition.EDITION_1_TEST_ONLY;- case 2:- case "EDITION_2_TEST_ONLY":- return Edition.EDITION_2_TEST_ONLY;- case 99997:- case "EDITION_99997_TEST_ONLY":- return Edition.EDITION_99997_TEST_ONLY;- case 99998:- case "EDITION_99998_TEST_ONLY":- return Edition.EDITION_99998_TEST_ONLY;- case 99999:- case "EDITION_99999_TEST_ONLY":- return Edition.EDITION_99999_TEST_ONLY;- case -1:- case "UNRECOGNIZED":- default:- return Edition.UNRECOGNIZED;- }-}--export function editionToJSON(object: Edition): string {- switch (object) {- case Edition.EDITION_UNKNOWN:- return "EDITION_UNKNOWN";- case Edition.EDITION_PROTO2:- return "EDITION_PROTO2";- case Edition.EDITION_PROTO3:- return "EDITION_PROTO3";- case Edition.EDITION_2023:- return "EDITION_2023";- case Edition.EDITION_1_TEST_ONLY:- return "EDITION_1_TEST_ONLY";- case Edition.EDITION_2_TEST_ONLY:- return "EDITION_2_TEST_ONLY";- case Edition.EDITION_99997_TEST_ONLY:- return "EDITION_99997_TEST_ONLY";- case Edition.EDITION_99998_TEST_ONLY:- return "EDITION_99998_TEST_ONLY";- case Edition.EDITION_99999_TEST_ONLY:- return "EDITION_99999_TEST_ONLY";- case Edition.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-/*** The protocol compiler can output a FileDescriptorSet containing the .proto* files it parses.@@ -143,8 +51,8 @@ export interface FileDescriptorProto {* If `edition` is present, this value must be "editions".*/syntax: string;- /** The edition of the proto file. */- edition: Edition;+ /** The edition of the proto file, which is an opaque string. */+ edition: string;}/** Describes a message type. */@@ -188,84 +96,6 @@ export interface DescriptorProto_ReservedRange {export interface ExtensionRangeOptions {/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];- /**- * For external users: DO NOT USE. We are in the process of open sourcing- * extension declaration and executing internal cleanups before it can be- * used externally.- */- declaration: ExtensionRangeOptions_Declaration[];- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;- /**- * The verification state of the range.- * TODO: flip the default to DECLARATION once all empty ranges- * are marked as UNVERIFIED.- */- verification: ExtensionRangeOptions_VerificationState;-}--/** The verification state of the extension range. */-export enum ExtensionRangeOptions_VerificationState {- /** DECLARATION - All the extensions of the range must be declared. */- DECLARATION = 0,- UNVERIFIED = 1,- UNRECOGNIZED = -1,-}--export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState {- switch (object) {- case 0:- case "DECLARATION":- return ExtensionRangeOptions_VerificationState.DECLARATION;- case 1:- case "UNVERIFIED":- return ExtensionRangeOptions_VerificationState.UNVERIFIED;- case -1:- case "UNRECOGNIZED":- default:- return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;- }-}--export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string {- switch (object) {- case ExtensionRangeOptions_VerificationState.DECLARATION:- return "DECLARATION";- case ExtensionRangeOptions_VerificationState.UNVERIFIED:- return "UNVERIFIED";- case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export interface ExtensionRangeOptions_Declaration {- /** The extension number declared within the extension range. */- number: number;- /**- * The fully-qualified name of the extension field. There must be a leading- * dot in front of the full name.- */- fullName: string;- /**- * The fully-qualified type name of the extension field. Unlike- * Metadata.type, Declaration.type must have a leading dot for messages- * and enums.- */- type: string;- /**- * If true, indicates that the number is reserved in the extension range,- * and any extension field with the number will fail to compile. Set this- * when a declared extension field is deleted.- */- reserved: boolean;- /**- * If true, indicates that the extension must be defined as repeated.- * Otherwise the extension must be defined as optional.- */- repeated: boolean;}/** Describes a field within a message. */@@ -363,10 +193,9 @@ export enum FieldDescriptorProto_Type {TYPE_STRING = 9,/*** TYPE_GROUP - Tag-delimited aggregate.- * Group type is deprecated and not supported after google.protobuf. However, Proto3+ * Group type is deprecated and not supported in proto3. However, Proto3* implementations should still be able to parse the group wire format and- * treat group fields as unknown fields. In Editions, the group wire format- * can be enabled via the `message_encoding` feature.+ * treat group fields as unknown fields.*/TYPE_GROUP = 10,/** TYPE_MESSAGE - Length-delimited aggregate. */@@ -494,13 +323,8 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typexport enum FieldDescriptorProto_Label {/** LABEL_OPTIONAL - 0 is reserved for errors */LABEL_OPTIONAL = 1,- LABEL_REPEATED = 3,- /**- * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions- * it's explicitly prohibited. In Editions, the `field_presence` feature- * can be used to get this behavior.- */LABEL_REQUIRED = 2,+ LABEL_REPEATED = 3,UNRECOGNIZED = -1,}@@ -509,12 +333,12 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorcase 1:case "LABEL_OPTIONAL":return FieldDescriptorProto_Label.LABEL_OPTIONAL;- case 3:- case "LABEL_REPEATED":- return FieldDescriptorProto_Label.LABEL_REPEATED;case 2:case "LABEL_REQUIRED":return FieldDescriptorProto_Label.LABEL_REQUIRED;+ case 3:+ case "LABEL_REPEATED":+ return FieldDescriptorProto_Label.LABEL_REPEATED;case -1:case "UNRECOGNIZED":default:@@ -526,10 +350,10 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Laswitch (object) {case FieldDescriptorProto_Label.LABEL_OPTIONAL:return "LABEL_OPTIONAL";- case FieldDescriptorProto_Label.LABEL_REPEATED:- return "LABEL_REPEATED";case FieldDescriptorProto_Label.LABEL_REQUIRED:return "LABEL_REQUIRED";+ case FieldDescriptorProto_Label.LABEL_REPEATED:+ return "LABEL_REPEATED";case FieldDescriptorProto_Label.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -723,10 +547,6 @@ export interface FileOptions {* determining the ruby package.*/rubyPackage: string;- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;/*** The parser stores options it doesn't recognize here.* See the documentation for the "Options" section above.@@ -845,16 +665,12 @@ export interface MessageOptions {* This should only be used as a temporary measure against broken builds due* to the change in behavior for JSON field name conflicts.*- * TODO This is legacy behavior we plan to remove once downstream+ * TODO(b/261750190) This is legacy behavior we plan to remove once downstream* teams have had time to migrate.** @deprecated*/deprecatedLegacyJsonFieldConflicts: boolean;- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -863,10 +679,8 @@ export interface FieldOptions {/*** The ctype option instructs the C++ code generator to use a different* representation of the field than it normally would. See the specific- * options below. This option is only implemented to support use of- * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of- * type "bytes" in the open source release -- sorry, we'll try to include- * other types in a future version!+ * options below. This option is not yet implemented in the open source+ * release -- sorry, we'll try to include it in a future version!*/ctype: FieldOptions_CType;/**@@ -874,9 +688,7 @@ export interface FieldOptions {* a more efficient representation on the wire. Rather than repeatedly* writing the tag and type for each element, the entire array is encoded as* a single length-delimited blob. In proto3, only explicit setting it to- * false will avoid using packed encoding. This option is prohibited in- * Editions, but the `repeated_field_encoding` feature can be used to control- * the behavior.+ * false will avoid using packed encoding.*/packed: boolean;/**@@ -947,12 +759,7 @@ export interface FieldOptions {*/debugRedact: boolean;retention: FieldOptions_OptionRetention;- targets: FieldOptions_OptionTargetType[];- editionDefaults: FieldOptions_EditionDefault[];- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;+ target: FieldOptions_OptionTargetType;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -960,14 +767,6 @@ export interface FieldOptions {export enum FieldOptions_CType {/** STRING - Default mode. */STRING = 0,- /**- * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type- * "bytes". It indicates that in C++, the data should be stored in a Cord- * instead of a string. For very large strings, this may reduce memory- * fragmentation. It may also allow better performance when parsing from a- * Cord, or when parsing with aliasing enabled, as the parsed Cord may then- * alias the original buffer.- */CORD = 1,STRING_PIECE = 2,UNRECOGNIZED = -1,@@ -1178,17 +977,7 @@ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionT}}-export interface FieldOptions_EditionDefault {- edition: Edition;- /** Textproto value. */- value: string;-}-export interface OneofOptions {- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1211,16 +1000,12 @@ export interface EnumOptions {* and strips underscored from the fields before comparison in proto3 only.* The new behavior takes `json_name` into account and applies to proto2 as* well.- * TODO Remove this legacy behavior once downstream teams have+ * TODO(b/261750190) Remove this legacy behavior once downstream teams have* had time to migrate.** @deprecated*/deprecatedLegacyJsonFieldConflicts: boolean;- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1233,25 +1018,11 @@ export interface EnumValueOptions {* this is a formalization for deprecating enum values.*/deprecated: boolean;- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;- /**- * Indicate that fields annotated with this enum value should not be printed- * out when using debug formats, e.g. when the field contains sensitive- * credentials.- */- debugRedact: boolean;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}export interface ServiceOptions {- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;/*** Is this service deprecated?* Depending on the target platform, this can emit Deprecated annotations@@ -1272,10 +1043,6 @@ export interface MethodOptions {*/deprecated: boolean;idempotencyLevel: MethodOptions_IdempotencyLevel;- /** Any features defined in the specific edition. */- features:- | FeatureSet- | undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1360,294 +1127,6 @@ export interface UninterpretedOption_NamePart {isExtension: boolean;}-/**- * TODO Enums in C++ gencode (and potentially other languages) are- * not well scoped. This means that each of the feature enums below can clash- * with each other. The short names we've chosen maximize call-site- * readability, but leave us very open to this scenario. A future feature will- * be designed and implemented to handle this, hopefully before we ever hit a- * conflict here.- */-export interface FeatureSet {- fieldPresence: FeatureSet_FieldPresence;- enumType: FeatureSet_EnumType;- repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;- utf8Validation: FeatureSet_Utf8Validation;- messageEncoding: FeatureSet_MessageEncoding;- jsonFormat: FeatureSet_JsonFormat;-}--export enum FeatureSet_FieldPresence {- FIELD_PRESENCE_UNKNOWN = 0,- EXPLICIT = 1,- IMPLICIT = 2,- LEGACY_REQUIRED = 3,- UNRECOGNIZED = -1,-}--export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence {- switch (object) {- case 0:- case "FIELD_PRESENCE_UNKNOWN":- return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;- case 1:- case "EXPLICIT":- return FeatureSet_FieldPresence.EXPLICIT;- case 2:- case "IMPLICIT":- return FeatureSet_FieldPresence.IMPLICIT;- case 3:- case "LEGACY_REQUIRED":- return FeatureSet_FieldPresence.LEGACY_REQUIRED;- case -1:- case "UNRECOGNIZED":- default:- return FeatureSet_FieldPresence.UNRECOGNIZED;- }-}--export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string {- switch (object) {- case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:- return "FIELD_PRESENCE_UNKNOWN";- case FeatureSet_FieldPresence.EXPLICIT:- return "EXPLICIT";- case FeatureSet_FieldPresence.IMPLICIT:- return "IMPLICIT";- case FeatureSet_FieldPresence.LEGACY_REQUIRED:- return "LEGACY_REQUIRED";- case FeatureSet_FieldPresence.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export enum FeatureSet_EnumType {- ENUM_TYPE_UNKNOWN = 0,- OPEN = 1,- CLOSED = 2,- UNRECOGNIZED = -1,-}--export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType {- switch (object) {- case 0:- case "ENUM_TYPE_UNKNOWN":- return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;- case 1:- case "OPEN":- return FeatureSet_EnumType.OPEN;- case 2:- case "CLOSED":- return FeatureSet_EnumType.CLOSED;- case -1:- case "UNRECOGNIZED":- default:- return FeatureSet_EnumType.UNRECOGNIZED;- }-}--export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string {- switch (object) {- case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:- return "ENUM_TYPE_UNKNOWN";- case FeatureSet_EnumType.OPEN:- return "OPEN";- case FeatureSet_EnumType.CLOSED:- return "CLOSED";- case FeatureSet_EnumType.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export enum FeatureSet_RepeatedFieldEncoding {- REPEATED_FIELD_ENCODING_UNKNOWN = 0,- PACKED = 1,- EXPANDED = 2,- UNRECOGNIZED = -1,-}--export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding {- switch (object) {- case 0:- case "REPEATED_FIELD_ENCODING_UNKNOWN":- return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;- case 1:- case "PACKED":- return FeatureSet_RepeatedFieldEncoding.PACKED;- case 2:- case "EXPANDED":- return FeatureSet_RepeatedFieldEncoding.EXPANDED;- case -1:- case "UNRECOGNIZED":- default:- return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;- }-}--export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string {- switch (object) {- case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:- return "REPEATED_FIELD_ENCODING_UNKNOWN";- case FeatureSet_RepeatedFieldEncoding.PACKED:- return "PACKED";- case FeatureSet_RepeatedFieldEncoding.EXPANDED:- return "EXPANDED";- case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export enum FeatureSet_Utf8Validation {- UTF8_VALIDATION_UNKNOWN = 0,- NONE = 1,- VERIFY = 2,- UNRECOGNIZED = -1,-}--export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {- switch (object) {- case 0:- case "UTF8_VALIDATION_UNKNOWN":- return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;- case 1:- case "NONE":- return FeatureSet_Utf8Validation.NONE;- case 2:- case "VERIFY":- return FeatureSet_Utf8Validation.VERIFY;- case -1:- case "UNRECOGNIZED":- default:- return FeatureSet_Utf8Validation.UNRECOGNIZED;- }-}--export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string {- switch (object) {- case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:- return "UTF8_VALIDATION_UNKNOWN";- case FeatureSet_Utf8Validation.NONE:- return "NONE";- case FeatureSet_Utf8Validation.VERIFY:- return "VERIFY";- case FeatureSet_Utf8Validation.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export enum FeatureSet_MessageEncoding {- MESSAGE_ENCODING_UNKNOWN = 0,- LENGTH_PREFIXED = 1,- DELIMITED = 2,- UNRECOGNIZED = -1,-}--export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding {- switch (object) {- case 0:- case "MESSAGE_ENCODING_UNKNOWN":- return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;- case 1:- case "LENGTH_PREFIXED":- return FeatureSet_MessageEncoding.LENGTH_PREFIXED;- case 2:- case "DELIMITED":- return FeatureSet_MessageEncoding.DELIMITED;- case -1:- case "UNRECOGNIZED":- default:- return FeatureSet_MessageEncoding.UNRECOGNIZED;- }-}--export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string {- switch (object) {- case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:- return "MESSAGE_ENCODING_UNKNOWN";- case FeatureSet_MessageEncoding.LENGTH_PREFIXED:- return "LENGTH_PREFIXED";- case FeatureSet_MessageEncoding.DELIMITED:- return "DELIMITED";- case FeatureSet_MessageEncoding.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export enum FeatureSet_JsonFormat {- JSON_FORMAT_UNKNOWN = 0,- ALLOW = 1,- LEGACY_BEST_EFFORT = 2,- UNRECOGNIZED = -1,-}--export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat {- switch (object) {- case 0:- case "JSON_FORMAT_UNKNOWN":- return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;- case 1:- case "ALLOW":- return FeatureSet_JsonFormat.ALLOW;- case 2:- case "LEGACY_BEST_EFFORT":- return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;- case -1:- case "UNRECOGNIZED":- default:- return FeatureSet_JsonFormat.UNRECOGNIZED;- }-}--export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string {- switch (object) {- case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:- return "JSON_FORMAT_UNKNOWN";- case FeatureSet_JsonFormat.ALLOW:- return "ALLOW";- case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:- return "LEGACY_BEST_EFFORT";- case FeatureSet_JsonFormat.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--/**- * A compiled specification for the defaults of a set of features. These- * messages are generated from FeatureSet extensions and can be used to seed- * feature resolution. The resolution with this object becomes a simple search- * for the closest matching edition, followed by proto merges.- */-export interface FeatureSetDefaults {- defaults: FeatureSetDefaults_FeatureSetEditionDefault[];- /**- * The minimum supported edition (inclusive) when this was constructed.- * Editions before this will not have defaults.- */- minimumEdition: Edition;- /**- * The maximum known edition (inclusive) when this was constructed. Editions- * after this will not have reliable defaults.- */- maximumEdition: Edition;-}--/**- * A map from every known edition with a unique set of defaults to its- * defaults. Not all editions may be contained here. For a given edition,- * the defaults at the closest matching edition ordered at or before it should- * be used. This field must be in strict ascending order by edition.- */-export interface FeatureSetDefaults_FeatureSetEditionDefault {- edition: Edition;- features: FeatureSet | undefined;-}-/*** Encapsulates information about the original source file from which a* FileDescriptorProto was generated.@@ -1944,7 +1423,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {options: undefined,sourceCodeInfo: undefined,syntax: "",- edition: 0,+ edition: "",};}@@ -1990,8 +1469,8 @@ export const FileDescriptorProto = {if (message.syntax !== "") {writer.uint32(98).string(message.syntax);}- if (message.edition !== 0) {- writer.uint32(112).int32(message.edition);+ if (message.edition !== "") {+ writer.uint32(106).string(message.edition);}return writer;},@@ -2107,12 +1586,12 @@ export const FileDescriptorProto = {message.syntax = reader.string();continue;- case 14:- if (tag !== 112) {+ case 13:+ if (tag !== 106) {break;}- message.edition = reader.int32() as any;+ message.edition = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2151,7 +1630,7 @@ export const FileDescriptorProto = {options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",- edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,+ edition: isSet(object.edition) ? globalThis.String(object.edition) : "",};},@@ -2193,8 +1672,8 @@ export const FileDescriptorProto = {if (message.syntax !== "") {obj.syntax = message.syntax;}- if (message.edition !== 0) {- obj.edition = editionToJSON(message.edition);+ if (message.edition !== "") {+ obj.edition = message.edition;}return obj;},@@ -2220,7 +1699,7 @@ export const FileDescriptorProto = {? SourceCodeInfo.fromPartial(object.sourceCodeInfo): undefined;message.syntax = object.syntax ?? "";- message.edition = object.edition ?? 0;+ message.edition = object.edition ?? "";return message;},};@@ -2614,7 +2093,7 @@ export const DescriptorProto_ReservedRange = {};function createBaseExtensionRangeOptions(): ExtensionRangeOptions {- return { uninterpretedOption: [], declaration: [], features: undefined, verification: 0 };+ return { uninterpretedOption: [] };}export const ExtensionRangeOptions = {@@ -2622,15 +2101,6 @@ export const ExtensionRangeOptions = {for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}- for (const v of message.declaration) {- ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim();- }- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();- }- if (message.verification !== 0) {- writer.uint32(24).int32(message.verification);- }return writer;},@@ -2648,27 +2118,6 @@ export const ExtensionRangeOptions = {message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));continue;- case 2:- if (tag !== 18) {- break;- }-- message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));- continue;- case 50:- if (tag !== 402) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;- case 3:- if (tag !== 24) {- break;- }-- message.verification = reader.int32() as any;- continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -2683,13 +2132,6 @@ export const ExtensionRangeOptions = {uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],- declaration: globalThis.Array.isArray(object?.declaration)- ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e))- : [],- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,- verification: isSet(object.verification)- ? extensionRangeOptions_VerificationStateFromJSON(object.verification)- : 0,};},@@ -2698,15 +2140,6 @@ export const ExtensionRangeOptions = {if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}- if (message.declaration?.length) {- obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));- }- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }- if (message.verification !== 0) {- obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);- }return obj;},@@ -2716,130 +2149,6 @@ export const ExtensionRangeOptions = {fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {const message = createBaseExtensionRangeOptions();message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];- message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;- message.verification = object.verification ?? 0;- return message;- },-};--function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {- return { number: 0, fullName: "", type: "", reserved: false, repeated: false };-}--export const ExtensionRangeOptions_Declaration = {- encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.number !== 0) {- writer.uint32(8).int32(message.number);- }- if (message.fullName !== "") {- writer.uint32(18).string(message.fullName);- }- if (message.type !== "") {- writer.uint32(26).string(message.type);- }- if (message.reserved === true) {- writer.uint32(40).bool(message.reserved);- }- if (message.repeated === true) {- writer.uint32(48).bool(message.repeated);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseExtensionRangeOptions_Declaration();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.number = reader.int32();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.fullName = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.type = reader.string();- continue;- case 5:- if (tag !== 40) {- break;- }-- message.reserved = reader.bool();- continue;- case 6:- if (tag !== 48) {- break;- }-- message.repeated = reader.bool();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): ExtensionRangeOptions_Declaration {- return {- number: isSet(object.number) ? globalThis.Number(object.number) : 0,- fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",- type: isSet(object.type) ? globalThis.String(object.type) : "",- reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,- repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,- };- },-- toJSON(message: ExtensionRangeOptions_Declaration): unknown {- const obj: any = {};- if (message.number !== 0) {- obj.number = Math.round(message.number);- }- if (message.fullName !== "") {- obj.fullName = message.fullName;- }- if (message.type !== "") {- obj.type = message.type;- }- if (message.reserved === true) {- obj.reserved = message.reserved;- }- if (message.repeated === true) {- obj.repeated = message.repeated;- }- return obj;- },-- create(base?: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {- return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {- const message = createBaseExtensionRangeOptions_Declaration();- message.number = object.number ?? 0;- message.fullName = object.fullName ?? "";- message.type = object.type ?? "";- message.reserved = object.reserved ?? false;- message.repeated = object.repeated ?? false;return message;},};@@ -3694,7 +3003,6 @@ function createBaseFileOptions(): FileOptions {phpNamespace: "",phpMetadataNamespace: "",rubyPackage: "",- features: undefined,uninterpretedOption: [],};}@@ -3761,9 +3069,6 @@ export const FileOptions = {if (message.rubyPackage !== "") {writer.uint32(362).string(message.rubyPackage);}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3917,13 +3222,6 @@ export const FileOptions = {message.rubyPackage = reader.string();continue;- case 50:- if (tag !== 402) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -3964,7 +3262,6 @@ export const FileOptions = {phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4033,9 +3330,6 @@ export const FileOptions = {if (message.rubyPackage !== "") {obj.rubyPackage = message.rubyPackage;}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4067,9 +3361,6 @@ export const FileOptions = {message.phpNamespace = object.phpNamespace ?? "";message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";message.rubyPackage = object.rubyPackage ?? "";- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4082,7 +3373,6 @@ function createBaseMessageOptions(): MessageOptions {deprecated: false,mapEntry: false,deprecatedLegacyJsonFieldConflicts: false,- features: undefined,uninterpretedOption: [],};}@@ -4104,9 +3394,6 @@ export const MessageOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4155,13 +3442,6 @@ export const MessageOptions = {message.deprecatedLegacyJsonFieldConflicts = reader.bool();continue;- case 12:- if (tag !== 98) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -4191,7 +3471,6 @@ export const MessageOptions = {deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts): false,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4215,9 +3494,6 @@ export const MessageOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4234,9 +3510,6 @@ export const MessageOptions = {message.deprecated = object.deprecated ?? false;message.mapEntry = object.mapEntry ?? false;message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4253,9 +3526,7 @@ function createBaseFieldOptions(): FieldOptions {weak: false,debugRedact: false,retention: 0,- targets: [],- editionDefaults: [],- features: undefined,+ target: 0,uninterpretedOption: [],};}@@ -4289,16 +3560,8 @@ export const FieldOptions = {if (message.retention !== 0) {writer.uint32(136).int32(message.retention);}- writer.uint32(154).fork();- for (const v of message.targets) {- writer.int32(v);- }- writer.ldelim();- for (const v of message.editionDefaults) {- FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim();- }- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();+ if (message.target !== 0) {+ writer.uint32(144).int32(message.target);}for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();@@ -4376,36 +3639,12 @@ export const FieldOptions = {message.retention = reader.int32() as any;continue;- case 19:- if (tag === 152) {- message.targets.push(reader.int32() as any);-- continue;- }-- if (tag === 154) {- const end2 = reader.uint32() + reader.pos;- while (reader.pos < end2) {- message.targets.push(reader.int32() as any);- }-- continue;- }-- break;- case 20:- if (tag !== 162) {- break;- }-- message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));- continue;- case 21:- if (tag !== 170) {+ case 18:+ if (tag !== 144) {break;}- message.features = FeatureSet.decode(reader, reader.uint32());+ message.target = reader.int32() as any;continue;case 999:if (tag !== 7994) {@@ -4434,13 +3673,7 @@ export const FieldOptions = {weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,- targets: globalThis.Array.isArray(object?.targets)- ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e))- : [],- editionDefaults: globalThis.Array.isArray(object?.editionDefaults)- ? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e))- : [],- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4476,14 +3709,8 @@ export const FieldOptions = {if (message.retention !== 0) {obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);}- if (message.targets?.length) {- obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));- }- if (message.editionDefaults?.length) {- obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));- }- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);+ if (message.target !== 0) {+ obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);}if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));@@ -4505,99 +3732,18 @@ export const FieldOptions = {message.weak = object.weak ?? false;message.debugRedact = object.debugRedact ?? false;message.retention = object.retention ?? 0;- message.targets = object.targets?.map((e) => e) || [];- message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;+ message.target = object.target ?? 0;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};-function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {- return { edition: 0, value: "" };-}--export const FieldOptions_EditionDefault = {- encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.edition !== 0) {- writer.uint32(24).int32(message.edition);- }- if (message.value !== "") {- writer.uint32(18).string(message.value);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFieldOptions_EditionDefault();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 3:- if (tag !== 24) {- break;- }-- message.edition = reader.int32() as any;- continue;- case 2:- if (tag !== 18) {- break;- }-- message.value = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): FieldOptions_EditionDefault {- return {- edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,- value: isSet(object.value) ? globalThis.String(object.value) : "",- };- },-- toJSON(message: FieldOptions_EditionDefault): unknown {- const obj: any = {};- if (message.edition !== 0) {- obj.edition = editionToJSON(message.edition);- }- if (message.value !== "") {- obj.value = message.value;- }- return obj;- },-- create(base?: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {- return FieldOptions_EditionDefault.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {- const message = createBaseFieldOptions_EditionDefault();- message.edition = object.edition ?? 0;- message.value = object.value ?? "";- return message;- },-};-function createBaseOneofOptions(): OneofOptions {- return { features: undefined, uninterpretedOption: [] };+ return { uninterpretedOption: [] };}export const OneofOptions = {encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4611,13 +3757,6 @@ export const OneofOptions = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -4636,7 +3775,6 @@ export const OneofOptions = {fromJSON(object: any): OneofOptions {return {- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4645,9 +3783,6 @@ export const OneofOptions = {toJSON(message: OneofOptions): unknown {const obj: any = {};- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4659,22 +3794,13 @@ export const OneofOptions = {},fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {const message = createBaseOneofOptions();- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};function createBaseEnumOptions(): EnumOptions {- return {- allowAlias: false,- deprecated: false,- deprecatedLegacyJsonFieldConflicts: false,- features: undefined,- uninterpretedOption: [],- };+ return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };}export const EnumOptions = {@@ -4688,9 +3814,6 @@ export const EnumOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4725,13 +3848,6 @@ export const EnumOptions = {message.deprecatedLegacyJsonFieldConflicts = reader.bool();continue;- case 7:- if (tag !== 58) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -4755,7 +3871,6 @@ export const EnumOptions = {deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts): false,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4773,9 +3888,6 @@ export const EnumOptions = {if (message.deprecatedLegacyJsonFieldConflicts === true) {obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4790,16 +3902,13 @@ export const EnumOptions = {message.allowAlias = object.allowAlias ?? false;message.deprecated = object.deprecated ?? false;message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};function createBaseEnumValueOptions(): EnumValueOptions {- return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };+ return { deprecated: false, uninterpretedOption: [] };}export const EnumValueOptions = {@@ -4807,12 +3916,6 @@ export const EnumValueOptions = {if (message.deprecated === true) {writer.uint32(8).bool(message.deprecated);}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();- }- if (message.debugRedact === true) {- writer.uint32(24).bool(message.debugRedact);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4833,20 +3936,6 @@ export const EnumValueOptions = {message.deprecated = reader.bool();continue;- case 2:- if (tag !== 18) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;- case 3:- if (tag !== 24) {- break;- }-- message.debugRedact = reader.bool();- continue;case 999:if (tag !== 7994) {break;@@ -4866,8 +3955,6 @@ export const EnumValueOptions = {fromJSON(object: any): EnumValueOptions {return {deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,- debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4879,12 +3966,6 @@ export const EnumValueOptions = {if (message.deprecated === true) {obj.deprecated = message.deprecated;}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }- if (message.debugRedact === true) {- obj.debugRedact = message.debugRedact;- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4897,24 +3978,17 @@ export const EnumValueOptions = {fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {const message = createBaseEnumValueOptions();message.deprecated = object.deprecated ?? false;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;- message.debugRedact = object.debugRedact ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},};function createBaseServiceOptions(): ServiceOptions {- return { features: undefined, deprecated: false, uninterpretedOption: [] };+ return { deprecated: false, uninterpretedOption: [] };}export const ServiceOptions = {encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();- }if (message.deprecated === true) {writer.uint32(264).bool(message.deprecated);}@@ -4931,13 +4005,6 @@ export const ServiceOptions = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 34:- if (tag !== 274) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;case 33:if (tag !== 264) {break;@@ -4963,7 +4030,6 @@ export const ServiceOptions = {fromJSON(object: any): ServiceOptions {return {- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))@@ -4973,9 +4039,6 @@ export const ServiceOptions = {toJSON(message: ServiceOptions): unknown {const obj: any = {};- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }if (message.deprecated === true) {obj.deprecated = message.deprecated;}@@ -4990,9 +4053,6 @@ export const ServiceOptions = {},fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {const message = createBaseServiceOptions();- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;message.deprecated = object.deprecated ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;@@ -5000,7 +4060,7 @@ export const ServiceOptions = {};function createBaseMethodOptions(): MethodOptions {- return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };+ return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };}export const MethodOptions = {@@ -5011,9 +4071,6 @@ export const MethodOptions = {if (message.idempotencyLevel !== 0) {writer.uint32(272).int32(message.idempotencyLevel);}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -5041,13 +4098,6 @@ export const MethodOptions = {message.idempotencyLevel = reader.int32() as any;continue;- case 35:- if (tag !== 282) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;case 999:if (tag !== 7994) {break;@@ -5070,7 +4120,6 @@ export const MethodOptions = {idempotencyLevel: isSet(object.idempotencyLevel)? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel): 0,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -5085,9 +4134,6 @@ export const MethodOptions = {if (message.idempotencyLevel !== 0) {obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -5101,9 +4147,6 @@ export const MethodOptions = {const message = createBaseMethodOptions();message.deprecated = object.deprecated ?? false;message.idempotencyLevel = object.idempotencyLevel ?? 0;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -5346,318 +4389,6 @@ export const UninterpretedOption_NamePart = {},};-function createBaseFeatureSet(): FeatureSet {- return {- fieldPresence: 0,- enumType: 0,- repeatedFieldEncoding: 0,- utf8Validation: 0,- messageEncoding: 0,- jsonFormat: 0,- };-}--export const FeatureSet = {- encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.fieldPresence !== 0) {- writer.uint32(8).int32(message.fieldPresence);- }- if (message.enumType !== 0) {- writer.uint32(16).int32(message.enumType);- }- if (message.repeatedFieldEncoding !== 0) {- writer.uint32(24).int32(message.repeatedFieldEncoding);- }- if (message.utf8Validation !== 0) {- writer.uint32(32).int32(message.utf8Validation);- }- if (message.messageEncoding !== 0) {- writer.uint32(40).int32(message.messageEncoding);- }- if (message.jsonFormat !== 0) {- writer.uint32(48).int32(message.jsonFormat);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFeatureSet();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.fieldPresence = reader.int32() as any;- continue;- case 2:- if (tag !== 16) {- break;- }-- message.enumType = reader.int32() as any;- continue;- case 3:- if (tag !== 24) {- break;- }-- message.repeatedFieldEncoding = reader.int32() as any;- continue;- case 4:- if (tag !== 32) {- break;- }-- message.utf8Validation = reader.int32() as any;- continue;- case 5:- if (tag !== 40) {- break;- }-- message.messageEncoding = reader.int32() as any;- continue;- case 6:- if (tag !== 48) {- break;- }-- message.jsonFormat = reader.int32() as any;- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): FeatureSet {- return {- fieldPresence: isSet(object.fieldPresence) ? featureSet_FieldPresenceFromJSON(object.fieldPresence) : 0,- enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0,- repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)- ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)- : 0,- utf8Validation: isSet(object.utf8Validation) ? featureSet_Utf8ValidationFromJSON(object.utf8Validation) : 0,- messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0,- jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0,- };- },-- toJSON(message: FeatureSet): unknown {- const obj: any = {};- if (message.fieldPresence !== 0) {- obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);- }- if (message.enumType !== 0) {- obj.enumType = featureSet_EnumTypeToJSON(message.enumType);- }- if (message.repeatedFieldEncoding !== 0) {- obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);- }- if (message.utf8Validation !== 0) {- obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);- }- if (message.messageEncoding !== 0) {- obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);- }- if (message.jsonFormat !== 0) {- obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);- }- return obj;- },-- create(base?: DeepPartial<FeatureSet>): FeatureSet {- return FeatureSet.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<FeatureSet>): FeatureSet {- const message = createBaseFeatureSet();- message.fieldPresence = object.fieldPresence ?? 0;- message.enumType = object.enumType ?? 0;- message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;- message.utf8Validation = object.utf8Validation ?? 0;- message.messageEncoding = object.messageEncoding ?? 0;- message.jsonFormat = object.jsonFormat ?? 0;- return message;- },-};--function createBaseFeatureSetDefaults(): FeatureSetDefaults {- return { defaults: [], minimumEdition: 0, maximumEdition: 0 };-}--export const FeatureSetDefaults = {- encode(message: FeatureSetDefaults, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.defaults) {- FeatureSetDefaults_FeatureSetEditionDefault.encode(v!, writer.uint32(10).fork()).ldelim();- }- if (message.minimumEdition !== 0) {- writer.uint32(32).int32(message.minimumEdition);- }- if (message.maximumEdition !== 0) {- writer.uint32(40).int32(message.maximumEdition);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFeatureSetDefaults();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));- continue;- case 4:- if (tag !== 32) {- break;- }-- message.minimumEdition = reader.int32() as any;- continue;- case 5:- if (tag !== 40) {- break;- }-- message.maximumEdition = reader.int32() as any;- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): FeatureSetDefaults {- return {- defaults: globalThis.Array.isArray(object?.defaults)- ? object.defaults.map((e: any) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))- : [],- minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : 0,- maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : 0,- };- },-- toJSON(message: FeatureSetDefaults): unknown {- const obj: any = {};- if (message.defaults?.length) {- obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));- }- if (message.minimumEdition !== 0) {- obj.minimumEdition = editionToJSON(message.minimumEdition);- }- if (message.maximumEdition !== 0) {- obj.maximumEdition = editionToJSON(message.maximumEdition);- }- return obj;- },-- create(base?: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {- return FeatureSetDefaults.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {- const message = createBaseFeatureSetDefaults();- message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];- message.minimumEdition = object.minimumEdition ?? 0;- message.maximumEdition = object.maximumEdition ?? 0;- return message;- },-};--function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {- return { edition: 0, features: undefined };-}--export const FeatureSetDefaults_FeatureSetEditionDefault = {- encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.edition !== 0) {- writer.uint32(24).int32(message.edition);- }- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 3:- if (tag !== 24) {- break;- }-- message.edition = reader.int32() as any;- continue;- case 2:- if (tag !== 18) {- break;- }-- message.features = FeatureSet.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {- return {- edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,- };- },-- toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {- const obj: any = {};- if (message.edition !== 0) {- obj.edition = editionToJSON(message.edition);- }- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);- }- return obj;- },-- create(base?: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {- return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});- },- fromPartial(- object: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>,- ): FeatureSetDefaults_FeatureSetEditionDefault {- const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();- message.edition = object.edition ?? 0;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)- : undefined;- return message;- },-};-function createBaseSourceCodeInfo(): SourceCodeInfo {return { location: [] };}diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.tsindex b87dbf5bac..dbdf7a289a 100644--- a/frontend/src/types/proto/google/protobuf/struct.ts+++ b/frontend/src/types/proto/google/protobuf/struct.ts@@ -8,7 +8,7 @@ export const protobufPackage = "google.protobuf";* `NullValue` is a singleton enumeration to represent the null value for the* `Value` type union.*- * The JSON representation for `NullValue` is JSON `null`.+ * The JSON representation for `NullValue` is JSON `null`.*/export enum NullValue {/** NULL_VALUE - Null value. */diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.tsindex 5781891bc0..51695e08d0 100644--- a/frontend/src/types/proto/google/protobuf/timestamp.ts+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts@@ -92,7 +92,7 @@ export const protobufPackage = "google.protobuf";* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use* the Joda Time's [`ISODateTimeFormat.dateTime()`](- * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()+ * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D* ) to obtain a formatter capable of generating timestamps in this format.*/export interface Timestamp {diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex 9dfc8d637d..ca8a09b4c2 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -6,7 +6,6 @@ import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";import { Expr } from "../google/type/expr";import { Engine, engineFromJSON, engineToJSON, MaskingLevel, maskingLevelFromJSON, maskingLevelToJSON } from "./common";-import { DeploymentType, deploymentTypeFromJSON, deploymentTypeToJSON } from "./deployment";import { IamPolicy } from "./iam_policy";export const protobufPackage = "bytebase.v1";@@ -14,7 +13,6 @@ export const protobufPackage = "bytebase.v1";export enum PolicyType {POLICY_TYPE_UNSPECIFIED = 0,WORKSPACE_IAM = 1,- DEPLOYMENT_APPROVAL = 2,ROLLOUT_POLICY = 11,BACKUP_PLAN = 3,SQL_REVIEW = 4,@@ -35,9 +33,6 @@ export function policyTypeFromJSON(object: any): PolicyType {case 1:case "WORKSPACE_IAM":return PolicyType.WORKSPACE_IAM;- case 2:- case "DEPLOYMENT_APPROVAL":- return PolicyType.DEPLOYMENT_APPROVAL;case 11:case "ROLLOUT_POLICY":return PolicyType.ROLLOUT_POLICY;@@ -78,8 +73,6 @@ export function policyTypeToJSON(object: PolicyType): string {return "POLICY_TYPE_UNSPECIFIED";case PolicyType.WORKSPACE_IAM:return "WORKSPACE_IAM";- case PolicyType.DEPLOYMENT_APPROVAL:- return "DEPLOYMENT_APPROVAL";case PolicyType.ROLLOUT_POLICY:return "ROLLOUT_POLICY";case PolicyType.BACKUP_PLAN:@@ -161,84 +154,6 @@ export function policyResourceTypeToJSON(object: PolicyResourceType): string {}}-export enum ApprovalGroup {- ASSIGNEE_GROUP_UNSPECIFIED = 0,- APPROVAL_GROUP_DBA = 1,- APPROVAL_GROUP_PROJECT_OWNER = 2,- UNRECOGNIZED = -1,-}--export function approvalGroupFromJSON(object: any): ApprovalGroup {- switch (object) {- case 0:- case "ASSIGNEE_GROUP_UNSPECIFIED":- return ApprovalGroup.ASSIGNEE_GROUP_UNSPECIFIED;- case 1:- case "APPROVAL_GROUP_DBA":- return ApprovalGroup.APPROVAL_GROUP_DBA;- case 2:- case "APPROVAL_GROUP_PROJECT_OWNER":- return ApprovalGroup.APPROVAL_GROUP_PROJECT_OWNER;- case -1:- case "UNRECOGNIZED":- default:- return ApprovalGroup.UNRECOGNIZED;- }-}--export function approvalGroupToJSON(object: ApprovalGroup): string {- switch (object) {- case ApprovalGroup.ASSIGNEE_GROUP_UNSPECIFIED:- return "ASSIGNEE_GROUP_UNSPECIFIED";- case ApprovalGroup.APPROVAL_GROUP_DBA:- return "APPROVAL_GROUP_DBA";- case ApprovalGroup.APPROVAL_GROUP_PROJECT_OWNER:- return "APPROVAL_GROUP_PROJECT_OWNER";- case ApprovalGroup.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export enum ApprovalStrategy {- APPROVAL_STRATEGY_UNSPECIFIED = 0,- AUTOMATIC = 1,- MANUAL = 2,- UNRECOGNIZED = -1,-}--export function approvalStrategyFromJSON(object: any): ApprovalStrategy {- switch (object) {- case 0:- case "APPROVAL_STRATEGY_UNSPECIFIED":- return ApprovalStrategy.APPROVAL_STRATEGY_UNSPECIFIED;- case 1:- case "AUTOMATIC":- return ApprovalStrategy.AUTOMATIC;- case 2:- case "MANUAL":- return ApprovalStrategy.MANUAL;- case -1:- case "UNRECOGNIZED":- default:- return ApprovalStrategy.UNRECOGNIZED;- }-}--export function approvalStrategyToJSON(object: ApprovalStrategy): string {- switch (object) {- case ApprovalStrategy.APPROVAL_STRATEGY_UNSPECIFIED:- return "APPROVAL_STRATEGY_UNSPECIFIED";- case ApprovalStrategy.AUTOMATIC:- return "AUTOMATIC";- case ApprovalStrategy.MANUAL:- return "MANUAL";- case ApprovalStrategy.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-export enum BackupPlanSchedule {SCHEDULE_UNSPECIFIED = 0,UNSET = 1,@@ -441,7 +356,6 @@ export interface Policy {inheritFromParent: boolean;type: PolicyType;workspaceIamPolicy?: IamPolicy | undefined;- deploymentApprovalPolicy?: DeploymentApprovalPolicy | undefined;rolloutPolicy?: RolloutPolicy | undefined;backupPlanPolicy?: BackupPlanPolicy | undefined;maskingPolicy?: MaskingPolicy | undefined;@@ -458,11 +372,6 @@ export interface Policy {resourceUid: string;}-export interface DeploymentApprovalPolicy {- defaultStrategy: ApprovalStrategy;- deploymentApprovalStrategies: DeploymentApprovalStrategy[];-}-export interface RolloutPolicy {automatic: boolean;workspaceRoles: string[];@@ -474,12 +383,6 @@ export interface RolloutPolicy {issueRoles: string[];}-export interface DeploymentApprovalStrategy {- deploymentType: DeploymentType;- approvalGroup: ApprovalGroup;- approvalStrategy: ApprovalStrategy;-}-export interface BackupPlanPolicy {schedule: BackupPlanSchedule;retentionDuration: Duration | undefined;@@ -1093,7 +996,6 @@ function createBasePolicy(): Policy {inheritFromParent: false,type: 0,workspaceIamPolicy: undefined,- deploymentApprovalPolicy: undefined,rolloutPolicy: undefined,backupPlanPolicy: undefined,maskingPolicy: undefined,@@ -1126,9 +1028,6 @@ export const Policy = {if (message.workspaceIamPolicy !== undefined) {IamPolicy.encode(message.workspaceIamPolicy, writer.uint32(50).fork()).ldelim();}- if (message.deploymentApprovalPolicy !== undefined) {- DeploymentApprovalPolicy.encode(message.deploymentApprovalPolicy, writer.uint32(58).fork()).ldelim();- }if (message.rolloutPolicy !== undefined) {RolloutPolicy.encode(message.rolloutPolicy, writer.uint32(154).fork()).ldelim();}@@ -1213,13 +1112,6 @@ export const Policy = {message.workspaceIamPolicy = IamPolicy.decode(reader, reader.uint32());continue;- case 7:- if (tag !== 58) {- break;- }-- message.deploymentApprovalPolicy = DeploymentApprovalPolicy.decode(reader, reader.uint32());- continue;case 19:if (tag !== 154) {break;@@ -1323,9 +1215,6 @@ export const Policy = {inheritFromParent: isSet(object.inheritFromParent) ? globalThis.Boolean(object.inheritFromParent) : false,type: isSet(object.type) ? policyTypeFromJSON(object.type) : 0,workspaceIamPolicy: isSet(object.workspaceIamPolicy) ? IamPolicy.fromJSON(object.workspaceIamPolicy) : undefined,- deploymentApprovalPolicy: isSet(object.deploymentApprovalPolicy)- ? DeploymentApprovalPolicy.fromJSON(object.deploymentApprovalPolicy)- : undefined,rolloutPolicy: isSet(object.rolloutPolicy) ? RolloutPolicy.fromJSON(object.rolloutPolicy) : undefined,backupPlanPolicy: isSet(object.backupPlanPolicy) ? BackupPlanPolicy.fromJSON(object.backupPlanPolicy) : undefined,maskingPolicy: isSet(object.maskingPolicy) ? MaskingPolicy.fromJSON(object.maskingPolicy) : undefined,@@ -1366,9 +1255,6 @@ export const Policy = {if (message.workspaceIamPolicy !== undefined) {obj.workspaceIamPolicy = IamPolicy.toJSON(message.workspaceIamPolicy);}- if (message.deploymentApprovalPolicy !== undefined) {- obj.deploymentApprovalPolicy = DeploymentApprovalPolicy.toJSON(message.deploymentApprovalPolicy);- }if (message.rolloutPolicy !== undefined) {obj.rolloutPolicy = RolloutPolicy.toJSON(message.rolloutPolicy);}@@ -1422,10 +1308,6 @@ export const Policy = {message.workspaceIamPolicy = (object.workspaceIamPolicy !== undefined && object.workspaceIamPolicy !== null)? IamPolicy.fromPartial(object.workspaceIamPolicy): undefined;- message.deploymentApprovalPolicy =- (object.deploymentApprovalPolicy !== undefined && object.deploymentApprovalPolicy !== null)- ? DeploymentApprovalPolicy.fromPartial(object.deploymentApprovalPolicy)- : undefined;message.rolloutPolicy = (object.rolloutPolicy !== undefined && object.rolloutPolicy !== null)? RolloutPolicy.fromPartial(object.rolloutPolicy): undefined;@@ -1464,85 +1346,6 @@ export const Policy = {},};-function createBaseDeploymentApprovalPolicy(): DeploymentApprovalPolicy {- return { defaultStrategy: 0, deploymentApprovalStrategies: [] };-}--export const DeploymentApprovalPolicy = {- encode(message: DeploymentApprovalPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.defaultStrategy !== 0) {- writer.uint32(8).int32(message.defaultStrategy);- }- for (const v of message.deploymentApprovalStrategies) {- DeploymentApprovalStrategy.encode(v!, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): DeploymentApprovalPolicy {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDeploymentApprovalPolicy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.defaultStrategy = reader.int32() as any;- continue;- case 2:- if (tag !== 18) {- break;- }-- message.deploymentApprovalStrategies.push(DeploymentApprovalStrategy.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): DeploymentApprovalPolicy {- return {- defaultStrategy: isSet(object.defaultStrategy) ? approvalStrategyFromJSON(object.defaultStrategy) : 0,- deploymentApprovalStrategies: globalThis.Array.isArray(object?.deploymentApprovalStrategies)- ? object.deploymentApprovalStrategies.map((e: any) => DeploymentApprovalStrategy.fromJSON(e))- : [],- };- },-- toJSON(message: DeploymentApprovalPolicy): unknown {- const obj: any = {};- if (message.defaultStrategy !== 0) {- obj.defaultStrategy = approvalStrategyToJSON(message.defaultStrategy);- }- if (message.deploymentApprovalStrategies?.length) {- obj.deploymentApprovalStrategies = message.deploymentApprovalStrategies.map((e) =>- DeploymentApprovalStrategy.toJSON(e)- );- }- return obj;- },-- create(base?: DeepPartial<DeploymentApprovalPolicy>): DeploymentApprovalPolicy {- return DeploymentApprovalPolicy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<DeploymentApprovalPolicy>): DeploymentApprovalPolicy {- const message = createBaseDeploymentApprovalPolicy();- message.defaultStrategy = object.defaultStrategy ?? 0;- message.deploymentApprovalStrategies =- object.deploymentApprovalStrategies?.map((e) => DeploymentApprovalStrategy.fromPartial(e)) || [];- return message;- },-};-function createBaseRolloutPolicy(): RolloutPolicy {return { automatic: false, workspaceRoles: [], projectRoles: [], issueRoles: [] };}@@ -1653,95 +1456,6 @@ export const RolloutPolicy = {},};-function createBaseDeploymentApprovalStrategy(): DeploymentApprovalStrategy {- return { deploymentType: 0, approvalGroup: 0, approvalStrategy: 0 };-}--export const DeploymentApprovalStrategy = {- encode(message: DeploymentApprovalStrategy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.deploymentType !== 0) {- writer.uint32(8).int32(message.deploymentType);- }- if (message.approvalGroup !== 0) {- writer.uint32(16).int32(message.approvalGroup);- }- if (message.approvalStrategy !== 0) {- writer.uint32(24).int32(message.approvalStrategy);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): DeploymentApprovalStrategy {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDeploymentApprovalStrategy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.deploymentType = reader.int32() as any;- continue;- case 2:- if (tag !== 16) {- break;- }-- message.approvalGroup = reader.int32() as any;- continue;- case 3:- if (tag !== 24) {- break;- }-- message.approvalStrategy = reader.int32() as any;- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): DeploymentApprovalStrategy {- return {- deploymentType: isSet(object.deploymentType) ? deploymentTypeFromJSON(object.deploymentType) : 0,- approvalGroup: isSet(object.approvalGroup) ? approvalGroupFromJSON(object.approvalGroup) : 0,- approvalStrategy: isSet(object.approvalStrategy) ? approvalStrategyFromJSON(object.approvalStrategy) : 0,- };- },-- toJSON(message: DeploymentApprovalStrategy): unknown {- const obj: any = {};- if (message.deploymentType !== 0) {- obj.deploymentType = deploymentTypeToJSON(message.deploymentType);- }- if (message.approvalGroup !== 0) {- obj.approvalGroup = approvalGroupToJSON(message.approvalGroup);- }- if (message.approvalStrategy !== 0) {- obj.approvalStrategy = approvalStrategyToJSON(message.approvalStrategy);- }- return obj;- },-- create(base?: DeepPartial<DeploymentApprovalStrategy>): DeploymentApprovalStrategy {- return DeploymentApprovalStrategy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<DeploymentApprovalStrategy>): DeploymentApprovalStrategy {- const message = createBaseDeploymentApprovalStrategy();- message.deploymentType = object.deploymentType ?? 0;- message.approvalGroup = object.approvalGroup ?? 0;- message.approvalStrategy = object.approvalStrategy ?? 0;- return message;- },-};-function createBaseBackupPlanPolicy(): BackupPlanPolicy {return { schedule: 0, retentionDuration: undefined };}diff --git a/frontend/src/views/BannerUpgradeSubscription.vue b/frontend/src/views/BannerUpgradeSubscription.vueindex 7dcb06676c..770cafd778 100644--- a/frontend/src/views/BannerUpgradeSubscription.vue+++ b/frontend/src/views/BannerUpgradeSubscription.vue@@ -87,7 +87,6 @@ import {usePolicyV1Store,useSettingV1Store,defaultBackupSchedule,- defaultApprovalStrategy,useDBGroupStore,useDatabaseV1Store,useDatabaseSecretStore,@@ -194,21 +193,6 @@ watch(set.add("bb.feature.backup-policy");}}-- if (!set.has("bb.feature.approval-policy")) {- const approvalPolicy =- await policyV1Store.getOrFetchPolicyByParentAndType({- parentPath: environment.name,- policyType: PolicyType.DEPLOYMENT_APPROVAL,- });- if (- approvalPolicy?.deploymentApprovalPolicy?.defaultStrategy &&- approvalPolicy?.deploymentApprovalPolicy?.defaultStrategy !==- defaultApprovalStrategy- ) {- set.add("bb.feature.approval-policy");- }- }}// databasediff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex a0fa49545b..7fe613f6c6 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -20,9 +20,6 @@- [MaskingLevel](#bytebase-v1-MaskingLevel)- [State](#bytebase-v1-State)-- [v1/deployment.proto](#v1_deployment-proto)- - [DeploymentType](#bytebase-v1-DeploymentType)-- [v1/iam_policy.proto](#v1_iam_policy-proto)- [Binding](#bytebase-v1-Binding)- [IamPolicy](#bytebase-v1-IamPolicy)@@ -31,8 +28,6 @@- [BackupPlanPolicy](#bytebase-v1-BackupPlanPolicy)- [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest)- [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest)- - [DeploymentApprovalPolicy](#bytebase-v1-DeploymentApprovalPolicy)- - [DeploymentApprovalStrategy](#bytebase-v1-DeploymentApprovalStrategy)- [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy)- [GetPolicyRequest](#bytebase-v1-GetPolicyRequest)- [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest)@@ -51,8 +46,6 @@- [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy)- [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest)- - [ApprovalGroup](#bytebase-v1-ApprovalGroup)- - [ApprovalStrategy](#bytebase-v1-ApprovalStrategy)- [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule)- [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action)- [PolicyResourceType](#bytebase-v1-PolicyResourceType)@@ -870,38 +863,6 @@ When paginating, all other parameters provided to `ListDebugLog` must match the-<a name="v1_deployment-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## v1/deployment.proto------<a name="bytebase-v1-DeploymentType"></a>--### DeploymentType---| Name | Number | Description |-| ---- | ------ | ----------- |-| DEPLOYMENT_TYPE_UNSPECIFIED | 0 | |-| DATABASE_CREATE | 1 | |-| DATABASE_DDL | 2 | |-| DATABASE_DDL_GHOST | 3 | |-| DATABASE_DML | 4 | |-| DATABASE_RESTORE_PITR | 5 | |----------<a name="v1_iam_policy-proto"></a><p align="right"><a href="#top">Top</a></p>@@ -1006,39 +967,6 @@ When paginating, all other parameters provided to `ListDebugLog` must match the-<a name="bytebase-v1-DeploymentApprovalPolicy"></a>--### DeploymentApprovalPolicy----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| default_strategy | [ApprovalStrategy](#bytebase-v1-ApprovalStrategy) | | |-| deployment_approval_strategies | [DeploymentApprovalStrategy](#bytebase-v1-DeploymentApprovalStrategy) | repeated | |-------<a name="bytebase-v1-DeploymentApprovalStrategy"></a>--### DeploymentApprovalStrategy----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| deployment_type | [DeploymentType](#bytebase-v1-DeploymentType) | | |-| approval_group | [ApprovalGroup](#bytebase-v1-ApprovalGroup) | | |-| approval_strategy | [ApprovalStrategy](#bytebase-v1-ApprovalStrategy) | | |------<a name="bytebase-v1-DisableCopyDataPolicy"></a>### DisableCopyDataPolicy@@ -1221,7 +1149,6 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| inherit_from_parent | [bool](#bool) | | || type | [PolicyType](#bytebase-v1-PolicyType) | | || workspace_iam_policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |-| deployment_approval_policy | [DeploymentApprovalPolicy](#bytebase-v1-DeploymentApprovalPolicy) | | || rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | || backup_plan_policy | [BackupPlanPolicy](#bytebase-v1-BackupPlanPolicy) | | || masking_policy | [MaskingPolicy](#bytebase-v1-MaskingPolicy) | | |@@ -1344,32 +1271,6 @@ The policy's `name` field is used to identify the instance to update. Format-<a name="bytebase-v1-ApprovalGroup"></a>--### ApprovalGroup---| Name | Number | Description |-| ---- | ------ | ----------- |-| ASSIGNEE_GROUP_UNSPECIFIED | 0 | |-| APPROVAL_GROUP_DBA | 1 | |-| APPROVAL_GROUP_PROJECT_OWNER | 2 | |----<a name="bytebase-v1-ApprovalStrategy"></a>--### ApprovalStrategy---| Name | Number | Description |-| ---- | ------ | ----------- |-| APPROVAL_STRATEGY_UNSPECIFIED | 0 | |-| AUTOMATIC | 1 | |-| MANUAL | 2 | |---<a name="bytebase-v1-BackupPlanSchedule"></a>### BackupPlanSchedule@@ -1422,7 +1323,6 @@ The policy's `name` field is used to identify the instance to update. Format| ---- | ------ | ----------- || POLICY_TYPE_UNSPECIFIED | 0 | || WORKSPACE_IAM | 1 | |-| DEPLOYMENT_APPROVAL | 2 | || ROLLOUT_POLICY | 11 | || BACKUP_PLAN | 3 | || SQL_REVIEW | 4 | |diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex b0c4742bf3..eb02111917 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -30,7 +30,6 @@ type PolicyType int32const (PolicyType_POLICY_TYPE_UNSPECIFIED PolicyType = 0PolicyType_WORKSPACE_IAM PolicyType = 1- PolicyType_DEPLOYMENT_APPROVAL PolicyType = 2PolicyType_ROLLOUT_POLICY PolicyType = 11PolicyType_BACKUP_PLAN PolicyType = 3PolicyType_SQL_REVIEW PolicyType = 4@@ -47,7 +46,6 @@ var (PolicyType_name = map[int32]string{0: "POLICY_TYPE_UNSPECIFIED",1: "WORKSPACE_IAM",- 2: "DEPLOYMENT_APPROVAL",11: "ROLLOUT_POLICY",3: "BACKUP_PLAN",4: "SQL_REVIEW",@@ -61,7 +59,6 @@ var (PolicyType_value = map[string]int32{"POLICY_TYPE_UNSPECIFIED": 0,"WORKSPACE_IAM": 1,- "DEPLOYMENT_APPROVAL": 2,"ROLLOUT_POLICY": 11,"BACKUP_PLAN": 3,"SQL_REVIEW": 4,@@ -159,104 +156,6 @@ func (PolicyResourceType) EnumDescriptor() ([]byte, []int) {return file_v1_org_policy_service_proto_rawDescGZIP(), []int{1}}-type ApprovalGroup int32--const (- ApprovalGroup_ASSIGNEE_GROUP_UNSPECIFIED ApprovalGroup = 0- ApprovalGroup_APPROVAL_GROUP_DBA ApprovalGroup = 1- ApprovalGroup_APPROVAL_GROUP_PROJECT_OWNER ApprovalGroup = 2-)--// Enum value maps for ApprovalGroup.-var (- ApprovalGroup_name = map[int32]string{- 0: "ASSIGNEE_GROUP_UNSPECIFIED",- 1: "APPROVAL_GROUP_DBA",- 2: "APPROVAL_GROUP_PROJECT_OWNER",- }- ApprovalGroup_value = map[string]int32{- "ASSIGNEE_GROUP_UNSPECIFIED": 0,- "APPROVAL_GROUP_DBA": 1,- "APPROVAL_GROUP_PROJECT_OWNER": 2,- }-)--func (x ApprovalGroup) Enum() *ApprovalGroup {- p := new(ApprovalGroup)- *p = x- return p-}--func (x ApprovalGroup) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (ApprovalGroup) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[2].Descriptor()-}--func (ApprovalGroup) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[2]-}--func (x ApprovalGroup) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use ApprovalGroup.Descriptor instead.-func (ApprovalGroup) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{2}-}--type ApprovalStrategy int32--const (- ApprovalStrategy_APPROVAL_STRATEGY_UNSPECIFIED ApprovalStrategy = 0- ApprovalStrategy_AUTOMATIC ApprovalStrategy = 1- ApprovalStrategy_MANUAL ApprovalStrategy = 2-)--// Enum value maps for ApprovalStrategy.-var (- ApprovalStrategy_name = map[int32]string{- 0: "APPROVAL_STRATEGY_UNSPECIFIED",- 1: "AUTOMATIC",- 2: "MANUAL",- }- ApprovalStrategy_value = map[string]int32{- "APPROVAL_STRATEGY_UNSPECIFIED": 0,- "AUTOMATIC": 1,- "MANUAL": 2,- }-)--func (x ApprovalStrategy) Enum() *ApprovalStrategy {- p := new(ApprovalStrategy)- *p = x- return p-}--func (x ApprovalStrategy) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (ApprovalStrategy) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[3].Descriptor()-}--func (ApprovalStrategy) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[3]-}--func (x ApprovalStrategy) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use ApprovalStrategy.Descriptor instead.-func (ApprovalStrategy) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{3}-}-type BackupPlanSchedule int32const (@@ -293,11 +192,11 @@ func (x BackupPlanSchedule) String() string {}func (BackupPlanSchedule) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[4].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[2].Descriptor()}func (BackupPlanSchedule) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[4]+ return &file_v1_org_policy_service_proto_enumTypes[2]}func (x BackupPlanSchedule) Number() protoreflect.EnumNumber {@@ -306,7 +205,7 @@ func (x BackupPlanSchedule) Number() protoreflect.EnumNumber {// Deprecated: Use BackupPlanSchedule.Descriptor instead.func (BackupPlanSchedule) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{4}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{2}}type SQLReviewRuleLevel int32@@ -345,11 +244,11 @@ func (x SQLReviewRuleLevel) String() string {}func (SQLReviewRuleLevel) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[5].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[3].Descriptor()}func (SQLReviewRuleLevel) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[5]+ return &file_v1_org_policy_service_proto_enumTypes[3]}func (x SQLReviewRuleLevel) Number() protoreflect.EnumNumber {@@ -358,7 +257,7 @@ func (x SQLReviewRuleLevel) Number() protoreflect.EnumNumber {// Deprecated: Use SQLReviewRuleLevel.Descriptor instead.func (SQLReviewRuleLevel) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{5}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{3}}type MaskingExceptionPolicy_MaskingException_Action int32@@ -394,11 +293,11 @@ func (x MaskingExceptionPolicy_MaskingException_Action) String() string {}func (MaskingExceptionPolicy_MaskingException_Action) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[6].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[4].Descriptor()}func (MaskingExceptionPolicy_MaskingException_Action) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[6]+ return &file_v1_org_policy_service_proto_enumTypes[4]}func (x MaskingExceptionPolicy_MaskingException_Action) Number() protoreflect.EnumNumber {@@ -407,7 +306,7 @@ func (x MaskingExceptionPolicy_MaskingException_Action) Number() protoreflect.En// Deprecated: Use MaskingExceptionPolicy_MaskingException_Action.Descriptor instead.func (MaskingExceptionPolicy_MaskingException_Action) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17, 0, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15, 0, 0}}type CreatePolicyRequest struct {@@ -823,7 +722,6 @@ type Policy struct {// Types that are assignable to Policy://// *Policy_WorkspaceIamPolicy- // *Policy_DeploymentApprovalPolicy// *Policy_RolloutPolicy// *Policy_BackupPlanPolicy// *Policy_MaskingPolicy@@ -915,13 +813,6 @@ func (x *Policy) GetWorkspaceIamPolicy() *IamPolicy {return nil}-func (x *Policy) GetDeploymentApprovalPolicy() *DeploymentApprovalPolicy {- if x, ok := x.GetPolicy().(*Policy_DeploymentApprovalPolicy); ok {- return x.DeploymentApprovalPolicy- }- return nil-}-func (x *Policy) GetRolloutPolicy() *RolloutPolicy {if x, ok := x.GetPolicy().(*Policy_RolloutPolicy); ok {return x.RolloutPolicy@@ -1014,10 +905,6 @@ type Policy_WorkspaceIamPolicy struct {WorkspaceIamPolicy *IamPolicy `protobuf:"bytes,6,opt,name=workspace_iam_policy,json=workspaceIamPolicy,proto3,oneof"`}-type Policy_DeploymentApprovalPolicy struct {- DeploymentApprovalPolicy *DeploymentApprovalPolicy `protobuf:"bytes,7,opt,name=deployment_approval_policy,json=deploymentApprovalPolicy,proto3,oneof"`-}-type Policy_RolloutPolicy struct {RolloutPolicy *RolloutPolicy `protobuf:"bytes,19,opt,name=rollout_policy,json=rolloutPolicy,proto3,oneof"`}@@ -1056,8 +943,6 @@ type Policy_RestrictIssueCreationForSqlReviewPolicy struct {func (*Policy_WorkspaceIamPolicy) isPolicy_Policy() {}-func (*Policy_DeploymentApprovalPolicy) isPolicy_Policy() {}-func (*Policy_RolloutPolicy) isPolicy_Policy() {}func (*Policy_BackupPlanPolicy) isPolicy_Policy() {}@@ -1076,61 +961,6 @@ func (*Policy_MaskingExceptionPolicy) isPolicy_Policy() {}func (*Policy_RestrictIssueCreationForSqlReviewPolicy) isPolicy_Policy() {}-type DeploymentApprovalPolicy struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- DefaultStrategy ApprovalStrategy `protobuf:"varint,1,opt,name=default_strategy,json=defaultStrategy,proto3,enum=bytebase.v1.ApprovalStrategy" json:"default_strategy,omitempty"`- DeploymentApprovalStrategies []*DeploymentApprovalStrategy `protobuf:"bytes,2,rep,name=deployment_approval_strategies,json=deploymentApprovalStrategies,proto3" json:"deployment_approval_strategies,omitempty"`-}--func (x *DeploymentApprovalPolicy) Reset() {- *x = DeploymentApprovalPolicy{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[7]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *DeploymentApprovalPolicy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*DeploymentApprovalPolicy) ProtoMessage() {}--func (x *DeploymentApprovalPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[7]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use DeploymentApprovalPolicy.ProtoReflect.Descriptor instead.-func (*DeploymentApprovalPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{7}-}--func (x *DeploymentApprovalPolicy) GetDefaultStrategy() ApprovalStrategy {- if x != nil {- return x.DefaultStrategy- }- return ApprovalStrategy_APPROVAL_STRATEGY_UNSPECIFIED-}--func (x *DeploymentApprovalPolicy) GetDeploymentApprovalStrategies() []*DeploymentApprovalStrategy {- if x != nil {- return x.DeploymentApprovalStrategies- }- return nil-}-type RolloutPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1147,7 +977,7 @@ type RolloutPolicy struct {func (x *RolloutPolicy) Reset() {*x = RolloutPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[8]+ mi := &file_v1_org_policy_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1160,7 +990,7 @@ func (x *RolloutPolicy) String() string {func (*RolloutPolicy) ProtoMessage() {}func (x *RolloutPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[8]+ mi := &file_v1_org_policy_service_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1173,7 +1003,7 @@ func (x *RolloutPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use RolloutPolicy.ProtoReflect.Descriptor instead.func (*RolloutPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{8}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{7}}func (x *RolloutPolicy) GetAutomatic() bool {@@ -1204,69 +1034,6 @@ func (x *RolloutPolicy) GetIssueRoles() []string {return nil}-type DeploymentApprovalStrategy struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- DeploymentType DeploymentType `protobuf:"varint,1,opt,name=deployment_type,json=deploymentType,proto3,enum=bytebase.v1.DeploymentType" json:"deployment_type,omitempty"`- ApprovalGroup ApprovalGroup `protobuf:"varint,2,opt,name=approval_group,json=approvalGroup,proto3,enum=bytebase.v1.ApprovalGroup" json:"approval_group,omitempty"`- ApprovalStrategy ApprovalStrategy `protobuf:"varint,3,opt,name=approval_strategy,json=approvalStrategy,proto3,enum=bytebase.v1.ApprovalStrategy" json:"approval_strategy,omitempty"`-}--func (x *DeploymentApprovalStrategy) Reset() {- *x = DeploymentApprovalStrategy{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[9]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *DeploymentApprovalStrategy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*DeploymentApprovalStrategy) ProtoMessage() {}--func (x *DeploymentApprovalStrategy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[9]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use DeploymentApprovalStrategy.ProtoReflect.Descriptor instead.-func (*DeploymentApprovalStrategy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{9}-}--func (x *DeploymentApprovalStrategy) GetDeploymentType() DeploymentType {- if x != nil {- return x.DeploymentType- }- return DeploymentType_DEPLOYMENT_TYPE_UNSPECIFIED-}--func (x *DeploymentApprovalStrategy) GetApprovalGroup() ApprovalGroup {- if x != nil {- return x.ApprovalGroup- }- return ApprovalGroup_ASSIGNEE_GROUP_UNSPECIFIED-}--func (x *DeploymentApprovalStrategy) GetApprovalStrategy() ApprovalStrategy {- if x != nil {- return x.ApprovalStrategy- }- return ApprovalStrategy_APPROVAL_STRATEGY_UNSPECIFIED-}-type BackupPlanPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1279,7 +1046,7 @@ type BackupPlanPolicy struct {func (x *BackupPlanPolicy) Reset() {*x = BackupPlanPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1292,7 +1059,7 @@ func (x *BackupPlanPolicy) String() string {func (*BackupPlanPolicy) ProtoMessage() {}func (x *BackupPlanPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1305,7 +1072,7 @@ func (x *BackupPlanPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use BackupPlanPolicy.ProtoReflect.Descriptor instead.func (*BackupPlanPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{8}}func (x *BackupPlanPolicy) GetSchedule() BackupPlanSchedule {@@ -1333,7 +1100,7 @@ type SlowQueryPolicy struct {func (x *SlowQueryPolicy) Reset() {*x = SlowQueryPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1346,7 +1113,7 @@ func (x *SlowQueryPolicy) String() string {func (*SlowQueryPolicy) ProtoMessage() {}func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1359,7 +1126,7 @@ func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use SlowQueryPolicy.ProtoReflect.Descriptor instead.func (*SlowQueryPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{9}}func (x *SlowQueryPolicy) GetActive() bool {@@ -1380,7 +1147,7 @@ type DisableCopyDataPolicy struct {func (x *DisableCopyDataPolicy) Reset() {*x = DisableCopyDataPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1393,7 +1160,7 @@ func (x *DisableCopyDataPolicy) String() string {func (*DisableCopyDataPolicy) ProtoMessage() {}func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[10]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1406,7 +1173,7 @@ func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DisableCopyDataPolicy.ProtoReflect.Descriptor instead.func (*DisableCopyDataPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}}func (x *DisableCopyDataPolicy) GetActive() bool {@@ -1427,7 +1194,7 @@ type MaskingPolicy struct {func (x *MaskingPolicy) Reset() {*x = MaskingPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1440,7 +1207,7 @@ func (x *MaskingPolicy) String() string {func (*MaskingPolicy) ProtoMessage() {}func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1453,7 +1220,7 @@ func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingPolicy.ProtoReflect.Descriptor instead.func (*MaskingPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}}func (x *MaskingPolicy) GetMaskData() []*MaskData {@@ -1479,7 +1246,7 @@ type MaskData struct {func (x *MaskData) Reset() {*x = MaskData{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1492,7 +1259,7 @@ func (x *MaskData) String() string {func (*MaskData) ProtoMessage() {}func (x *MaskData) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1505,7 +1272,7 @@ func (x *MaskData) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskData.ProtoReflect.Descriptor instead.func (*MaskData) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}}func (x *MaskData) GetSchema() string {@@ -1562,7 +1329,7 @@ type SQLReviewPolicy struct {func (x *SQLReviewPolicy) Reset() {*x = SQLReviewPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1575,7 +1342,7 @@ func (x *SQLReviewPolicy) String() string {func (*SQLReviewPolicy) ProtoMessage() {}func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1588,7 +1355,7 @@ func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewPolicy.ProtoReflect.Descriptor instead.func (*SQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}}func (x *SQLReviewPolicy) GetName() string {@@ -1620,7 +1387,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1633,7 +1400,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1646,7 +1413,7 @@ func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewRule.ProtoReflect.Descriptor instead.func (*SQLReviewRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}}func (x *SQLReviewRule) GetType() string {@@ -1696,7 +1463,7 @@ type MaskingExceptionPolicy struct {func (x *MaskingExceptionPolicy) Reset() {*x = MaskingExceptionPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1709,7 +1476,7 @@ func (x *MaskingExceptionPolicy) String() string {func (*MaskingExceptionPolicy) ProtoMessage() {}func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1722,7 +1489,7 @@ func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingExceptionPolicy.ProtoReflect.Descriptor instead.func (*MaskingExceptionPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}}func (x *MaskingExceptionPolicy) GetMaskingExceptions() []*MaskingExceptionPolicy_MaskingException {@@ -1743,7 +1510,7 @@ type MaskingRulePolicy struct {func (x *MaskingRulePolicy) Reset() {*x = MaskingRulePolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1756,7 +1523,7 @@ func (x *MaskingRulePolicy) String() string {func (*MaskingRulePolicy) ProtoMessage() {}func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1769,7 +1536,7 @@ func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingRulePolicy.ProtoReflect.Descriptor instead.func (*MaskingRulePolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{18}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}}func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {@@ -1790,7 +1557,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1803,7 +1570,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1816,7 +1583,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Me// Deprecated: Use RestrictIssueCreationForSQLReviewPolicy.ProtoReflect.Descriptor instead.func (*RestrictIssueCreationForSQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{19}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -1846,7 +1613,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[20]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1859,7 +1626,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[20]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1872,7 +1639,7 @@ func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Me// Deprecated: Use MaskingExceptionPolicy_MaskingException.ProtoReflect.Descriptor instead.func (*MaskingExceptionPolicy_MaskingException) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15, 0}}func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPolicy_MaskingException_Action {@@ -1917,7 +1684,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[21]+ mi := &file_v1_org_policy_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1930,7 +1697,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[21]+ mi := &file_v1_org_policy_service_proto_msgTypes[19]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1943,7 +1710,7 @@ func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingRulePolicy_MaskingRule.ProtoReflect.Descriptor instead.func (*MaskingRulePolicy_MaskingRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{18, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16, 0}}func (x *MaskingRulePolicy_MaskingRule) GetId() string {@@ -1986,175 +1753,139 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65,0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f,- 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x76, 0x31, 0x2f, 0x64,- 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,- 0x13, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,- 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03,- 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79,- 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x30, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,- 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,- 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12,- 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73,- 0x73, 0x69, 0x6e, 0x67, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x22, 0xe0, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79,+ 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x76, 0x31, 0x2f, 0x69,+ 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,+ 0x91, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,+ 0x79, 0x70, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79,- 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,- 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,- 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,- 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f,- 0x74, 0x79, 0x70, 0x65, 0x22, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a,- 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,- 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xfc, 0x09, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x69,- 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69,- 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79,- 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6b,- 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00,- 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x61, 0x6d, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x65, 0x0a, 0x1a, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,- 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,- 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48,- 0x00, 0x52, 0x18, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70,- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x0e, 0x72,- 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x13, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48,- 0x00, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x4d, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x5f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x10, 0x62,- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,- 0x43, 0x0a, 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69,- 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,- 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,- 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x6c, 0x6f,- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x5d, 0x0a, 0x18,- 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x64, 0x61, 0x74,- 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73,- 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70,- 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x50, 0x0a, 0x13, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75,- 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x5f, 0x0a,- 0x18, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,- 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45,- 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x96,- 0x01, 0x0a, 0x2d, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x69, 0x73, 0x73, 0x75,- 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x73,- 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73,- 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c,- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x27,- 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72,- 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63,- 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79,- 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c,- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0c,- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x55, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x04,- 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xd3, 0x01, 0x0a, 0x18, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,- 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x48, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72,- 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,- 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x61,- 0x75, 0x6c, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x6d, 0x0a, 0x1e, 0x64,- 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76,- 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20,- 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72,- 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x1c, 0x64, 0x65,- 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,- 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x69, 0x65, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x0d, 0x52,- 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1c, 0x0a, 0x09,- 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f,- 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20,- 0x03, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x6f,- 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72,- 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75,- 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69,- 0x73, 0x73, 0x75, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xf1, 0x01, 0x0a, 0x1a, 0x44, 0x65,- 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,- 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x65, 0x70, 0x6c,- 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x0e, 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, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e,- 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41,- 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f,- 0x75, 0x70, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75,- 0x70, 0x12, 0x4a, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74,- 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f,- 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x10, 0x61, 0x70, 0x70,- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x99, 0x01,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x0a,+ 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c,+ 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22,+ 0x2e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,+ 0x2b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x01, 0x0a,+ 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x48,+ 0x00, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01,+ 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a,+ 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c,+ 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42,+ 0x0e, 0x0a, 0x0c, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22,+ 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,+ 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,+ 0x22, 0x9b, 0x09, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,+ 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69,+ 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x46, 0x72, 0x6f, 0x6d,+ 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,+ 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,+ 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x12, 0x77, 0x6f, 0x72,+ 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x43, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4d, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x70,+ 0x6c, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48,+ 0x00, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f,+ 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65,+ 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c,+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,+ 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x5d, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79,+ 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,+ 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x50, 0x0a, 0x13, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x11,+ 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x5f, 0x0a, 0x18, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63,+ 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x12, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,+ 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x16, 0x6d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x96, 0x01, 0x0a, 0x2d, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f,+ 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66,+ 0x6f, 0x72, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,+ 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f,+ 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x48, 0x00, 0x52, 0x27, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75,+ 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71, 0x6c, 0x52,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65,+ 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e,+ 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0,+ 0x41, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x26, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64,+ 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0x9c,+ 0x01, 0x0a, 0x0d, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x12, 0x27,+ 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,+ 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b,+ 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,+ 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x99, 0x01,0x0a, 0x10, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69,0x63, 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01,0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,@@ -2254,45 +1985,32 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f,0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x2a, 0x99, 0x02, 0x0a,+ 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x2a, 0x86, 0x02, 0x0a,0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50,0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x57, 0x4f, 0x52, 0x4b,- 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x44,- 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56,- 0x41, 0x4c, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f,- 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x41, 0x43, 0x4b,- 0x55, 0x50, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x51, 0x4c,- 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x53,- 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f, 0x51,- 0x55, 0x45, 0x52, 0x59, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c,- 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a,- 0x0c, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12,- 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50,- 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49,- 0x43, 0x54, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f,- 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57,- 0x10, 0x0c, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d,- 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a,- 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b,- 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0b, 0x0a,- 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e,- 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41,- 0x42, 0x41, 0x53, 0x45, 0x10, 0x05, 0x2a, 0x69, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,- 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x53, 0x53, 0x49, 0x47,- 0x4e, 0x45, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x50, 0x50, 0x52, 0x4f,- 0x56, 0x41, 0x4c, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x44, 0x42, 0x41, 0x10, 0x01, 0x12,- 0x20, 0x0a, 0x1c, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x47, 0x52, 0x4f, 0x55,- 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10,- 0x02, 0x2a, 0x50, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72,- 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41,- 0x4c, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f,- 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41,- 0x4c, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x12, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61,+ 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x52,+ 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 0x12,+ 0x0f, 0x0a, 0x0b, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x03,+ 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x04,+ 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0e, 0x0a,+ 0x0a, 0x53, 0x4c, 0x4f, 0x57, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x07, 0x12, 0x15, 0x0a,+ 0x11, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59, 0x5f, 0x44, 0x41,+ 0x54, 0x41, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f,+ 0x52, 0x55, 0x4c, 0x45, 0x10, 0x09, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e,+ 0x47, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x2a, 0x0a,+ 0x26, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,+ 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x53, 0x51, 0x4c,+ 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x0c, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22,+ 0x04, 0x08, 0x06, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52,+ 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f,+ 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56,+ 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52,+ 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41,+ 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,+ 0x45, 0x10, 0x05, 0x2a, 0x50, 0x0a, 0x12, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61,0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x43, 0x48,0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x09,@@ -2414,101 +2132,90 @@ func file_v1_org_policy_service_proto_rawDescGZIP() []byte {return file_v1_org_policy_service_proto_rawDescData}-var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 7)-var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)+var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)+var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)var file_v1_org_policy_service_proto_goTypes = []interface{}{- (PolicyType)(0), // 0: bytebase.v1.PolicyType- (PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType- (ApprovalGroup)(0), // 2: bytebase.v1.ApprovalGroup- (ApprovalStrategy)(0), // 3: bytebase.v1.ApprovalStrategy- (BackupPlanSchedule)(0), // 4: bytebase.v1.BackupPlanSchedule- (SQLReviewRuleLevel)(0), // 5: bytebase.v1.SQLReviewRuleLevel- (MaskingExceptionPolicy_MaskingException_Action)(0), // 6: bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- (*CreatePolicyRequest)(nil), // 7: bytebase.v1.CreatePolicyRequest- (*UpdatePolicyRequest)(nil), // 8: bytebase.v1.UpdatePolicyRequest- (*DeletePolicyRequest)(nil), // 9: bytebase.v1.DeletePolicyRequest- (*GetPolicyRequest)(nil), // 10: bytebase.v1.GetPolicyRequest- (*ListPoliciesRequest)(nil), // 11: bytebase.v1.ListPoliciesRequest- (*ListPoliciesResponse)(nil), // 12: bytebase.v1.ListPoliciesResponse- (*Policy)(nil), // 13: bytebase.v1.Policy- (*DeploymentApprovalPolicy)(nil), // 14: bytebase.v1.DeploymentApprovalPolicy- (*RolloutPolicy)(nil), // 15: bytebase.v1.RolloutPolicy- (*DeploymentApprovalStrategy)(nil), // 16: bytebase.v1.DeploymentApprovalStrategy- (*BackupPlanPolicy)(nil), // 17: bytebase.v1.BackupPlanPolicy- (*SlowQueryPolicy)(nil), // 18: bytebase.v1.SlowQueryPolicy- (*DisableCopyDataPolicy)(nil), // 19: bytebase.v1.DisableCopyDataPolicy- (*MaskingPolicy)(nil), // 20: bytebase.v1.MaskingPolicy- (*MaskData)(nil), // 21: bytebase.v1.MaskData- (*SQLReviewPolicy)(nil), // 22: bytebase.v1.SQLReviewPolicy- (*SQLReviewRule)(nil), // 23: bytebase.v1.SQLReviewRule- (*MaskingExceptionPolicy)(nil), // 24: bytebase.v1.MaskingExceptionPolicy- (*MaskingRulePolicy)(nil), // 25: bytebase.v1.MaskingRulePolicy- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 26: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 28: bytebase.v1.MaskingRulePolicy.MaskingRule- (*fieldmaskpb.FieldMask)(nil), // 29: google.protobuf.FieldMask- (*IamPolicy)(nil), // 30: bytebase.v1.IamPolicy- (DeploymentType)(0), // 31: bytebase.v1.DeploymentType- (*durationpb.Duration)(nil), // 32: google.protobuf.Duration- (MaskingLevel)(0), // 33: bytebase.v1.MaskingLevel- (Engine)(0), // 34: bytebase.v1.Engine- (*expr.Expr)(nil), // 35: google.type.Expr- (*emptypb.Empty)(nil), // 36: google.protobuf.Empty+ (PolicyType)(0), // 0: bytebase.v1.PolicyType+ (PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType+ (BackupPlanSchedule)(0), // 2: bytebase.v1.BackupPlanSchedule+ (SQLReviewRuleLevel)(0), // 3: bytebase.v1.SQLReviewRuleLevel+ (MaskingExceptionPolicy_MaskingException_Action)(0), // 4: bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ (*CreatePolicyRequest)(nil), // 5: bytebase.v1.CreatePolicyRequest+ (*UpdatePolicyRequest)(nil), // 6: bytebase.v1.UpdatePolicyRequest+ (*DeletePolicyRequest)(nil), // 7: bytebase.v1.DeletePolicyRequest+ (*GetPolicyRequest)(nil), // 8: bytebase.v1.GetPolicyRequest+ (*ListPoliciesRequest)(nil), // 9: bytebase.v1.ListPoliciesRequest+ (*ListPoliciesResponse)(nil), // 10: bytebase.v1.ListPoliciesResponse+ (*Policy)(nil), // 11: bytebase.v1.Policy+ (*RolloutPolicy)(nil), // 12: bytebase.v1.RolloutPolicy+ (*BackupPlanPolicy)(nil), // 13: bytebase.v1.BackupPlanPolicy+ (*SlowQueryPolicy)(nil), // 14: bytebase.v1.SlowQueryPolicy+ (*DisableCopyDataPolicy)(nil), // 15: bytebase.v1.DisableCopyDataPolicy+ (*MaskingPolicy)(nil), // 16: bytebase.v1.MaskingPolicy+ (*MaskData)(nil), // 17: bytebase.v1.MaskData+ (*SQLReviewPolicy)(nil), // 18: bytebase.v1.SQLReviewPolicy+ (*SQLReviewRule)(nil), // 19: bytebase.v1.SQLReviewRule+ (*MaskingExceptionPolicy)(nil), // 20: bytebase.v1.MaskingExceptionPolicy+ (*MaskingRulePolicy)(nil), // 21: bytebase.v1.MaskingRulePolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 22: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 23: bytebase.v1.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 24: bytebase.v1.MaskingRulePolicy.MaskingRule+ (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask+ (*IamPolicy)(nil), // 26: bytebase.v1.IamPolicy+ (*durationpb.Duration)(nil), // 27: google.protobuf.Duration+ (MaskingLevel)(0), // 28: bytebase.v1.MaskingLevel+ (Engine)(0), // 29: bytebase.v1.Engine+ (*expr.Expr)(nil), // 30: google.type.Expr+ (*emptypb.Empty)(nil), // 31: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{- 13, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy+ 11, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy0, // 1: bytebase.v1.CreatePolicyRequest.type:type_name -> bytebase.v1.PolicyType- 13, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy- 29, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask+ 11, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy+ 25, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 4: bytebase.v1.ListPoliciesRequest.policy_type:type_name -> bytebase.v1.PolicyType- 13, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy+ 11, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy0, // 6: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType- 30, // 7: bytebase.v1.Policy.workspace_iam_policy:type_name -> bytebase.v1.IamPolicy- 14, // 8: bytebase.v1.Policy.deployment_approval_policy:type_name -> bytebase.v1.DeploymentApprovalPolicy- 15, // 9: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy- 17, // 10: bytebase.v1.Policy.backup_plan_policy:type_name -> bytebase.v1.BackupPlanPolicy- 20, // 11: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy- 22, // 12: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy- 18, // 13: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy- 19, // 14: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy- 25, // 15: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy- 24, // 16: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy- 26, // 17: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- 1, // 18: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType- 3, // 19: bytebase.v1.DeploymentApprovalPolicy.default_strategy:type_name -> bytebase.v1.ApprovalStrategy- 16, // 20: bytebase.v1.DeploymentApprovalPolicy.deployment_approval_strategies:type_name -> bytebase.v1.DeploymentApprovalStrategy- 31, // 21: bytebase.v1.DeploymentApprovalStrategy.deployment_type:type_name -> bytebase.v1.DeploymentType- 2, // 22: bytebase.v1.DeploymentApprovalStrategy.approval_group:type_name -> bytebase.v1.ApprovalGroup- 3, // 23: bytebase.v1.DeploymentApprovalStrategy.approval_strategy:type_name -> bytebase.v1.ApprovalStrategy- 4, // 24: bytebase.v1.BackupPlanPolicy.schedule:type_name -> bytebase.v1.BackupPlanSchedule- 32, // 25: bytebase.v1.BackupPlanPolicy.retention_duration:type_name -> google.protobuf.Duration- 21, // 26: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData- 33, // 27: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel- 23, // 28: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule- 5, // 29: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel- 34, // 30: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine- 27, // 31: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException- 28, // 32: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule- 6, // 33: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- 33, // 34: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel- 35, // 35: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 35, // 36: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 33, // 37: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel- 10, // 38: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 11, // 39: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 7, // 40: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 8, // 41: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 9, // 42: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 13, // 43: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 12, // 44: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 13, // 45: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 13, // 46: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 36, // 47: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty- 43, // [43:48] is the sub-list for method output_type- 38, // [38:43] is the sub-list for method input_type- 38, // [38:38] is the sub-list for extension type_name- 38, // [38:38] is the sub-list for extension extendee- 0, // [0:38] is the sub-list for field type_name+ 26, // 7: bytebase.v1.Policy.workspace_iam_policy:type_name -> bytebase.v1.IamPolicy+ 12, // 8: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy+ 13, // 9: bytebase.v1.Policy.backup_plan_policy:type_name -> bytebase.v1.BackupPlanPolicy+ 16, // 10: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy+ 18, // 11: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy+ 14, // 12: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy+ 15, // 13: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy+ 21, // 14: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy+ 20, // 15: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy+ 22, // 16: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ 1, // 17: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType+ 2, // 18: bytebase.v1.BackupPlanPolicy.schedule:type_name -> bytebase.v1.BackupPlanSchedule+ 27, // 19: bytebase.v1.BackupPlanPolicy.retention_duration:type_name -> google.protobuf.Duration+ 17, // 20: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData+ 28, // 21: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel+ 19, // 22: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule+ 3, // 23: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel+ 29, // 24: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine+ 23, // 25: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException+ 24, // 26: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule+ 4, // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ 28, // 28: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel+ 30, // 29: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 30, // 30: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 28, // 31: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel+ 8, // 32: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 9, // 33: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 5, // 34: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 6, // 35: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 7, // 36: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 11, // 37: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 10, // 38: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 11, // 39: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 11, // 40: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 31, // 41: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 37, // [37:42] is the sub-list for method output_type+ 32, // [32:37] is the sub-list for method input_type+ 32, // [32:32] is the sub-list for extension type_name+ 32, // [32:32] is the sub-list for extension extendee+ 0, // [0:32] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }@@ -2517,7 +2224,6 @@ func file_v1_org_policy_service_proto_init() {return}file_v1_common_proto_init()- file_v1_deployment_proto_init()file_v1_iam_policy_proto_init()if !protoimpl.UnsafeEnabled {file_v1_org_policy_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {@@ -2605,18 +2311,6 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DeploymentApprovalPolicy); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_org_policy_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*RolloutPolicy); i {case 0:return &v.state@@ -2628,19 +2322,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DeploymentApprovalStrategy); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_org_policy_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BackupPlanPolicy); i {case 0:return &v.state@@ -2652,7 +2334,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SlowQueryPolicy); i {case 0:return &v.state@@ -2664,7 +2346,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DisableCopyDataPolicy); i {case 0:return &v.state@@ -2676,7 +2358,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingPolicy); i {case 0:return &v.state@@ -2688,7 +2370,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskData); i {case 0:return &v.state@@ -2700,7 +2382,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SQLReviewPolicy); i {case 0:return &v.state@@ -2712,7 +2394,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SQLReviewRule); i {case 0:return &v.state@@ -2724,7 +2406,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingExceptionPolicy); i {case 0:return &v.state@@ -2736,7 +2418,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingRulePolicy); i {case 0:return &v.state@@ -2748,7 +2430,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*RestrictIssueCreationForSQLReviewPolicy); i {case 0:return &v.state@@ -2760,7 +2442,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingExceptionPolicy_MaskingException); i {case 0:return &v.state@@ -2772,7 +2454,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {+ file_v1_org_policy_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*MaskingRulePolicy_MaskingRule); i {case 0:return &v.state@@ -2788,7 +2470,6 @@ func file_v1_org_policy_service_proto_init() {file_v1_org_policy_service_proto_msgTypes[4].OneofWrappers = []interface{}{}file_v1_org_policy_service_proto_msgTypes[6].OneofWrappers = []interface{}{(*Policy_WorkspaceIamPolicy)(nil),- (*Policy_DeploymentApprovalPolicy)(nil),(*Policy_RolloutPolicy)(nil),(*Policy_BackupPlanPolicy)(nil),(*Policy_MaskingPolicy)(nil),@@ -2804,8 +2485,8 @@ func file_v1_org_policy_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_org_policy_service_proto_rawDesc,- NumEnums: 7,- NumMessages: 22,+ NumEnums: 5,+ NumMessages: 20,NumExtensions: 0,NumServices: 1,},diff --git a/proto/v1/deployment.proto b/proto/v1/deployment.protodeleted file mode 100644index 69e2dada6a..0000000000--- a/proto/v1/deployment.proto+++ /dev/null@@ -1,14 +0,0 @@-syntax = "proto3";--package bytebase.v1;--option go_package = "generated-go/v1";--enum DeploymentType {- DEPLOYMENT_TYPE_UNSPECIFIED = 0;- DATABASE_CREATE = 1;- DATABASE_DDL = 2;- DATABASE_DDL_GHOST = 3;- DATABASE_DML = 4;- DATABASE_RESTORE_PITR = 5;-}diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex c9e6fe25b7..8ede6f0dfe 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -10,7 +10,6 @@ import "google/protobuf/empty.proto";import "google/protobuf/field_mask.proto";import "google/type/expr.proto";import "v1/common.proto";-import "v1/deployment.proto";import "v1/iam_policy.proto";option go_package = "generated-go/v1";@@ -186,7 +185,7 @@ message ListPoliciesResponse {}message Policy {- reserved 10;+ reserved 7, 10;// The name of the policy.// Format: {resource name}/policies/{policy type}@@ -205,7 +204,6 @@ message Policy {oneof policy {IamPolicy workspace_iam_policy = 6;- DeploymentApprovalPolicy deployment_approval_policy = 7;RolloutPolicy rollout_policy = 19;BackupPlanPolicy backup_plan_policy = 8;MaskingPolicy masking_policy = 9;@@ -227,11 +225,10 @@ message Policy {}enum PolicyType {- reserved 6;+ reserved 2, 6;POLICY_TYPE_UNSPECIFIED = 0;WORKSPACE_IAM = 1;- DEPLOYMENT_APPROVAL = 2;ROLLOUT_POLICY = 11;BACKUP_PLAN = 3;SQL_REVIEW = 4;@@ -252,11 +249,6 @@ enum PolicyResourceType {DATABASE = 5;}-message DeploymentApprovalPolicy {- ApprovalStrategy default_strategy = 1;- repeated DeploymentApprovalStrategy deployment_approval_strategies = 2;-}-message RolloutPolicy {bool automatic = 1;repeated string workspace_roles = 2;@@ -266,24 +258,6 @@ message RolloutPolicy {repeated string issue_roles = 4;}-message DeploymentApprovalStrategy {- DeploymentType deployment_type = 1;- ApprovalGroup approval_group = 2;- ApprovalStrategy approval_strategy = 3;-}--enum ApprovalGroup {- ASSIGNEE_GROUP_UNSPECIFIED = 0;- APPROVAL_GROUP_DBA = 1;- APPROVAL_GROUP_PROJECT_OWNER = 2;-}--enum ApprovalStrategy {- APPROVAL_STRATEGY_UNSPECIFIED = 0;- AUTOMATIC = 1;- MANUAL = 2;-}-message BackupPlanPolicy {BackupPlanSchedule schedule = 1;google.protobuf.Duration retention_duration = 2;