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: export data policy (#14384)
ecmadao1591293b1e21
diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex 86b55f85ef..705553614c 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -593,7 +593,20 @@ func (s *OrgPolicyService) convertPolicyPayloadToString(ctx context.Context, pol}payloadBytes, err := protojson.Marshal(payload)if err != nil {- return "", errors.Wrap(err, "failed to marshal masking policy")+ return "", errors.Wrap(err, "failed to marshal policy")+ }+ return string(payloadBytes), nil+ case v1pb.PolicyType_DATA_EXPORT:+ if err := s.licenseService.IsFeatureEnabled(api.FeatureAccessControl); err != nil {+ return "", status.Error(codes.PermissionDenied, err.Error())+ }+ payload, err := convertToExportDataPolicyPayload(policy.GetExportDataPolicy())+ if err != nil {+ return "", status.Error(codes.InvalidArgument, err.Error())+ }+ payloadBytes, err := protojson.Marshal(payload)+ if err != nil {+ return "", errors.Wrap(err, "failed to marshal policy")}return string(payloadBytes), nilcase v1pb.PolicyType_MASKING_RULE:@@ -712,6 +725,13 @@ func (s *OrgPolicyService) convertToPolicy(ctx context.Context, parentPath strinreturn nil, err}policy.Policy = payload+ case api.PolicyTypeExportData:+ pType = v1pb.PolicyType_DATA_EXPORT+ payload, err := convertToV1PBExportDataPolicy(policyMessage.Payload)+ if err != nil {+ return nil, err+ }+ policy.Policy = payloadcase api.PolicyTypeMaskingRule:pType = v1pb.PolicyType_MASKING_RULEmaskingRulePolicy := &storepb.MaskingRulePolicy{}@@ -960,12 +980,30 @@ func convertToV1PBDisableCopyDataPolicy(payloadStr string) (*v1pb.Policy_Disable}, nil}+func convertToV1PBExportDataPolicy(payloadStr string) (*v1pb.Policy_ExportDataPolicy, error) {+ payload := &storepb.ExportDataPolicy{}+ if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(payloadStr), payload); err != nil {+ return nil, errors.Wrapf(err, "failed to unmarshal disable copy policy payload")+ }+ return &v1pb.Policy_ExportDataPolicy{+ ExportDataPolicy: &v1pb.ExportDataPolicy{+ Disable: payload.Disable,+ },+ }, nil+}+func convertToDisableCopyDataPolicyPayload(policy *v1pb.DisableCopyDataPolicy) (*storepb.DisableCopyDataPolicy, error) {return &storepb.DisableCopyDataPolicy{Active: policy.Active,}, nil}+func convertToExportDataPolicyPayload(policy *v1pb.ExportDataPolicy) (*storepb.ExportDataPolicy, error) {+ return &storepb.ExportDataPolicy{+ Disable: policy.Disable,+ }, nil+}+func convertToStorePBMskingRulePolicy(policy *v1pb.MaskingRulePolicy) (*storepb.MaskingRulePolicy, error) {var rules []*storepb.MaskingRulePolicy_MaskingRulefor _, rule := range policy.Rules {@@ -1115,6 +1153,8 @@ func convertPolicyType(pType string) (api.PolicyType, error) {return api.PolicyTypeSlowQuery, nilcase v1pb.PolicyType_DISABLE_COPY_DATA.String():return api.PolicyTypeDisableCopyData, nil+ case v1pb.PolicyType_DATA_EXPORT.String():+ return api.PolicyTypeExportData, nilcase v1pb.PolicyType_RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW.String():return api.PolicyTypeRestrictIssueCreationForSQLReview, nilcase v1pb.PolicyType_DATA_SOURCE_QUERY.String():diff --git a/backend/api/v1/sql_service.go b/backend/api/v1/sql_service.goindex 9eea9e8e5f..f0efc4d823 100644--- a/backend/api/v1/sql_service.go+++ b/backend/api/v1/sql_service.go@@ -537,6 +537,13 @@ func executeWithTimeout(ctx context.Context, driver db.Driver, conn *sql.Conn, s// Export exports the SQL query result.func (s *SQLService) Export(ctx context.Context, request *v1pb.ExportRequest) (*v1pb.ExportResponse, error) {+ exportDataPolicy, err := s.store.GetDataExportPolicy(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get data export policy: %v", err)+ }+ if exportDataPolicy.Disable {+ return nil, status.Errorf(codes.PermissionDenied, "data export is not allowed")+ }// Prehandle export from issue.if strings.HasPrefix(request.Name, common.ProjectNamePrefix) {return s.doExportFromIssue(ctx, request.Name)diff --git a/backend/legacyapi/policy.go b/backend/legacyapi/policy.goindex 22a9d0c5c0..181ac15afa 100644--- a/backend/legacyapi/policy.go+++ b/backend/legacyapi/policy.go@@ -31,6 +31,8 @@ const (PolicyTypeSlowQuery PolicyType = "bb.policy.slow-query"// PolicyTypeDisableCopyData is the disable copy data policy type.PolicyTypeDisableCopyData PolicyType = "bb.policy.disable-copy-data"+ // PolicyTypeExportData is the policy type for data export control.+ PolicyTypeExportData PolicyType = "bb.policy.export-data"// PolicyTypeMaskingRule is the masking rule policy type.PolicyTypeMaskingRule PolicyType = "bb.policy.masking-rule"// PolicyTypeRestrictIssueCreationForSQLReview is the policy type for restricting issue creation for SQL review.@@ -78,6 +80,7 @@ var (PolicyTypeMasking: {PolicyResourceTypeDatabase},PolicyTypeSlowQuery: {PolicyResourceTypeInstance},PolicyTypeDisableCopyData: {PolicyResourceTypeEnvironment, PolicyResourceTypeProject},+ PolicyTypeExportData: {PolicyResourceTypeWorkspace},PolicyTypeMaskingRule: {PolicyResourceTypeWorkspace},PolicyTypeMaskingException: {PolicyResourceTypeProject},PolicyTypeRestrictIssueCreationForSQLReview: {PolicyResourceTypeWorkspace, PolicyResourceTypeProject},diff --git a/backend/store/policy.go b/backend/store/policy.goindex 85e4aeae80..ca162d6ddd 100644--- a/backend/store/policy.go+++ b/backend/store/policy.go@@ -153,6 +153,30 @@ func (s *Store) GetRolloutPolicy(ctx context.Context, environmentID int) (*storereturn p, nil}+func (s *Store) GetDataExportPolicy(ctx context.Context) (*storepb.ExportDataPolicy, error) {+ resourceType := api.PolicyResourceTypeWorkspace+ pType := api.PolicyTypeExportData+ policy, err := s.GetPolicyV2(ctx, &FindPolicyMessage{+ ResourceType: &resourceType,+ Type: &pType,+ })+ if err != nil {+ return nil, errors.Wrapf(err, "failed to get policy")+ }+ if policy == nil {+ return &storepb.ExportDataPolicy{+ Disable: false,+ }, nil+ }++ p := &storepb.ExportDataPolicy{}+ if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(policy.Payload), p); err != nil {+ return nil, errors.Wrapf(err, "failed to unmarshal data export policy")+ }++ return p, nil+}+// GetReviewConfigForDatabase will get the review config for a database.func (s *Store) GetReviewConfigForDatabase(ctx context.Context, database *DatabaseMessage) (*storepb.ReviewConfigPayload, error) {resources := []DatabaseReviewConfig{diff --git a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vueindex 5c7c763a30..2e313247d2 100644--- a/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue+++ b/frontend/src/components/EnvironmentForm/AccessControlConfigure.vue@@ -187,10 +187,13 @@ const allowUpdatePolicy = computed(() => {});const updateDisableCopyDataPolicy = async (on: boolean) => {- await policyStore.createPolicy(props.resource, {- type: PolicyType.DISABLE_COPY_DATA,- disableCopyDataPolicy: {- active: on,+ await policyStore.upsertPolicy({+ parentPath: props.resource,+ policy: {+ type: PolicyType.DISABLE_COPY_DATA,+ disableCopyDataPolicy: {+ active: on,+ },},});pushNotification({@@ -220,7 +223,6 @@ const updateAdminDataSourceQueryRestrctionPolicy = async (...policy,}),},- updateMask: ["payload"],});pushNotification({module: "bytebase",diff --git a/frontend/src/components/GeneralSetting/AccountSetting.vue b/frontend/src/components/GeneralSetting/AccountSetting.vueindex 3580be7233..4d74e389a1 100644--- a/frontend/src/components/GeneralSetting/AccountSetting.vue+++ b/frontend/src/components/GeneralSetting/AccountSetting.vue@@ -29,7 +29,7 @@{{ $t("settings.general.workspace.require-2fa.enable") }}</span></div>- <div class="mb-3 text-sm text-gray-400">+ <div class="mt-1 mb-3 text-sm text-gray-400">{{ $t("settings.general.workspace.require-2fa.description") }}</div></div>@@ -45,7 +45,7 @@{{ $t("settings.general.workspace.disallow-signup.enable") }}</span></div>- <div class="mb-3 text-sm text-gray-400">+ <div class="mt-1 mb-3 text-sm text-gray-400">{{ $t("settings.general.workspace.disallow-signup.description") }}</div></div>@@ -63,7 +63,7 @@}}</span></div>- <div class="mb-3 text-sm text-gray-400">+ <div class="mt-1 mb-3 text-sm text-gray-400">{{$t("settings.general.workspace.disallow-password-signin.description"diff --git a/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue b/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vueindex c26991ce1a..2aacc738b7 100644--- a/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue+++ b/frontend/src/components/GeneralSetting/DomainRestrictionSetting.vue@@ -1,5 +1,5 @@<template>- <div class="mb-7 mt-4 lg:mt-0">+ <div><h3id="domain-restriction"class="font-medium flex flex-row justify-start items-center"diff --git a/frontend/src/components/GeneralSetting/MaximumRoleExpirationSetting.vue b/frontend/src/components/GeneralSetting/MaximumRoleExpirationSetting.vueindex e4f44b223c..ee1b4fa32d 100644--- a/frontend/src/components/GeneralSetting/MaximumRoleExpirationSetting.vue+++ b/frontend/src/components/GeneralSetting/MaximumRoleExpirationSetting.vue@@ -1,5 +1,5 @@<template>- <div class="mb-7 mt-4 lg:mt-0">+ <div><p class="font-medium flex flex-row justify-start items-center"><span class="mr-2">{{$t("settings.general.workspace.maximum-role-expiration.self")diff --git a/frontend/src/components/GeneralSetting/MaximumSQLResultSizeSetting.vue b/frontend/src/components/GeneralSetting/MaximumSQLResultSizeSetting.vueindex 9ed1f946c5..7c31d9ea72 100644--- a/frontend/src/components/GeneralSetting/MaximumSQLResultSizeSetting.vue+++ b/frontend/src/components/GeneralSetting/MaximumSQLResultSizeSetting.vue@@ -1,5 +1,5 @@<template>- <div class="mb-7 mt-4 lg:mt-0">+ <div><p class="font-medium flex flex-row justify-start items-center"><span class="mr-2">{{ $t("settings.general.workspace.maximum-sql-result.self") }}diff --git a/frontend/src/components/GeneralSetting/RestrictIssueCreationConfigure.vue b/frontend/src/components/GeneralSetting/RestrictIssueCreationConfigure.vueindex f869df3eaa..2dcd5e61f9 100644--- a/frontend/src/components/GeneralSetting/RestrictIssueCreationConfigure.vue+++ b/frontend/src/components/GeneralSetting/RestrictIssueCreationConfigure.vue@@ -27,9 +27,14 @@</template><script setup lang="ts">-import { computed, watchEffect } from "vue";+import { computed } from "vue";import { useI18n } from "vue-i18n";-import { hasFeature, pushNotification, usePolicyV1Store } from "@/store";+import {+ hasFeature,+ pushNotification,+ usePolicyV1Store,+ usePolicyByParentAndType,+} from "@/store";import {PolicyResourceType,PolicyType,@@ -54,28 +59,28 @@ const allowEdit = computed(() => {);});-watchEffect(async () => {- await policyV1Store.getOrFetchPolicyByParentAndType({+const policy = usePolicyByParentAndType(+ computed(() => ({parentPath: props.resource,policyType: PolicyType.RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW,- });-});+ }))+);const restrictIssueCreationForSQLReview = computed((): boolean => {return (- policyV1Store.getPolicyByParentAndType({- parentPath: props.resource,- policyType: PolicyType.RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW,- })?.restrictIssueCreationForSqlReviewPolicy?.disallow ?? false+ policy.value?.restrictIssueCreationForSqlReviewPolicy?.disallow ?? false);});const handleRestrictIssueCreationForSQLReviewToggle = async (on: boolean) => {- await policyV1Store.createPolicy(props.resource, {- type: PolicyType.RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW,- resourceType: PolicyResourceType.PROJECT,- restrictIssueCreationForSqlReviewPolicy: {- disallow: on,+ await policyV1Store.upsertPolicy({+ parentPath: props.resource,+ policy: {+ type: PolicyType.RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW,+ resourceType: PolicyResourceType.PROJECT,+ restrictIssueCreationForSqlReviewPolicy: {+ disallow: on,+ },},});diff --git a/frontend/src/components/GeneralSetting/SecuritySetting.vue b/frontend/src/components/GeneralSetting/SecuritySetting.vueindex b014f78501..ec57db9e7c 100644--- a/frontend/src/components/GeneralSetting/SecuritySetting.vue+++ b/frontend/src/components/GeneralSetting/SecuritySetting.vue@@ -1,39 +1,52 @@<template>- <div id="security" class="py-6 lg:flex">+ <div id="security" class="py-6 lg:flex space-y-4 lg:space-y-0"><div class="text-left lg:w-1/4"><div class="flex items-center space-x-2"><h1 class="text-2xl font-bold">{{ $t("settings.general.workspace.security") }}</h1>- <FeatureBadge feature="bb.feature.watermark" /></div><span v-if="!allowEdit" class="text-sm text-gray-400">{{ $t("settings.general.workspace.only-admin-can-edit") }}</span></div>- <div class="flex-1 lg:px-4">- <div class="mb-7 mt-4 lg:mt-0">+ <div class="flex-1 lg:px-4 space-y-7">+ <div><div class="flex items-center gap-x-2"><Switch:value="watermarkEnabled":text="true"- :disabled="!allowEdit"+ :disabled="!allowEdit || !hasWatermarkFeature"@update:value="handleWatermarkToggle"/><span class="textlabel">{{ $t("settings.general.workspace.watermark.enable") }}</span>+ <FeatureBadge feature="bb.feature.watermark" /></div>- <div class="mb-3 text-sm text-gray-400">+ <div class="mt-1 mb-3 text-sm text-gray-400">{{ $t("settings.general.workspace.watermark.description") }}</div></div>- <RestrictIssueCreationConfigure- class="mb-7 mt-4 lg:mt-0"- :resource="''"- :allow-edit="allowEdit"- />+ <div>+ <div class="flex items-center gap-x-2">+ <Switch+ :value="dataExportEnable"+ :text="true"+ :disabled="!allowEdit || !hasAccessControlFeature"+ @update:value="handleDataExportToggle"+ />+ <span class="textlabel">+ {{ $t("settings.general.workspace.data-export.enable") }}+ </span>+ <FeatureBadge feature="bb.feature.access-control" />+ </div>+ <div class="mt-1 mb-3 text-sm text-gray-400">+ {{ $t("settings.general.workspace.data-export.description") }}+ </div>+ </div>+ <RestrictIssueCreationConfigure :resource="''" :allow-edit="allowEdit" /><MaximumSQLResultSizeSetting :allow-edit="allowEdit" /><MaximumRoleExpirationSetting :allow-edit="allowEdit" /><DomainRestrictionSetting :allow-edit="allowEdit" />@@ -51,9 +64,18 @@import { computed, reactive } from "vue";import { useI18n } from "vue-i18n";import { Switch } from "@/components/v2";-import { featureToRef, pushNotification } from "@/store";-import { useSettingV1Store } from "@/store/modules/v1/setting";+import {+ featureToRef,+ pushNotification,+ useSettingV1Store,+ usePolicyV1Store,+ usePolicyByParentAndType,+} from "@/store";import type { FeatureType } from "@/types";+import {+ PolicyType,+ PolicyResourceType,+} from "@/types/proto/v1/org_policy_service";import { FeatureBadge, FeatureModal } from "../FeatureGuard";import DomainRestrictionSetting from "./DomainRestrictionSetting.vue";import MaximumRoleExpirationSetting from "./MaximumRoleExpirationSetting.vue";@@ -71,7 +93,16 @@ defineProps<{const state = reactive<LocalState>({});const { t } = useI18n();const settingV1Store = useSettingV1Store();+const policyV1Store = usePolicyV1Store();const hasWatermarkFeature = featureToRef("bb.feature.branding");+const hasAccessControlFeature = featureToRef("bb.feature.access-control");++const exportDataPolicy = usePolicyByParentAndType(+ computed(() => ({+ parentPath: "",+ policyType: PolicyType.DATA_EXPORT,+ }))+);const watermarkEnabled = computed((): boolean => {return (@@ -80,6 +111,29 @@ const watermarkEnabled = computed((): boolean => {);});+const dataExportEnable = computed(() => {+ return !exportDataPolicy.value?.exportDataPolicy?.disable;+});++const handleDataExportToggle = async (on: boolean) => {+ await policyV1Store.upsertPolicy({+ parentPath: "",+ policy: {+ type: PolicyType.DATA_EXPORT,+ resourceType: PolicyResourceType.WORKSPACE,+ exportDataPolicy: {+ disable: !on,+ },+ },+ });++ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("common.updated"),+ });+};+const handleWatermarkToggle = async (on: boolean) => {if (!hasWatermarkFeature.value && on) {state.featureNameForModal = "bb.feature.watermark";diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vueindex a5049ef2a0..b8ac017187 100644--- a/frontend/src/components/QuickActionPanel.vue+++ b/frontend/src/components/QuickActionPanel.vue@@ -112,6 +112,7 @@ import {useProjectV1Store,useInstanceResourceList,useAppFeature,+ usePolicyByParentAndType,} from "@/store";import { projectNamePrefix } from "@/store/modules/v1/common";import {@@ -119,6 +120,7 @@ import {type FeatureType,PresetRoleType,} from "@/types";+import { PolicyType } from "@/types/proto/v1/org_policy_service";import { DatabaseChangeMode } from "@/types/proto/v1/setting_service";import { hasProjectPermissionV2 } from "@/utils";import { FeatureModal } from "./FeatureGuard";@@ -158,6 +160,13 @@ const hasDBAWorkflowFeature = computed(() => {return subscriptionStore.hasFeature("bb.feature.dba-workflow");});+const exportDataPolicy = usePolicyByParentAndType(+ computed(() => ({+ parentPath: "",+ policyType: PolicyType.DATA_EXPORT,+ }))+);+const state = reactive<LocalState>({quickActionType: undefined,});@@ -266,7 +275,9 @@ const availableQuickActionList = computed((): QuickAction[] => {{type: "quickaction.bb.issue.grant.request.exporter",title: t("custom-approval.risk-rule.risk.namespace.request_export"),- hide: !hasDBAWorkflowFeature.value,+ hide:+ !hasDBAWorkflowFeature.value ||+ (exportDataPolicy.value?.exportDataPolicy?.disable ?? false),action: () =>(state.quickActionType = "quickaction.bb.issue.grant.request.exporter"),icon: h(FileDownIcon),diff --git a/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue b/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vueindex 24c0421589..25d1550f82 100644--- a/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue+++ b/frontend/src/components/SensitiveData/GlobalMaskingRulesView.vue@@ -304,7 +304,6 @@ const onPolicyUpsert = async () => {await policyStore.upsertPolicy({parentPath: "",policy: patch,- updateMask: ["payload"],});};diff --git a/frontend/src/components/SensitiveData/GrantAccessForm.vue b/frontend/src/components/SensitiveData/GrantAccessForm.vueindex dc407f700a..d9fe8ee969 100644--- a/frontend/src/components/SensitiveData/GrantAccessForm.vue+++ b/frontend/src/components/SensitiveData/GrantAccessForm.vue@@ -203,7 +203,6 @@ const onSubmit = async () => {await policyStore.upsertPolicy({parentPath: props.projectName,policy: pendingUpdate,- updateMask: ["payload"],});pushNotification({module: "bytebase",diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vueindex 4b9a8097d5..40356b194f 100644--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue@@ -560,6 +560,9 @@ const updateExceptionPolicy = async () => {...(policy.maskingExceptionPolicy ?? {}),maskingExceptions: unChangedExceptions,};- await policyStore.updatePolicy(["payload"], policy);+ await policyStore.upsertPolicy({+ parentPath: props.project,+ policy,+ });};</script>diff --git a/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue b/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vueindex 58ed1d041d..2683e23d92 100644--- a/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue+++ b/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue@@ -308,7 +308,6 @@ const upsertMaskingPolicy = async () => {await policyStore.upsertPolicy({parentPath: props.column.database.name,policy: upsert,- updateMask: ["payload"],});};diff --git a/frontend/src/components/SensitiveData/SensitiveColumnView.vue b/frontend/src/components/SensitiveData/SensitiveColumnView.vueindex 229c7e1819..04b9d38875 100644--- a/frontend/src/components/SensitiveData/SensitiveColumnView.vue+++ b/frontend/src/components/SensitiveData/SensitiveColumnView.vue@@ -298,12 +298,15 @@ const removeSensitiveColumn = async (sensitiveColumn: SensitiveColumn) => {// so we don't need to re-fetch the whole list.maskData.splice(index, 1);- await policyStore.updatePolicy(["payload"], {- name: policy.name,- type: PolicyType.MASKING,- resourceType: PolicyResourceType.DATABASE,- maskingPolicy: {- maskData,+ await policyStore.upsertPolicy({+ parentPath: sensitiveColumn.database.name,+ policy: {+ name: policy.name,+ type: PolicyType.MASKING,+ resourceType: PolicyResourceType.DATABASE,+ maskingPolicy: {+ maskData,+ },},});await removeMaskingExceptions(sensitiveColumn);@@ -329,7 +332,10 @@ const removeMaskingExceptions = async (sensitiveColumn: SensitiveColumn) => {...(policy.maskingExceptionPolicy ?? {}),maskingExceptions: exceptions,};- await policyStore.updatePolicy(["payload"], policy);+ await policyStore.upsertPolicy({+ parentPath: sensitiveColumn.database.project,+ policy,+ });};const onColumnRemove = async (column: SensitiveColumn) => {diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 4ae7b60446..07c434bd43 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -677,6 +677,10 @@"only-admin-can-edit": "Only workspace admin can update watermark setting.","enable": "Enable watermark"},+ "data-export": {+ "enable": "Enable data export",+ "description": "Allow users to export data"+ },"disallow-signup": {"enable": "Disallow self-service signup","description": "Users cannot self-service signup and can only be invited by the workspace admin."diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 40c35b6c8c..98cba39630 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -677,6 +677,10 @@"only-admin-can-edit": "Solo el administrador del espacio de trabajo puede actualizar la configuración de la marca de agua.","enable": "Activar marca de agua"},+ "data-export": {+ "enable": "Habilitar la exportación de datos",+ "description": "Permitir a los usuarios exportar datos"+ },"disallow-signup": {"enable": "Deshabilitar el registro de autoservicio","description": "Una vez deshabilitado, los usuarios no pueden registrarse por sí mismos y solo pueden ser invitados por el administrador del espacio de trabajo."diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex ff5d38ed36..9816769dce 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -677,6 +677,10 @@"only-admin-can-edit": "管理者のみがウォーターマーク設定を更新できます","enable": "ウォーターマークをオンにする"},+ "data-export": {+ "enable": "データのエクスポートを有効にする",+ "description": "ユーザーにデータのエクスポートを許可する"+ },"disallow-signup": {"enable": "セルフサービス登録を無効にする","description": "無効化されると、新しいユーザーは自己登録できなくなり、管理者の招待を通じてのみアカウントを作成できます。"diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex f1fe90f1a3..90a0751ba6 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -677,6 +677,10 @@"only-admin-can-edit": "仅管理员可以更新水印设置","enable": "开启水印"},+ "data-export": {+ "enable": "启用数据导出",+ "description": "允许用户导出数据"+ },"disallow-signup": {"enable": "禁用自助注册","description": "禁用之后,新用户将无法自助注册,只能通过管理员邀请来创建账户。"diff --git a/frontend/src/store/modules/slowQueryPolicy.ts b/frontend/src/store/modules/slowQueryPolicy.tsindex a62c4db8bd..e409e2907e 100644--- a/frontend/src/store/modules/slowQueryPolicy.ts+++ b/frontend/src/store/modules/slowQueryPolicy.ts@@ -49,7 +49,6 @@ export const useSlowQueryPolicyStore = defineStore("slow-query-policy", () => {active,},},- updateMask: ["payload"],});if (policy) {diff --git a/frontend/src/store/modules/sqlReview.ts b/frontend/src/store/modules/sqlReview.tsindex bf1c6195ef..5be82723ef 100644--- a/frontend/src/store/modules/sqlReview.ts+++ b/frontend/src/store/modules/sqlReview.ts@@ -26,7 +26,6 @@ const upsertReviewConfigTag = async (await Promise.all(resources.map(async (resourcePath) => {await policyStore.upsertPolicy({- updateMask: ["payload"],parentPath: resourcePath,policy: {name: getTagPolicyName(resourcePath),diff --git a/frontend/src/store/modules/v1/policy.ts b/frontend/src/store/modules/v1/policy.tsindex 7486acdd61..6c1994273e 100644--- a/frontend/src/store/modules/v1/policy.ts+++ b/frontend/src/store/modules/v1/policy.ts@@ -152,30 +152,12 @@ export const usePolicyV1Store = defineStore("policy_v1", {getPolicyByName(name: string) {return this.policyMapByName.get(replacePolicyTypeNameToLowerCase(name));},- async createPolicy(parent: string, policy: Partial<Policy>) {- const createdPolicy = await policyServiceClient.createPolicy({- parent,- policy,- });- this.policyMapByName.set(createdPolicy.name, createdPolicy);- return createdPolicy;- },- async updatePolicy(updateMask: string[], policy: Partial<Policy>) {- const updatedPolicy = await policyServiceClient.updatePolicy({- policy,- updateMask,- });- this.policyMapByName.set(updatedPolicy.name, updatedPolicy);- return updatedPolicy;- },async upsertPolicy({parentPath,policy,- updateMask,}: {parentPath: string;policy: Partial<Policy>;- updateMask?: string[];}) {if (!policy.type) {throw new Error("policy type is required");@@ -185,7 +167,7 @@ export const usePolicyV1Store = defineStore("policy_v1", {);const updatedPolicy = await policyServiceClient.updatePolicy({policy,- updateMask,+ updateMask: ["payload"],allowMissing: true,});this.policyMapByName.set(updatedPolicy.name, updatedPolicy);diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.tsindex 5a157e0683..3e352a08a8 100644--- a/frontend/src/types/proto/store/policy.ts+++ b/frontend/src/types/proto/store/policy.ts@@ -313,6 +313,11 @@ export interface DisableCopyDataPolicy {active: boolean;}+/** ExportDataPolicy is the policy configuration for export data. */+export interface ExportDataPolicy {+ disable: boolean;+}+/** RestrictIssueCreationForSQLReviewPolicy is the policy configuration for restricting issue creation for SQL review. */export interface RestrictIssueCreationForSQLReviewPolicy {disallow: boolean;@@ -1632,6 +1637,63 @@ export const DisableCopyDataPolicy: MessageFns<DisableCopyDataPolicy> = {},};+function createBaseExportDataPolicy(): ExportDataPolicy {+ return { disable: false };+}++export const ExportDataPolicy: MessageFns<ExportDataPolicy> = {+ encode(message: ExportDataPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.disable !== false) {+ writer.uint32(8).bool(message.disable);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ExportDataPolicy {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseExportDataPolicy();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.disable = reader.bool();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ExportDataPolicy {+ return { disable: isSet(object.disable) ? globalThis.Boolean(object.disable) : false };+ },++ toJSON(message: ExportDataPolicy): unknown {+ const obj: any = {};+ if (message.disable !== false) {+ obj.disable = message.disable;+ }+ return obj;+ },++ create(base?: DeepPartial<ExportDataPolicy>): ExportDataPolicy {+ return ExportDataPolicy.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ExportDataPolicy>): ExportDataPolicy {+ const message = createBaseExportDataPolicy();+ message.disable = object.disable ?? false;+ return message;+ },+};+function createBaseRestrictIssueCreationForSQLReviewPolicy(): RestrictIssueCreationForSQLReviewPolicy {return { disallow: false };}diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex d1530625a7..001bbb47e8 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -34,6 +34,7 @@ export enum PolicyType {RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW = "RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW",TAG = "TAG",DATA_SOURCE_QUERY = "DATA_SOURCE_QUERY",+ DATA_EXPORT = "DATA_EXPORT",UNRECOGNIZED = "UNRECOGNIZED",}@@ -69,6 +70,9 @@ export function policyTypeFromJSON(object: any): PolicyType {case 14:case "DATA_SOURCE_QUERY":return PolicyType.DATA_SOURCE_QUERY;+ case 15:+ case "DATA_EXPORT":+ return PolicyType.DATA_EXPORT;case -1:case "UNRECOGNIZED":default:@@ -98,6 +102,8 @@ export function policyTypeToJSON(object: PolicyType): string {return "TAG";case PolicyType.DATA_SOURCE_QUERY:return "DATA_SOURCE_QUERY";+ case PolicyType.DATA_EXPORT:+ return "DATA_EXPORT";case PolicyType.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -126,6 +132,8 @@ export function policyTypeToNumber(object: PolicyType): number {return 13;case PolicyType.DATA_SOURCE_QUERY:return 14;+ case PolicyType.DATA_EXPORT:+ return 15;case PolicyType.UNRECOGNIZED:default:return -1;@@ -390,6 +398,7 @@ export interface Policy {restrictIssueCreationForSqlReviewPolicy?: RestrictIssueCreationForSQLReviewPolicy | undefined;tagPolicy?: TagPolicy | undefined;dataSourceQueryPolicy?: DataSourceQueryPolicy | undefined;+ exportDataPolicy?: ExportDataPolicy | undefined;enforce: boolean;/** The resource type for the policy. */resourceType: PolicyResourceType;@@ -414,6 +423,10 @@ export interface DisableCopyDataPolicy {active: boolean;}+export interface ExportDataPolicy {+ disable: boolean;+}+export interface MaskingPolicy {maskData: MaskData[];}@@ -1110,6 +1123,7 @@ function createBasePolicy(): Policy {restrictIssueCreationForSqlReviewPolicy: undefined,tagPolicy: undefined,dataSourceQueryPolicy: undefined,+ exportDataPolicy: undefined,enforce: false,resourceType: PolicyResourceType.RESOURCE_TYPE_UNSPECIFIED,};@@ -1156,6 +1170,9 @@ export const Policy: MessageFns<Policy> = {if (message.dataSourceQueryPolicy !== undefined) {DataSourceQueryPolicy.encode(message.dataSourceQueryPolicy, writer.uint32(178).fork()).join();}+ if (message.exportDataPolicy !== undefined) {+ ExportDataPolicy.encode(message.exportDataPolicy, writer.uint32(186).fork()).join();+ }if (message.enforce !== false) {writer.uint32(104).bool(message.enforce);}@@ -1259,6 +1276,13 @@ export const Policy: MessageFns<Policy> = {message.dataSourceQueryPolicy = DataSourceQueryPolicy.decode(reader, reader.uint32());continue;+ case 23:+ if (tag !== 186) {+ break;+ }++ message.exportDataPolicy = ExportDataPolicy.decode(reader, reader.uint32());+ continue;case 13:if (tag !== 104) {break;@@ -1306,6 +1330,7 @@ export const Policy: MessageFns<Policy> = {dataSourceQueryPolicy: isSet(object.dataSourceQueryPolicy)? DataSourceQueryPolicy.fromJSON(object.dataSourceQueryPolicy): undefined,+ exportDataPolicy: isSet(object.exportDataPolicy) ? ExportDataPolicy.fromJSON(object.exportDataPolicy) : undefined,enforce: isSet(object.enforce) ? globalThis.Boolean(object.enforce) : false,resourceType: isSet(object.resourceType)? policyResourceTypeFromJSON(object.resourceType)@@ -1353,6 +1378,9 @@ export const Policy: MessageFns<Policy> = {if (message.dataSourceQueryPolicy !== undefined) {obj.dataSourceQueryPolicy = DataSourceQueryPolicy.toJSON(message.dataSourceQueryPolicy);}+ if (message.exportDataPolicy !== undefined) {+ obj.exportDataPolicy = ExportDataPolicy.toJSON(message.exportDataPolicy);+ }if (message.enforce !== false) {obj.enforce = message.enforce;}@@ -1402,6 +1430,9 @@ export const Policy: MessageFns<Policy> = {(object.dataSourceQueryPolicy !== undefined && object.dataSourceQueryPolicy !== null)? DataSourceQueryPolicy.fromPartial(object.dataSourceQueryPolicy): undefined;+ message.exportDataPolicy = (object.exportDataPolicy !== undefined && object.exportDataPolicy !== null)+ ? ExportDataPolicy.fromPartial(object.exportDataPolicy)+ : undefined;message.enforce = object.enforce ?? false;message.resourceType = object.resourceType ?? PolicyResourceType.RESOURCE_TYPE_UNSPECIFIED;return message;@@ -1632,6 +1663,63 @@ export const DisableCopyDataPolicy: MessageFns<DisableCopyDataPolicy> = {},};+function createBaseExportDataPolicy(): ExportDataPolicy {+ return { disable: false };+}++export const ExportDataPolicy: MessageFns<ExportDataPolicy> = {+ encode(message: ExportDataPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.disable !== false) {+ writer.uint32(8).bool(message.disable);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ExportDataPolicy {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseExportDataPolicy();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.disable = reader.bool();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ExportDataPolicy {+ return { disable: isSet(object.disable) ? globalThis.Boolean(object.disable) : false };+ },++ toJSON(message: ExportDataPolicy): unknown {+ const obj: any = {};+ if (message.disable !== false) {+ obj.disable = message.disable;+ }+ return obj;+ },++ create(base?: DeepPartial<ExportDataPolicy>): ExportDataPolicy {+ return ExportDataPolicy.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ExportDataPolicy>): ExportDataPolicy {+ const message = createBaseExportDataPolicy();+ message.disable = object.disable ?? false;+ return message;+ },+};+function createBaseMaskingPolicy(): MaskingPolicy {return { maskData: [] };}diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vueindex 0e7c524013..a74364e16d 100644--- a/frontend/src/views/EnvironmentDashboard.vue+++ b/frontend/src/views/EnvironmentDashboard.vue@@ -213,7 +213,6 @@ const doCreate = async (params: {const requests = [policyV1Store.upsertPolicy({parentPath: createdEnvironment.name,- updateMask: ["payload"],policy: rolloutPolicy,}),];diff --git a/frontend/src/views/EnvironmentDetail.vue b/frontend/src/views/EnvironmentDetail.vueindex 07ff94ba92..10085e9793 100644--- a/frontend/src/views/EnvironmentDetail.vue+++ b/frontend/src/views/EnvironmentDetail.vue@@ -197,7 +197,6 @@ const updatePolicy = async (params: {const updatedPolicy = await policyV1Store.upsertPolicy({parentPath: environment.name,- updateMask: ["payload"],policy,});switch (policyType) {diff --git a/frontend/src/views/ExportCenter/index.vue b/frontend/src/views/ExportCenter/index.vueindex 2bc8db969c..11953b915b 100644--- a/frontend/src/views/ExportCenter/index.vue+++ b/frontend/src/views/ExportCenter/index.vue@@ -11,7 +11,7 @@:override-scope-id-list="overrideSearchScopeIdList"><template #searchbox-suffix>- <NTooltip :disabled="allowExportData">+ <NTooltip v-if="!disableDataExport" :disabled="allowExportData"><template #trigger><NButtontype="primary"@@ -23,6 +23,7 @@</template>{{ $t("export-center.permission-denied") }}</NTooltip>+ <div v-else /></template></IssueSearch></div>@@ -66,9 +67,14 @@ import DataExportPrepForm from "@/components/DataExportPrepForm";import IssueSearch from "@/components/IssueV1/components/IssueSearch/IssueSearch.vue";import PagedIssueTableV1 from "@/components/IssueV1/components/PagedIssueTableV1.vue";import { Drawer } from "@/components/v2";-import { useCurrentUserV1, useProjectV1Store } from "@/store";+import {+ useCurrentUserV1,+ useProjectV1Store,+ usePolicyByParentAndType,+} from "@/store";import { projectNamePrefix } from "@/store/modules/v1/common";import { Issue_Type } from "@/types/proto/v1/issue_service";+import { PolicyType } from "@/types/proto/v1/org_policy_service";import {buildIssueFilterBySearchParams,extractProjectResourceName,@@ -94,6 +100,13 @@ const specificProject = computed(() => {);});+const exportDataPolicy = usePolicyByParentAndType(+ computed(() => ({+ parentPath: "",+ policyType: PolicyType.DATA_EXPORT,+ }))+);+const readonlyScopes = computed((): SearchScope[] => {return [{@@ -155,6 +168,10 @@ const mergedIssueFilter = computed(() => {});});+const disableDataExport = computed(+ () => exportDataPolicy.value?.exportDataPolicy?.disable ?? false+);+const allowExportData = computed(() => {if (specificProject.value) {return hasPermissionToCreateDataExportIssueInProject(specificProject.value);diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vueindex c4c0e8d316..168e052850 100644--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue@@ -215,6 +215,8 @@ import {useConnectionOfCurrentSQLEditorTab,useSQLEditorStore,useAppFeature,+ pushNotification,+ usePolicyByParentAndType,} from "@/store";import { useExportData } from "@/store/modules/export";import type {@@ -225,6 +227,7 @@ import type {import { isValidDatabaseName, isValidInstanceName } from "@/types";import { ExportFormat } from "@/types/proto/v1/common";import { Engine } from "@/types/proto/v1/common";+import { PolicyType } from "@/types/proto/v1/org_policy_service";import type {QueryResult,QueryRow,@@ -282,10 +285,25 @@ const editorStore = useSQLEditorStore();const { exportData } = useExportData();const currentTab = computed(() => tabStore.currentTab);const { instance: connectedInstance } = useConnectionOfCurrentSQLEditorTab();-const disallowExportQueryData = useAppFeature(- "bb.feature.sql-editor.disallow-export-query-data"++const exportDataPolicy = usePolicyByParentAndType(+ computed(() => ({+ parentPath: "",+ policyType: PolicyType.DATA_EXPORT,+ })));+const disallowExportQueryData = computed(() => {+ const disableDataExport =+ exportDataPolicy.value?.exportDataPolicy?.disable ?? false;++ const appFeatureDisallowExport = useAppFeature(+ "bb.feature.sql-editor.disallow-export-query-data"+ );++ return disableDataExport || appFeatureDisallowExport;+});+const viewMode = computed((): ViewMode => {const { result } = props;if (result.error && data.value.length === 0) {@@ -455,21 +473,30 @@ const handleExportBtnClick = async (const admin = tabStore.currentTab?.mode === "ADMIN";const limit = options.limit ?? (admin ? 0 : editorStore.resultRowsLimit);- const content = await exportData({- database,- // TODO(lj): support data source id similar to queries.- dataSourceId: "",- format: options.format,- statement,- limit,- admin,- password: options.password,- });+ try {+ const content = await exportData({+ database,+ // TODO(lj): support data source id similar to queries.+ dataSourceId: "",+ format: options.format,+ statement,+ limit,+ admin,+ password: options.password,+ });- callback(- content,- `export-data.${dayjs(new Date()).format("YYYY-MM-DDTHH-mm-ss")}`- );+ callback(+ content,+ `export-data.${dayjs(new Date()).format("YYYY-MM-DDTHH-mm-ss")}`+ );+ } catch (e) {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: t("common.error"),+ description: String(e),+ });+ }};const handleRequestExport = async () => {diff --git a/frontend/src/views/sql-editor/Setting/Environment/Environment.vue b/frontend/src/views/sql-editor/Setting/Environment/Environment.vueindex d25d0058e0..ec16b005fc 100644--- a/frontend/src/views/sql-editor/Setting/Environment/Environment.vue+++ b/frontend/src/views/sql-editor/Setting/Environment/Environment.vue@@ -263,7 +263,6 @@ const doCreate = async (params: {const requests = [policyV1Store.upsertPolicy({parentPath: createdEnvironment.name,- updateMask: ["payload"],policy: rolloutPolicy,}),];diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 9321a6ddf5..3b8c278510 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -472,6 +472,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enum- name: pageSize@@ -539,6 +540,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enumrequestBody:@@ -1865,6 +1867,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enum- name: pageSize@@ -1938,6 +1941,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enumrequestBody:@@ -2740,6 +2744,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enum- name: pageSize@@ -2807,6 +2812,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enumrequestBody:@@ -3314,6 +3320,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enum- name: pageSize@@ -3385,6 +3392,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enumrequestBody:@@ -5414,6 +5422,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enum- name: pageSize@@ -5481,6 +5490,7 @@ paths:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enumrequestBody:@@ -10371,6 +10381,11 @@ components:A token to retrieve next page of log entities.Pass this value in the page_token field in the subsequent callto retrieve the next page of log entities.+ ExportDataPolicy:+ type: object+ properties:+ disable:+ type: booleanExportRequest:required:- name@@ -12354,6 +12369,7 @@ components:- RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW- TAG- DATA_SOURCE_QUERY+ - DATA_EXPORTtype: stringformat: enumrolloutPolicy:@@ -12374,6 +12390,8 @@ components:$ref: '#/components/schemas/TagPolicy'dataSourceQueryPolicy:$ref: '#/components/schemas/DataSourceQueryPolicy'+ exportDataPolicy:+ $ref: '#/components/schemas/ExportDataPolicy'enforce:type: booleanresourceType:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex af4da12e89..34ca44e06e 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -203,6 +203,7 @@- [DataSourceQueryPolicy](#bytebase-store-DataSourceQueryPolicy)- [DisableCopyDataPolicy](#bytebase-store-DisableCopyDataPolicy)- [EnvironmentTierPolicy](#bytebase-store-EnvironmentTierPolicy)+ - [ExportDataPolicy](#bytebase-store-ExportDataPolicy)- [IamPolicy](#bytebase-store-IamPolicy)- [MaskData](#bytebase-store-MaskData)- [MaskingExceptionPolicy](#bytebase-store-MaskingExceptionPolicy)@@ -3255,6 +3256,21 @@ EnvironmentTierPolicy is the tier of an environment.+<a name="bytebase-store-ExportDataPolicy"></a>++### ExportDataPolicy+ExportDataPolicy is the policy configuration for export data.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| disable | [bool](#bool) | | |++++++<a name="bytebase-store-IamPolicy"></a>### IamPolicydiff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex cb48231983..ff0e1e7baf 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -986,6 +986,10 @@<a href="#bytebase.store.EnvironmentTierPolicy"><span class="badge">M</span>EnvironmentTierPolicy</a></li>+ <li>+ <a href="#bytebase.store.ExportDataPolicy"><span class="badge">M</span>ExportDataPolicy</a>+ </li>+<li><a href="#bytebase.store.IamPolicy"><span class="badge">M</span>IamPolicy</a></li>@@ -8547,6 +8551,30 @@ If the condition evaluates to false, then this binding does not apply to the cur+ <h3 id="bytebase.store.ExportDataPolicy">ExportDataPolicy</h3>+ <p>ExportDataPolicy is the policy configuration for export data.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>disable</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.store.IamPolicy">IamPolicy</h3><p></p>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 4227644c50..ca592d027b 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -446,6 +446,7 @@- [DataSourceQueryPolicy](#bytebase-v1-DataSourceQueryPolicy)- [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest)- [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy)+ - [ExportDataPolicy](#bytebase-v1-ExportDataPolicy)- [GetPolicyRequest](#bytebase-v1-GetPolicyRequest)- [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest)- [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse)@@ -7380,6 +7381,21 @@ DataSourceQueryPolicy is the policy configuration for running statements in the+<a name="bytebase-v1-ExportDataPolicy"></a>++### ExportDataPolicy++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| disable | [bool](#bool) | | |++++++<a name="bytebase-v1-GetPolicyRequest"></a>### GetPolicyRequest@@ -7554,6 +7570,7 @@ MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| restrict_issue_creation_for_sql_review_policy | [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy) | | || tag_policy | [TagPolicy](#bytebase-v1-TagPolicy) | | || data_source_query_policy | [DataSourceQueryPolicy](#bytebase-v1-DataSourceQueryPolicy) | | |+| export_data_policy | [ExportDataPolicy](#bytebase-v1-ExportDataPolicy) | | || enforce | [bool](#bool) | | || resource_type | [PolicyResourceType](#bytebase-v1-PolicyResourceType) | | The resource type for the policy. |@@ -7740,6 +7757,7 @@ The policy's `name` field is used to identify the instance to update. Format| RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW | 12 | || TAG | 13 | || DATA_SOURCE_QUERY | 14 | |+| DATA_EXPORT | 15 | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 2665911d46..245d90ced7 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1874,6 +1874,10 @@<a href="#bytebase.v1.DisableCopyDataPolicy"><span class="badge">M</span>DisableCopyDataPolicy</a></li>+ <li>+ <a href="#bytebase.v1.ExportDataPolicy"><span class="badge">M</span>ExportDataPolicy</a>+ </li>+<li><a href="#bytebase.v1.GetPolicyRequest"><span class="badge">M</span>GetPolicyRequest</a></li>@@ -20647,6 +20651,30 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>+ <h3 id="bytebase.v1.ExportDataPolicy">ExportDataPolicy</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>disable</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.GetPolicyRequest">GetPolicyRequest</h3><p></p>@@ -21082,6 +21110,13 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><td><p> </p></td></tr>+ <tr>+ <td>export_data_policy</td>+ <td><a href="#bytebase.v1.ExportDataPolicy">ExportDataPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+<tr><td>enforce</td><td><a href="#bool">bool</a></td>@@ -21526,6 +21561,12 @@ In this situation, `update_mask` is ignored. </p></td><td><p></p></td></tr>+ <tr>+ <td>DATA_EXPORT</td>+ <td>15</td>+ <td><p></p></td>+ </tr>+</tbody></table>diff --git a/proto/generated-go/store/policy.pb.go b/proto/generated-go/store/policy.pb.goindex 860a991b08..dfca7b379a 100644--- a/proto/generated-go/store/policy.pb.go+++ b/proto/generated-go/store/policy.pb.go@@ -219,7 +219,7 @@ func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{13, 0}+ return file_store_policy_proto_rawDescGZIP(), []int{14, 0}}type RolloutPolicy struct {@@ -892,6 +892,52 @@ func (x *DisableCopyDataPolicy) GetActive() bool {return false}+// ExportDataPolicy is the policy configuration for export data.+type ExportDataPolicy struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,omitempty"`+}++func (x *ExportDataPolicy) Reset() {+ *x = ExportDataPolicy{}+ mi := &file_store_policy_proto_msgTypes[12]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ExportDataPolicy) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ExportDataPolicy) ProtoMessage() {}++func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {+ mi := &file_store_policy_proto_msgTypes[12]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ExportDataPolicy.ProtoReflect.Descriptor instead.+func (*ExportDataPolicy) Descriptor() ([]byte, []int) {+ return file_store_policy_proto_rawDescGZIP(), []int{12}+}++func (x *ExportDataPolicy) GetDisable() bool {+ if x != nil {+ return x.Disable+ }+ return false+}+// RestrictIssueCreationForSQLReviewPolicy is the policy configuration for restricting issue creation for SQL review.type RestrictIssueCreationForSQLReviewPolicy struct {state protoimpl.MessageState@@ -903,7 +949,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}- mi := &file_store_policy_proto_msgTypes[12]+ mi := &file_store_policy_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -915,7 +961,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[12]+ mi := &file_store_policy_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -928,7 +974,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Me// Deprecated: Use RestrictIssueCreationForSQLReviewPolicy.ProtoReflect.Descriptor instead.func (*RestrictIssueCreationForSQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{12}+ return file_store_policy_proto_rawDescGZIP(), []int{13}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -953,7 +999,7 @@ type DataSourceQueryPolicy struct {func (x *DataSourceQueryPolicy) Reset() {*x = DataSourceQueryPolicy{}- mi := &file_store_policy_proto_msgTypes[13]+ mi := &file_store_policy_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -965,7 +1011,7 @@ func (x *DataSourceQueryPolicy) String() string {func (*DataSourceQueryPolicy) ProtoMessage() {}func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[13]+ mi := &file_store_policy_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -978,7 +1024,7 @@ func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DataSourceQueryPolicy.ProtoReflect.Descriptor instead.func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {- return file_store_policy_proto_rawDescGZIP(), []int{13}+ return file_store_policy_proto_rawDescGZIP(), []int{14}}func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {@@ -1021,7 +1067,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}- mi := &file_store_policy_proto_msgTypes[14]+ mi := &file_store_policy_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1033,7 +1079,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[14]+ mi := &file_store_policy_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1090,7 +1136,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}- mi := &file_store_policy_proto_msgTypes[15]+ mi := &file_store_policy_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1102,7 +1148,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {- mi := &file_store_policy_proto_msgTypes[15]+ mi := &file_store_policy_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1270,36 +1316,39 @@ var file_store_policy_proto_rawDesc = []byte{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, 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, 0x9b, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51,- 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61, 0x64,- 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,- 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,- 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65,- 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,- 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,- 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c,- 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43,- 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01,- 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 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,+ 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10, 0x45, 0x78, 0x70,+ 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a,+ 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,+ 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 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, 0x9b,+ 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65,+ 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69,+ 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65,+ 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21,+ 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64,+ 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d,+ 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49,+ 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c,+ 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 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 (@@ -1315,7 +1364,7 @@ func file_store_policy_proto_rawDescGZIP() []byte {}var file_store_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 17)+var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 18)var file_store_policy_proto_goTypes = []any{(SQLReviewRuleLevel)(0), // 0: bytebase.store.SQLReviewRuleLevel(MaskingExceptionPolicy_MaskingException_Action)(0), // 1: bytebase.store.MaskingExceptionPolicy.MaskingException.Action@@ -1333,32 +1382,33 @@ var file_store_policy_proto_goTypes = []any{(*EnvironmentTierPolicy)(nil), // 13: bytebase.store.EnvironmentTierPolicy(*SlowQueryPolicy)(nil), // 14: bytebase.store.SlowQueryPolicy(*DisableCopyDataPolicy)(nil), // 15: bytebase.store.DisableCopyDataPolicy- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 16: bytebase.store.RestrictIssueCreationForSQLReviewPolicy- (*DataSourceQueryPolicy)(nil), // 17: bytebase.store.DataSourceQueryPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 18: bytebase.store.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 19: bytebase.store.MaskingRulePolicy.MaskingRule- nil, // 20: bytebase.store.TagPolicy.TagsEntry- (MaskingLevel)(0), // 21: bytebase.store.MaskingLevel- (Engine)(0), // 22: bytebase.store.Engine- (*expr.Expr)(nil), // 23: google.type.Expr+ (*ExportDataPolicy)(nil), // 16: bytebase.store.ExportDataPolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 17: bytebase.store.RestrictIssueCreationForSQLReviewPolicy+ (*DataSourceQueryPolicy)(nil), // 18: bytebase.store.DataSourceQueryPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 19: bytebase.store.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 20: bytebase.store.MaskingRulePolicy.MaskingRule+ nil, // 21: bytebase.store.TagPolicy.TagsEntry+ (MaskingLevel)(0), // 22: bytebase.store.MaskingLevel+ (Engine)(0), // 23: bytebase.store.Engine+ (*expr.Expr)(nil), // 24: google.type.Expr}var file_store_policy_proto_depIdxs = []int32{6, // 0: bytebase.store.MaskingPolicy.mask_data:type_name -> bytebase.store.MaskData- 21, // 1: bytebase.store.MaskData.masking_level:type_name -> bytebase.store.MaskingLevel- 18, // 2: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException- 19, // 3: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule+ 22, // 1: bytebase.store.MaskData.masking_level:type_name -> bytebase.store.MaskingLevel+ 19, // 2: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException+ 20, // 3: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule0, // 4: bytebase.store.SQLReviewRule.level:type_name -> bytebase.store.SQLReviewRuleLevel- 22, // 5: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine- 20, // 6: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry- 23, // 7: bytebase.store.Binding.condition:type_name -> google.type.Expr+ 23, // 5: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine+ 21, // 6: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry+ 24, // 7: bytebase.store.Binding.condition:type_name -> google.type.Expr11, // 8: bytebase.store.IamPolicy.bindings:type_name -> bytebase.store.Binding2, // 9: bytebase.store.EnvironmentTierPolicy.environment_tier:type_name -> bytebase.store.EnvironmentTierPolicy.EnvironmentTier3, // 10: bytebase.store.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.store.DataSourceQueryPolicy.Restriction1, // 11: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action- 21, // 12: bytebase.store.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.store.MaskingLevel- 23, // 13: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 23, // 14: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 21, // 15: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel+ 22, // 12: bytebase.store.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.store.MaskingLevel+ 24, // 13: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 24, // 14: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 22, // 15: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel16, // [16:16] is the sub-list for method output_type16, // [16:16] is the sub-list for method input_type16, // [16:16] is the sub-list for extension type_name@@ -1378,7 +1428,7 @@ func file_store_policy_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_policy_proto_rawDesc,NumEnums: 4,- NumMessages: 17,+ NumMessages: 18,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 6a90149fd4..c96e9f09c3 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -37,6 +37,7 @@ const (PolicyType_RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW PolicyType = 12PolicyType_TAG PolicyType = 13PolicyType_DATA_SOURCE_QUERY PolicyType = 14+ PolicyType_DATA_EXPORT PolicyType = 15)// Enum value maps for PolicyType.@@ -52,6 +53,7 @@ var (12: "RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW",13: "TAG",14: "DATA_SOURCE_QUERY",+ 15: "DATA_EXPORT",}PolicyType_value = map[string]int32{"POLICY_TYPE_UNSPECIFIED": 0,@@ -64,6 +66,7 @@ var ("RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW": 12,"TAG": 13,"DATA_SOURCE_QUERY": 14,+ "DATA_EXPORT": 15,})@@ -250,7 +253,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{13, 0, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14, 0, 0}}type DataSourceQueryPolicy_Restriction int32@@ -301,7 +304,7 @@ func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{18, 0}}type CreatePolicyRequest struct {@@ -713,6 +716,7 @@ type Policy struct {// *Policy_RestrictIssueCreationForSqlReviewPolicy// *Policy_TagPolicy// *Policy_DataSourceQueryPolicy+ // *Policy_ExportDataPolicyPolicy isPolicy_Policy `protobuf_oneof:"policy"`Enforce bool `protobuf:"varint,13,opt,name=enforce,proto3" json:"enforce,omitempty"`// The resource type for the policy.@@ -840,6 +844,13 @@ func (x *Policy) GetDataSourceQueryPolicy() *DataSourceQueryPolicy {return nil}+func (x *Policy) GetExportDataPolicy() *ExportDataPolicy {+ if x, ok := x.GetPolicy().(*Policy_ExportDataPolicy); ok {+ return x.ExportDataPolicy+ }+ return nil+}+func (x *Policy) GetEnforce() bool {if x != nil {return x.Enforce@@ -894,6 +905,10 @@ type Policy_DataSourceQueryPolicy struct {DataSourceQueryPolicy *DataSourceQueryPolicy `protobuf:"bytes,22,opt,name=data_source_query_policy,json=dataSourceQueryPolicy,proto3,oneof"`}+type Policy_ExportDataPolicy struct {+ ExportDataPolicy *ExportDataPolicy `protobuf:"bytes,23,opt,name=export_data_policy,json=exportDataPolicy,proto3,oneof"`+}+func (*Policy_RolloutPolicy) isPolicy_Policy() {}func (*Policy_MaskingPolicy) isPolicy_Policy() {}@@ -912,6 +927,8 @@ func (*Policy_TagPolicy) isPolicy_Policy() {}func (*Policy_DataSourceQueryPolicy) isPolicy_Policy() {}+func (*Policy_ExportDataPolicy) isPolicy_Policy() {}+type RolloutPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1073,6 +1090,51 @@ func (x *DisableCopyDataPolicy) GetActive() bool {return false}+type ExportDataPolicy struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,omitempty"`+}++func (x *ExportDataPolicy) Reset() {+ *x = ExportDataPolicy{}+ mi := &file_v1_org_policy_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ExportDataPolicy) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ExportDataPolicy) ProtoMessage() {}++func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {+ mi := &file_v1_org_policy_service_proto_msgTypes[10]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ExportDataPolicy.ProtoReflect.Descriptor instead.+func (*ExportDataPolicy) Descriptor() ([]byte, []int) {+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+}++func (x *ExportDataPolicy) GetDisable() bool {+ if x != nil {+ return x.Disable+ }+ return false+}+type MaskingPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1083,7 +1145,7 @@ type MaskingPolicy struct {func (x *MaskingPolicy) Reset() {*x = MaskingPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1095,7 +1157,7 @@ func (x *MaskingPolicy) String() string {func (*MaskingPolicy) ProtoMessage() {}func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1108,7 +1170,7 @@ func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskingPolicy.ProtoReflect.Descriptor instead.func (*MaskingPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}}func (x *MaskingPolicy) GetMaskData() []*MaskData {@@ -1133,7 +1195,7 @@ type MaskData struct {func (x *MaskData) Reset() {*x = MaskData{}- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1145,7 +1207,7 @@ func (x *MaskData) String() string {func (*MaskData) ProtoMessage() {}func (x *MaskData) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1158,7 +1220,7 @@ func (x *MaskData) ProtoReflect() protoreflect.Message {// Deprecated: Use MaskData.ProtoReflect.Descriptor instead.func (*MaskData) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}}func (x *MaskData) GetSchema() string {@@ -1217,7 +1279,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1229,7 +1291,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1242,7 +1304,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{12}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}}func (x *SQLReviewRule) GetType() string {@@ -1291,7 +1353,7 @@ type MaskingExceptionPolicy struct {func (x *MaskingExceptionPolicy) Reset() {*x = MaskingExceptionPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1303,7 +1365,7 @@ func (x *MaskingExceptionPolicy) String() string {func (*MaskingExceptionPolicy) ProtoMessage() {}func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1316,7 +1378,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{13}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}}func (x *MaskingExceptionPolicy) GetMaskingExceptions() []*MaskingExceptionPolicy_MaskingException {@@ -1336,7 +1398,7 @@ type MaskingRulePolicy struct {func (x *MaskingRulePolicy) Reset() {*x = MaskingRulePolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1348,7 +1410,7 @@ func (x *MaskingRulePolicy) String() string {func (*MaskingRulePolicy) ProtoMessage() {}func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1361,7 +1423,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{14}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}}func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {@@ -1381,7 +1443,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {*x = RestrictIssueCreationForSQLReviewPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1393,7 +1455,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1406,7 +1468,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{15}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}}func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {@@ -1428,7 +1490,7 @@ type TagPolicy struct {func (x *TagPolicy) Reset() {*x = TagPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1440,7 +1502,7 @@ func (x *TagPolicy) String() string {func (*TagPolicy) ProtoMessage() {}func (x *TagPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[16]+ mi := &file_v1_org_policy_service_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1453,7 +1515,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{16}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}}func (x *TagPolicy) GetTags() map[string]string {@@ -1478,7 +1540,7 @@ type DataSourceQueryPolicy struct {func (x *DataSourceQueryPolicy) Reset() {*x = DataSourceQueryPolicy{}- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1490,7 +1552,7 @@ func (x *DataSourceQueryPolicy) String() string {func (*DataSourceQueryPolicy) ProtoMessage() {}func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[17]+ mi := &file_v1_org_policy_service_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1503,7 +1565,7 @@ func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use DataSourceQueryPolicy.ProtoReflect.Descriptor instead.func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{17}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{18}}func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {@@ -1547,7 +1609,7 @@ type MaskingExceptionPolicy_MaskingException struct {func (x *MaskingExceptionPolicy_MaskingException) Reset() {*x = MaskingExceptionPolicy_MaskingException{}- mi := &file_v1_org_policy_service_proto_msgTypes[18]+ mi := &file_v1_org_policy_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1559,7 +1621,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[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1572,7 +1634,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{13, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14, 0}}func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPolicy_MaskingException_Action {@@ -1616,7 +1678,7 @@ type MaskingRulePolicy_MaskingRule struct {func (x *MaskingRulePolicy_MaskingRule) Reset() {*x = MaskingRulePolicy_MaskingRule{}- mi := &file_v1_org_policy_service_proto_msgTypes[19]+ mi := &file_v1_org_policy_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1628,7 +1690,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[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1641,7 +1703,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{14, 0}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15, 0}}func (x *MaskingRulePolicy_MaskingRule) GetId() string {@@ -1739,7 +1801,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, 0xf0, 0x09, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04,+ 0x6e, 0x22, 0xbf, 0x0a, 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, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d,0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69,@@ -1796,283 +1858,291 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,0x15, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,- 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, 0x3a, 0xe5, 0x01, 0xea,- 0x41, 0xe1, 0x01, 0x0a, 0x13, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f,- 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x11, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x24, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x7d, 0x12, 0x2c, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,- 0x7b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12,- 0x26, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x3b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x7d, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x04,- 0x08, 0x02, 0x10, 0x03, 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, 0x4d, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74,+ 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x17, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 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, 0x3a, 0xe5, 0x01, 0xea, 0x41,+ 0xe1, 0x01, 0x0a, 0x13, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d,+ 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x11, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x24, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d,+ 0x12, 0x2c, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b,+ 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x26,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x3b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x7d, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x04, 0x08,+ 0x02, 0x10, 0x03, 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, 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, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x44, 0x61,- 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x12, 0x71, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74,- 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52,- 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69,- 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72,- 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,- 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69,- 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73,- 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b,- 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52,- 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c,- 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c,- 0x4f, 0x57, 0x10, 0x02, 0x2a, 0xf8, 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, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53,- 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x0e, 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, 0xf4, 0x0c, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65,- 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa0, 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, 0xde, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 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, 0xa8, 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, 0xd2,- 0x01, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 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, 0xd5, 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, 0x8d, 0x02, 0xda, 0x41,- 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x8a, 0xea,- 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x63, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 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,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c,+ 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 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, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x12, 0x71, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f,+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74,+ 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61,+ 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,+ 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c,+ 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,+ 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69,+ 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73,+ 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54,+ 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43,+ 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10,+ 0x02, 0x2a, 0x89, 0x02, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65,+ 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 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, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52,+ 0x43, 0x45, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x0e, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x41,+ 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x0f, 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, 0xf4,+ 0x0c, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76,+ 0x69, 0x63, 0x65, 0x12, 0xa0, 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, 0xde, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a,+ 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x67,+ 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 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, 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, 0x86, 0x03, 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, 0xbe, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62,- 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 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, 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, 0xb0, 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,- 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90,- 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 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,+ 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, 0xa8, 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, 0xd2, 0x01, 0xda,+ 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 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, 0xd5, 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, 0x8d, 0x02, 0xda, 0x41, 0x0d, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x8a, 0xea, 0x30, 0x12,+ 0x62, 0x62, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 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, 0x86, 0x03, 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, 0xbe, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90,+ 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 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, 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, 0xb0, 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, 0xe5, 0x01,+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x12, 0x62, 0x62, 0x2e, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30,+ 0x01, 0x98, 0xea, 0x30, 0x01, 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 (@@ -2088,7 +2158,7 @@ func file_v1_org_policy_service_proto_rawDescGZIP() []byte {}var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)-var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)+var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)var file_v1_org_policy_service_proto_goTypes = []any{(PolicyType)(0), // 0: bytebase.v1.PolicyType(PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType@@ -2105,69 +2175,71 @@ var file_v1_org_policy_service_proto_goTypes = []any{(*RolloutPolicy)(nil), // 12: bytebase.v1.RolloutPolicy(*SlowQueryPolicy)(nil), // 13: bytebase.v1.SlowQueryPolicy(*DisableCopyDataPolicy)(nil), // 14: bytebase.v1.DisableCopyDataPolicy- (*MaskingPolicy)(nil), // 15: bytebase.v1.MaskingPolicy- (*MaskData)(nil), // 16: bytebase.v1.MaskData- (*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- (*DataSourceQueryPolicy)(nil), // 22: bytebase.v1.DataSourceQueryPolicy- (*MaskingExceptionPolicy_MaskingException)(nil), // 23: bytebase.v1.MaskingExceptionPolicy.MaskingException- (*MaskingRulePolicy_MaskingRule)(nil), // 24: bytebase.v1.MaskingRulePolicy.MaskingRule- nil, // 25: bytebase.v1.TagPolicy.TagsEntry- (*fieldmaskpb.FieldMask)(nil), // 26: google.protobuf.FieldMask- (MaskingLevel)(0), // 27: bytebase.v1.MaskingLevel- (Engine)(0), // 28: bytebase.v1.Engine- (*expr.Expr)(nil), // 29: google.type.Expr- (*emptypb.Empty)(nil), // 30: google.protobuf.Empty+ (*ExportDataPolicy)(nil), // 15: bytebase.v1.ExportDataPolicy+ (*MaskingPolicy)(nil), // 16: bytebase.v1.MaskingPolicy+ (*MaskData)(nil), // 17: bytebase.v1.MaskData+ (*SQLReviewRule)(nil), // 18: bytebase.v1.SQLReviewRule+ (*MaskingExceptionPolicy)(nil), // 19: bytebase.v1.MaskingExceptionPolicy+ (*MaskingRulePolicy)(nil), // 20: bytebase.v1.MaskingRulePolicy+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 21: bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ (*TagPolicy)(nil), // 22: bytebase.v1.TagPolicy+ (*DataSourceQueryPolicy)(nil), // 23: bytebase.v1.DataSourceQueryPolicy+ (*MaskingExceptionPolicy_MaskingException)(nil), // 24: bytebase.v1.MaskingExceptionPolicy.MaskingException+ (*MaskingRulePolicy_MaskingRule)(nil), // 25: bytebase.v1.MaskingRulePolicy.MaskingRule+ nil, // 26: bytebase.v1.TagPolicy.TagsEntry+ (*fieldmaskpb.FieldMask)(nil), // 27: google.protobuf.FieldMask+ (MaskingLevel)(0), // 28: bytebase.v1.MaskingLevel+ (Engine)(0), // 29: bytebase.v1.Engine+ (*expr.Expr)(nil), // 30: google.type.Expr+ (*emptypb.Empty)(nil), // 31: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{11, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy0, // 1: bytebase.v1.CreatePolicyRequest.type:type_name -> bytebase.v1.PolicyType11, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy- 26, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask+ 27, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 4: bytebase.v1.ListPoliciesRequest.policy_type:type_name -> bytebase.v1.PolicyType11, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy0, // 6: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType12, // 7: bytebase.v1.Policy.rollout_policy:type_name -> bytebase.v1.RolloutPolicy- 15, // 8: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy+ 16, // 8: bytebase.v1.Policy.masking_policy:type_name -> bytebase.v1.MaskingPolicy13, // 9: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy14, // 10: bytebase.v1.Policy.disable_copy_data_policy:type_name -> bytebase.v1.DisableCopyDataPolicy- 19, // 11: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy- 18, // 12: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy- 20, // 13: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy- 21, // 14: bytebase.v1.Policy.tag_policy:type_name -> bytebase.v1.TagPolicy- 22, // 15: bytebase.v1.Policy.data_source_query_policy:type_name -> bytebase.v1.DataSourceQueryPolicy- 1, // 16: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType- 16, // 17: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData- 27, // 18: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel- 2, // 19: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel- 28, // 20: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine- 23, // 21: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException- 24, // 22: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule- 25, // 23: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry- 4, // 24: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restriction- 3, // 25: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action- 27, // 26: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel- 29, // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr- 29, // 28: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr- 27, // 29: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel- 8, // 30: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 9, // 31: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 5, // 32: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 6, // 33: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 7, // 34: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 11, // 35: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 10, // 36: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 11, // 37: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 11, // 38: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 30, // 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+ 20, // 11: bytebase.v1.Policy.masking_rule_policy:type_name -> bytebase.v1.MaskingRulePolicy+ 19, // 12: bytebase.v1.Policy.masking_exception_policy:type_name -> bytebase.v1.MaskingExceptionPolicy+ 21, // 13: bytebase.v1.Policy.restrict_issue_creation_for_sql_review_policy:type_name -> bytebase.v1.RestrictIssueCreationForSQLReviewPolicy+ 22, // 14: bytebase.v1.Policy.tag_policy:type_name -> bytebase.v1.TagPolicy+ 23, // 15: bytebase.v1.Policy.data_source_query_policy:type_name -> bytebase.v1.DataSourceQueryPolicy+ 15, // 16: bytebase.v1.Policy.export_data_policy:type_name -> bytebase.v1.ExportDataPolicy+ 1, // 17: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType+ 17, // 18: bytebase.v1.MaskingPolicy.mask_data:type_name -> bytebase.v1.MaskData+ 28, // 19: bytebase.v1.MaskData.masking_level:type_name -> bytebase.v1.MaskingLevel+ 2, // 20: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel+ 29, // 21: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine+ 24, // 22: bytebase.v1.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException+ 25, // 23: bytebase.v1.MaskingRulePolicy.rules:type_name -> bytebase.v1.MaskingRulePolicy.MaskingRule+ 26, // 24: bytebase.v1.TagPolicy.tags:type_name -> bytebase.v1.TagPolicy.TagsEntry+ 4, // 25: bytebase.v1.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.v1.DataSourceQueryPolicy.Restriction+ 3, // 26: bytebase.v1.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.v1.MaskingExceptionPolicy.MaskingException.Action+ 28, // 27: bytebase.v1.MaskingExceptionPolicy.MaskingException.masking_level:type_name -> bytebase.v1.MaskingLevel+ 30, // 28: bytebase.v1.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr+ 30, // 29: bytebase.v1.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr+ 28, // 30: bytebase.v1.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.v1.MaskingLevel+ 8, // 31: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 9, // 32: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 5, // 33: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 6, // 34: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 7, // 35: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 11, // 36: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 10, // 37: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 11, // 38: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 11, // 39: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 31, // 40: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 36, // [36:41] is the sub-list for method output_type+ 31, // [31:36] is the sub-list for method input_type+ 31, // [31:31] is the sub-list for extension type_name+ 31, // [31:31] is the sub-list for extension extendee+ 0, // [0:31] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }@@ -2188,6 +2260,7 @@ func file_v1_org_policy_service_proto_init() {(*Policy_RestrictIssueCreationForSqlReviewPolicy)(nil),(*Policy_TagPolicy)(nil),(*Policy_DataSourceQueryPolicy)(nil),+ (*Policy_ExportDataPolicy)(nil),}type x struct{}out := protoimpl.TypeBuilder{@@ -2195,7 +2268,7 @@ func file_v1_org_policy_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_org_policy_service_proto_rawDesc,NumEnums: 5,- NumMessages: 21,+ NumMessages: 22,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/policy.proto b/proto/store/policy.protoindex fa121463ad..0b2ccb9066 100644--- a/proto/store/policy.proto+++ b/proto/store/policy.proto@@ -131,6 +131,11 @@ message DisableCopyDataPolicy {bool active = 1;}+// ExportDataPolicy is the policy configuration for export data.+message ExportDataPolicy {+ bool disable = 1;+}+// RestrictIssueCreationForSQLReviewPolicy is the policy configuration for restricting issue creation for SQL review.message RestrictIssueCreationForSQLReviewPolicy {bool disallow = 1;diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex b6b73abf38..4381017496 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -245,6 +245,7 @@ message Policy {RestrictIssueCreationForSQLReviewPolicy restrict_issue_creation_for_sql_review_policy = 20;TagPolicy tag_policy = 21;DataSourceQueryPolicy data_source_query_policy = 22;+ ExportDataPolicy export_data_policy = 23;}bool enforce = 13;@@ -266,6 +267,7 @@ enum PolicyType {RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW = 12;TAG = 13;DATA_SOURCE_QUERY = 14;+ DATA_EXPORT = 15;}enum PolicyResourceType {@@ -294,6 +296,10 @@ message DisableCopyDataPolicy {bool active = 1;}+message ExportDataPolicy {+ bool disable = 1;+}+message MaskingPolicy {repeated MaskData mask_data = 1;}