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: deprecate sql review policy (#12431)
ecmadao6e633304747e
diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex 6bce55cb8b..730bb136d2 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -545,27 +545,6 @@ func (s *OrgPolicyService) convertPolicyPayloadToString(ctx context.Context, polreturn "", errors.Wrap(err, "failed to marshal rollout policy")}return string(payloadBytes), nil- case v1pb.PolicyType_SQL_REVIEW:- // TODO(ed): remove PolicyType_SQL_REVIEW- if err := s.licenseService.IsFeatureEnabled(api.FeatureSQLReview); err != nil {- return "", status.Errorf(codes.PermissionDenied, err.Error())- }- v1SqlReviewPolicy := policy.GetSqlReviewPolicy()- if v1SqlReviewPolicy.Name == "" {- return "", status.Errorf(codes.InvalidArgument, "invalid payload, name cannot be empty")- }- if err := validateSQLReviewRules(v1SqlReviewPolicy.Rules); err != nil {- return "", status.Errorf(codes.InvalidArgument, err.Error())- }- payload, err := convertToSQLReviewPolicyPayload(v1SqlReviewPolicy)- if err != nil {- return "", status.Errorf(codes.InvalidArgument, err.Error())- }- payloadBytes, err := protojson.Marshal(payload)- if err != nil {- return "", errors.Wrap(err, "failed to marshal sql review policy")- }- return string(payloadBytes), nilcase v1pb.PolicyType_TAG:tagPolicy := &storepb.TagPolicy{Tags: policy.GetTagPolicy().Tags,@@ -674,13 +653,6 @@ func (s *OrgPolicyService) convertToPolicy(ctx context.Context, parentPath strinreturn nil, err}policy.Policy = payload- case api.PolicyTypeSQLReview:- pType = v1pb.PolicyType_SQL_REVIEW- payload, err := convertToV1PBSQLReviewPolicy(policyMessage.Payload)- if err != nil {- return nil, err- }- policy.Policy = payloadcase api.PolicyTypeTag:pType = v1pb.PolicyType_TAGp := &v1pb.TagPolicy{}@@ -755,20 +727,6 @@ func (s *OrgPolicyService) convertToPolicy(ctx context.Context, parentPath strinreturn policy, nil}-func convertToV1PBSQLReviewPolicy(payloadStr string) (*v1pb.Policy_SqlReviewPolicy, error) {- p := new(storepb.SQLReviewPolicy)- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(payloadStr), p); err != nil {- return nil, err- }-- return &v1pb.Policy_SqlReviewPolicy{- SqlReviewPolicy: &v1pb.SQLReviewPolicy{- Name: p.Name,- Rules: convertToV1PBSQLReviewRules(p.RuleList),- },- }, nil-}-func convertToV1PBSQLReviewRules(ruleList []*storepb.SQLReviewRule) []*v1pb.SQLReviewRule {var rules []*v1pb.SQLReviewRulefor _, rule := range ruleList {@@ -819,17 +777,6 @@ func convertToSQLReviewRules(rules []*v1pb.SQLReviewRule) ([]*storepb.SQLReviewRreturn ruleList, nil}-func convertToSQLReviewPolicyPayload(policy *v1pb.SQLReviewPolicy) (*storepb.SQLReviewPolicy, error) {- ruleList, err := convertToSQLReviewRules(policy.Rules)- if err != nil {- return nil, err- }- return &storepb.SQLReviewPolicy{- Name: policy.Name,- RuleList: ruleList,- }, nil-}-func convertToV1PBMaskingPolicy(payloadStr string) (*v1pb.Policy_MaskingPolicy, error) {var maskingPolicy storepb.MaskingPolicyif err := common.ProtojsonUnmarshaler.Unmarshal([]byte(payloadStr), &maskingPolicy); err != nil {@@ -1123,9 +1070,6 @@ func convertPolicyType(pType string) (api.PolicyType, error) {switch strings.ToUpper(pType) {case v1pb.PolicyType_ROLLOUT_POLICY.String():return api.PolicyTypeRollout, nil- case v1pb.PolicyType_SQL_REVIEW.String():- // TODO(ed): remove this.- return api.PolicyTypeSQLReview, nilcase v1pb.PolicyType_TAG.String():return api.PolicyTypeTag, nilcase v1pb.PolicyType_MASKING.String():diff --git a/backend/api/v1/review_config_service.go b/backend/api/v1/review_config_service.goindex c127540965..dec15fc352 100644--- a/backend/api/v1/review_config_service.go+++ b/backend/api/v1/review_config_service.go@@ -90,6 +90,9 @@ func (s *ReviewConfigService) GetReviewConfig(ctx context.Context, request *v1pbif err != nil {return nil, status.Errorf(codes.Internal, err.Error())}+ if message == nil {+ return nil, status.Errorf(codes.NotFound, "cannot found review config %s", request.Name)+ }return s.convertToV1ReviewConfig(ctx, message)}diff --git a/backend/legacyapi/policy.go b/backend/legacyapi/policy.goindex 9fd91f2bb2..16d5f95315 100644--- a/backend/legacyapi/policy.go+++ b/backend/legacyapi/policy.go@@ -30,9 +30,6 @@ const (// PolicyTypeRollout is the rollout policy type.PolicyTypeRollout PolicyType = "bb.policy.rollout"- // PolicyTypeSQLReview is the sql review policy type.- // TODO(ed): remove this.- PolicyTypeSQLReview PolicyType = "bb.policy.sql-review"// PolicyTypeEnvironmentTier is the tier of an environment.PolicyTypeEnvironmentTier PolicyType = "bb.policy.environment-tier"// PolicyTypeMasking is the masking policy type.@@ -87,9 +84,7 @@ const (var (// AllowedResourceTypes includes allowed resource types for each policy type.AllowedResourceTypes = map[PolicyType][]PolicyResourceType{- PolicyTypeRollout: {PolicyResourceTypeEnvironment},- // TODO(ed): remove this.- PolicyTypeSQLReview: {PolicyResourceTypeEnvironment},+ PolicyTypeRollout: {PolicyResourceTypeEnvironment},PolicyTypeEnvironmentTier: {PolicyResourceTypeEnvironment},PolicyTypeTag: {PolicyResourceTypeEnvironment},PolicyTypeMasking: {PolicyResourceTypeDatabase},diff --git a/backend/metric/collector/policy_count.go b/backend/metric/collector/policy_count.goindex f8eac2b9e2..f1fb3aee8c 100644--- a/backend/metric/collector/policy_count.go+++ b/backend/metric/collector/policy_count.go@@ -2,7 +2,6 @@ package collectorimport ("context"- "fmt"api "github.com/bytebase/bytebase/backend/legacyapi"metricapi "github.com/bytebase/bytebase/backend/metric"@@ -54,12 +53,6 @@ func (c *policyCountCollector) Collect(ctx context.Context) ([]*metric.Metric, erowStatus = api.Archived}- if policy.Type == api.PolicyTypeSQLReview {- key = fmt.Sprintf("%s_%s_%s", policy.Type, environment.Title, rowStatus)- // SQL review policy don't need to set the value.- value = ""- }-if key == "" {continue}diff --git a/backend/migrator/migration/prod/2.20/0001##review_config.sql b/backend/migrator/migration/prod/2.20/0001##review_config.sqlindex c7236eefd3..ae7071389c 100644--- a/backend/migrator/migration/prod/2.20/0001##review_config.sql+++ b/backend/migrator/migration/prod/2.20/0001##review_config.sql@@ -42,6 +42,4 @@ SELECTjsonb_build_object('tags', jsonb_build_object('bb.tag.review_config', CONCAT('reviewConfigs/', environment.resource_id)))FROM policyINNER JOIN environment ON policy.resource_id = environment.id-WHERE type = 'bb.policy.sql-review';---- TODO: remove legacy bb.policy.sql-review policy after migration.+WHERE type = 'bb.policy.sql-review';\ No newline at end of filediff --git a/backend/migrator/migration/prod/2.20/0002##remove_sql_review_policy.sql b/backend/migrator/migration/prod/2.20/0002##remove_sql_review_policy.sqlnew file mode 100644index 0000000000..68e86210a9--- /dev/null+++ b/backend/migrator/migration/prod/2.20/0002##remove_sql_review_policy.sql@@ -0,0 +1,2 @@+DELETE FROM policy+WHERE type = 'bb.policy.sql-review';diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 42ead16bcb..1c150f3893 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -230,5 +230,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("2.20.1"), releaseVersion)+ require.Equal(t, semver.MustParse("2.20.2"), releaseVersion)}diff --git a/backend/store/review_config.go b/backend/store/review_config.goindex e8e30057f4..af573a2c2a 100644--- a/backend/store/review_config.go+++ b/backend/store/review_config.go@@ -263,7 +263,7 @@ func (s *Store) UpdateReviewConfig(ctx context.Context, patch *PatchReviewConfig&sqlReview.UpdaterUID,&updatedTs,&sqlReview.Name,- &sqlReview,+ &payload,); err != nil {if err == sql.ErrNoRows {return nil, nildiff --git a/frontend/src/components/SQLReview/SQLReviewCreation.vue b/frontend/src/components/SQLReview/SQLReviewCreation.vueindex 5610d5c358..6cd24971fa 100644--- a/frontend/src/components/SQLReview/SQLReviewCreation.vue+++ b/frontend/src/components/SQLReview/SQLReviewCreation.vue@@ -16,14 +16,17 @@<template #0><SQLReviewInfo:name="state.name"+ :resource-id="state.resourceId":selected-environment="props.selectedEnvironment":available-environment-list="availableEnvironmentList":selected-template="state.pendingApplyTemplate || state.selectedTemplate":is-edit="!!policy"+ :is-create="!isUpdate"@select-template="tryApplyTemplate"@name-change="(val: string) => (state.name = val)"+ @resource-id-change="(val: string) => (state.resourceId = val)"/></template><template #1>@@ -52,6 +55,7 @@ import {useSubscriptionV1Store,useEnvironmentV1List,} from "@/store";+import { reviewConfigNamePrefix } from "@/store/modules/v1/common";import type {RuleTemplate,SQLReviewPolicyTemplate,@@ -73,6 +77,7 @@ import { rulesToTemplate } from "./components";interface LocalState {currentStep: number;name: string;+ resourceId: string;selectedRuleList: RuleTemplate[];selectedTemplate: SQLReviewPolicyTemplate | undefined;ruleUpdated: boolean;@@ -114,6 +119,7 @@ const STEP_LIST = [const state = reactive<LocalState>({currentStep: BASIC_INFO_STEP,name: props.name || t("sql-review.create.basic-info.display-name-default"),+ resourceId: "",selectedRuleList: [...props.selectedRuleList],selectedTemplate: props.policy? rulesToTemplate(props.policy, false /* withDisabled=false */)@@ -122,6 +128,8 @@ const state = reactive<LocalState>({pendingApplyTemplate: undefined,});+const isUpdate = computed(() => !!props.policy);+const onTemplateApply = (template: SQLReviewPolicyTemplate | undefined) => {if (!template) {return;@@ -205,7 +213,7 @@ const changeStepIndex = (nextIndex: number) => {state.currentStep = nextIndex;};-const tryFinishSetup = () => {+const tryFinishSetup = async () => {if (!hasWorkspacePermissionV2(currentUserV1.value, "bb.policies.update")) {pushNotification({module: "bytebase",@@ -220,39 +228,42 @@ const tryFinishSetup = () => {}const upsert = {- name: state.name,+ title: state.name,ruleList,};- if (props.policy) {- store- .updateReviewPolicy({- id: props.policy.id,- ...upsert,- })- .then(() => {- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("sql-review.policy-updated"),- });- });+ if (isUpdate.value) {+ await store.updateReviewPolicy({+ id: props.policy!.id,+ ...upsert,+ });+ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("sql-review.policy-updated"),+ });} else {if (!props.selectedEnvironment) {return;}- store- .addReviewPolicy({+ try {+ await store.createReviewPolicy({...upsert,+ id: `${reviewConfigNamePrefix}${state.resourceId}`,environmentPath: props.selectedEnvironment.name,- })- .then(() => {- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("sql-review.policy-created"),- });});+ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("sql-review.policy-created"),+ });+ } catch {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: t("sql-review.policy-create-failed"),+ });+ }}onCancel();diff --git a/frontend/src/components/SQLReview/SQLReviewInfo.vue b/frontend/src/components/SQLReview/SQLReviewInfo.vueindex 3815fe5725..df892915db 100644--- a/frontend/src/components/SQLReview/SQLReviewInfo.vue+++ b/frontend/src/components/SQLReview/SQLReviewInfo.vue@@ -37,7 +37,19 @@$t('sql-review.create.basic-info.display-name-placeholder')":value="name"- @update:value="onNameChange($event)"+ @update:value="emit('name-change', $event)"+ />+ <ResourceIdField+ ref="resourceIdField"+ class="mt-1"+ editing-class="mt-6"+ resource-type="review-config"+ :value="resourceId"+ :readonly="false"+ :resource-title="name"+ :suffix="true"+ :validate="validateResourceId"+ @update:value="emit('resource-id-change', $event)"/></div><div>@@ -52,11 +64,18 @@</template><script lang="ts" setup>-import type { PropType } from "vue";+import { Status } from "nice-grpc-common";+import { type PropType, ref } from "vue";+import { useI18n } from "vue-i18n";import { BBTextField } from "@/bbkit";+import ResourceIdField from "@/components/v2/Form/ResourceIdField.vue";+import { reviewConfigServiceClient } from "@/grpcweb";+import { reviewConfigNamePrefix } from "@/store/modules/v1/common";import type { SQLReviewPolicyTemplate } from "@/types";+import type { ResourceId, ValidatedMessage } from "@/types";import type { Environment } from "@/types/proto/v1/environment_service";import { environmentV1Name } from "@/utils";+import { getErrorCode } from "@/utils/grpcweb";import { SQLReviewTemplateSelector } from "./components";const props = defineProps({@@ -64,6 +83,14 @@ const props = defineProps({required: true,type: String,},+ resourceId: {+ required: true,+ type: String,+ },+ isCreate: {+ required: true,+ type: Boolean,+ },selectedEnvironment: {required: true,type: Object as PropType<Environment>,@@ -84,12 +111,11 @@ const props = defineProps({const emit = defineEmits<{(event: "name-change", name: string): void;+ (event: "resource-id-change", resourceId: string): void;(event: "select-template", template: SQLReviewPolicyTemplate): void;}>();-const onNameChange = (value: string) => {- emit("name-change", value);-};+const { t } = useI18n();const onTemplatesChange = (templates: {policy: SQLReviewPolicyTemplate[];@@ -99,4 +125,39 @@ const onTemplatesChange = (templates: {emit("select-template", templates.policy[0] ?? templates.builtin[0]);}};++const resourceIdField = ref<InstanceType<typeof ResourceIdField>>();++const validateResourceId = async (+ resourceId: ResourceId+): Promise<ValidatedMessage[]> => {+ if (!resourceId) {+ return [];+ }++ try {+ const existed = await reviewConfigServiceClient.getReviewConfig(+ {+ name: `${reviewConfigNamePrefix}${resourceId}`,+ },+ { silent: true }+ );+ if (existed) {+ return [+ {+ type: "error",+ message: t("resource-id.validation.duplicated", {+ resource: t("resource.review-config"),+ }),+ },+ ];+ }+ } catch (error) {+ if (getErrorCode(error) !== Status.NOT_FOUND) {+ throw error;+ }+ }++ return [];+};</script>diff --git a/frontend/src/components/v2/Form/ResourceIdField.vue b/frontend/src/components/v2/Form/ResourceIdField.vueindex 35417dc62b..ec77c2149e 100644--- a/frontend/src/components/v2/Form/ResourceIdField.vue+++ b/frontend/src/components/v2/Form/ResourceIdField.vue@@ -88,7 +88,8 @@ type ResourceType =| "role"| "database-group"| "schema-group"- | "changelist";+ | "changelist"+ | "review-config";const props = withDefaults(defineProps<{diff --git a/frontend/src/grpcweb/index.ts b/frontend/src/grpcweb/index.tsindex 45b5d1876c..d2ed91da9e 100644--- a/frontend/src/grpcweb/index.ts+++ b/frontend/src/grpcweb/index.ts@@ -21,6 +21,7 @@ import { IssueServiceDefinition } from "@/types/proto/v1/issue_service";import { OrgPolicyServiceDefinition } from "@/types/proto/v1/org_policy_service";import { PlanServiceDefinition } from "@/types/proto/v1/plan_service";import { ProjectServiceDefinition } from "@/types/proto/v1/project_service";+import { ReviewConfigServiceDefinition } from "@/types/proto/v1/review_config_service";import { RiskServiceDefinition } from "@/types/proto/v1/risk_service";import { RoleServiceDefinition } from "@/types/proto/v1/role_service";import { RolloutServiceDefinition } from "@/types/proto/v1/rollout_service";@@ -205,6 +206,10 @@ export const userGroupServiceClient = clientFactory.create(UserGroupServiceDefinition,channel);+export const reviewConfigServiceClient = clientFactory.create(+ ReviewConfigServiceDefinition,+ channel+);// e.g. How to use `authServiceClient`?//diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex b4c4473bc4..162ab5b312 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2747,6 +2747,7 @@"configure-policy": "Configure policy","policy-removed": "Successfully removed the review policy.","policy-created": "Successfully created the review policy.",+ "policy-create-failed": "Failed to create the review policy.","policy-updated": "Successfully updated the review policy.","policy-duplicated": "Successfully duplicated the review policy.","rules": "Rules",@@ -2914,7 +2915,8 @@"schema-group": "Table Group","changelist": "Changelist","vcs-provider": "GitOps Provider",- "vcs-connector": "GitOps Connector"+ "vcs-connector": "GitOps Connector",+ "review-config": "Review Config"},"resource-id": {"self": "{resource} ID",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex f160eafa41..29e1c1f518 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2747,6 +2747,7 @@"configure-policy": "Configurar política","policy-removed": "La política de revisión se eliminó correctamente.","policy-created": "La política de revisión se creó correctamente.",+ "policy-create-failed": "No se pudo crear la política de revisión.","policy-updated": "La política de revisión se actualizó correctamente.","policy-duplicated": "La política de revisión se duplicó correctamente.","rules": "Reglas",@@ -2914,7 +2915,8 @@"schema-group": "grupo de mesas","changelist": "Lista de cambios","vcs-provider": "Proveedor GitOps",- "vcs-connector": "Conector GitOps"+ "vcs-connector": "Conector GitOps",+ "review-config": "Revisar configuración"},"resource-id": {"self": "ID de {resource}",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 4671b53b09..c9a0df6489 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2747,6 +2747,7 @@"configure-policy": "監査ポリシーを構成する","policy-removed": "監査ポリシーが削除されました","policy-created": "監査ポリシーが作成されました",+ "policy-create-failed": "監査ポリシーの作成に失敗しました","policy-updated": "監査ポリシーが更新されました","policy-duplicated": "監査ポリシーがコピーされました","rules": "ルール",@@ -2914,7 +2915,8 @@"schema-group": "テーブルのグループ化","changelist": "変更リスト","vcs-provider": "GitOpsプロバイダー",- "vcs-connector": "GitOps接続"+ "vcs-connector": "GitOps接続",+ "review-config": "構成を確認する"},"resource-id": {"self": "{resource} ID",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 144903ccab..208fbe973f 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2747,6 +2747,7 @@"configure-policy": "配置审核策略","policy-removed": "审核策略已删除","policy-created": "审核策略已创建",+ "policy-create-failed": "审核策略创建失败","policy-updated": "审核策略已更新","policy-duplicated": "审核策略已复制","rules": "规则",@@ -2914,7 +2915,8 @@"schema-group": "表分组","changelist": "变更列表","vcs-provider": "GitOps 提供方",- "vcs-connector": "GitOps 连接"+ "vcs-connector": "GitOps 连接",+ "review-config": "审查配置"},"resource-id": {"self": "{resource} ID",diff --git a/frontend/src/store/modules/sqlReview.ts b/frontend/src/store/modules/sqlReview.tsindex c7e5024f5d..92ebca2761 100644--- a/frontend/src/store/modules/sqlReview.ts+++ b/frontend/src/store/modules/sqlReview.ts@@ -1,40 +1,40 @@import { pullAt } from "lodash-es";import { defineStore } from "pinia";import { computed, unref, watchEffect } from "vue";+import { reviewConfigServiceClient } from "@/grpcweb";import {policyNamePrefix,environmentNamePrefix,} from "@/store/modules/v1/common";import type {- PolicyId,SchemaPolicyRule,SQLReviewPolicy,IdType,MaybeRef,} from "@/types";import type { Environment } from "@/types/proto/v1/environment_service";-import type {- Policy,- SQLReviewPolicy as SQLReviewPolicyV1,-} from "@/types/proto/v1/org_policy_service";import {PolicyType,policyTypeToJSON,- PolicyResourceType,} from "@/types/proto/v1/org_policy_service";-import { extractEnvironmentResourceName } from "@/utils";+import { ReviewConfig } from "@/types/proto/v1/review_config_service";import { useEnvironmentV1Store } from "./v1/environment";import { usePolicyV1Store } from "./v1/policy";+const reviewConfigTagName = "bb.tag.review_config";+const convertToSQLReviewPolicy = async (- policy: Policy+ reviewConfig: ReviewConfig): Promise<SQLReviewPolicy | undefined> => {- if (policy.type !== PolicyType.SQL_REVIEW || !policy.sqlReviewPolicy) {+ const environmentName = reviewConfig.resources.find((resource) =>+ resource.startsWith(environmentNamePrefix)+ );+ if (!environmentName) {return;}const ruleList: SchemaPolicyRule[] = [];- for (const r of policy.sqlReviewPolicy.rules) {+ for (const r of reviewConfig.rules) {const rule: SchemaPolicyRule = {type: r.type,level: r.level,@@ -47,16 +47,15 @@ const convertToSQLReviewPolicy = async (ruleList.push(rule);}- const environment = await useEnvironmentV1Store().getOrFetchEnvironmentByName(- `${environmentNamePrefix}${extractEnvironmentResourceName(policy.name)}`- );+ const environment =+ await useEnvironmentV1Store().getOrFetchEnvironmentByName(environmentName);return {- id: policy.name,- name: policy.sqlReviewPolicy.name,+ id: reviewConfig.name,+ name: reviewConfig.title,environment,ruleList,- enforce: policy.enforce,+ enforce: reviewConfig.enabled,};};@@ -64,9 +63,9 @@ interface SQLReviewState {reviewPolicyList: SQLReviewPolicy[];}-const getSQLReviewPolicyName = (environmentPath: string): string => {+const getTagPolicyName = (environmentPath: string): string => {return `${environmentPath}/${policyNamePrefix}${policyTypeToJSON(- PolicyType.SQL_REVIEW+ PolicyType.TAG).toLowerCase()}`;};@@ -94,7 +93,7 @@ export const useSQLReviewStore = defineStore("sqlReview", {},availableEnvironments(environmentList: Environment[],- reviewPolicyId: PolicyId | undefined+ reviewPolicyId: string | undefined): Environment[] {const envMap = environmentList.reduce((map, env) => {map.set(env.name, env);@@ -112,64 +111,90 @@ export const useSQLReviewStore = defineStore("sqlReview", {return [...envMap.values()];},- async addReviewPolicy({- name,+ async createReviewPolicy({+ id,+ title,environmentPath,ruleList,}: {- name: string;+ id: string;+ title: string;environmentPath: string;ruleList: SchemaPolicyRule[];}) {- const sqlReviewPolicy: SQLReviewPolicyV1 = {- name,- rules: ruleList.map((r) => {- return {- type: r.type as string,- level: r.level,- engine: r.engine,- comment: r.comment,- payload: r.payload ? JSON.stringify(r.payload) : "{}",- };- }),- };+ const reviewConfig = await reviewConfigServiceClient.createReviewConfig({+ reviewConfig: {+ name: id,+ title,+ rules: ruleList.map((r) => {+ return {+ type: r.type as string,+ level: r.level,+ engine: r.engine,+ comment: r.comment,+ payload: r.payload ? JSON.stringify(r.payload) : "{}",+ };+ }),+ enabled: true,+ },+ });const policyStore = usePolicyV1Store();- const policy = await policyStore.createPolicy(environmentPath, {- type: PolicyType.SQL_REVIEW,- sqlReviewPolicy,- inheritFromParent: true,+ await policyStore.upsertPolicy({+ updateMask: ["payload"],+ parentPath: environmentPath,+ policy: {+ name: getTagPolicyName(environmentPath),+ type: PolicyType.TAG,+ tagPolicy: {+ tags: {+ [reviewConfigTagName]: reviewConfig.name,+ },+ },+ },});- const reviewPolicy = await convertToSQLReviewPolicy(policy);+ reviewConfig.resources = [environmentPath];+ const reviewPolicy = await convertToSQLReviewPolicy(reviewConfig);if (!reviewPolicy) {- throw new Error(`invalid policy ${JSON.stringify(policy)}`);+ throw new Error(+ `invalid review config ${JSON.stringify(reviewConfig)}`+ );}this.setReviewPolicy(reviewPolicy);},- async removeReviewPolicy(id: PolicyId) {+ async removeReviewPolicy(id: string) {const index = this.reviewPolicyList.findIndex((g) => g.id === id);if (index < 0) {return;}const targetPolicy = this.reviewPolicyList[index];+ await reviewConfigServiceClient.deleteReviewConfig({+ name: targetPolicy.id,+ });++ if (!targetPolicy.environment) {+ return;+ }++ // TODO(ed): for now, we can just simply delete the tag policy for environment.const policyStore = usePolicyV1Store();await policyStore.deletePolicy(- getSQLReviewPolicyName(targetPolicy.environment.name)+ getTagPolicyName(targetPolicy.environment.name));pullAt(this.reviewPolicyList, index);},async updateReviewPolicy({id,- name,+ title,enforce,ruleList,}: {- id: PolicyId;- name?: string;+ id: string;+ title?: string;enforce?: boolean;ruleList?: SchemaPolicyRule[];}) {@@ -179,38 +204,37 @@ export const useSQLReviewStore = defineStore("sqlReview", {}const targetPolicy = this.reviewPolicyList[index];- const policyStore = usePolicyV1Store();-- const policy = await policyStore.getOrFetchPolicyByName(- getSQLReviewPolicyName(targetPolicy.environment.name)- );- if (!policy) {- return;- }+ const patch: Partial<ReviewConfig> = {+ name: targetPolicy.id,+ };const updateMask: string[] = [];if (enforce !== undefined) {- updateMask.push("enforce");- policy.enforce = enforce;+ updateMask.push("enabled");+ patch.enabled = enforce;}- if (name && ruleList) {+ if (title) {+ updateMask.push("title");+ patch.title = title;+ }+ if (ruleList) {updateMask.push("payload");- policy.sqlReviewPolicy = {- name,- rules: ruleList.map((r) => {- return {- type: r.type as string,- level: r.level,- engine: r.engine,- comment: r.comment,- payload: r.payload ? JSON.stringify(r.payload) : "{}",- };- }),- };+ patch.rules = ruleList.map((r) => {+ return {+ type: r.type as string,+ level: r.level,+ engine: r.engine,+ comment: r.comment,+ payload: r.payload ? JSON.stringify(r.payload) : "{}",+ };+ });}- const updatedPolicy = await policyStore.updatePolicy(updateMask, policy);- const reviewPolicy = await convertToSQLReviewPolicy(updatedPolicy);+ const updated = await reviewConfigServiceClient.updateReviewConfig({+ reviewConfig: patch,+ updateMask,+ });+ const reviewPolicy = await convertToSQLReviewPolicy(updated);if (reviewPolicy) {this.setReviewPolicy(reviewPolicy);}@@ -222,16 +246,12 @@ export const useSQLReviewStore = defineStore("sqlReview", {},async fetchReviewPolicyList(): Promise<SQLReviewPolicy[]> {- const policyStore = usePolicyV1Store();- const policyList = await policyStore.fetchPolicies({- resourceType: PolicyResourceType.ENVIRONMENT,- policyType: PolicyType.SQL_REVIEW,- showDeleted: true,- });+ const { reviewConfigs } =+ await reviewConfigServiceClient.listReviewConfigs({});const reviewPolicyList: SQLReviewPolicy[] = [];- for (const policy of policyList) {- const reviewPolicy = await convertToSQLReviewPolicy(policy);+ for (const config of reviewConfigs) {+ const reviewPolicy = await convertToSQLReviewPolicy(config);if (reviewPolicy) {reviewPolicyList.push(reviewPolicy);}@@ -239,9 +259,32 @@ export const useSQLReviewStore = defineStore("sqlReview", {this.reviewPolicyList = reviewPolicyList;return reviewPolicyList;},+ async getOrFetchReviewPolicyByName(name: string) {+ const policy = this.reviewPolicyList.find((g) => g.id === name);+ if (policy) {+ return policy;+ }++ const reviewConfig = await reviewConfigServiceClient.getReviewConfig({+ name,+ });+ if (!reviewConfig) {+ return;+ }+ const reviewPolicy = await convertToSQLReviewPolicy(reviewConfig);+ if (reviewPolicy) {+ this.setReviewPolicy(reviewPolicy);+ }+ return reviewPolicy;+ },async getOrFetchReviewPolicyByEnvironmentName(name: string): Promise<SQLReviewPolicy | undefined> {+ const cached = this.getReviewPolicyByEnvironmentName(name);+ if (cached) {+ return cached;+ }+const environmentV1Store = useEnvironmentV1Store();const environment = await environmentV1Store.getOrFetchEnvironmentByName(name,@@ -249,17 +292,18 @@ export const useSQLReviewStore = defineStore("sqlReview", {);const policyStore = usePolicyV1Store();const policy = await policyStore.getOrFetchPolicyByName(- getSQLReviewPolicyName(environment.name)+ getTagPolicyName(environment.name));if (!policy) {return;}- const reviewPolicy = await convertToSQLReviewPolicy(policy);- if (reviewPolicy) {- this.setReviewPolicy(reviewPolicy);+ const sqlReviewName = policy.tagPolicy?.tags[reviewConfigTagName];+ if (!sqlReviewName) {+ return;}- return reviewPolicy;++ return this.getOrFetchReviewPolicyByName(sqlReviewName);},},});diff --git a/frontend/src/store/modules/v1/common.ts b/frontend/src/store/modules/v1/common.tsindex bf422bb480..0da2506ee8 100644--- a/frontend/src/store/modules/v1/common.ts+++ b/frontend/src/store/modules/v1/common.ts@@ -22,6 +22,7 @@ export const ssoNamePrefix = "idps/";export const protectionRulesSuffix = "/protectionRules";export const issueCommentNamePrefix = "issueComments/";export const userGroupNamePrefix = "groups/";+export const reviewConfigNamePrefix = "reviewConfigs/";export const getNameParentTokens = (name: string,diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.tsindex e2a60f1208..a29dab64bb 100644--- a/frontend/src/types/common.ts+++ b/frontend/src/types/common.ts@@ -247,7 +247,7 @@ const makeUnknown = (type: ResourceType) => {};const UNKNOWN_SQL_REVIEW_POLICY: SQLReviewPolicy = {- id: UNKNOWN_ID,+ id: `${UNKNOWN_ID}`,enforce: false,name: "",ruleList: [],diff --git a/frontend/src/types/id.ts b/frontend/src/types/id.tsindex 17bfda82c8..89caa8fa87 100644--- a/frontend/src/types/id.ts+++ b/frontend/src/types/id.ts@@ -12,8 +12,6 @@ export type MemberId = IdType;export type SettingId = IdType;-export type PolicyId = IdType;-export type ProjectId = IdType;export type ProjectWebhookId = IdType;diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.tsindex bf088f6f40..7f5b96026c 100644--- a/frontend/src/types/proto/store/policy.ts+++ b/frontend/src/types/proto/store/policy.ts@@ -190,11 +190,6 @@ export interface MaskingRulePolicy_MaskingRule {maskingLevel: MaskingLevel;}-export interface SQLReviewPolicy {- name: string;- ruleList: SQLReviewRule[];-}-export interface SQLReviewRule {type: string;level: SQLReviewRuleLevel;@@ -863,82 +858,6 @@ export const MaskingRulePolicy_MaskingRule = {},};-function createBaseSQLReviewPolicy(): SQLReviewPolicy {- return { name: "", ruleList: [] };-}--export const SQLReviewPolicy = {- encode(message: SQLReviewPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- for (const v of message.ruleList) {- SQLReviewRule.encode(v!, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): SQLReviewPolicy {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSQLReviewPolicy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.ruleList.push(SQLReviewRule.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): SQLReviewPolicy {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- ruleList: globalThis.Array.isArray(object?.ruleList)- ? object.ruleList.map((e: any) => SQLReviewRule.fromJSON(e))- : [],- };- },-- toJSON(message: SQLReviewPolicy): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.ruleList?.length) {- obj.ruleList = message.ruleList.map((e) => SQLReviewRule.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<SQLReviewPolicy>): SQLReviewPolicy {- return SQLReviewPolicy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SQLReviewPolicy>): SQLReviewPolicy {- const message = createBaseSQLReviewPolicy();- message.name = object.name ?? "";- message.ruleList = object.ruleList?.map((e) => SQLReviewRule.fromPartial(e)) || [];- return message;- },-};-function createBaseSQLReviewRule(): SQLReviewRule {return {type: "",diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex e3b81b0a78..01ec042790 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -20,7 +20,6 @@ export const protobufPackage = "bytebase.v1";export enum PolicyType {POLICY_TYPE_UNSPECIFIED = "POLICY_TYPE_UNSPECIFIED",ROLLOUT_POLICY = "ROLLOUT_POLICY",- SQL_REVIEW = "SQL_REVIEW",MASKING = "MASKING",SLOW_QUERY = "SLOW_QUERY",DISABLE_COPY_DATA = "DISABLE_COPY_DATA",@@ -39,9 +38,6 @@ export function policyTypeFromJSON(object: any): PolicyType {case 11:case "ROLLOUT_POLICY":return PolicyType.ROLLOUT_POLICY;- case 4:- case "SQL_REVIEW":- return PolicyType.SQL_REVIEW;case 5:case "MASKING":return PolicyType.MASKING;@@ -76,8 +72,6 @@ export function policyTypeToJSON(object: PolicyType): string {return "POLICY_TYPE_UNSPECIFIED";case PolicyType.ROLLOUT_POLICY:return "ROLLOUT_POLICY";- case PolicyType.SQL_REVIEW:- return "SQL_REVIEW";case PolicyType.MASKING:return "MASKING";case PolicyType.SLOW_QUERY:@@ -104,8 +98,6 @@ export function policyTypeToNumber(object: PolicyType): number {return 0;case PolicyType.ROLLOUT_POLICY:return 11;- case PolicyType.SQL_REVIEW:- return 4;case PolicyType.MASKING:return 5;case PolicyType.SLOW_QUERY:@@ -377,7 +369,6 @@ export interface Policy {type: PolicyType;rolloutPolicy?: RolloutPolicy | undefined;maskingPolicy?: MaskingPolicy | undefined;- sqlReviewPolicy?: SQLReviewPolicy | undefined;slowQueryPolicy?: SlowQueryPolicy | undefined;disableCopyDataPolicy?: DisableCopyDataPolicy | undefined;maskingRulePolicy?: MaskingRulePolicy | undefined;@@ -423,11 +414,6 @@ export interface MaskData {partialMaskingAlgorithmId: string;}-export interface SQLReviewPolicy {- name: string;- rules: SQLReviewRule[];-}-export interface SQLReviewRule {type: string;level: SQLReviewRuleLevel;@@ -1041,7 +1027,6 @@ function createBasePolicy(): Policy {type: PolicyType.POLICY_TYPE_UNSPECIFIED,rolloutPolicy: undefined,maskingPolicy: undefined,- sqlReviewPolicy: undefined,slowQueryPolicy: undefined,disableCopyDataPolicy: undefined,maskingRulePolicy: undefined,@@ -1074,9 +1059,6 @@ export const Policy = {if (message.maskingPolicy !== undefined) {MaskingPolicy.encode(message.maskingPolicy, writer.uint32(74).fork()).ldelim();}- if (message.sqlReviewPolicy !== undefined) {- SQLReviewPolicy.encode(message.sqlReviewPolicy, writer.uint32(90).fork()).ldelim();- }if (message.slowQueryPolicy !== undefined) {SlowQueryPolicy.encode(message.slowQueryPolicy, writer.uint32(98).fork()).ldelim();}@@ -1159,13 +1141,6 @@ export const Policy = {message.maskingPolicy = MaskingPolicy.decode(reader, reader.uint32());continue;- case 11:- if (tag !== 90) {- break;- }-- message.sqlReviewPolicy = SQLReviewPolicy.decode(reader, reader.uint32());- continue;case 12:if (tag !== 98) {break;@@ -1249,7 +1224,6 @@ export const Policy = {type: isSet(object.type) ? policyTypeFromJSON(object.type) : PolicyType.POLICY_TYPE_UNSPECIFIED,rolloutPolicy: isSet(object.rolloutPolicy) ? RolloutPolicy.fromJSON(object.rolloutPolicy) : undefined,maskingPolicy: isSet(object.maskingPolicy) ? MaskingPolicy.fromJSON(object.maskingPolicy) : undefined,- sqlReviewPolicy: isSet(object.sqlReviewPolicy) ? SQLReviewPolicy.fromJSON(object.sqlReviewPolicy) : undefined,slowQueryPolicy: isSet(object.slowQueryPolicy) ? SlowQueryPolicy.fromJSON(object.slowQueryPolicy) : undefined,disableCopyDataPolicy: isSet(object.disableCopyDataPolicy)? DisableCopyDataPolicy.fromJSON(object.disableCopyDataPolicy)@@ -1292,9 +1266,6 @@ export const Policy = {if (message.maskingPolicy !== undefined) {obj.maskingPolicy = MaskingPolicy.toJSON(message.maskingPolicy);}- if (message.sqlReviewPolicy !== undefined) {- obj.sqlReviewPolicy = SQLReviewPolicy.toJSON(message.sqlReviewPolicy);- }if (message.slowQueryPolicy !== undefined) {obj.slowQueryPolicy = SlowQueryPolicy.toJSON(message.slowQueryPolicy);}@@ -1342,9 +1313,6 @@ export const Policy = {message.maskingPolicy = (object.maskingPolicy !== undefined && object.maskingPolicy !== null)? MaskingPolicy.fromPartial(object.maskingPolicy): undefined;- message.sqlReviewPolicy = (object.sqlReviewPolicy !== undefined && object.sqlReviewPolicy !== null)- ? SQLReviewPolicy.fromPartial(object.sqlReviewPolicy)- : undefined;message.slowQueryPolicy = (object.slowQueryPolicy !== undefined && object.slowQueryPolicy !== null)? SlowQueryPolicy.fromPartial(object.slowQueryPolicy): undefined;@@ -1804,80 +1772,6 @@ export const MaskData = {},};-function createBaseSQLReviewPolicy(): SQLReviewPolicy {- return { name: "", rules: [] };-}--export const SQLReviewPolicy = {- encode(message: SQLReviewPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- for (const v of message.rules) {- SQLReviewRule.encode(v!, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): SQLReviewPolicy {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSQLReviewPolicy();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.rules.push(SQLReviewRule.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): SQLReviewPolicy {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- rules: globalThis.Array.isArray(object?.rules) ? object.rules.map((e: any) => SQLReviewRule.fromJSON(e)) : [],- };- },-- toJSON(message: SQLReviewPolicy): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.rules?.length) {- obj.rules = message.rules.map((e) => SQLReviewRule.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<SQLReviewPolicy>): SQLReviewPolicy {- return SQLReviewPolicy.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<SQLReviewPolicy>): SQLReviewPolicy {- const message = createBaseSQLReviewPolicy();- message.name = object.name ?? "";- message.rules = object.rules?.map((e) => SQLReviewRule.fromPartial(e)) || [];- return message;- },-};-function createBaseSQLReviewRule(): SQLReviewRule {return {type: "",diff --git a/frontend/src/types/sqlReview.ts b/frontend/src/types/sqlReview.tsindex e42245bab9..2254bc282c 100644--- a/frontend/src/types/sqlReview.ts+++ b/frontend/src/types/sqlReview.ts@@ -8,7 +8,6 @@ import {sQLReviewRuleLevelFromJSON,} from "@/types/proto/v1/org_policy_service";import type { PlanType } from "@/types/proto/v1/subscription_service";-import type { PolicyId } from "./id";import sqlReviewSchema from "./sql-review-schema.yaml";import sqlReviewDevTemplate from "./sql-review.dev.yaml";import sqlReviewProdTemplate from "./sql-review.prod.yaml";@@ -141,7 +140,7 @@ export interface SchemaPolicyRule {// The API for SQL review policy in backend.export interface SQLReviewPolicy {- id: PolicyId;+ id: string;// Standard fields// enforce means if the policy is activediff --git a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vueindex 80422802c1..2644c098bb 100644--- a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue+++ b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue@@ -3,6 +3,7 @@<SQLReviewCreationv-if="state.editMode"key="sql-review-creation"+ class="mt-1":policy="reviewPolicy":name="reviewPolicy.name":selected-environment="reviewPolicy.environment"@@ -286,14 +287,14 @@ const pushUpdatedNotify = () => {});};-const changeName = async (name: string) => {+const changeName = async (title: string) => {state.editingTitle = false;const policy = reviewPolicy.value;- if (name === policy.name) {+ if (title === policy.name) {return;}const upsert = {- name,+ title,ruleList: policy.ruleList,};@@ -352,7 +353,7 @@ const onApplyChanges = async () => {try {await store.updateReviewPolicy({id: policy.id,- name: policy.name,+ title: policy.name,ruleList,});state.rulesUpdated = false;diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex fa9334c7c4..c41ad16109 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -621,7 +621,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -686,7 +685,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -1841,7 +1839,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -1912,7 +1909,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -2612,7 +2608,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -2677,7 +2672,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -3381,7 +3375,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -3450,7 +3443,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -5527,7 +5519,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -5592,7 +5583,6 @@ paths:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -11575,7 +11565,6 @@ components:enum:- POLICY_TYPE_UNSPECIFIED- ROLLOUT_POLICY- - SQL_REVIEW- MASKING- SLOW_QUERY- DISABLE_COPY_DATA@@ -11589,8 +11578,6 @@ components:$ref: '#/components/schemas/RolloutPolicy'maskingPolicy:$ref: '#/components/schemas/MaskingPolicy'- sqlReviewPolicy:- $ref: '#/components/schemas/SQLReviewPolicy'slowQueryPolicy:$ref: '#/components/schemas/SlowQueryPolicy'disableCopyDataPolicy:@@ -12240,15 +12227,6 @@ components:to:type: stringdescription: The recipient email address, used with validate_only to send test email.- SQLReviewPolicy:- type: object- properties:- name:- type: string- rules:- type: array- items:- $ref: '#/components/schemas/SQLReviewRule'SQLReviewRule:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 2d583092e4..7642f2fbdc 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -186,7 +186,6 @@- [MaskingRulePolicy](#bytebase-store-MaskingRulePolicy)- [MaskingRulePolicy.MaskingRule](#bytebase-store-MaskingRulePolicy-MaskingRule)- [RolloutPolicy](#bytebase-store-RolloutPolicy)- - [SQLReviewPolicy](#bytebase-store-SQLReviewPolicy)- [SQLReviewRule](#bytebase-store-SQLReviewRule)- [TagPolicy](#bytebase-store-TagPolicy)- [TagPolicy.TagsEntry](#bytebase-store-TagPolicy-TagsEntry)@@ -2968,22 +2967,6 @@ Format: users/{userUID} or groups/{group email} |-<a name="bytebase-store-SQLReviewPolicy"></a>--### SQLReviewPolicy----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| rule_list | [SQLReviewRule](#bytebase-store-SQLReviewRule) | repeated | |------<a name="bytebase-store-SQLReviewRule"></a>### SQLReviewRulediff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex cd6e951909..58a4e6a90d 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -913,10 +913,6 @@<a href="#bytebase.store.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a></li>- <li>- <a href="#bytebase.store.SQLReviewPolicy"><span class="badge">M</span>SQLReviewPolicy</a>- </li>-<li><a href="#bytebase.store.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li>@@ -7685,37 +7681,6 @@ roles/CREATOR </p></td>- <h3 id="bytebase.store.SQLReviewPolicy">SQLReviewPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>rule_list</td>- <td><a href="#bytebase.store.SQLReviewRule">SQLReviewRule</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.SQLReviewRule">SQLReviewRule</h3><p></p>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex c7e6dfd451..fe619e680d 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -336,7 +336,6 @@- [Policy](#bytebase-v1-Policy)- [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy)- [RolloutPolicy](#bytebase-v1-RolloutPolicy)- - [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy)- [SQLReviewRule](#bytebase-v1-SQLReviewRule)- [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy)- [TagPolicy](#bytebase-v1-TagPolicy)@@ -5731,7 +5730,6 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| type | [PolicyType](#bytebase-v1-PolicyType) | | || rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | || masking_policy | [MaskingPolicy](#bytebase-v1-MaskingPolicy) | | |-| sql_review_policy | [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy) | | || slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | || disable_copy_data_policy | [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy) | | || masking_rule_policy | [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy) | | |@@ -5780,22 +5778,6 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.-<a name="bytebase-v1-SQLReviewPolicy"></a>--### SQLReviewPolicy----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |------<a name="bytebase-v1-SQLReviewRule"></a>### SQLReviewRule@@ -5920,7 +5902,6 @@ The policy's `name` field is used to identify the instance to update. Format| ---- | ------ | ----------- || POLICY_TYPE_UNSPECIFIED | 0 | || ROLLOUT_POLICY | 11 | |-| SQL_REVIEW | 4 | || MASKING | 5 | || SLOW_QUERY | 7 | || DISABLE_COPY_DATA | 8 | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex e984115aef..033bf466d8 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1463,10 +1463,6 @@<a href="#bytebase.v1.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a></li>- <li>- <a href="#bytebase.v1.SQLReviewPolicy"><span class="badge">M</span>SQLReviewPolicy</a>- </li>-<li><a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li>@@ -16346,13 +16342,6 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><td><p> </p></td></tr>- <tr>- <td>sql_review_policy</td>- <td><a href="#bytebase.v1.SQLReviewPolicy">SQLReviewPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>slow_query_policy</td><td><a href="#bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</a></td>@@ -16493,37 +16482,6 @@ roles/CREATOR </p></td>- <h3 id="bytebase.v1.SQLReviewPolicy">SQLReviewPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>rules</td>- <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.SQLReviewRule">SQLReviewRule</h3><p></p>@@ -16800,12 +16758,6 @@ In this situation, `update_mask` is ignored. </p></td><td><p></p></td></tr>- <tr>- <td>SQL_REVIEW</td>- <td>4</td>- <td><p></p></td>- </tr>-<tr><td>MASKING</td><td>5</td>diff --git a/proto/generated-go/store/policy.pb.go b/proto/generated-go/store/policy.pb.goindex fcd6d33172..54123ae189 100644--- a/proto/generated-go/store/policy.pb.go+++ b/proto/generated-go/store/policy.pb.go@@ -424,61 +424,6 @@ func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {return nil}-type SQLReviewPolicy struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- RuleList []*SQLReviewRule `protobuf:"bytes,2,rep,name=rule_list,json=ruleList,proto3" json:"rule_list,omitempty"`-}--func (x *SQLReviewPolicy) Reset() {- *x = SQLReviewPolicy{}- if protoimpl.UnsafeEnabled {- mi := &file_store_policy_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SQLReviewPolicy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SQLReviewPolicy) ProtoMessage() {}--func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[5]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SQLReviewPolicy.ProtoReflect.Descriptor instead.-func (*SQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{5}-}--func (x *SQLReviewPolicy) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *SQLReviewPolicy) GetRuleList() []*SQLReviewRule {- if x != nil {- return x.RuleList- }- return nil-}-type SQLReviewRule struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -494,7 +439,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}if protoimpl.UnsafeEnabled {- mi := &file_store_policy_proto_msgTypes[6]+ mi := &file_store_policy_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -507,7 +452,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[6]+ mi := &file_store_policy_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -520,7 +465,7 @@ func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewRule.ProtoReflect.Descriptor instead.func (*SQLReviewRule) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{6}+ return file_store_policy_proto_rawDescGZIP(), []int{5}}func (x *SQLReviewRule) GetType() string {@@ -571,7 +516,7 @@ type TagPolicy struct {func (x *TagPolicy) Reset() {*x = TagPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_store_policy_proto_msgTypes[7]+ mi := &file_store_policy_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -584,7 +529,7 @@ func (x *TagPolicy) String() string {func (*TagPolicy) ProtoMessage() {}func (x *TagPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[7]+ mi := &file_store_policy_proto_msgTypes[6]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -597,7 +542,7 @@ func (x *TagPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use TagPolicy.ProtoReflect.Descriptor instead.func (*TagPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{7}+ return file_store_policy_proto_rawDescGZIP(), []int{6}}func (x *TagPolicy) GetTags() map[string]string {@@ -627,7 +572,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}if protoimpl.UnsafeEnabled {- mi := &file_store_policy_proto_msgTypes[8]+ mi := &file_store_policy_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -640,7 +585,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[8]+ mi := &file_store_policy_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -698,7 +643,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}if protoimpl.UnsafeEnabled {- mi := &file_store_policy_proto_msgTypes[9]+ mi := &file_store_policy_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -711,7 +656,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[9]+ mi := &file_store_policy_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -829,41 +774,35 @@ var file_store_policy_proto_rawDesc = []byte{0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52,- 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x61, 0x0a,- 0x0f, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x3a, 0x0a, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x73,- 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69,- 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x72, 0x75, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74,- 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75,- 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,- 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e,- 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69,- 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,- 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45,- 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61,- 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,- 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,- 0x02, 0x38, 0x01, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56,- 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57,- 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41,- 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,- 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x33,+ 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xc1, 0x01,+ 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12,+ 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,+ 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c,+ 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a,+ 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,+ 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,+ 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,+ 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,+ 0x74, 0x22, 0x7d, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37,+ 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61,+ 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72,+ 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45,+ 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,+ 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c,+ 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a,+ 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e,+ 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45,+ 0x44, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,+ 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x33,}var (@@ -879,7 +818,7 @@ func file_store_policy_proto_rawDescGZIP() []byte {}var file_store_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 11)+var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 10)var file_store_policy_proto_goTypes = []any{(SQLReviewRuleLevel)(0), // 0: bytebase.store.SQLReviewRuleLevel(MaskingExceptionPolicy_MaskingException_Action)(0), // 1: bytebase.store.MaskingExceptionPolicy.MaskingException.Action@@ -888,35 +827,33 @@ var file_store_policy_proto_goTypes = []any{(*MaskData)(nil), // 4: bytebase.store.MaskData(*MaskingExceptionPolicy)(nil), // 5: bytebase.store.MaskingExceptionPolicy(*MaskingRulePolicy)(nil), // 6: bytebase.store.MaskingRulePolicy- (*SQLReviewPolicy)(nil), // 7: bytebase.store.SQLReviewPolicy- (*SQLReviewRule)(nil), // 8: bytebase.store.SQLReviewRule- (*TagPolicy)(nil), // 9: bytebase.store.TagPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 10: bytebase.store.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 11: bytebase.store.MaskingRulePolicy.MaskingRule- nil, // 12: bytebase.store.TagPolicy.TagsEntry- (MaskingLevel)(0), // 13: bytebase.store.MaskingLevel- (Engine)(0), // 14: bytebase.store.Engine- (*expr.Expr)(nil), // 15: google.type.Expr+ (*SQLReviewRule)(nil), // 7: bytebase.store.SQLReviewRule+ (*TagPolicy)(nil), // 8: bytebase.store.TagPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 9: bytebase.store.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 10: bytebase.store.MaskingRulePolicy.MaskingRule+ nil, // 11: bytebase.store.TagPolicy.TagsEntry+ (MaskingLevel)(0), // 12: bytebase.store.MaskingLevel+ (Engine)(0), // 13: bytebase.store.Engine+ (*expr.Expr)(nil), // 14: google.type.Expr}var file_store_policy_proto_depIdxs = []int32{4, // 0: bytebase.store.MaskingPolicy.mask_data:type_name -> bytebase.store.MaskData- 13, // 1: bytebase.store.MaskData.masking_level:type_name -> bytebase.store.MaskingLevel- 10, // 2: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException- 11, // 3: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule- 8, // 4: bytebase.store.SQLReviewPolicy.rule_list:type_name -> bytebase.store.SQLReviewRule- 0, // 5: bytebase.store.SQLReviewRule.level:type_name -> bytebase.store.SQLReviewRuleLevel- 14, // 6: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine- 12, // 7: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry- 1, // 8: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action- 13, // 9: bytebase.store.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.store.MaskingLevel- 15, // 10: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 15, // 11: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 13, // 12: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel- 13, // [13:13] is the sub-list for method output_type- 13, // [13:13] is the sub-list for method input_type- 13, // [13:13] is the sub-list for extension type_name- 13, // [13:13] is the sub-list for extension extendee- 0, // [0:13] is the sub-list for field type_name+ 12, // 1: bytebase.store.MaskData.masking_level:type_name -> bytebase.store.MaskingLevel+ 9, // 2: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException+ 10, // 3: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule+ 0, // 4: bytebase.store.SQLReviewRule.level:type_name -> bytebase.store.SQLReviewRuleLevel+ 13, // 5: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine+ 11, // 6: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry+ 1, // 7: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action+ 12, // 8: bytebase.store.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.store.MaskingLevel+ 14, // 9: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 14, // 10: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 12, // 11: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel+ 12, // [12:12] is the sub-list for method output_type+ 12, // [12:12] is the sub-list for method input_type+ 12, // [12:12] is the sub-list for extension type_name+ 12, // [12:12] is the sub-list for extension extendee+ 0, // [0:12] is the sub-list for field type_name}func init() { file_store_policy_proto_init() }@@ -987,18 +924,6 @@ func file_store_policy_proto_init() {}}file_store_policy_proto_msgTypes[5].Exporter = func(v any, i int) any {- switch v := v.(*SQLReviewPolicy); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_store_policy_proto_msgTypes[6].Exporter = func(v any, i int) any {switch v := v.(*SQLReviewRule); i {case 0:return &v.state@@ -1010,7 +935,7 @@ func file_store_policy_proto_init() {return nil}}- file_store_policy_proto_msgTypes[7].Exporter = func(v any, i int) any {+ file_store_policy_proto_msgTypes[6].Exporter = func(v any, i int) any {switch v := v.(*TagPolicy); i {case 0:return &v.state@@ -1022,7 +947,7 @@ func file_store_policy_proto_init() {return nil}}- file_store_policy_proto_msgTypes[8].Exporter = func(v any, i int) any {+ file_store_policy_proto_msgTypes[7].Exporter = func(v any, i int) any {switch v := v.(*MaskingExceptionPolicy_MaskingException); i {case 0:return &v.state@@ -1034,7 +959,7 @@ func file_store_policy_proto_init() {return nil}}- file_store_policy_proto_msgTypes[9].Exporter = func(v any, i int) any {+ file_store_policy_proto_msgTypes[8].Exporter = func(v any, i int) any {switch v := v.(*MaskingRulePolicy_MaskingRule); i {case 0:return &v.state@@ -1053,7 +978,7 @@ func file_store_policy_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_policy_proto_rawDesc,NumEnums: 2,- NumMessages: 11,+ NumMessages: 10,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex 86408c38b5..45ec309cd9 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -29,7 +29,6 @@ type PolicyType int32const (PolicyType_POLICY_TYPE_UNSPECIFIED PolicyType = 0PolicyType_ROLLOUT_POLICY PolicyType = 11- PolicyType_SQL_REVIEW PolicyType = 4PolicyType_MASKING PolicyType = 5PolicyType_SLOW_QUERY PolicyType = 7PolicyType_DISABLE_COPY_DATA PolicyType = 8@@ -44,7 +43,6 @@ var (PolicyType_name = map[int32]string{0: "POLICY_TYPE_UNSPECIFIED",11: "ROLLOUT_POLICY",- 4: "SQL_REVIEW",5: "MASKING",7: "SLOW_QUERY",8: "DISABLE_COPY_DATA",@@ -56,7 +54,6 @@ var (PolicyType_value = map[string]int32{"POLICY_TYPE_UNSPECIFIED": 0,"ROLLOUT_POLICY": 11,- "SQL_REVIEW": 4,"MASKING": 5,"SLOW_QUERY": 7,"DISABLE_COPY_DATA": 8,@@ -250,7 +247,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{14, 0, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13, 0, 0}}type CreatePolicyRequest struct {@@ -667,7 +664,6 @@ type Policy struct {//// *Policy_RolloutPolicy// *Policy_MaskingPolicy- // *Policy_SqlReviewPolicy// *Policy_SlowQueryPolicy// *Policy_DisableCopyDataPolicy// *Policy_MaskingRulePolicy@@ -763,13 +759,6 @@ func (x *Policy) GetMaskingPolicy() *MaskingPolicy {return nil}-func (x *Policy) GetSqlReviewPolicy() *SQLReviewPolicy {- if x, ok := x.GetPolicy().(*Policy_SqlReviewPolicy); ok {- return x.SqlReviewPolicy- }- return nil-}-func (x *Policy) GetSlowQueryPolicy() *SlowQueryPolicy {if x, ok := x.GetPolicy().(*Policy_SlowQueryPolicy); ok {return x.SlowQueryPolicy@@ -845,10 +834,6 @@ type Policy_MaskingPolicy struct {MaskingPolicy *MaskingPolicy `protobuf:"bytes,9,opt,name=masking_policy,json=maskingPolicy,proto3,oneof"`}-type Policy_SqlReviewPolicy struct {- SqlReviewPolicy *SQLReviewPolicy `protobuf:"bytes,11,opt,name=sql_review_policy,json=sqlReviewPolicy,proto3,oneof"`-}-type Policy_SlowQueryPolicy struct {SlowQueryPolicy *SlowQueryPolicy `protobuf:"bytes,12,opt,name=slow_query_policy,json=slowQueryPolicy,proto3,oneof"`}@@ -877,8 +862,6 @@ func (*Policy_RolloutPolicy) isPolicy_Policy() {}func (*Policy_MaskingPolicy) isPolicy_Policy() {}-func (*Policy_SqlReviewPolicy) isPolicy_Policy() {}-func (*Policy_SlowQueryPolicy) isPolicy_Policy() {}func (*Policy_DisableCopyDataPolicy) isPolicy_Policy() {}@@ -1192,61 +1175,6 @@ func (x *MaskData) GetPartialMaskingAlgorithmId() string {return ""}-type SQLReviewPolicy struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Rules []*SQLReviewRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`-}--func (x *SQLReviewPolicy) Reset() {- *x = SQLReviewPolicy{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[12]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SQLReviewPolicy) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SQLReviewPolicy) ProtoMessage() {}--func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {- 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 {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SQLReviewPolicy.ProtoReflect.Descriptor instead.-func (*SQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}-}--func (x *SQLReviewPolicy) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *SQLReviewPolicy) GetRules() []*SQLReviewRule {- if x != nil {- return x.Rules- }- return nil-}-type SQLReviewRule struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1262,7 +1190,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1275,7 +1203,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ 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 {@@ -1288,7 +1216,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{13}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}}func (x *SQLReviewRule) GetType() string {@@ -1338,7 +1266,7 @@ type MaskingExceptionPolicy struct {func (x *MaskingExceptionPolicy) Reset() {*x = MaskingExceptionPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1351,7 +1279,7 @@ func (x *MaskingExceptionPolicy) String() string {func (*MaskingExceptionPolicy) ProtoMessage() {}func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ 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 {@@ -1364,7 +1292,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{14}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}}func (x *MaskingExceptionPolicy) GetMaskingExceptions() []*MaskingExceptionPolicy_MaskingException {@@ -1385,7 +1313,7 @@ type MaskingRulePolicy struct {func (x *MaskingRulePolicy) Reset() {*x = MaskingRulePolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1398,7 +1326,7 @@ func (x *MaskingRulePolicy) String() string {func (*MaskingRulePolicy) ProtoMessage() {}func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ 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 {@@ -1411,7 +1339,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{15}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}}func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {@@ -1432,7 +1360,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1445,7 +1373,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ 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 {@@ -1458,7 +1386,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{16}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -1481,7 +1409,7 @@ type TagPolicy struct {func (x *TagPolicy) Reset() {*x = TagPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1494,7 +1422,7 @@ func (x *TagPolicy) String() string {func (*TagPolicy) ProtoMessage() {}func (x *TagPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ 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 {@@ -1507,7 +1435,7 @@ func (x *TagPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use TagPolicy.ProtoReflect.Descriptor instead.func (*TagPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}}func (x *TagPolicy) GetTags() map[string]string {@@ -1538,7 +1466,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1551,7 +1479,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[18]+ 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 {@@ -1564,7 +1492,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{14, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13, 0}}func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPolicy_MaskingException_Action {@@ -1609,7 +1537,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1622,7 +1550,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[19]+ 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 {@@ -1635,7 +1563,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{15, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14, 0}}func (x *MaskingRulePolicy_MaskingRule) GetId() string {@@ -1724,7 +1652,7 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{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, 0xbc, 0x08, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04,+ 0x6e, 0x22, 0xf6, 0x07, 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, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2,0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65,@@ -1742,289 +1670,278 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{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, 0x37, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00,- 0x52, 0x09, 0x74, 0x61, 0x67, 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, 0x4a, 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, 0x04, 0xe2,- 0x41, 0x01, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,- 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x69,- 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 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,- 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69,- 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x4d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x32, 0x0a, 0x09,- 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,- 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61,- 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61,- 0x22, 0x8c, 0x02, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a,- 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63,- 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c,- 0x75, 0x6d, 0x6e, 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c,- 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65,- 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64,- 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f,- 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e,- 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73,- 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22,- 0x57, 0x0a, 0x0f, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x30, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18,- 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c,- 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c,- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,- 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35,- 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52,- 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05,- 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,- 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e,- 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07,- 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xa9, 0x03, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x63, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63,- 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 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, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74,- 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65,- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xa9, 0x02, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69,- 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06, 0x61,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 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,- 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65,- 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76,- 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c,- 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64,- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09,- 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74,- 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51,- 0x55, 0x45, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54,- 0x10, 0x02, 0x22, 0xe6, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75,- 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65,- 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 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, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52,- 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x8e, 0x01, 0x0a, 0x0b, 0x4d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f,- 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72,- 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0d, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x45, 0x0a, 0x27, 0x52,+ 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, 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, 0x22, 0x7a, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,- 0x34, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,- 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74,- 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0xeb,- 0x01, 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, 0x12, 0x0a, 0x0e, 0x52, 0x4f,- 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 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, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x0d,- 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, 0x51, 0x0a, 0x12, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c,- 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52,- 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12,- 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xeb, 0x0b,- 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69,- 0x63, 0x65, 0x12, 0x89, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,- 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x22, 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,- 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,- 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x90,- 0x02, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12,- 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,- 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xba, 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0,- 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12,- 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x12, 0xb7, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xef, 0x01, 0xda, 0x41, 0x0d, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0xd8, 0x01, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x5a, 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f,- 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xe8, 0x02, 0x0a, 0x0c,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x22, 0xa0, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x84, 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a,- 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28,+ 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x48, 0x00, 0x52, 0x09, 0x74, 0x61, 0x67, 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, 0x4a, 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, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 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, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x0c, 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, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f,+ 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06,+ 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63,+ 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43,+ 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a,+ 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61,+ 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x32, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x64,+ 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61,+ 0x52, 0x08, 0x6d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8c, 0x02, 0x0a, 0x08, 0x4d,+ 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,+ 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x3e, 0x0a,+ 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52,+ 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a,+ 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c,+ 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74,+ 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f,+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19,+ 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c,+ 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x53, 0x51,+ 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,+ 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,+ 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c,+ 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52,+ 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,+ 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,+ 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45,+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a,+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xa9, 0x03, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x63, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78,+ 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34,+ 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, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63,+ 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xa9, 0x02, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06,+ 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 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, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,+ 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f,+ 0x6e, 0x12, 0x3e, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76,+ 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65,+ 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65,+ 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e,+ 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67,+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52,+ 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63,+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,+ 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52,+ 0x54, 0x10, 0x02, 0x22, 0xe6, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52,+ 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x72, 0x75, 0x6c,+ 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 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, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x8e, 0x01, 0x0a, 0x0b,+ 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63,+ 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70,+ 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0d,+ 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c,+ 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x45, 0x0a, 0x27,+ 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, 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, 0x22, 0x7a, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x34, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,+ 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e,+ 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a,+ 0xe1, 0x01, 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, 0x12, 0x0a, 0x0e, 0x52,+ 0x4f, 0x4c, 0x4c, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x0b, 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, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10,+ 0x0d, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x04, 0x10, 0x04, 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, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75,+ 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09,+ 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52,+ 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c,+ 0x45, 0x44, 0x10, 0x03, 0x32, 0xeb, 0x0b, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, 0x02, 0x0a, 0x09, 0x47, 0x65,+ 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xc7, 0x01, 0xda, 0x41,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x12,+ 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,+ 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x90, 0x02, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xba, 0x01, 0xda, 0x41,+ 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69,+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xb7, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x22, 0xef, 0x01, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd8, 0x01, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x20, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2e,+ 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2b,+ 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x37, 0x3a, 0x06, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x12, 0xe8, 0x02, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xa0, 0x02, 0xda, 0x41, 0x12,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84, 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x2b,0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x32, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x92, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74,- 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,- 0x79, 0x22, 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0xb9, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23,- 0x2a, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67,- 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x3a, 0x06, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a,+ 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32,+ 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x92, 0x02,+ 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a,+ 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x2a, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x2a, 0x2d, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,+ 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -2040,7 +1957,7 @@ func file_v1_org_policy_service_proto_rawDescGZIP() []byte {}var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)+var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)var file_v1_org_policy_service_proto_goTypes = []any{(PolicyType)(0), // 0: bytebase.v1.PolicyType(PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType@@ -2058,67 +1975,64 @@ var file_v1_org_policy_service_proto_goTypes = []any{(*DisableCopyDataPolicy)(nil), // 13: bytebase.v1.DisableCopyDataPolicy(*MaskingPolicy)(nil), // 14: bytebase.v1.MaskingPolicy(*MaskData)(nil), // 15: bytebase.v1.MaskData- (*SQLReviewPolicy)(nil), // 16: bytebase.v1.SQLReviewPolicy- (*SQLReviewRule)(nil), // 17: bytebase.v1.SQLReviewRule- (*MaskingExceptionPolicy)(nil), // 18: bytebase.v1.MaskingExceptionPolicy- (*MaskingRulePolicy)(nil), // 19: bytebase.v1.MaskingRulePolicy- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 20: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- (*TagPolicy)(nil), // 21: bytebase.v1.TagPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 22: bytebase.v1.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 23: bytebase.v1.MaskingRulePolicy.MaskingRule- nil, // 24: bytebase.v1.TagPolicy.TagsEntry- (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask- (MaskingLevel)(0), // 26: bytebase.v1.MaskingLevel- (Engine)(0), // 27: bytebase.v1.Engine- (*expr.Expr)(nil), // 28: google.type.Expr- (*emptypb.Empty)(nil), // 29: google.protobuf.Empty+ (*SQLReviewRule)(nil), // 16: bytebase.v1.SQLReviewRule+ (*MaskingExceptionPolicy)(nil), // 17: bytebase.v1.MaskingExceptionPolicy+ (*MaskingRulePolicy)(nil), // 18: bytebase.v1.MaskingRulePolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 19: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ (*TagPolicy)(nil), // 20: bytebase.v1.TagPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 21: bytebase.v1.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 22: bytebase.v1.MaskingRulePolicy.MaskingRule+ nil, // 23: bytebase.v1.TagPolicy.TagsEntry+ (*fieldmaskpb.FieldMask)(nil), // 24: google.protobuf.FieldMask+ (MaskingLevel)(0), // 25: bytebase.v1.MaskingLevel+ (Engine)(0), // 26: bytebase.v1.Engine+ (*expr.Expr)(nil), // 27: google.type.Expr+ (*emptypb.Empty)(nil), // 28: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{10, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy0, // 1: bytebase.v1.CreatePolicyRequest.type:type_name -> bytebase.v1.PolicyType10, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy- 25, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask+ 24, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 4: bytebase.v1.ListPoliciesRequest.policy_type:type_name -> bytebase.v1.PolicyType10, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy0, // 6: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType11, // 7: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy14, // 8: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy- 16, // 9: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy- 12, // 10: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy- 13, // 11: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy- 19, // 12: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy- 18, // 13: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy- 20, // 14: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- 21, // 15: bytebase.v1.Policy.tag_policy:type_name -> bytebase.v1.TagPolicy- 1, // 16: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType- 15, // 17: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData- 26, // 18: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel- 17, // 19: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule- 2, // 20: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel- 27, // 21: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine- 22, // 22: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException- 23, // 23: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule- 24, // 24: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry- 3, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- 26, // 26: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel- 28, // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 28, // 28: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 26, // 29: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel- 7, // 30: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 8, // 31: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 4, // 32: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 5, // 33: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 6, // 34: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 10, // 35: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 9, // 36: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 10, // 37: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 10, // 38: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 29, // 39: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty- 35, // [35:40] is the sub-list for method output_type- 30, // [30:35] is the sub-list for method input_type- 30, // [30:30] is the sub-list for extension type_name- 30, // [30:30] is the sub-list for extension extendee- 0, // [0:30] is the sub-list for field type_name+ 12, // 9: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy+ 13, // 10: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy+ 18, // 11: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy+ 17, // 12: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy+ 19, // 13: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ 20, // 14: bytebase.v1.Policy.tag_policy:type_name -> bytebase.v1.TagPolicy+ 1, // 15: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType+ 15, // 16: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData+ 25, // 17: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel+ 2, // 18: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel+ 26, // 19: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine+ 21, // 20: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException+ 22, // 21: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule+ 23, // 22: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry+ 3, // 23: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ 25, // 24: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel+ 27, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 27, // 26: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 25, // 27: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel+ 7, // 28: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 8, // 29: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 4, // 30: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 5, // 31: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 6, // 32: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 10, // 33: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 9, // 34: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 10, // 35: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 10, // 36: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 28, // 37: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 33, // [33:38] is the sub-list for method output_type+ 28, // [28:33] is the sub-list for method input_type+ 28, // [28:28] is the sub-list for extension type_name+ 28, // [28:28] is the sub-list for extension extendee+ 0, // [0:28] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }@@ -2273,18 +2187,6 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[12].Exporter = func(v any, i int) any {- switch v := v.(*SQLReviewPolicy); 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[13].Exporter = func(v any, i int) any {switch v := v.(*SQLReviewRule); i {case 0:return &v.state@@ -2296,7 +2198,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v any, i int) any {+ file_v1_org_policy_service_proto_msgTypes[13].Exporter = func(v any, i int) any {switch v := v.(*MaskingExceptionPolicy); i {case 0:return &v.state@@ -2308,7 +2210,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v any, i int) any {+ file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v any, i int) any {switch v := v.(*MaskingRulePolicy); i {case 0:return &v.state@@ -2320,7 +2222,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v any, i int) any {+ file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v any, i int) any {switch v := v.(*RestrictIssueCreationForSQLReviewPolicy); i {case 0:return &v.state@@ -2332,7 +2234,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[17].Exporter = func(v any, i int) any {+ file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v any, i int) any {switch v := v.(*TagPolicy); i {case 0:return &v.state@@ -2344,7 +2246,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[18].Exporter = func(v any, i int) any {+ file_v1_org_policy_service_proto_msgTypes[17].Exporter = func(v any, i int) any {switch v := v.(*MaskingExceptionPolicy_MaskingException); i {case 0:return &v.state@@ -2356,7 +2258,7 @@ func file_v1_org_policy_service_proto_init() {return nil}}- file_v1_org_policy_service_proto_msgTypes[19].Exporter = func(v any, i int) any {+ file_v1_org_policy_service_proto_msgTypes[18].Exporter = func(v any, i int) any {switch v := v.(*MaskingRulePolicy_MaskingRule); i {case 0:return &v.state@@ -2373,7 +2275,6 @@ func file_v1_org_policy_service_proto_init() {file_v1_org_policy_service_proto_msgTypes[6].OneofWrappers = []any{(*Policy_RolloutPolicy)(nil),(*Policy_MaskingPolicy)(nil),- (*Policy_SqlReviewPolicy)(nil),(*Policy_SlowQueryPolicy)(nil),(*Policy_DisableCopyDataPolicy)(nil),(*Policy_MaskingRulePolicy)(nil),@@ -2387,7 +2288,7 @@ func file_v1_org_policy_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_org_policy_service_proto_rawDesc,NumEnums: 4,- NumMessages: 21,+ NumMessages: 20,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/policy.proto b/proto/store/policy.protoindex a16c2e479c..b9239b6570 100644--- a/proto/store/policy.proto+++ b/proto/store/policy.proto@@ -67,11 +67,6 @@ message MaskingRulePolicy {repeated MaskingRule rules = 1;}-message SQLReviewPolicy {- string name = 1;- repeated SQLReviewRule rule_list = 2;-}-message SQLReviewRule {string type = 1;SQLReviewRuleLevel level = 2;diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex 63743f379c..4a3c415d36 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -183,7 +183,7 @@ message ListPoliciesResponse {}message Policy {- reserved 7, 10;+ reserved 7, 10, 11;// The name of the policy.// Format: {resource name}/policies/{policy type}@@ -203,7 +203,6 @@ message Policy {oneof policy {RolloutPolicy rollout_policy = 19;MaskingPolicy masking_policy = 9;- SQLReviewPolicy sql_review_policy = 11;SlowQueryPolicy slow_query_policy = 12;DisableCopyDataPolicy disable_copy_data_policy = 16;MaskingRulePolicy masking_rule_policy = 17;@@ -222,11 +221,10 @@ message Policy {}enum PolicyType {- reserved 2, 6;+ reserved 2, 4, 6;POLICY_TYPE_UNSPECIFIED = 0;ROLLOUT_POLICY = 11;- SQL_REVIEW = 4;MASKING = 5;SLOW_QUERY = 7;DISABLE_COPY_DATA = 8;@@ -275,11 +273,6 @@ message MaskData {string partial_masking_algorithm_id = 6;}-message SQLReviewPolicy {- string name = 1;- repeated SQLReviewRule rules = 2;-}-message SQLReviewRule {string type = 1;SQLReviewRuleLevel level = 2;