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: insert and show the classification data (#7467)
ecmadaob2f38541ac9f
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex 1f96d597a0..5824817a86 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -143,6 +143,24 @@ func (s *ProjectService) UpdateProject(ctx context.Context, request *v1pb.Updatecase "schema_change":schemaChange := convertToProjectSchemaChangeType(request.Project.SchemaChange)patch.SchemaChangeType = &schemaChange+ case "data_classification_config_id":+ setting, err := s.store.GetDataClassificationSetting(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get data classification setting")+ }+ existConfig := false+ for _, config := range setting.Configs {+ if config.Id == request.Project.DataClassificationConfigId {+ existConfig = true+ break+ }+ }+ if !existConfig {+ return nil, status.Errorf(codes.InvalidArgument, "data classification %s not exists", request.Project.DataClassificationConfigId)+ }+ patch.DataClassificationConfigID = &request.Project.DataClassificationConfigId+ default:+ return nil, status.Errorf(codes.InvalidArgument, `unsupport update_mask "%s"`, path)}}@@ -2583,17 +2601,18 @@ func convertToProject(projectMessage *store.ProjectMessage) *v1pb.Project {}return &v1pb.Project{- Name: fmt.Sprintf("%s%s", common.ProjectNamePrefix, projectMessage.ResourceID),- Uid: fmt.Sprintf("%d", projectMessage.UID),- State: convertDeletedToState(projectMessage.Deleted),- Title: projectMessage.Title,- Key: projectMessage.Key,- Workflow: workflow,- Visibility: visibility,- TenantMode: tenantMode,- DbNameTemplate: projectMessage.DBNameTemplate,- SchemaChange: schemaChange,- Webhooks: projectWebhooks,+ Name: fmt.Sprintf("%s%s", common.ProjectNamePrefix, projectMessage.ResourceID),+ Uid: fmt.Sprintf("%d", projectMessage.UID),+ State: convertDeletedToState(projectMessage.Deleted),+ Title: projectMessage.Title,+ Key: projectMessage.Key,+ Workflow: workflow,+ Visibility: visibility,+ TenantMode: tenantMode,+ DbNameTemplate: projectMessage.DBNameTemplate,+ SchemaChange: schemaChange,+ Webhooks: projectWebhooks,+ DataClassificationConfigId: projectMessage.DataClassificationConfigID,}}diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex 97f1b8d5e7..6b290bcd1f 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -71,6 +71,7 @@ var whitelistSettings = []api.SettingName{api.SettingWorkspaceExternalApproval,api.SettingEnterpriseTrial,api.SettingSchemaTemplate,+ api.SettingDataClassification,}//go:embed mail_templates/testmail/template.html@@ -464,6 +465,20 @@ func (s *SettingService) SetSetting(ctx context.Context, request *v1pb.SetSettinreturn nil, status.Errorf(codes.Internal, "failed to marshal external approval setting, error: %v", err)}storeSettingValue = string(bytes)+ case api.SettingDataClassification:+ payload := new(storepb.DataClassificationSetting)+ if err := convertV1PbToStorePb(request.Setting.Value.GetDataClassificationSettingValue(), payload); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)+ }+ // it's a temporary solution to limit only 1 classification config before we support manage it in the UX.+ if len(payload.Configs) > 1 {+ return nil, status.Errorf(codes.InvalidArgument, "only support define 1 classification config for now")+ }+ bytes, err := protojson.Marshal(payload)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to marshal setting for %s with error: %v", apiSettingName, err)+ }+ storeSettingValue = string(bytes)default:storeSettingValue = request.Setting.Value.GetStringValue()}@@ -479,6 +494,26 @@ func (s *SettingService) SetSetting(ctx context.Context, request *v1pb.SetSettinif err != nil {return nil, status.Errorf(codes.Internal, "failed to convert setting message: %v", err)}++ // it's a temporary solution to map the classification to all projects before we support it in the UX.+ if apiSettingName == api.SettingDataClassification && len(settingMessage.Value.GetDataClassificationSettingValue().Configs) == 1 {+ classificationID := settingMessage.Value.GetDataClassificationSettingValue().Configs[0].Id+ projects, err := s.store.ListProjectV2(ctx, &store.FindProjectMessage{ShowDeleted: false})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to list projects with error: %v", err.Error())+ }+ for _, project := range projects {+ patch := &store.UpdateProjectMessage{+ UpdaterID: ctx.Value(common.PrincipalIDContextKey).(int),+ ResourceID: project.ResourceID,+ DataClassificationConfigID: &classificationID,+ }+ if _, err = s.store.UpdateProjectV2(ctx, patch); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to patch project %s with error: %v", project.Title, err.Error())+ }+ }+ }+return settingMessage, nil}@@ -627,6 +662,19 @@ func (s *SettingService) convertToSettingMessage(ctx context.Context, setting *s},},}, nil+ case api.SettingDataClassification:+ v1Value := new(v1pb.DataClassificationSetting)+ if err := protojson.Unmarshal([]byte(setting.Value), v1Value); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", setting.Name, err)+ }+ return &v1pb.Setting{+ Name: settingName,+ Value: &v1pb.Value{+ Value: &v1pb.Value_DataClassificationSettingValue{+ DataClassificationSettingValue: v1Value,+ },+ },+ }, nildefault:return &v1pb.Setting{Name: settingName,diff --git a/backend/legacyapi/setting.go b/backend/legacyapi/setting.goindex 50c9fe2800..1238cee214 100644--- a/backend/legacyapi/setting.go+++ b/backend/legacyapi/setting.go@@ -40,6 +40,8 @@ const (SettingWorkspaceMailDelivery SettingName = "bb.workspace.mail-delivery"// SettingSchemaTemplate is the setting name for schema template.SettingSchemaTemplate SettingName = "bb.workspace.schema-template"+ // SettingDataClassification is the setting name for data classification.+ SettingDataClassification SettingName = "bb.workspace.data-classification")// IMType is the type of IM.diff --git a/backend/migrator/migration/dev/LATEST.sql b/backend/migrator/migration/dev/LATEST.sqlindex af287628d3..3c636bc4f7 100644--- a/backend/migrator/migration/dev/LATEST.sql+++ b/backend/migrator/migration/dev/LATEST.sql@@ -224,7 +224,8 @@ CREATE TABLE project (db_name_template TEXT NOT NULL,schema_version_type TEXT NOT NULL CHECK (schema_version_type IN ('TIMESTAMP', 'SEMANTIC')) DEFAULT 'TIMESTAMP',schema_change_type TEXT NOT NULL CHECK (schema_change_type IN ('DDL', 'SDL')) DEFAULT 'DDL',- resource_id TEXT NOT NULL+ resource_id TEXT NOT NULL,+ data_classification_config_id TEXT NOT NULL DEFAULT '');CREATE UNIQUE INDEX idx_project_unique_key ON project(key);diff --git a/backend/migrator/migration/prod/2.6/0006##project_add_data_classification_config_id.sql b/backend/migrator/migration/prod/2.6/0006##project_add_data_classification_config_id.sqlnew file mode 100644index 0000000000..4b65e98e4a--- /dev/null+++ b/backend/migrator/migration/prod/2.6/0006##project_add_data_classification_config_id.sql@@ -0,0 +1 @@+ALTER TABLE project ADD COLUMN data_classification_config_id TEXT NOT NULL DEFAULT '';diff --git a/backend/migrator/migration/prod/LATEST.sql b/backend/migrator/migration/prod/LATEST.sqlindex 47fd39721b..fb8f3d2343 100644--- a/backend/migrator/migration/prod/LATEST.sql+++ b/backend/migrator/migration/prod/LATEST.sql@@ -223,7 +223,8 @@ CREATE TABLE project (-- Empty value means {{DB_NAME}}.db_name_template TEXT NOT NULL,schema_change_type TEXT NOT NULL CHECK (schema_change_type IN ('DDL', 'SDL')) DEFAULT 'DDL',- resource_id TEXT NOT NULL+ resource_id TEXT NOT NULL,+ data_classification_config_id TEXT NOT NULL DEFAULT '');CREATE UNIQUE INDEX idx_project_unique_key ON project(key);diff --git a/backend/server/server.go b/backend/server/server.goindex 82c057dc69..8b79890691 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -892,6 +892,19 @@ func (s *Server) getInitSetting(ctx context.Context, datastore *store.Store) (*wreturn nil, err}+ // initial data classification setting+ dataClassificationSettingValue, err := protojson.Marshal(&storepb.DataClassificationSetting{})+ if err != nil {+ return nil, errors.Wrap(err, "failed to marshal initial data classification setting")+ }+ if _, _, err := datastore.CreateSettingIfNotExistV2(ctx, &store.SettingMessage{+ Name: api.SettingDataClassification,+ Value: string(dataClassificationSettingValue),+ Description: "The data classification setting",+ }, api.SystemBotID); err != nil {+ return nil, err+ }+// initial workspace approval settingapprovalSettingValue, err := protojson.Marshal(&storepb.WorkspaceApprovalSetting{})if err != nil {diff --git a/backend/store/project.go b/backend/store/project.goindex e74101521f..84d5cf53ca 100644--- a/backend/store/project.go+++ b/backend/store/project.go@@ -49,15 +49,16 @@ func (*Store) composeProject(project *ProjectMessage) (*api.Project, error) {// ProjectMessage is the message for project.type ProjectMessage struct {- ResourceID string- Title string- Key string- Workflow api.ProjectWorkflowType- Visibility api.ProjectVisibility- TenantMode api.ProjectTenantMode- DBNameTemplate string- SchemaChangeType api.ProjectSchemaChangeType- Webhooks []*ProjectWebhookMessage+ ResourceID string+ Title string+ Key string+ Workflow api.ProjectWorkflowType+ Visibility api.ProjectVisibility+ TenantMode api.ProjectTenantMode+ DBNameTemplate string+ SchemaChangeType api.ProjectSchemaChangeType+ Webhooks []*ProjectWebhookMessage+ DataClassificationConfigID string// The following fields are output only and not used for create().UID intDeleted bool@@ -77,13 +78,14 @@ type UpdateProjectMessage struct {UpdaterID intResourceID string- Title *string- Key *string- TenantMode *api.ProjectTenantMode- DBNameTemplate *string- Workflow *api.ProjectWorkflowType- SchemaChangeType *api.ProjectSchemaChangeType- Delete *bool+ Title *string+ Key *string+ TenantMode *api.ProjectTenantMode+ DBNameTemplate *string+ Workflow *api.ProjectWorkflowType+ SchemaChangeType *api.ProjectSchemaChangeType+ DataClassificationConfigID *string+ Delete *bool}// GetProjectV2 gets project by resource ID.@@ -290,6 +292,9 @@ func (s *Store) updateProjectImplV2(ctx context.Context, tx *Tx, patch *UpdatePrif v := patch.SchemaChangeType; v != nil {set, args = append(set, fmt.Sprintf("schema_change_type = $%d", len(args)+1)), append(args, *v)}+ if v := patch.DataClassificationConfigID; v != nil {+ set, args = append(set, fmt.Sprintf("data_classification_config_id = $%d", len(args)+1)), append(args, *v)+ }args = append(args, patch.ResourceID)project := &ProjectMessage{}@@ -308,6 +313,7 @@ func (s *Store) updateProjectImplV2(ctx context.Context, tx *Tx, patch *UpdatePrtenant_mode,db_name_template,schema_change_type,+ data_classification_config_id,row_status`, len(args)),args...,@@ -321,6 +327,7 @@ func (s *Store) updateProjectImplV2(ctx context.Context, tx *Tx, patch *UpdatePr&project.TenantMode,&project.DBNameTemplate,&project.SchemaChangeType,+ &project.DataClassificationConfigID,&rowStatus,); err != nil {if err == sql.ErrNoRows {@@ -361,6 +368,7 @@ func (s *Store) listProjectImplV2(ctx context.Context, tx *Tx, find *FindProjecttenant_mode,db_name_template,schema_change_type,+ data_classification_config_id,row_statusFROM projectWHERE `+strings.Join(where, " AND "),@@ -384,6 +392,7 @@ func (s *Store) listProjectImplV2(ctx context.Context, tx *Tx, find *FindProject&projectMessage.TenantMode,&projectMessage.DBNameTemplate,&projectMessage.SchemaChangeType,+ &projectMessage.DataClassificationConfigID,&rowStatus,); err != nil {return nil, errdiff --git a/backend/store/setting.go b/backend/store/setting.goindex 99b8b3b872..e6d93944bb 100644--- a/backend/store/setting.go+++ b/backend/store/setting.go@@ -153,6 +153,26 @@ func (s *Store) GetSchemaTemplateSetting(ctx context.Context) (*storepb.SchemaTereturn payload, nil}+// GetDataClassificationSetting gets the data classification setting.+func (s *Store) GetDataClassificationSetting(ctx context.Context) (*storepb.DataClassificationSetting, error) {+ settingName := api.SettingDataClassification+ setting, err := s.GetSettingV2(ctx, &FindSettingMessage{+ Name: &settingName,+ })+ if err != nil {+ return nil, errors.Wrapf(err, "failed to get setting %s", settingName)+ }+ if setting == nil {+ return &storepb.DataClassificationSetting{}, nil+ }++ payload := new(storepb.DataClassificationSetting)+ if err := protojson.Unmarshal([]byte(setting.Value), payload); err != nil {+ return nil, err+ }+ return payload, nil+}+// DeleteCache deletes the cache.func (s *Store) DeleteCache() {s.settingCache = sync.Map{}diff --git a/frontend/src/components/ColumnTable.vue b/frontend/src/components/ColumnTable.vueindex 446e5e3774..7ac361db06 100644--- a/frontend/src/components/ColumnTable.vue+++ b/frontend/src/components/ColumnTable.vue@@ -39,7 +39,7 @@{{ column.name }}</BBTableCell><BBTableCell v-if="showClassificationColumn" class="w-10">- {{ column.classification }}+ {{ getColumnClassification(column.classification) }}</BBTableCell><BBTableCell class="w-8">{{ column.type }}@@ -84,7 +84,7 @@import { cloneDeep } from "lodash-es";import { computed, PropType, reactive } from "vue";import { useI18n } from "vue-i18n";-import { Column, ComposedDatabase } from "@/types";+import { ComposedDatabase } from "@/types";import { ColumnMetadata, TableMetadata } from "@/types/proto/store/database";import { useCurrentUserV1, useSubscriptionV1Store } from "@/store";import { hasWorkspacePermissionV1, isDev } from "@/utils";@@ -95,6 +95,7 @@ import {SensitiveData,SensitiveDataMaskType,} from "@/types/proto/v1/org_policy_service";+import { DataClassificationSetting_DataClassificationConfig } from "@/types/proto/v1/setting_service";import { Engine } from "@/types/proto/v1/common";type LocalState = {@@ -122,6 +123,12 @@ const props = defineProps({required: true,type: Array as PropType<SensitiveData[]>,},+ classificationConfig: {+ required: false,+ type: Object as PropType<+ DataClassificationSetting_DataClassificationConfig | undefined+ >,+ },});const { t } = useI18n();@@ -282,7 +289,7 @@ const columnNameList = computed(() => {}});-const isSensitiveColumn = (column: Column) => {+const isSensitiveColumn = (column: ColumnMetadata) => {return (props.sensitiveDataList.findIndex((sensitiveData) => {return (@@ -293,7 +300,11 @@ const isSensitiveColumn = (column: Column) => {);};-const toggleSensitiveColumn = (column: Column, on: boolean, e: Event) => {+const toggleSensitiveColumn = (+ column: ColumnMetadata,+ on: boolean,+ e: Event+) => {if (!hasSensitiveDataFeature.value || instanceMissingLicense.value) {state.showFeatureModal = true;@@ -334,4 +345,12 @@ const toggleSensitiveColumn = (column: Column, on: boolean, e: Event) => {updateMask: ["payload"],});};++const getColumnClassification = (classificationId: string) => {+ if (!classificationId || !props.classificationConfig) {+ return "";+ }+ const config = props.classificationConfig.classification[classificationId];+ return config?.title ?? "";+};</script>diff --git a/frontend/src/components/TableDetailDrawer.vue b/frontend/src/components/TableDetailDrawer.vueindex 803ad3bea2..2e4d963767 100644--- a/frontend/src/components/TableDetailDrawer.vue+++ b/frontend/src/components/TableDetailDrawer.vue@@ -105,13 +105,12 @@</dd></div>- <!-- TODO: show table classification -->- <div v-if="table.classification" class="col-span-1">+ <div v-if="tableClassification" class="col-span-1"><dt class="text-sm text-control-light">{{ $t("database.classification.self") }}</dt><dd class="mt-1 text-lg sm:text-xl font-semibold">- {{ table.classification }}+ {{ tableClassification.title }}</dd></div>@@ -180,6 +179,7 @@:table="table":column-list="table.columns":sensitive-data-list="sensitiveDataList"+ :classification-config="classificationConfig"/></div>@@ -209,6 +209,7 @@ import {useCurrentUserV1,useDatabaseV1Store,useDBSchemaV1Store,+ useSettingV1Store,} from "@/store";import { DEFAULT_PROJECT_V1_NAME, EMPTY_PROJECT_NAME } from "@/types";import { TableMetadata } from "@/types/proto/store/database";@@ -233,6 +234,7 @@ const router = useRouter();const databaseV1Store = useDatabaseV1Store();const dbSchemaStore = useDBSchemaV1Store();const currentUserV1 = useCurrentUserV1();+const settingStore = useSettingV1Store();const table = ref<TableMetadata>();const database = computed(() => {@@ -242,6 +244,19 @@ const instanceEngine = computed(() => {return database.value.instanceEntity.engine;});+const classificationConfig = computed(() => {+ return settingStore.getProjectClassification(+ database.value.projectEntity.dataClassificationConfigId+ );+});++const tableClassification = computed(() => {+ if (!table.value?.classification) {+ return;+ }+ return classificationConfig.value?.classification[table.value.classification];+});+const allowQuery = computed(() => {if (database.value.project === EMPTY_PROJECT_NAME ||diff --git a/frontend/src/store/modules/v1/setting.ts b/frontend/src/store/modules/v1/setting.tsindex dc9ca0bd04..a9d533dd03 100644--- a/frontend/src/store/modules/v1/setting.ts+++ b/frontend/src/store/modules/v1/setting.ts@@ -4,6 +4,7 @@ import {Setting,Value as SettingValue,WorkspaceProfileSetting,+ DataClassificationSetting_DataClassificationConfig,} from "@/types/proto/v1/setting_service";import { settingNamePrefix } from "@/store/modules/v1/common";import { SettingName } from "@/types/setting";@@ -32,6 +33,16 @@ export const useSettingV1Store = defineStore("setting_v1", {},},actions: {+ getProjectClassification(+ classificationId: string+ ): DataClassificationSetting_DataClassificationConfig | undefined {+ const setting = this.settingMapByName.get(+ `${settingNamePrefix}bb.workspace.data-classification`+ );+ return setting?.value?.dataClassificationSettingValue?.configs.find(+ (config) => config.id === classificationId+ );+ },async fetchSettingByName(name: SettingName, silent = false) {const setting = await settingServiceClient.getSetting({diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.tsindex 53ee8e688c..4056af66f6 100644--- a/frontend/src/types/proto/store/setting.ts+++ b/frontend/src/types/proto/store/setting.ts@@ -197,6 +197,45 @@ export interface SchemaTemplateSetting_ColumnType {types: string[];}+export interface DataClassificationSetting {+ configs: DataClassificationSetting_DataClassificationConfig[];+}++export interface DataClassificationSetting_DataClassificationConfig {+ /** id is the uuid for classification. Each project can chose one classification config. */+ id: string;+ title: string;+ /**+ * levels is user defined level list for classification.+ * The order for the level decides its priority.+ */+ levels: DataClassificationSetting_DataClassificationConfig_Level[];+ /**+ * classification is the id - DataClassification map.+ * The id should in [0-9]+-[0-9]+-[0-9]+ format.+ */+ classification: { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification };+}++export interface DataClassificationSetting_DataClassificationConfig_Level {+ id: string;+ title: string;+ description: string;+}++export interface DataClassificationSetting_DataClassificationConfig_DataClassification {+ /** id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. */+ id: string;+ title: string;+ description: string;+ levelId?: string | undefined;+}++export interface DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ key: string;+ value?: DataClassificationSetting_DataClassificationConfig_DataClassification | undefined;+}+function createBaseWorkspaceProfileSetting(): WorkspaceProfileSetting {return {externalUrl: "",@@ -1169,6 +1208,505 @@ export const SchemaTemplateSetting_ColumnType = {},};+function createBaseDataClassificationSetting(): DataClassificationSetting {+ return { configs: [] };+}++export const DataClassificationSetting = {+ encode(message: DataClassificationSetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.configs) {+ DataClassificationSetting_DataClassificationConfig.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataClassificationSetting {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.configs.push(DataClassificationSetting_DataClassificationConfig.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting {+ return {+ configs: Array.isArray(object?.configs)+ ? object.configs.map((e: any) => DataClassificationSetting_DataClassificationConfig.fromJSON(e))+ : [],+ };+ },++ toJSON(message: DataClassificationSetting): unknown {+ const obj: any = {};+ if (message.configs) {+ obj.configs = message.configs.map((e) =>+ e ? DataClassificationSetting_DataClassificationConfig.toJSON(e) : undefined+ );+ } else {+ obj.configs = [];+ }+ return obj;+ },++ create(base?: DeepPartial<DataClassificationSetting>): DataClassificationSetting {+ return DataClassificationSetting.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<DataClassificationSetting>): DataClassificationSetting {+ const message = createBaseDataClassificationSetting();+ message.configs = object.configs?.map((e) => DataClassificationSetting_DataClassificationConfig.fromPartial(e)) ||+ [];+ return message;+ },+};++function createBaseDataClassificationSetting_DataClassificationConfig(): DataClassificationSetting_DataClassificationConfig {+ return { id: "", title: "", levels: [], classification: {} };+}++export const DataClassificationSetting_DataClassificationConfig = {+ encode(+ message: DataClassificationSetting_DataClassificationConfig,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ for (const v of message.levels) {+ DataClassificationSetting_DataClassificationConfig_Level.encode(v!, writer.uint32(26).fork()).ldelim();+ }+ Object.entries(message.classification).forEach(([key, value]) => {+ DataClassificationSetting_DataClassificationConfig_ClassificationEntry.encode(+ { key: key as any, value },+ writer.uint32(34).fork(),+ ).ldelim();+ });+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataClassificationSetting_DataClassificationConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting_DataClassificationConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.levels.push(DataClassificationSetting_DataClassificationConfig_Level.decode(reader, reader.uint32()));+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ const entry4 = DataClassificationSetting_DataClassificationConfig_ClassificationEntry.decode(+ reader,+ reader.uint32(),+ );+ if (entry4.value !== undefined) {+ message.classification[entry4.key] = entry4.value;+ }+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ levels: Array.isArray(object?.levels)+ ? object.levels.map((e: any) => DataClassificationSetting_DataClassificationConfig_Level.fromJSON(e))+ : [],+ classification: isObject(object.classification)+ ? Object.entries(object.classification).reduce<+ { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification }+ >((acc, [key, value]) => {+ acc[key] = DataClassificationSetting_DataClassificationConfig_DataClassification.fromJSON(value);+ return acc;+ }, {})+ : {},+ };+ },++ toJSON(message: DataClassificationSetting_DataClassificationConfig): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ if (message.levels) {+ obj.levels = message.levels.map((e) =>+ e ? DataClassificationSetting_DataClassificationConfig_Level.toJSON(e) : undefined+ );+ } else {+ obj.levels = [];+ }+ obj.classification = {};+ if (message.classification) {+ Object.entries(message.classification).forEach(([k, v]) => {+ obj.classification[k] = DataClassificationSetting_DataClassificationConfig_DataClassification.toJSON(v);+ });+ }+ return obj;+ },++ create(+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig>,+ ): DataClassificationSetting_DataClassificationConfig {+ return DataClassificationSetting_DataClassificationConfig.fromPartial(base ?? {});+ },++ fromPartial(+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig>,+ ): DataClassificationSetting_DataClassificationConfig {+ const message = createBaseDataClassificationSetting_DataClassificationConfig();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.levels =+ object.levels?.map((e) => DataClassificationSetting_DataClassificationConfig_Level.fromPartial(e)) || [];+ message.classification = Object.entries(object.classification ?? {}).reduce<+ { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification }+ >((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = DataClassificationSetting_DataClassificationConfig_DataClassification.fromPartial(value);+ }+ return acc;+ }, {});+ return message;+ },+};++function createBaseDataClassificationSetting_DataClassificationConfig_Level(): DataClassificationSetting_DataClassificationConfig_Level {+ return { id: "", title: "", description: "" };+}++export const DataClassificationSetting_DataClassificationConfig_Level = {+ encode(+ message: DataClassificationSetting_DataClassificationConfig_Level,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(26).string(message.description);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataClassificationSetting_DataClassificationConfig_Level {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting_DataClassificationConfig_Level();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.description = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_Level {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ description: isSet(object.description) ? String(object.description) : "",+ };+ },++ toJSON(message: DataClassificationSetting_DataClassificationConfig_Level): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ message.description !== undefined && (obj.description = message.description);+ return obj;+ },++ create(+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_Level>,+ ): DataClassificationSetting_DataClassificationConfig_Level {+ return DataClassificationSetting_DataClassificationConfig_Level.fromPartial(base ?? {});+ },++ fromPartial(+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig_Level>,+ ): DataClassificationSetting_DataClassificationConfig_Level {+ const message = createBaseDataClassificationSetting_DataClassificationConfig_Level();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ return message;+ },+};++function createBaseDataClassificationSetting_DataClassificationConfig_DataClassification(): DataClassificationSetting_DataClassificationConfig_DataClassification {+ return { id: "", title: "", description: "", levelId: undefined };+}++export const DataClassificationSetting_DataClassificationConfig_DataClassification = {+ encode(+ message: DataClassificationSetting_DataClassificationConfig_DataClassification,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(26).string(message.description);+ }+ if (message.levelId !== undefined) {+ writer.uint32(34).string(message.levelId);+ }+ return writer;+ },++ decode(+ input: _m0.Reader | Uint8Array,+ length?: number,+ ): DataClassificationSetting_DataClassificationConfig_DataClassification {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting_DataClassificationConfig_DataClassification();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.description = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.levelId = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_DataClassification {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ description: isSet(object.description) ? String(object.description) : "",+ levelId: isSet(object.levelId) ? String(object.levelId) : undefined,+ };+ },++ toJSON(message: DataClassificationSetting_DataClassificationConfig_DataClassification): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ message.description !== undefined && (obj.description = message.description);+ message.levelId !== undefined && (obj.levelId = message.levelId);+ return obj;+ },++ create(+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_DataClassification>,+ ): DataClassificationSetting_DataClassificationConfig_DataClassification {+ return DataClassificationSetting_DataClassificationConfig_DataClassification.fromPartial(base ?? {});+ },++ fromPartial(+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig_DataClassification>,+ ): DataClassificationSetting_DataClassificationConfig_DataClassification {+ const message = createBaseDataClassificationSetting_DataClassificationConfig_DataClassification();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ message.levelId = object.levelId ?? undefined;+ return message;+ },+};++function createBaseDataClassificationSetting_DataClassificationConfig_ClassificationEntry(): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ return { key: "", value: undefined };+}++export const DataClassificationSetting_DataClassificationConfig_ClassificationEntry = {+ encode(+ message: DataClassificationSetting_DataClassificationConfig_ClassificationEntry,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== undefined) {+ DataClassificationSetting_DataClassificationConfig_DataClassification.encode(+ message.value,+ writer.uint32(18).fork(),+ ).ldelim();+ }+ return writer;+ },++ decode(+ input: _m0.Reader | Uint8Array,+ length?: number,+ ): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting_DataClassificationConfig_ClassificationEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.value = DataClassificationSetting_DataClassificationConfig_DataClassification.decode(+ reader,+ reader.uint32(),+ );+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ return {+ key: isSet(object.key) ? String(object.key) : "",+ value: isSet(object.value)+ ? DataClassificationSetting_DataClassificationConfig_DataClassification.fromJSON(object.value)+ : undefined,+ };+ },++ toJSON(message: DataClassificationSetting_DataClassificationConfig_ClassificationEntry): unknown {+ const obj: any = {};+ message.key !== undefined && (obj.key = message.key);+ message.value !== undefined && (obj.value = message.value+ ? DataClassificationSetting_DataClassificationConfig_DataClassification.toJSON(message.value)+ : undefined);+ return obj;+ },++ create(+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_ClassificationEntry>,+ ): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ return DataClassificationSetting_DataClassificationConfig_ClassificationEntry.fromPartial(base ?? {});+ },++ fromPartial(+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig_ClassificationEntry>,+ ): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ const message = createBaseDataClassificationSetting_DataClassificationConfig_ClassificationEntry();+ message.key = object.key ?? "";+ message.value = (object.value !== undefined && object.value !== null)+ ? DataClassificationSetting_DataClassificationConfig_DataClassification.fromPartial(object.value)+ : undefined;+ return message;+ },+};+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;export type DeepPartial<T> = T extends Builtin ? T@@ -1176,6 +1714,10 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;+function isObject(value: any): boolean {+ return typeof value === "object" && value !== null;+}+function isSet(value: any): boolean {return value !== null && value !== undefined;}diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.tsindex 79ec74ca5d..d0ca974656 100644--- a/frontend/src/types/proto/v1/setting_service.ts+++ b/frontend/src/types/proto/v1/setting_service.ts@@ -88,6 +88,7 @@ export interface Value {workspaceTrialSettingValue?: WorkspaceTrialSetting | undefined;externalApprovalSettingValue?: ExternalApprovalSetting | undefined;schemaTemplateSettingValue?: SchemaTemplateSetting | undefined;+ dataClassificationSettingValue?: DataClassificationSetting | undefined;}export interface SMTPMailDeliverySettingValue {@@ -347,17 +348,39 @@ export interface DataClassificationSetting {configs: DataClassificationSetting_DataClassificationConfig[];}-/** Hard-coded schema comment format: [0-9]+-[0-9]+-[0-9]+ */export interface DataClassificationSetting_DataClassificationConfig {+ /** id is the uuid for classification. Each project can chose one classification config. */id: string;title: string;- /** Maps classification to level. */- classificationLevel: { [key: string]: string };+ /**+ * levels is user defined level list for classification.+ * The order for the level decides its priority.+ */+ levels: DataClassificationSetting_DataClassificationConfig_Level[];+ /**+ * classification is the id - DataClassification map.+ * The id should in [0-9]+-[0-9]+-[0-9]+ format.+ */+ classification: { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification };}-export interface DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry {+export interface DataClassificationSetting_DataClassificationConfig_Level {+ id: string;+ title: string;+ description: string;+}++export interface DataClassificationSetting_DataClassificationConfig_DataClassification {+ /** id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. */+ id: string;+ title: string;+ description: string;+ levelId?: string | undefined;+}++export interface DataClassificationSetting_DataClassificationConfig_ClassificationEntry {key: string;- value: string;+ value?: DataClassificationSetting_DataClassificationConfig_DataClassification | undefined;}function createBaseListSettingsRequest(): ListSettingsRequest {@@ -775,6 +798,7 @@ function createBaseValue(): Value {workspaceTrialSettingValue: undefined,externalApprovalSettingValue: undefined,schemaTemplateSettingValue: undefined,+ dataClassificationSettingValue: undefined,};}@@ -807,6 +831,9 @@ export const Value = {if (message.schemaTemplateSettingValue !== undefined) {SchemaTemplateSetting.encode(message.schemaTemplateSettingValue, writer.uint32(74).fork()).ldelim();}+ if (message.dataClassificationSettingValue !== undefined) {+ DataClassificationSetting.encode(message.dataClassificationSettingValue, writer.uint32(82).fork()).ldelim();+ }return writer;},@@ -880,6 +907,13 @@ export const Value = {message.schemaTemplateSettingValue = SchemaTemplateSetting.decode(reader, reader.uint32());continue;+ case 10:+ if (tag !== 82) {+ break;+ }++ message.dataClassificationSettingValue = DataClassificationSetting.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -914,6 +948,9 @@ export const Value = {schemaTemplateSettingValue: isSet(object.schemaTemplateSettingValue)? SchemaTemplateSetting.fromJSON(object.schemaTemplateSettingValue): undefined,+ dataClassificationSettingValue: isSet(object.dataClassificationSettingValue)+ ? DataClassificationSetting.fromJSON(object.dataClassificationSettingValue)+ : undefined,};},@@ -949,6 +986,10 @@ export const Value = {(obj.schemaTemplateSettingValue = message.schemaTemplateSettingValue? SchemaTemplateSetting.toJSON(message.schemaTemplateSettingValue): undefined);+ message.dataClassificationSettingValue !== undefined &&+ (obj.dataClassificationSettingValue = message.dataClassificationSettingValue+ ? DataClassificationSetting.toJSON(message.dataClassificationSettingValue)+ : undefined);return obj;},@@ -990,6 +1031,10 @@ export const Value = {(object.schemaTemplateSettingValue !== undefined && object.schemaTemplateSettingValue !== null)? SchemaTemplateSetting.fromPartial(object.schemaTemplateSettingValue): undefined;+ message.dataClassificationSettingValue =+ (object.dataClassificationSettingValue !== undefined && object.dataClassificationSettingValue !== null)+ ? DataClassificationSetting.fromPartial(object.dataClassificationSettingValue)+ : undefined;return message;},};@@ -2330,7 +2375,7 @@ export const DataClassificationSetting = {};function createBaseDataClassificationSetting_DataClassificationConfig(): DataClassificationSetting_DataClassificationConfig {- return { id: "", title: "", classificationLevel: {} };+ return { id: "", title: "", levels: [], classification: {} };}export const DataClassificationSetting_DataClassificationConfig = {@@ -2344,10 +2389,13 @@ export const DataClassificationSetting_DataClassificationConfig = {if (message.title !== "") {writer.uint32(18).string(message.title);}- Object.entries(message.classificationLevel).forEach(([key, value]) => {- DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry.encode(+ for (const v of message.levels) {+ DataClassificationSetting_DataClassificationConfig_Level.encode(v!, writer.uint32(26).fork()).ldelim();+ }+ Object.entries(message.classification).forEach(([key, value]) => {+ DataClassificationSetting_DataClassificationConfig_ClassificationEntry.encode({ key: key as any, value },- writer.uint32(26).fork(),+ writer.uint32(34).fork(),).ldelim();});return writer;@@ -2379,12 +2427,19 @@ export const DataClassificationSetting_DataClassificationConfig = {break;}- const entry3 = DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry.decode(+ message.levels.push(DataClassificationSetting_DataClassificationConfig_Level.decode(reader, reader.uint32()));+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ const entry4 = DataClassificationSetting_DataClassificationConfig_ClassificationEntry.decode(reader,reader.uint32(),);- if (entry3.value !== undefined) {- message.classificationLevel[entry3.key] = entry3.value;+ if (entry4.value !== undefined) {+ message.classification[entry4.key] = entry4.value;}continue;}@@ -2400,9 +2455,14 @@ export const DataClassificationSetting_DataClassificationConfig = {return {id: isSet(object.id) ? String(object.id) : "",title: isSet(object.title) ? String(object.title) : "",- classificationLevel: isObject(object.classificationLevel)- ? Object.entries(object.classificationLevel).reduce<{ [key: string]: string }>((acc, [key, value]) => {- acc[key] = String(value);+ levels: Array.isArray(object?.levels)+ ? object.levels.map((e: any) => DataClassificationSetting_DataClassificationConfig_Level.fromJSON(e))+ : [],+ classification: isObject(object.classification)+ ? Object.entries(object.classification).reduce<+ { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification }+ >((acc, [key, value]) => {+ acc[key] = DataClassificationSetting_DataClassificationConfig_DataClassification.fromJSON(value);return acc;}, {}): {},@@ -2413,10 +2473,17 @@ export const DataClassificationSetting_DataClassificationConfig = {const obj: any = {};message.id !== undefined && (obj.id = message.id);message.title !== undefined && (obj.title = message.title);- obj.classificationLevel = {};- if (message.classificationLevel) {- Object.entries(message.classificationLevel).forEach(([k, v]) => {- obj.classificationLevel[k] = v;+ if (message.levels) {+ obj.levels = message.levels.map((e) =>+ e ? DataClassificationSetting_DataClassificationConfig_Level.toJSON(e) : undefined+ );+ } else {+ obj.levels = [];+ }+ obj.classification = {};+ if (message.classification) {+ Object.entries(message.classification).forEach(([k, v]) => {+ obj.classification[k] = DataClassificationSetting_DataClassificationConfig_DataClassification.toJSON(v);});}return obj;@@ -2434,33 +2501,235 @@ export const DataClassificationSetting_DataClassificationConfig = {const message = createBaseDataClassificationSetting_DataClassificationConfig();message.id = object.id ?? "";message.title = object.title ?? "";- message.classificationLevel = Object.entries(object.classificationLevel ?? {}).reduce<{ [key: string]: string }>(- (acc, [key, value]) => {- if (value !== undefined) {- acc[key] = String(value);- }- return acc;- },- {},- );+ message.levels =+ object.levels?.map((e) => DataClassificationSetting_DataClassificationConfig_Level.fromPartial(e)) || [];+ message.classification = Object.entries(object.classification ?? {}).reduce<+ { [key: string]: DataClassificationSetting_DataClassificationConfig_DataClassification }+ >((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = DataClassificationSetting_DataClassificationConfig_DataClassification.fromPartial(value);+ }+ return acc;+ }, {});return message;},};-function createBaseDataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry(): DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry {- return { key: "", value: "" };+function createBaseDataClassificationSetting_DataClassificationConfig_Level(): DataClassificationSetting_DataClassificationConfig_Level {+ return { id: "", title: "", description: "" };}-export const DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry = {+export const DataClassificationSetting_DataClassificationConfig_Level = {encode(- message: DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry,+ message: DataClassificationSetting_DataClassificationConfig_Level,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(26).string(message.description);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DataClassificationSetting_DataClassificationConfig_Level {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting_DataClassificationConfig_Level();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.description = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_Level {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ description: isSet(object.description) ? String(object.description) : "",+ };+ },++ toJSON(message: DataClassificationSetting_DataClassificationConfig_Level): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ message.description !== undefined && (obj.description = message.description);+ return obj;+ },++ create(+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_Level>,+ ): DataClassificationSetting_DataClassificationConfig_Level {+ return DataClassificationSetting_DataClassificationConfig_Level.fromPartial(base ?? {});+ },++ fromPartial(+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig_Level>,+ ): DataClassificationSetting_DataClassificationConfig_Level {+ const message = createBaseDataClassificationSetting_DataClassificationConfig_Level();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ return message;+ },+};++function createBaseDataClassificationSetting_DataClassificationConfig_DataClassification(): DataClassificationSetting_DataClassificationConfig_DataClassification {+ return { id: "", title: "", description: "", levelId: undefined };+}++export const DataClassificationSetting_DataClassificationConfig_DataClassification = {+ encode(+ message: DataClassificationSetting_DataClassificationConfig_DataClassification,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(26).string(message.description);+ }+ if (message.levelId !== undefined) {+ writer.uint32(34).string(message.levelId);+ }+ return writer;+ },++ decode(+ input: _m0.Reader | Uint8Array,+ length?: number,+ ): DataClassificationSetting_DataClassificationConfig_DataClassification {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDataClassificationSetting_DataClassificationConfig_DataClassification();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.description = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.levelId = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_DataClassification {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ description: isSet(object.description) ? String(object.description) : "",+ levelId: isSet(object.levelId) ? String(object.levelId) : undefined,+ };+ },++ toJSON(message: DataClassificationSetting_DataClassificationConfig_DataClassification): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ message.description !== undefined && (obj.description = message.description);+ message.levelId !== undefined && (obj.levelId = message.levelId);+ return obj;+ },++ create(+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_DataClassification>,+ ): DataClassificationSetting_DataClassificationConfig_DataClassification {+ return DataClassificationSetting_DataClassificationConfig_DataClassification.fromPartial(base ?? {});+ },++ fromPartial(+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig_DataClassification>,+ ): DataClassificationSetting_DataClassificationConfig_DataClassification {+ const message = createBaseDataClassificationSetting_DataClassificationConfig_DataClassification();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ message.levelId = object.levelId ?? undefined;+ return message;+ },+};++function createBaseDataClassificationSetting_DataClassificationConfig_ClassificationEntry(): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ return { key: "", value: undefined };+}++export const DataClassificationSetting_DataClassificationConfig_ClassificationEntry = {+ encode(+ message: DataClassificationSetting_DataClassificationConfig_ClassificationEntry,writer: _m0.Writer = _m0.Writer.create(),): _m0.Writer {if (message.key !== "") {writer.uint32(10).string(message.key);}- if (message.value !== "") {- writer.uint32(18).string(message.value);+ if (message.value !== undefined) {+ DataClassificationSetting_DataClassificationConfig_DataClassification.encode(+ message.value,+ writer.uint32(18).fork(),+ ).ldelim();}return writer;},@@ -2468,10 +2737,10 @@ export const DataClassificationSetting_DataClassificationConfig_ClassificationLedecode(input: _m0.Reader | Uint8Array,length?: number,- ): DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry {+ ): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry();+ const message = createBaseDataClassificationSetting_DataClassificationConfig_ClassificationEntry();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2487,7 +2756,10 @@ export const DataClassificationSetting_DataClassificationConfig_ClassificationLebreak;}- message.value = reader.string();+ message.value = DataClassificationSetting_DataClassificationConfig_DataClassification.decode(+ reader,+ reader.uint32(),+ );continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2498,29 +2770,38 @@ export const DataClassificationSetting_DataClassificationConfig_ClassificationLereturn message;},- fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry {- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };+ fromJSON(object: any): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ return {+ key: isSet(object.key) ? String(object.key) : "",+ value: isSet(object.value)+ ? DataClassificationSetting_DataClassificationConfig_DataClassification.fromJSON(object.value)+ : undefined,+ };},- toJSON(message: DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry): unknown {+ toJSON(message: DataClassificationSetting_DataClassificationConfig_ClassificationEntry): unknown {const obj: any = {};message.key !== undefined && (obj.key = message.key);- message.value !== undefined && (obj.value = message.value);+ message.value !== undefined && (obj.value = message.value+ ? DataClassificationSetting_DataClassificationConfig_DataClassification.toJSON(message.value)+ : undefined);return obj;},create(- base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry>,- ): DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry {- return DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry.fromPartial(base ?? {});+ base?: DeepPartial<DataClassificationSetting_DataClassificationConfig_ClassificationEntry>,+ ): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ return DataClassificationSetting_DataClassificationConfig_ClassificationEntry.fromPartial(base ?? {});},fromPartial(- object: DeepPartial<DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry>,- ): DataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry {- const message = createBaseDataClassificationSetting_DataClassificationConfig_ClassificationLevelEntry();+ object: DeepPartial<DataClassificationSetting_DataClassificationConfig_ClassificationEntry>,+ ): DataClassificationSetting_DataClassificationConfig_ClassificationEntry {+ const message = createBaseDataClassificationSetting_DataClassificationConfig_ClassificationEntry();message.key = object.key ?? "";- message.value = object.value ?? "";+ message.value = (object.value !== undefined && object.value !== null)+ ? DataClassificationSetting_DataClassificationConfig_DataClassification.fromPartial(object.value)+ : undefined;return message;},};diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex bd43de75fd..bca2ba3b87 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -120,6 +120,11 @@- [store/setting.proto](#store_setting-proto)- [AgentPluginSetting](#bytebase-store-AgentPluginSetting)+ - [DataClassificationSetting](#bytebase-store-DataClassificationSetting)+ - [DataClassificationSetting.DataClassificationConfig](#bytebase-store-DataClassificationSetting-DataClassificationConfig)+ - [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-store-DataClassificationSetting-DataClassificationConfig-ClassificationEntry)+ - [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification)+ - [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-store-DataClassificationSetting-DataClassificationConfig-Level)- [ExternalApprovalSetting](#bytebase-store-ExternalApprovalSetting)- [ExternalApprovalSetting.Node](#bytebase-store-ExternalApprovalSetting-Node)- [SMTPMailDeliverySetting](#bytebase-store-SMTPMailDeliverySetting)@@ -1818,6 +1823,90 @@ Reference: https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#bind+<a name="bytebase-store-DataClassificationSetting"></a>++### DataClassificationSetting++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| configs | [DataClassificationSetting.DataClassificationConfig](#bytebase-store-DataClassificationSetting-DataClassificationConfig) | repeated | |+++++++<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig"></a>++### DataClassificationSetting.DataClassificationConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | id is the uuid for classification. Each project can chose one classification config. |+| title | [string](#string) | | |+| levels | [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-store-DataClassificationSetting-DataClassificationConfig-Level) | repeated | levels is user defined level list for classification. The order for the level decides its priority. |+| classification | [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-store-DataClassificationSetting-DataClassificationConfig-ClassificationEntry) | repeated | classification is the id - DataClassification map. The id should in [0-9]+-[0-9]+-[0-9]+ format. |+++++++<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-ClassificationEntry"></a>++### DataClassificationSetting.DataClassificationConfig.ClassificationEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification) | | |+++++++<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification"></a>++### DataClassificationSetting.DataClassificationConfig.DataClassification++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| level_id | [string](#string) | optional | |+++++++<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-Level"></a>++### DataClassificationSetting.DataClassificationConfig.Level++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |++++++<a name="bytebase-store-ExternalApprovalSetting"></a>### ExternalApprovalSettingdiff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 9fb8aa4846..2057d6bbd5 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -524,7 +524,9 @@- [AppIMSetting.ExternalApproval](#bytebase-v1-AppIMSetting-ExternalApproval)- [DataClassificationSetting](#bytebase-v1-DataClassificationSetting)- [DataClassificationSetting.DataClassificationConfig](#bytebase-v1-DataClassificationSetting-DataClassificationConfig)- - [DataClassificationSetting.DataClassificationConfig.ClassificationLevelEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationLevelEntry)+ - [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry)+ - [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification)+ - [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level)- [ExternalApprovalSetting](#bytebase-v1-ExternalApprovalSetting)- [ExternalApprovalSetting.Node](#bytebase-v1-ExternalApprovalSetting-Node)- [GetSettingRequest](#bytebase-v1-GetSettingRequest)@@ -8339,32 +8341,66 @@ The schema design's `name` field is used to identify the schema design to up<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig"></a>### DataClassificationSetting.DataClassificationConfig-Hard-coded schema comment format: [0-9]+-[0-9]+-[0-9]++| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |+| id | [string](#string) | | id is the uuid for classification. Each project can chose one classification config. || title | [string](#string) | | |-| classification_level | [DataClassificationSetting.DataClassificationConfig.ClassificationLevelEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationLevelEntry) | repeated | Maps classification to level.--TODO(ed): store the actual config. |+| levels | [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level) | repeated | levels is user defined level list for classification. The order for the level decides its priority. |+| classification | [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry) | repeated | classification is the id - DataClassification map. The id should in [0-9]+-[0-9]+-[0-9]+ format. |-<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationLevelEntry"></a>+<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry"></a>-### DataClassificationSetting.DataClassificationConfig.ClassificationLevelEntry+### DataClassificationSetting.DataClassificationConfig.ClassificationEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || key | [string](#string) | | |-| value | [string](#string) | | |+| value | [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification) | | |+++++++<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification"></a>++### DataClassificationSetting.DataClassificationConfig.DataClassification++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| level_id | [string](#string) | optional | |+++++++<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level"></a>++### DataClassificationSetting.DataClassificationConfig.Level++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |@@ -8594,6 +8630,7 @@ The data in setting value.| workspace_trial_setting_value | [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting) | | || external_approval_setting_value | [ExternalApprovalSetting](#bytebase-v1-ExternalApprovalSetting) | | || schema_template_setting_value | [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting) | | |+| data_classification_setting_value | [DataClassificationSetting](#bytebase-v1-DataClassificationSetting) | | |diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.goindex 83d06a6c0f..55dc2cc147 100644--- a/proto/generated-go/store/setting.pb.go+++ b/proto/generated-go/store/setting.pb.go@@ -559,6 +559,53 @@ func (x *SchemaTemplateSetting) GetColumnTypes() []*SchemaTemplateSetting_Columnreturn nil}+type DataClassificationSetting struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Configs []*DataClassificationSetting_DataClassificationConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`+}++func (x *DataClassificationSetting) Reset() {+ *x = DataClassificationSetting{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_setting_proto_msgTypes[6]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataClassificationSetting) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataClassificationSetting) ProtoMessage() {}++func (x *DataClassificationSetting) ProtoReflect() protoreflect.Message {+ mi := &file_store_setting_proto_msgTypes[6]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DataClassificationSetting.ProtoReflect.Descriptor instead.+func (*DataClassificationSetting) Descriptor() ([]byte, []int) {+ return file_store_setting_proto_rawDescGZIP(), []int{6}+}++func (x *DataClassificationSetting) GetConfigs() []*DataClassificationSetting_DataClassificationConfig {+ if x != nil {+ return x.Configs+ }+ return nil+}+type WorkspaceApprovalSetting_Rule struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -572,7 +619,7 @@ type WorkspaceApprovalSetting_Rule struct {func (x *WorkspaceApprovalSetting_Rule) Reset() {*x = WorkspaceApprovalSetting_Rule{}if protoimpl.UnsafeEnabled {- mi := &file_store_setting_proto_msgTypes[6]+ mi := &file_store_setting_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -585,7 +632,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[6]+ mi := &file_store_setting_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -639,7 +686,7 @@ type ExternalApprovalSetting_Node struct {func (x *ExternalApprovalSetting_Node) Reset() {*x = ExternalApprovalSetting_Node{}if protoimpl.UnsafeEnabled {- mi := &file_store_setting_proto_msgTypes[7]+ mi := &file_store_setting_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -652,7 +699,7 @@ func (x *ExternalApprovalSetting_Node) String() string {func (*ExternalApprovalSetting_Node) ProtoMessage() {}func (x *ExternalApprovalSetting_Node) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[7]+ mi := &file_store_setting_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -703,7 +750,7 @@ type SchemaTemplateSetting_FieldTemplate struct {func (x *SchemaTemplateSetting_FieldTemplate) Reset() {*x = SchemaTemplateSetting_FieldTemplate{}if protoimpl.UnsafeEnabled {- mi := &file_store_setting_proto_msgTypes[8]+ mi := &file_store_setting_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -716,7 +763,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[8]+ mi := &file_store_setting_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -773,7 +820,7 @@ type SchemaTemplateSetting_ColumnType struct {func (x *SchemaTemplateSetting_ColumnType) Reset() {*x = SchemaTemplateSetting_ColumnType{}if protoimpl.UnsafeEnabled {- mi := &file_store_setting_proto_msgTypes[9]+ mi := &file_store_setting_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -786,7 +833,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {- mi := &file_store_setting_proto_msgTypes[9]+ mi := &file_store_setting_proto_msgTypes[10]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -823,6 +870,217 @@ func (x *SchemaTemplateSetting_ColumnType) GetTypes() []string {return nil}+type DataClassificationSetting_DataClassificationConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // id is the uuid for classification. Each project can chose one classification config.+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ // levels is user defined level list for classification.+ // The order for the level decides its priority.+ Levels []*DataClassificationSetting_DataClassificationConfig_Level `protobuf:"bytes,3,rep,name=levels,proto3" json:"levels,omitempty"`+ // classification is the id - DataClassification map.+ // The id should in [0-9]+-[0-9]+-[0-9]+ format.+ Classification map[string]*DataClassificationSetting_DataClassificationConfig_DataClassification `protobuf:"bytes,4,rep,name=classification,proto3" json:"classification,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`+}++func (x *DataClassificationSetting_DataClassificationConfig) Reset() {+ *x = DataClassificationSetting_DataClassificationConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_setting_proto_msgTypes[11]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataClassificationSetting_DataClassificationConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}++func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {+ mi := &file_store_setting_proto_msgTypes[11]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DataClassificationSetting_DataClassificationConfig.ProtoReflect.Descriptor instead.+func (*DataClassificationSetting_DataClassificationConfig) Descriptor() ([]byte, []int) {+ return file_store_setting_proto_rawDescGZIP(), []int{6, 0}+}++func (x *DataClassificationSetting_DataClassificationConfig) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig) GetLevels() []*DataClassificationSetting_DataClassificationConfig_Level {+ if x != nil {+ return x.Levels+ }+ return nil+}++func (x *DataClassificationSetting_DataClassificationConfig) GetClassification() map[string]*DataClassificationSetting_DataClassificationConfig_DataClassification {+ if x != nil {+ return x.Classification+ }+ return nil+}++type DataClassificationSetting_DataClassificationConfig_Level struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {+ *x = DataClassificationSetting_DataClassificationConfig_Level{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_setting_proto_msgTypes[12]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}++func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {+ mi := &file_store_setting_proto_msgTypes[12]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DataClassificationSetting_DataClassificationConfig_Level.ProtoReflect.Descriptor instead.+func (*DataClassificationSetting_DataClassificationConfig_Level) Descriptor() ([]byte, []int) {+ return file_store_setting_proto_rawDescGZIP(), []int{6, 0, 0}+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++type DataClassificationSetting_DataClassificationConfig_DataClassification struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`+ LevelId *string `protobuf:"bytes,4,opt,name=level_id,json=levelId,proto3,oneof" json:"level_id,omitempty"`+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {+ *x = DataClassificationSetting_DataClassificationConfig_DataClassification{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_setting_proto_msgTypes[13]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {+ mi := &file_store_setting_proto_msgTypes[13]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DataClassificationSetting_DataClassificationConfig_DataClassification.ProtoReflect.Descriptor instead.+func (*DataClassificationSetting_DataClassificationConfig_DataClassification) Descriptor() ([]byte, []int) {+ return file_store_setting_proto_rawDescGZIP(), []int{6, 0, 1}+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetLevelId() string {+ if x != nil && x.LevelId != nil {+ return *x.LevelId+ }+ return ""+}+var File_store_setting_proto protoreflect.FileDescriptorvar file_store_setting_proto_rawDesc = []byte{@@ -960,9 +1218,59 @@ var file_store_setting_proto_rawDesc = []byte{0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e,0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61,0x62, 0x6c, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20,- 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 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,+ 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x96, 0x06, 0x0a, 0x19, 0x44,+ 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,+ 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x1a, 0x9a, 0x05, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x60, 0x0a, 0x06, 0x6c, 0x65, 0x76,+ 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65,+ 0x76, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x7e, 0x0a, 0x0e, 0x63,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x56, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44,+ 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,+ 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69,+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x61,+ 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x4f, 0x0a, 0x05, 0x4c,+ 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x89, 0x01, 0x0a,+ 0x12, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6c,+ 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,+ 0x07, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f,+ 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x1a, 0x98, 0x01, 0x0a, 0x13, 0x43, 0x6c, 0x61,+ 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79,+ 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,+ 0x65, 0x79, 0x12, 0x6b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x55, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69,+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,+ 0x02, 0x38, 0x01, 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 (@@ -978,46 +1286,55 @@ func file_store_setting_proto_rawDescGZIP() []byte {}var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 10)+var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 15)var file_store_setting_proto_goTypes = []interface{}{- (SMTPMailDeliverySetting_Encryption)(0), // 0: bytebase.store.SMTPMailDeliverySetting.Encryption- (SMTPMailDeliverySetting_Authentication)(0), // 1: bytebase.store.SMTPMailDeliverySetting.Authentication- (*WorkspaceProfileSetting)(nil), // 2: bytebase.store.WorkspaceProfileSetting- (*AgentPluginSetting)(nil), // 3: bytebase.store.AgentPluginSetting- (*WorkspaceApprovalSetting)(nil), // 4: bytebase.store.WorkspaceApprovalSetting- (*ExternalApprovalSetting)(nil), // 5: bytebase.store.ExternalApprovalSetting- (*SMTPMailDeliverySetting)(nil), // 6: bytebase.store.SMTPMailDeliverySetting- (*SchemaTemplateSetting)(nil), // 7: bytebase.store.SchemaTemplateSetting- (*WorkspaceApprovalSetting_Rule)(nil), // 8: bytebase.store.WorkspaceApprovalSetting.Rule- (*ExternalApprovalSetting_Node)(nil), // 9: bytebase.store.ExternalApprovalSetting.Node- (*SchemaTemplateSetting_FieldTemplate)(nil), // 10: bytebase.store.SchemaTemplateSetting.FieldTemplate- (*SchemaTemplateSetting_ColumnType)(nil), // 11: bytebase.store.SchemaTemplateSetting.ColumnType- (*durationpb.Duration)(nil), // 12: google.protobuf.Duration- (*v1alpha1.ParsedExpr)(nil), // 13: google.api.expr.v1alpha1.ParsedExpr- (*ApprovalTemplate)(nil), // 14: bytebase.store.ApprovalTemplate- (*expr.Expr)(nil), // 15: google.type.Expr- (Engine)(0), // 16: bytebase.store.Engine- (*ColumnMetadata)(nil), // 17: bytebase.store.ColumnMetadata+ (SMTPMailDeliverySetting_Encryption)(0), // 0: bytebase.store.SMTPMailDeliverySetting.Encryption+ (SMTPMailDeliverySetting_Authentication)(0), // 1: bytebase.store.SMTPMailDeliverySetting.Authentication+ (*WorkspaceProfileSetting)(nil), // 2: bytebase.store.WorkspaceProfileSetting+ (*AgentPluginSetting)(nil), // 3: bytebase.store.AgentPluginSetting+ (*WorkspaceApprovalSetting)(nil), // 4: bytebase.store.WorkspaceApprovalSetting+ (*ExternalApprovalSetting)(nil), // 5: bytebase.store.ExternalApprovalSetting+ (*SMTPMailDeliverySetting)(nil), // 6: bytebase.store.SMTPMailDeliverySetting+ (*SchemaTemplateSetting)(nil), // 7: bytebase.store.SchemaTemplateSetting+ (*DataClassificationSetting)(nil), // 8: bytebase.store.DataClassificationSetting+ (*WorkspaceApprovalSetting_Rule)(nil), // 9: bytebase.store.WorkspaceApprovalSetting.Rule+ (*ExternalApprovalSetting_Node)(nil), // 10: bytebase.store.ExternalApprovalSetting.Node+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 11: bytebase.store.SchemaTemplateSetting.FieldTemplate+ (*SchemaTemplateSetting_ColumnType)(nil), // 12: bytebase.store.SchemaTemplateSetting.ColumnType+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 13: bytebase.store.DataClassificationSetting.DataClassificationConfig+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 14: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 15: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ nil, // 16: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ (*durationpb.Duration)(nil), // 17: google.protobuf.Duration+ (*v1alpha1.ParsedExpr)(nil), // 18: google.api.expr.v1alpha1.ParsedExpr+ (*ApprovalTemplate)(nil), // 19: bytebase.store.ApprovalTemplate+ (*expr.Expr)(nil), // 20: google.type.Expr+ (Engine)(0), // 21: bytebase.store.Engine+ (*ColumnMetadata)(nil), // 22: bytebase.store.ColumnMetadata}var file_store_setting_proto_depIdxs = []int32{- 12, // 0: bytebase.store.WorkspaceProfileSetting.refresh_token_duration:type_name -> google.protobuf.Duration- 8, // 1: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule- 9, // 2: bytebase.store.ExternalApprovalSetting.nodes:type_name -> bytebase.store.ExternalApprovalSetting.Node+ 17, // 0: bytebase.store.WorkspaceProfileSetting.refresh_token_duration:type_name -> google.protobuf.Duration+ 9, // 1: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule+ 10, // 2: bytebase.store.ExternalApprovalSetting.nodes:type_name -> bytebase.store.ExternalApprovalSetting.Node0, // 3: bytebase.store.SMTPMailDeliverySetting.encryption:type_name -> bytebase.store.SMTPMailDeliverySetting.Encryption1, // 4: bytebase.store.SMTPMailDeliverySetting.authentication:type_name -> bytebase.store.SMTPMailDeliverySetting.Authentication- 10, // 5: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate- 11, // 6: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType- 13, // 7: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.ParsedExpr- 14, // 8: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate- 15, // 9: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 16, // 10: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine- 17, // 11: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata- 16, // 12: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine- 13, // [13:13] is the sub-list for method output_type- 13, // [13:13] is the sub-list for method input_type- 13, // [13:13] is the sub-list for extension type_name- 13, // [13:13] is the sub-list for extension extendee- 0, // [0:13] is the sub-list for field type_name+ 11, // 5: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate+ 12, // 6: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType+ 13, // 7: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig+ 18, // 8: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.ParsedExpr+ 19, // 9: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate+ 20, // 10: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 21, // 11: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine+ 22, // 12: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata+ 21, // 13: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine+ 14, // 14: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level+ 16, // 15: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 15, // 16: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification+ 17, // [17:17] is the sub-list for method output_type+ 17, // [17:17] is the sub-list for method input_type+ 17, // [17:17] is the sub-list for extension type_name+ 17, // [17:17] is the sub-list for extension extendee+ 0, // [0:17] is the sub-list for field type_name}func init() { file_store_setting_proto_init() }@@ -1102,7 +1419,7 @@ func file_store_setting_proto_init() {}}file_store_setting_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*WorkspaceApprovalSetting_Rule); i {+ switch v := v.(*DataClassificationSetting); i {case 0:return &v.statecase 1:@@ -1114,7 +1431,7 @@ func file_store_setting_proto_init() {}}file_store_setting_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ExternalApprovalSetting_Node); i {+ switch v := v.(*WorkspaceApprovalSetting_Rule); i {case 0:return &v.statecase 1:@@ -1126,7 +1443,7 @@ func file_store_setting_proto_init() {}}file_store_setting_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SchemaTemplateSetting_FieldTemplate); i {+ switch v := v.(*ExternalApprovalSetting_Node); i {case 0:return &v.statecase 1:@@ -1138,6 +1455,18 @@ func file_store_setting_proto_init() {}}file_store_setting_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SchemaTemplateSetting_FieldTemplate); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_setting_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SchemaTemplateSetting_ColumnType); i {case 0:return &v.state@@ -1149,14 +1478,51 @@ func file_store_setting_proto_init() {return nil}}+ file_store_setting_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataClassificationSetting_DataClassificationConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_setting_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataClassificationSetting_DataClassificationConfig_Level); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_setting_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataClassificationSetting_DataClassificationConfig_DataClassification); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }}+ file_store_setting_proto_msgTypes[13].OneofWrappers = []interface{}{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_setting_proto_rawDesc,NumEnums: 2,- NumMessages: 10,+ NumMessages: 15,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.goindex 6aab3c75cf..293cbe4091 100644--- a/proto/generated-go/v1/setting_service.pb.go+++ b/proto/generated-go/v1/setting_service.pb.go@@ -537,6 +537,7 @@ type Value struct {// *Value_WorkspaceTrialSettingValue// *Value_ExternalApprovalSettingValue// *Value_SchemaTemplateSettingValue+ // *Value_DataClassificationSettingValueValue isValue_Value `protobuf_oneof:"value"`}@@ -642,6 +643,13 @@ func (x *Value) GetSchemaTemplateSettingValue() *SchemaTemplateSetting {return nil}+func (x *Value) GetDataClassificationSettingValue() *DataClassificationSetting {+ if x, ok := x.GetValue().(*Value_DataClassificationSettingValue); ok {+ return x.DataClassificationSettingValue+ }+ return nil+}+type isValue_Value interface {isValue_Value()}@@ -683,6 +691,10 @@ type Value_SchemaTemplateSettingValue struct {SchemaTemplateSettingValue *SchemaTemplateSetting `protobuf:"bytes,9,opt,name=schema_template_setting_value,json=schemaTemplateSettingValue,proto3,oneof"`}+type Value_DataClassificationSettingValue struct {+ DataClassificationSettingValue *DataClassificationSetting `protobuf:"bytes,10,opt,name=data_classification_setting_value,json=dataClassificationSettingValue,proto3,oneof"`+}+func (*Value_StringValue) isValue_Value() {}func (*Value_SmtpMailDeliverySettingValue) isValue_Value() {}@@ -701,6 +713,8 @@ func (*Value_ExternalApprovalSettingValue) isValue_Value() {}func (*Value_SchemaTemplateSettingValue) isValue_Value() {}+func (*Value_DataClassificationSettingValue) isValue_Value() {}+type SMTPMailDeliverySettingValue struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1655,16 +1669,20 @@ func (x *SchemaTemplateSetting_ColumnType) GetTypes() []string {return nil}-// Hard-coded schema comment format: [0-9]+-[0-9]+-[0-9]+type DataClassificationSetting_DataClassificationConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields+ // id is the uuid for classification. Each project can chose one classification config.Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- // Maps classification to level.- ClassificationLevel map[string]string `protobuf:"bytes,3,rep,name=classification_level,json=classificationLevel,proto3" json:"classification_level,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // TODO(ed): store the actual config.+ // levels is user defined level list for classification.+ // The order for the level decides its priority.+ Levels []*DataClassificationSetting_DataClassificationConfig_Level `protobuf:"bytes,3,rep,name=levels,proto3" json:"levels,omitempty"`+ // classification is the id - DataClassification map.+ // The id should in [0-9]+-[0-9]+-[0-9]+ format.+ Classification map[string]*DataClassificationSetting_DataClassificationConfig_DataClassification `protobuf:"bytes,4,rep,name=classification,proto3" json:"classification,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`}func (x *DataClassificationSetting_DataClassificationConfig) Reset() {@@ -1713,13 +1731,155 @@ func (x *DataClassificationSetting_DataClassificationConfig) GetTitle() string {return ""}-func (x *DataClassificationSetting_DataClassificationConfig) GetClassificationLevel() map[string]string {+func (x *DataClassificationSetting_DataClassificationConfig) GetLevels() []*DataClassificationSetting_DataClassificationConfig_Level {if x != nil {- return x.ClassificationLevel+ return x.Levels}return nil}+func (x *DataClassificationSetting_DataClassificationConfig) GetClassification() map[string]*DataClassificationSetting_DataClassificationConfig_DataClassification {+ if x != nil {+ return x.Classification+ }+ return nil+}++type DataClassificationSetting_DataClassificationConfig_Level struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {+ *x = DataClassificationSetting_DataClassificationConfig_Level{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_setting_service_proto_msgTypes[22]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}++func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {+ mi := &file_v1_setting_service_proto_msgTypes[22]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DataClassificationSetting_DataClassificationConfig_Level.ProtoReflect.Descriptor instead.+func (*DataClassificationSetting_DataClassificationConfig_Level) Descriptor() ([]byte, []int) {+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0, 0}+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_Level) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++type DataClassificationSetting_DataClassificationConfig_DataClassification struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`+ LevelId *string `protobuf:"bytes,4,opt,name=level_id,json=levelId,proto3,oneof" json:"level_id,omitempty"`+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {+ *x = DataClassificationSetting_DataClassificationConfig_DataClassification{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_setting_service_proto_msgTypes[23]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {+ mi := &file_v1_setting_service_proto_msgTypes[23]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DataClassificationSetting_DataClassificationConfig_DataClassification.ProtoReflect.Descriptor instead.+func (*DataClassificationSetting_DataClassificationConfig_DataClassification) Descriptor() ([]byte, []int) {+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0, 1}+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) GetLevelId() string {+ if x != nil && x.LevelId != nil {+ return *x.LevelId+ }+ return ""+}+var File_v1_setting_service_proto protoreflect.FileDescriptorvar file_v1_setting_service_proto_rawDesc = []byte{@@ -1773,7 +1933,7 @@ var file_v1_setting_service_proto_rawDesc = []byte{0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,0x6d, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xfa, 0x06, 0x0a,+ 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xef, 0x07, 0x0a,0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x73, 0x0a, 0x20, 0x73,@@ -1829,194 +1989,225 @@ var file_v1_setting_service_proto_rawDesc = []byte{0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,0x6e, 0x67, 0x48, 0x00, 0x52, 0x1a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70,0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65,- 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xda, 0x05, 0x0a, 0x1c, 0x53, 0x4d,+ 0x12, 0x73, 0x0a, 0x21, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x5f,+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c,+ 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74,+ 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x1e, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73,+ 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,+ 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xda,+ 0x05, 0x0a, 0x1c, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76,+ 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,+ 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x54, 0x0a, 0x0a, 0x65,+ 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x4d,0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65,- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65,- 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76,- 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,- 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x54, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69,- 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e,- 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x02,- 0x63, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x63, 0x61, 0x88, 0x01,- 0x01, 0x12, 0x15, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01,- 0x52, 0x03, 0x6b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x88, 0x01,- 0x01, 0x12, 0x60, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x4d, 0x54, 0x50, 0x4d, 0x61, 0x69, 0x6c,- 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56,- 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,- 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28,- 0x09, 0x48, 0x03, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01,- 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x02, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x0a, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,- 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e,- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13,- 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e,- 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f,- 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x54, 0x4c, 0x53, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12,- 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x53, 0x4c, 0x5f, 0x54,- 0x4c, 0x53, 0x10, 0x03, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45,- 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x55, 0x54, 0x48, 0x45,- 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01,- 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49,- 0x4f, 0x4e, 0x5f, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55,- 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x4f, 0x47,- 0x49, 0x4e, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49,- 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10,- 0x04, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x63, 0x61, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6b, 0x65, 0x79,- 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61,- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xeb, 0x02, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x39, 0x0a, 0x07, 0x69, 0x6d, 0x5f, 0x74, 0x79,- 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79,+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f,+ 0x6e, 0x12, 0x13, 0x0a, 0x02, 0x63, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,+ 0x02, 0x63, 0x61, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a,+ 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x04, 0x63,+ 0x65, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x60, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x4d, 0x54,+ 0x50, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e,+ 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,+ 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x0a, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18,+ 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x0a, 0x45, 0x6e, 0x63,+ 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x4e, 0x43, 0x52, 0x59,+ 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f,+ 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x4e, 0x43, 0x52,+ 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x54, 0x4c, 0x53, 0x10,+ 0x02, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f,+ 0x53, 0x53, 0x4c, 0x5f, 0x54, 0x4c, 0x53, 0x10, 0x03, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x41, 0x75,+ 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a,+ 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13,+ 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e,+ 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54,+ 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12,+ 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f,+ 0x4e, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54,+ 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x41, 0x4d,+ 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x63, 0x61, 0x42, 0x06, 0x0a,+ 0x04, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x42, 0x0b,+ 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xeb, 0x02, 0x0a, 0x0c,+ 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x39, 0x0a, 0x07,+ 0x69, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x49,+ 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x49, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52,+ 0x06, 0x69, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69,+ 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1d,+ 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x57, 0x0a,+ 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76,+ 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x2e, 0x49, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x70, 0x70,- 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61,- 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x57, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45,- 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x52,- 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61,- 0x6c, 0x1a, 0x62, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70,- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12,- 0x34, 0x0a, 0x16, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x66, 0x69,- 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,- 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x06, 0x49, 0x4d, 0x54, 0x79, 0x70, 0x65, 0x12,- 0x17, 0x0a, 0x13, 0x49, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x45, 0x49, 0x53,- 0x48, 0x55, 0x10, 0x01, 0x22, 0x3c, 0x0a, 0x12, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x75,- 0x67, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,- 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,- 0x65, 0x6e, 0x22, 0xaf, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,- 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21,- 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72,- 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69,- 0x67, 0x6e, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61,- 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65,- 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6f,- 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18,- 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49,- 0x70, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f,- 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x10, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x55, 0x72, 0x6c, 0x12, 0x4f, 0x0a, 0x16, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74,- 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14,- 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x75, 0x72, 0x61,- 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd0, 0x01, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,- 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 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, 0x57,- 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75,- 0x6c, 0x65, 0x73, 0x1a, 0x72, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x74,- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72,- 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65,- 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,- 0x69, 0x6f, 0x6e, 0x18, 0x03, 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, 0xa4, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65,- 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x12, 0x3f, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61,- 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e,- 0x6f, 0x64, 0x65, 0x73, 0x1a, 0x48, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02,- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,- 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xcf,- 0x03, 0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,- 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a, 0x0f, 0x66, 0x69, 0x65, 0x6c,- 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65,- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c,- 0x61, 0x74, 0x65, 0x52, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,- 0x74, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79,- 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65,- 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f,- 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,- 0x54, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x9d, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54,- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,- 0x65, 0x18, 0x02, 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, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,- 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,- 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x63,- 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x1a, 0x69, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54,- 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 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, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79,- 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73,- 0x22, 0x98, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x54, 0x72,- 0x69, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e,- 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,- 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b,- 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,- 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,- 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,- 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65,- 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,- 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x8f, 0x03, 0x0a, 0x19,- 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a, 0x07, 0x63, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61,- 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69,- 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x73, 0x1a, 0x96, 0x02, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61,- 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,+ 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72,+ 0x6f, 0x76, 0x61, 0x6c, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70,+ 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x1a, 0x62, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e,+ 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e,+ 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61,+ 0x62, 0x6c, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,+ 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x44, 0x65,+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x06, 0x49, 0x4d,+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a,+ 0x06, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55, 0x10, 0x01, 0x22, 0x3c, 0x0a, 0x12, 0x41, 0x67, 0x65,+ 0x6e, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,+ 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,+ 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xaf, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b,+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74,+ 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f,+ 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72,+ 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,+ 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,+ 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12,+ 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66, 0x61, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x32, 0x66, 0x61,+ 0x12, 0x28, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x70, 0x5f,+ 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x62,+ 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x67, 0x69,+ 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c,+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x57, 0x65,+ 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x12, 0x4f, 0x0a, 0x16, 0x72, 0x65, 0x66, 0x72,+ 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65,+ 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd0, 0x01, 0x0a, 0x18, 0x57, 0x6f,+ 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53,+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 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, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70,+ 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x75, 0x6c,+ 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x72, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65,+ 0x12, 0x39, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,+ 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63,+ 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 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, 0xa4, 0x01, 0x0a,+ 0x17, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61,+ 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3f, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65,+ 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70,+ 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4e, 0x6f,+ 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x1a, 0x48, 0x0a, 0x04, 0x4e, 0x6f, 0x64,+ 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x14, 0x63, 0x6c, 0x61, 0x73,- 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,- 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x58, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44,- 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69,- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79,- 0x52, 0x13, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,- 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x46, 0x0a, 0x18, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 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, 0x32, 0xdc, 0x02,+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f,+ 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f,+ 0x69, 0x6e, 0x74, 0x22, 0xcf, 0x03, 0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65,+ 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a,+ 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73,+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c,+ 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,+ 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54,+ 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75,+ 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,+ 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63,+ 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x9d, 0x01, 0x0a, 0x0d, 0x46,+ 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02,+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06,+ 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 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, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74,+ 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74,+ 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,+ 0x74, 0x61, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x1a, 0x69, 0x0a, 0x0a, 0x43, 0x6f,+ 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69,+ 0x6e, 0x65, 0x18, 0x01, 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, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12,+ 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,+ 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,+ 0x61, 0x63, 0x65, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,+ 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54,+ 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x74, 0x69,+ 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,+ 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65,+ 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72,+ 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72,+ 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e,+ 0x22, 0x8a, 0x06, 0x0a, 0x19, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59,+ 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x3f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,+ 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73,+ 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x1a, 0x91, 0x05, 0x0a, 0x18, 0x44, 0x61,+ 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x5d, 0x0a, 0x06,+ 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65,+ 0x76, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x7b, 0x0a, 0x0e, 0x63,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,+ 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61,+ 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x4f, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65,+ 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,+ 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x89, 0x01, 0x0a, 0x12, 0x44, 0x61,+ 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,+ 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73,+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x65, 0x76, 0x65,+ 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x65,+ 0x76, 0x65, 0x6c, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x65, 0x76,+ 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x1a, 0x95, 0x01, 0x0a, 0x13, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69,+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,+ 0x68, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73,+ 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,+ 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xdc, 0x02,0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,@@ -2056,41 +2247,43 @@ func file_v1_setting_service_proto_rawDescGZIP() []byte {}var file_v1_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3)-var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)+var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 25)var file_v1_setting_service_proto_goTypes = []interface{}{- (SMTPMailDeliverySettingValue_Encryption)(0), // 0: bytebase.v1.SMTPMailDeliverySettingValue.Encryption- (SMTPMailDeliverySettingValue_Authentication)(0), // 1: bytebase.v1.SMTPMailDeliverySettingValue.Authentication- (AppIMSetting_IMType)(0), // 2: bytebase.v1.AppIMSetting.IMType- (*ListSettingsRequest)(nil), // 3: bytebase.v1.ListSettingsRequest- (*ListSettingsResponse)(nil), // 4: bytebase.v1.ListSettingsResponse- (*GetSettingRequest)(nil), // 5: bytebase.v1.GetSettingRequest- (*GetSettingResponse)(nil), // 6: bytebase.v1.GetSettingResponse- (*SetSettingRequest)(nil), // 7: bytebase.v1.SetSettingRequest- (*Setting)(nil), // 8: bytebase.v1.Setting- (*Value)(nil), // 9: bytebase.v1.Value- (*SMTPMailDeliverySettingValue)(nil), // 10: bytebase.v1.SMTPMailDeliverySettingValue- (*AppIMSetting)(nil), // 11: bytebase.v1.AppIMSetting- (*AgentPluginSetting)(nil), // 12: bytebase.v1.AgentPluginSetting- (*WorkspaceProfileSetting)(nil), // 13: bytebase.v1.WorkspaceProfileSetting- (*WorkspaceApprovalSetting)(nil), // 14: bytebase.v1.WorkspaceApprovalSetting- (*ExternalApprovalSetting)(nil), // 15: bytebase.v1.ExternalApprovalSetting- (*SchemaTemplateSetting)(nil), // 16: bytebase.v1.SchemaTemplateSetting- (*WorkspaceTrialSetting)(nil), // 17: bytebase.v1.WorkspaceTrialSetting- (*DataClassificationSetting)(nil), // 18: bytebase.v1.DataClassificationSetting- (*AppIMSetting_ExternalApproval)(nil), // 19: bytebase.v1.AppIMSetting.ExternalApproval- (*WorkspaceApprovalSetting_Rule)(nil), // 20: bytebase.v1.WorkspaceApprovalSetting.Rule- (*ExternalApprovalSetting_Node)(nil), // 21: bytebase.v1.ExternalApprovalSetting.Node- (*SchemaTemplateSetting_FieldTemplate)(nil), // 22: bytebase.v1.SchemaTemplateSetting.FieldTemplate- (*SchemaTemplateSetting_ColumnType)(nil), // 23: bytebase.v1.SchemaTemplateSetting.ColumnType- (*DataClassificationSetting_DataClassificationConfig)(nil), // 24: bytebase.v1.DataClassificationSetting.DataClassificationConfig- nil, // 25: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationLevelEntry- (*durationpb.Duration)(nil), // 26: google.protobuf.Duration- (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp- (PlanType)(0), // 28: bytebase.v1.PlanType- (*ApprovalTemplate)(nil), // 29: bytebase.v1.ApprovalTemplate- (*expr.Expr)(nil), // 30: google.type.Expr- (Engine)(0), // 31: bytebase.v1.Engine- (*ColumnMetadata)(nil), // 32: bytebase.v1.ColumnMetadata+ (SMTPMailDeliverySettingValue_Encryption)(0), // 0: bytebase.v1.SMTPMailDeliverySettingValue.Encryption+ (SMTPMailDeliverySettingValue_Authentication)(0), // 1: bytebase.v1.SMTPMailDeliverySettingValue.Authentication+ (AppIMSetting_IMType)(0), // 2: bytebase.v1.AppIMSetting.IMType+ (*ListSettingsRequest)(nil), // 3: bytebase.v1.ListSettingsRequest+ (*ListSettingsResponse)(nil), // 4: bytebase.v1.ListSettingsResponse+ (*GetSettingRequest)(nil), // 5: bytebase.v1.GetSettingRequest+ (*GetSettingResponse)(nil), // 6: bytebase.v1.GetSettingResponse+ (*SetSettingRequest)(nil), // 7: bytebase.v1.SetSettingRequest+ (*Setting)(nil), // 8: bytebase.v1.Setting+ (*Value)(nil), // 9: bytebase.v1.Value+ (*SMTPMailDeliverySettingValue)(nil), // 10: bytebase.v1.SMTPMailDeliverySettingValue+ (*AppIMSetting)(nil), // 11: bytebase.v1.AppIMSetting+ (*AgentPluginSetting)(nil), // 12: bytebase.v1.AgentPluginSetting+ (*WorkspaceProfileSetting)(nil), // 13: bytebase.v1.WorkspaceProfileSetting+ (*WorkspaceApprovalSetting)(nil), // 14: bytebase.v1.WorkspaceApprovalSetting+ (*ExternalApprovalSetting)(nil), // 15: bytebase.v1.ExternalApprovalSetting+ (*SchemaTemplateSetting)(nil), // 16: bytebase.v1.SchemaTemplateSetting+ (*WorkspaceTrialSetting)(nil), // 17: bytebase.v1.WorkspaceTrialSetting+ (*DataClassificationSetting)(nil), // 18: bytebase.v1.DataClassificationSetting+ (*AppIMSetting_ExternalApproval)(nil), // 19: bytebase.v1.AppIMSetting.ExternalApproval+ (*WorkspaceApprovalSetting_Rule)(nil), // 20: bytebase.v1.WorkspaceApprovalSetting.Rule+ (*ExternalApprovalSetting_Node)(nil), // 21: bytebase.v1.ExternalApprovalSetting.Node+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 22: bytebase.v1.SchemaTemplateSetting.FieldTemplate+ (*SchemaTemplateSetting_ColumnType)(nil), // 23: bytebase.v1.SchemaTemplateSetting.ColumnType+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 24: bytebase.v1.DataClassificationSetting.DataClassificationConfig+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 25: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 26: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ nil, // 27: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ (*durationpb.Duration)(nil), // 28: google.protobuf.Duration+ (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp+ (PlanType)(0), // 30: bytebase.v1.PlanType+ (*ApprovalTemplate)(nil), // 31: bytebase.v1.ApprovalTemplate+ (*expr.Expr)(nil), // 32: google.type.Expr+ (Engine)(0), // 33: bytebase.v1.Engine+ (*ColumnMetadata)(nil), // 34: bytebase.v1.ColumnMetadata}var file_v1_setting_service_proto_depIdxs = []int32{8, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting@@ -2105,36 +2298,39 @@ var file_v1_setting_service_proto_depIdxs = []int32{17, // 9: bytebase.v1.Value.workspace_trial_setting_value:type_name -> bytebase.v1.WorkspaceTrialSetting15, // 10: bytebase.v1.Value.external_approval_setting_value:type_name -> bytebase.v1.ExternalApprovalSetting16, // 11: bytebase.v1.Value.schema_template_setting_value:type_name -> bytebase.v1.SchemaTemplateSetting- 0, // 12: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption- 1, // 13: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication- 2, // 14: bytebase.v1.AppIMSetting.im_type:type_name -> bytebase.v1.AppIMSetting.IMType- 19, // 15: bytebase.v1.AppIMSetting.external_approval:type_name -> bytebase.v1.AppIMSetting.ExternalApproval- 26, // 16: bytebase.v1.WorkspaceProfileSetting.refresh_token_duration:type_name -> google.protobuf.Duration- 20, // 17: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule- 21, // 18: bytebase.v1.ExternalApprovalSetting.nodes:type_name -> bytebase.v1.ExternalApprovalSetting.Node- 22, // 19: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate- 23, // 20: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType- 27, // 21: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp- 27, // 22: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp- 28, // 23: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType- 24, // 24: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig- 29, // 25: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate- 30, // 26: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr- 31, // 27: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine- 32, // 28: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata- 31, // 29: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine- 25, // 30: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification_level:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationLevelEntry- 3, // 31: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest- 5, // 32: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest- 7, // 33: bytebase.v1.SettingService.SetSetting:input_type -> bytebase.v1.SetSettingRequest- 4, // 34: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse- 8, // 35: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting- 8, // 36: bytebase.v1.SettingService.SetSetting:output_type -> bytebase.v1.Setting- 34, // [34:37] is the sub-list for method output_type- 31, // [31:34] 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+ 18, // 12: bytebase.v1.Value.data_classification_setting_value:type_name -> bytebase.v1.DataClassificationSetting+ 0, // 13: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption+ 1, // 14: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication+ 2, // 15: bytebase.v1.AppIMSetting.im_type:type_name -> bytebase.v1.AppIMSetting.IMType+ 19, // 16: bytebase.v1.AppIMSetting.external_approval:type_name -> bytebase.v1.AppIMSetting.ExternalApproval+ 28, // 17: bytebase.v1.WorkspaceProfileSetting.refresh_token_duration:type_name -> google.protobuf.Duration+ 20, // 18: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule+ 21, // 19: bytebase.v1.ExternalApprovalSetting.nodes:type_name -> bytebase.v1.ExternalApprovalSetting.Node+ 22, // 20: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate+ 23, // 21: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType+ 29, // 22: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp+ 29, // 23: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp+ 30, // 24: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType+ 24, // 25: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig+ 31, // 26: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate+ 32, // 27: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr+ 33, // 28: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine+ 34, // 29: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata+ 33, // 30: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine+ 25, // 31: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level+ 27, // 32: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry+ 26, // 33: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification+ 3, // 34: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest+ 5, // 35: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest+ 7, // 36: bytebase.v1.SettingService.SetSetting:input_type -> bytebase.v1.SetSettingRequest+ 4, // 37: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse+ 8, // 38: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting+ 8, // 39: bytebase.v1.SettingService.SetSetting:output_type -> bytebase.v1.Setting+ 37, // [37:40] is the sub-list for method output_type+ 34, // [34:37] is the sub-list for method input_type+ 34, // [34:34] is the sub-list for extension type_name+ 34, // [34:34] is the sub-list for extension extendee+ 0, // [0:34] is the sub-list for field type_name}func init() { file_v1_setting_service_proto_init() }@@ -2411,6 +2607,30 @@ func file_v1_setting_service_proto_init() {return nil}}+ file_v1_setting_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataClassificationSetting_DataClassificationConfig_Level); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_setting_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DataClassificationSetting_DataClassificationConfig_DataClassification); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }}file_v1_setting_service_proto_msgTypes[6].OneofWrappers = []interface{}{(*Value_StringValue)(nil),@@ -2422,15 +2642,17 @@ func file_v1_setting_service_proto_init() {(*Value_WorkspaceTrialSettingValue)(nil),(*Value_ExternalApprovalSettingValue)(nil),(*Value_SchemaTemplateSettingValue)(nil),+ (*Value_DataClassificationSettingValue)(nil),}file_v1_setting_service_proto_msgTypes[7].OneofWrappers = []interface{}{}+ file_v1_setting_service_proto_msgTypes[23].OneofWrappers = []interface{}{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_setting_service_proto_rawDesc,NumEnums: 3,- NumMessages: 23,+ NumMessages: 25,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/setting.proto b/proto/store/setting.protoindex 48dad5707a..ab4ab39ec8 100644--- a/proto/store/setting.proto+++ b/proto/store/setting.proto@@ -127,3 +127,34 @@ message SchemaTemplateSetting {repeated ColumnType column_types = 2;}++message DataClassificationSetting {+ message DataClassificationConfig {+ // id is the uuid for classification. Each project can chose one classification config.+ string id = 1;+ string title = 2;++ message Level {+ string id = 1;+ string title = 2;+ string description = 3;+ }++ // levels is user defined level list for classification.+ // The order for the level decides its priority.+ repeated Level levels = 3;++ message DataClassification {+ // id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.+ string id = 1;+ string title = 2;+ string description = 3;+ optional string level_id = 4;+ }++ // classification is the id - DataClassification map.+ // The id should in [0-9]+-[0-9]+-[0-9]+ format.+ map<string, DataClassification> classification = 4;+ }+ repeated DataClassificationConfig configs = 1;+}diff --git a/proto/v1/setting_service.proto b/proto/v1/setting_service.protoindex 3723b5b57d..bc2dfdf2b9 100644--- a/proto/v1/setting_service.proto+++ b/proto/v1/setting_service.proto@@ -105,6 +105,7 @@ message Value {WorkspaceTrialSetting workspace_trial_setting_value = 7;ExternalApprovalSetting external_approval_setting_value = 8;SchemaTemplateSetting schema_template_setting_value = 9;+ DataClassificationSetting data_classification_setting_value = 10;}}@@ -262,13 +263,32 @@ message WorkspaceTrialSetting {}message DataClassificationSetting {- // Hard-coded schema comment format: [0-9]+-[0-9]+-[0-9]+message DataClassificationConfig {+ // id is the uuid for classification. Each project can chose one classification config.string id = 1;string title = 2;- // Maps classification to level.- map<string, string> classification_level = 3;- // TODO(ed): store the actual config.++ message Level {+ string id = 1;+ string title = 2;+ string description = 3;+ }++ // levels is user defined level list for classification.+ // The order for the level decides its priority.+ repeated Level levels = 3;++ message DataClassification {+ // id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.+ string id = 1;+ string title = 2;+ string description = 3;+ optional string level_id = 4;+ }++ // classification is the id - DataClassification map.+ // The id should in [0-9]+-[0-9]+-[0-9]+ format.+ map<string, DataClassification> classification = 4;}repeated DataClassificationConfig configs = 1;}