Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: move algorithm proto message (#14810)

Danny Xu2b052ecffd39
diff --git a/backend/api/v1/masking_evaluator.go b/backend/api/v1/masking_evaluator.go
index b4c7c7343f..40d059dbac 100644
--- a/backend/api/v1/masking_evaluator.go
+++ b/backend/api/v1/masking_evaluator.go
@@ -18,14 +18,14 @@ type maskingLevelEvaluator struct {
maskingRules []*storepb.MaskingRulePolicy_MaskingRule
dataClassificationIDMap map[string]*storepb.DataClassificationSetting_DataClassificationConfig
semanticTypesMap map[string]*storepb.SemanticTypeSetting_SemanticType
- maskingAlgorithms map[string]*storepb.MaskingAlgorithmSetting_Algorithm
+ maskingAlgorithms map[string]*storepb.Algorithm
}
func newEmptyMaskingLevelEvaluator() *maskingLevelEvaluator {
return &maskingLevelEvaluator{
dataClassificationIDMap: make(map[string]*storepb.DataClassificationSetting_DataClassificationConfig),
semanticTypesMap: make(map[string]*storepb.SemanticTypeSetting_SemanticType),
- maskingAlgorithms: make(map[string]*storepb.MaskingAlgorithmSetting_Algorithm),
+ maskingAlgorithms: make(map[string]*storepb.Algorithm),
}
}
@@ -84,7 +84,7 @@ type maskingPolicyKey struct {
}
// nolint
-func (m *maskingLevelEvaluator) evaluateMaskingAlgorithmOfColumn(databaseMessage *store.DatabaseMessage, schemaName, tableName, columnName, columnSemanticTypeID, columnClassification string, databaseProjectDataClassificationID string, maskingPolicyMap map[maskingPolicyKey]*storepb.MaskData, filteredMaskingExceptions []*storepb.MaskingExceptionPolicy_MaskingException) (*storepb.MaskingAlgorithmSetting_Algorithm, storepb.MaskingLevel, error) {
+func (m *maskingLevelEvaluator) evaluateMaskingAlgorithmOfColumn(databaseMessage *store.DatabaseMessage, schemaName, tableName, columnName, columnSemanticTypeID, columnClassification string, databaseProjectDataClassificationID string, maskingPolicyMap map[maskingPolicyKey]*storepb.MaskData, filteredMaskingExceptions []*storepb.MaskingExceptionPolicy_MaskingException) (*storepb.Algorithm, storepb.MaskingLevel, error) {
maskingLevel, err := m.evaluateMaskingLevelOfColumn(databaseMessage, schemaName, tableName, columnName, columnClassification, databaseProjectDataClassificationID, maskingPolicyMap, filteredMaskingExceptions)
if err != nil {
return nil, storepb.MaskingLevel_MASKING_LEVEL_UNSPECIFIED, errors.Wrapf(err, "failed to evaluate masking level of column")
diff --git a/backend/api/v1/query_result_masker.go b/backend/api/v1/query_result_masker.go
index 29a2af45b5..e71d27cde2 100644
--- a/backend/api/v1/query_result_masker.go
+++ b/backend/api/v1/query_result_masker.go
@@ -306,7 +306,7 @@ func (s *QueryResultMasker) getColumnForColumnResource(ctx context.Context, inst
return columnMetadata, columnConfig, nil
}
-func getMaskerByMaskingAlgorithmAndLevel(algorithm *storepb.MaskingAlgorithmSetting_Algorithm, level storepb.MaskingLevel) masker.Masker {
+func getMaskerByMaskingAlgorithmAndLevel(algorithm *storepb.Algorithm, level storepb.MaskingLevel) masker.Masker {
if algorithm == nil {
switch level {
case storepb.MaskingLevel_FULL:
@@ -319,19 +319,19 @@ func getMaskerByMaskingAlgorithmAndLevel(algorithm *storepb.MaskingAlgorithmSett
}
switch m := algorithm.Mask.(type) {
- case *storepb.MaskingAlgorithmSetting_Algorithm_FullMask_:
+ case *storepb.Algorithm_FullMask_:
return masker.NewFullMasker(m.FullMask.Substitution)
- case *storepb.MaskingAlgorithmSetting_Algorithm_RangeMask_:
+ case *storepb.Algorithm_RangeMask_:
return masker.NewRangeMasker(convertRangeMaskSlices(m.RangeMask.Slices))
- case *storepb.MaskingAlgorithmSetting_Algorithm_Md5Mask:
+ case *storepb.Algorithm_Md5Mask:
return masker.NewMD5Masker(m.Md5Mask.Salt)
- case *storepb.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_:
+ case *storepb.Algorithm_InnerOuterMask_:
return masker.NewInnerOuterMasker(m.InnerOuterMask.Type, m.InnerOuterMask.PrefixLen, m.InnerOuterMask.SuffixLen, m.InnerOuterMask.Substitution)
}
return masker.NewNoneMasker()
}
-func convertRangeMaskSlices(slices []*storepb.MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) []*masker.MaskRangeSlice {
+func convertRangeMaskSlices(slices []*storepb.Algorithm_RangeMask_Slice) []*masker.MaskRangeSlice {
var result []*masker.MaskRangeSlice
for _, slice := range slices {
result = append(result, &masker.MaskRangeSlice{
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.go
index 6b9539c55e..9d0cc2c9de 100644
--- a/backend/api/v1/setting_service.go
+++ b/backend/api/v1/setting_service.go
@@ -1341,7 +1341,7 @@ func convertV1SchemaTemplateSetting(template *v1pb.SchemaTemplateSetting) (*stor
return v1Setting, nil
}
-func validateMaskingAlgorithm(algorithm *v1pb.MaskingAlgorithmSetting_Algorithm) error {
+func validateMaskingAlgorithm(algorithm *v1pb.Algorithm) error {
if !isValidUUID(algorithm.Id) {
return status.Errorf(codes.InvalidArgument, "invalid masking algorithm id format: %s", algorithm.Id)
}
@@ -1358,11 +1358,11 @@ func validateMaskingAlgorithm(algorithm *v1pb.MaskingAlgorithmSetting_Algorithm)
return nil
}
switch m := algorithm.Mask.(type) {
- case *v1pb.MaskingAlgorithmSetting_Algorithm_FullMask_:
+ case *v1pb.Algorithm_FullMask_:
if err := checkSubstitution(m.FullMask.Substitution); err != nil {
return err
}
- case *v1pb.MaskingAlgorithmSetting_Algorithm_RangeMask_:
+ case *v1pb.Algorithm_RangeMask_:
for i, slice := range m.RangeMask.Slices {
if slice.Substitution == "" {
return status.Errorf(codes.InvalidArgument, "the substitution for slice is required")
@@ -1378,7 +1378,7 @@ func validateMaskingAlgorithm(algorithm *v1pb.MaskingAlgorithmSetting_Algorithm)
return status.Errorf(codes.InvalidArgument, "the slice range cannot overlap: [%d,%d) and [%d,%d)", pre.Start, pre.End, slice.Start, slice.End)
}
}
- case *v1pb.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_:
+ case *v1pb.Algorithm_InnerOuterMask_:
if err := checkSubstitution(m.InnerOuterMask.Substitution); err != nil {
return err
}
@@ -1390,7 +1390,7 @@ func validateMaskingAlgorithm(algorithm *v1pb.MaskingAlgorithmSetting_Algorithm)
return nil
}
switch algorithm.Mask.(type) {
- case *v1pb.MaskingAlgorithmSetting_Algorithm_Md5Mask:
+ case *v1pb.Algorithm_Md5Mask:
default:
return status.Errorf(codes.InvalidArgument, "mismatch masking algorithm category and mask type: %T, %s", algorithm.Mask, algorithm.Category)
}
diff --git a/backend/component/masker/masker.go b/backend/component/masker/masker.go
index 6e58283334..0ddc109f9c 100644
--- a/backend/component/masker/masker.go
+++ b/backend/component/masker/masker.go
@@ -627,11 +627,11 @@ func maskProtoValue(m Masker, value *structpb.Value) *structpb.Value {
return nil
}
-func NewInnerOuterMasker(storeMaskerType storepb.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType, prefixLen, suffixLen int32, substitution string) *InnerOuterMasker {
+func NewInnerOuterMasker(storeMaskerType storepb.Algorithm_InnerOuterMask_MaskType, prefixLen, suffixLen int32, substitution string) *InnerOuterMasker {
var maskerType int32
- if storeMaskerType == storepb.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_INNER {
+ if storeMaskerType == storepb.Algorithm_InnerOuterMask_INNER {
maskerType = InnerOuterMaskerTypeInner
- } else if storeMaskerType == storepb.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_OUTER {
+ } else if storeMaskerType == storepb.Algorithm_InnerOuterMask_OUTER {
maskerType = InnerOuterMaskerTypeOuter
} else {
return nil
diff --git a/frontend/src/components/SensitiveData/MaskingAlgorithmsView.vue b/frontend/src/components/SensitiveData/MaskingAlgorithmsView.vue
index 960a338881..58969fc207 100644
--- a/frontend/src/components/SensitiveData/MaskingAlgorithmsView.vue
+++ b/frontend/src/components/SensitiveData/MaskingAlgorithmsView.vue
@@ -68,8 +68,8 @@ import { computed, reactive, ref } from "vue";
import { useI18n } from "vue-i18n";
import { featureToRef, useSettingV1Store, pushNotification } from "@/store";
import {
- MaskingAlgorithmSetting_Algorithm as Algorithm,
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType,
+ Algorithm,
+ Algorithm_InnerOuterMask_MaskType,
} from "@/types/proto/v1/setting_service";
import { hasWorkspacePermissionV2 } from "@/utils";
import DataExampleModal from "./components/DataExampleModal.vue";
@@ -254,7 +254,7 @@ const example: Algorithm[] = [
prefixLen: 1,
suffixLen: 2,
substitution: "***",
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER,
+ type: Algorithm_InnerOuterMask_MaskType.INNER,
},
},
{
@@ -267,7 +267,7 @@ const example: Algorithm[] = [
prefixLen: 1,
suffixLen: 2,
substitution: "***",
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER,
+ type: Algorithm_InnerOuterMask_MaskType.OUTER,
},
},
];
diff --git a/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue b/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue
index 92cc4dd2af..242ca35256 100644
--- a/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue
+++ b/frontend/src/components/SensitiveData/components/MaskingAlgorithmsCreateDrawer.vue
@@ -192,7 +192,7 @@
<p class="textinfolabel">
{{
state.innerOuterMask.type ==
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER
+ Algorithm_InnerOuterMask_MaskType.INNER
? $t(
"settings.sensitive-data.algorithms.inner-outer-mask.inner-label"
)
@@ -208,7 +208,7 @@
>
<NRadio
:value="
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER
+ Algorithm_InnerOuterMask_MaskType.INNER
"
>
{{
@@ -219,7 +219,7 @@
</NRadio>
<NRadio
:value="
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER
+ Algorithm_InnerOuterMask_MaskType.OUTER
"
>
{{
@@ -342,13 +342,13 @@ import {
} from "@/components/v2";
import { pushNotification, useSettingV1Store } from "@/store";
import {
- MaskingAlgorithmSetting_Algorithm as Algorithm,
- MaskingAlgorithmSetting_Algorithm_FullMask as FullMask,
- MaskingAlgorithmSetting_Algorithm_RangeMask as RangeMask,
- MaskingAlgorithmSetting_Algorithm_MD5Mask as MD5Mask,
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask as InnerOuterMask,
- MaskingAlgorithmSetting_Algorithm_RangeMask_Slice as RangeMask_Slice,
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType,
+ Algorithm,
+ Algorithm_FullMask as FullMask,
+ Algorithm_RangeMask as RangeMask,
+ Algorithm_MD5Mask as MD5Mask,
+ Algorithm_InnerOuterMask,
+ Algorithm_RangeMask_Slice,
+ Algorithm_InnerOuterMask_MaskType,
} from "@/types/proto/v1/setting_service";
import type { MaskingType } from "./utils";
import { getMaskingType } from "./utils";
@@ -366,7 +366,7 @@ interface LocalState {
fullMask: FullMask;
rangeMask: RangeMask;
md5Mask: MD5Mask;
- innerOuterMask: InnerOuterMask;
+ innerOuterMask: Algorithm_InnerOuterMask;
}
const props = defineProps<{
@@ -382,7 +382,7 @@ const emit = defineEmits<{
const defaultRangeMask = computed(() =>
RangeMask.fromPartial({
slices: [
- RangeMask_Slice.fromPartial({
+ Algorithm_RangeMask_Slice.fromPartial({
start: 0,
end: 1,
substitution: "*",
@@ -392,10 +392,10 @@ const defaultRangeMask = computed(() =>
);
const defaultInnerOuterMask = computed(() =>
- InnerOuterMask.fromPartial({
+ Algorithm_InnerOuterMask.fromPartial({
prefixLen: 0,
suffixLen: 0,
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER,
+ type: Algorithm_InnerOuterMask_MaskType.INNER,
substitution: "*",
})
);
@@ -620,7 +620,7 @@ const onMaskingTypeChange = (maskingType: MaskingType) => {
const addSlice = () => {
const last = state.rangeMask.slices[state.rangeMask.slices.length - 1];
state.rangeMask.slices.push(
- RangeMask_Slice.fromPartial({
+ Algorithm_RangeMask_Slice.fromPartial({
start: (last?.start ?? -1) + 1,
end: (last?.end ?? 0) + 1,
substitution: "*",
diff --git a/frontend/src/components/SensitiveData/components/MaskingAlgorithmsTable.vue b/frontend/src/components/SensitiveData/components/MaskingAlgorithmsTable.vue
index 667f0e3ea2..4ccc56848c 100644
--- a/frontend/src/components/SensitiveData/components/MaskingAlgorithmsTable.vue
+++ b/frontend/src/components/SensitiveData/components/MaskingAlgorithmsTable.vue
@@ -46,7 +46,7 @@ import { BBGrid } from "@/bbkit";
import type { BBGridColumn, BBGridRow } from "@/bbkit/types";
import { MiniActionButton } from "@/components/v2";
import { useSettingV1Store, pushNotification } from "@/store";
-import { MaskingAlgorithmSetting_Algorithm as Algorithm } from "@/types/proto/v1/setting_service";
+import { Algorithm } from "@/types/proto/v1/setting_service";
import { getMaskingType } from "./utils";
type AlgorithmRow = BBGridRow<Algorithm>;
diff --git a/frontend/src/components/SensitiveData/components/utils.ts b/frontend/src/components/SensitiveData/components/utils.ts
index 7312c2f52c..34db0c6223 100644
--- a/frontend/src/components/SensitiveData/components/utils.ts
+++ b/frontend/src/components/SensitiveData/components/utils.ts
@@ -9,7 +9,7 @@ import {
useSettingV1Store,
} from "@/store";
import { DEFAULT_PROJECT_NAME } from "@/types";
-import type { MaskingAlgorithmSetting_Algorithm } from "@/types/proto/v1/setting_service";
+import type { Algorithm } from "@/types/proto/v1/setting_service";
import {
extractEnvironmentResourceName,
extractInstanceResourceName,
@@ -88,7 +88,7 @@ export type MaskingType =
| "inner-outer-mask";
export const getMaskingType = (
- algorithm: MaskingAlgorithmSetting_Algorithm
+ algorithm: Algorithm
): MaskingType | undefined => {
switch (algorithm.category) {
case "HASH":
diff --git a/frontend/src/components/SensitiveData/useColumnMasking.ts b/frontend/src/components/SensitiveData/useColumnMasking.ts
index 79793badec..0b9790ba34 100644
--- a/frontend/src/components/SensitiveData/useColumnMasking.ts
+++ b/frontend/src/components/SensitiveData/useColumnMasking.ts
@@ -1,6 +1,6 @@
import { computed } from "vue";
import { useDatabaseCatalog, useSettingV1Store, getColumnCatalog } from "@/store";
-import { MaskingAlgorithmSetting_Algorithm as Algorithm } from "@/types/proto/v1/setting_service";
+import { Algorithm } from "@/types/proto/v1/setting_service";
export const useColumnMasking = ({
database,
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.ts
index 8e699b3923..9deb4b2d82 100644
--- a/frontend/src/types/proto/store/setting.ts
+++ b/frontend/src/types/proto/store/setting.ts
@@ -479,10 +479,10 @@ export interface SemanticTypeSetting_SemanticType {
export interface MaskingAlgorithmSetting {
/** algorithms is the list of masking algorithms. */
- algorithms: MaskingAlgorithmSetting_Algorithm[];
+ algorithms: Algorithm[];
}
-export interface MaskingAlgorithmSetting_Algorithm {
+export interface Algorithm {
/** id is the uuid for masking algorithm. */
id: string;
/** title is the title for masking algorithm. */
@@ -496,13 +496,13 @@ export interface MaskingAlgorithmSetting_Algorithm {
* HASH: MD5Mask
*/
category: string;
- fullMask?: MaskingAlgorithmSetting_Algorithm_FullMask | undefined;
- rangeMask?: MaskingAlgorithmSetting_Algorithm_RangeMask | undefined;
- md5Mask?: MaskingAlgorithmSetting_Algorithm_MD5Mask | undefined;
- innerOuterMask?: MaskingAlgorithmSetting_Algorithm_InnerOuterMask | undefined;
+ fullMask?: Algorithm_FullMask | undefined;
+ rangeMask?: Algorithm_RangeMask | undefined;
+ md5Mask?: Algorithm_MD5Mask | undefined;
+ innerOuterMask?: Algorithm_InnerOuterMask | undefined;
}
-export interface MaskingAlgorithmSetting_Algorithm_FullMask {
+export interface Algorithm_FullMask {
/**
* substitution is the string used to replace the original value, the
* max length of the string is 16 bytes.
@@ -510,15 +510,15 @@ export interface MaskingAlgorithmSetting_Algorithm_FullMask {
substitution: string;
}
-export interface MaskingAlgorithmSetting_Algorithm_RangeMask {
+export interface Algorithm_RangeMask {
/**
* We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
* But frontend can be started with a single rule easily.
*/
- slices: MaskingAlgorithmSetting_Algorithm_RangeMask_Slice[];
+ slices: Algorithm_RangeMask_Slice[];
}
-export interface MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+export interface Algorithm_RangeMask_Slice {
/** start is the start index of the original value, start from 0 and should be less than stop. */
start: number;
/** stop is the stop index of the original value, should be less than the length of the original value. */
@@ -527,72 +527,66 @@ export interface MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
substitution: string;
}
-export interface MaskingAlgorithmSetting_Algorithm_MD5Mask {
+export interface Algorithm_MD5Mask {
/** salt is the salt value to generate a different hash that with the word alone. */
salt: string;
}
-export interface MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+export interface Algorithm_InnerOuterMask {
prefixLen: number;
suffixLen: number;
substitution: string;
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType;
+ type: Algorithm_InnerOuterMask_MaskType;
}
-export enum MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
+export enum Algorithm_InnerOuterMask_MaskType {
MASK_TYPE_UNSPECIFIED = "MASK_TYPE_UNSPECIFIED",
INNER = "INNER",
OUTER = "OUTER",
UNRECOGNIZED = "UNRECOGNIZED",
}
-export function maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeFromJSON(
- object: any,
-): MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
+export function algorithm_InnerOuterMask_MaskTypeFromJSON(object: any): Algorithm_InnerOuterMask_MaskType {
switch (object) {
case 0:
case "MASK_TYPE_UNSPECIFIED":
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
+ return Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
case 1:
case "INNER":
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER;
+ return Algorithm_InnerOuterMask_MaskType.INNER;
case 2:
case "OUTER":
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER;
+ return Algorithm_InnerOuterMask_MaskType.OUTER;
case -1:
case "UNRECOGNIZED":
default:
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED;
+ return Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED;
}
}
-export function maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToJSON(
- object: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType,
-): string {
+export function algorithm_InnerOuterMask_MaskTypeToJSON(object: Algorithm_InnerOuterMask_MaskType): string {
switch (object) {
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
+ case Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
return "MASK_TYPE_UNSPECIFIED";
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER:
+ case Algorithm_InnerOuterMask_MaskType.INNER:
return "INNER";
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER:
+ case Algorithm_InnerOuterMask_MaskType.OUTER:
return "OUTER";
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
+ case Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
-export function maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToNumber(
- object: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType,
-): number {
+export function algorithm_InnerOuterMask_MaskTypeToNumber(object: Algorithm_InnerOuterMask_MaskType): number {
switch (object) {
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
+ case Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
return 0;
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER:
+ case Algorithm_InnerOuterMask_MaskType.INNER:
return 1;
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER:
+ case Algorithm_InnerOuterMask_MaskType.OUTER:
return 2;
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
+ case Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
default:
return -1;
}
@@ -2897,7 +2891,7 @@ function createBaseMaskingAlgorithmSetting(): MaskingAlgorithmSetting {
export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
encode(message: MaskingAlgorithmSetting, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
for (const v of message.algorithms) {
- MaskingAlgorithmSetting_Algorithm.encode(v!, writer.uint32(10).fork()).join();
+ Algorithm.encode(v!, writer.uint32(10).fork()).join();
}
return writer;
},
@@ -2914,7 +2908,7 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
break;
}
- message.algorithms.push(MaskingAlgorithmSetting_Algorithm.decode(reader, reader.uint32()));
+ message.algorithms.push(Algorithm.decode(reader, reader.uint32()));
continue;
}
}
@@ -2929,7 +2923,7 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
fromJSON(object: any): MaskingAlgorithmSetting {
return {
algorithms: globalThis.Array.isArray(object?.algorithms)
- ? object.algorithms.map((e: any) => MaskingAlgorithmSetting_Algorithm.fromJSON(e))
+ ? object.algorithms.map((e: any) => Algorithm.fromJSON(e))
: [],
};
},
@@ -2937,7 +2931,7 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
toJSON(message: MaskingAlgorithmSetting): unknown {
const obj: any = {};
if (message.algorithms?.length) {
- obj.algorithms = message.algorithms.map((e) => MaskingAlgorithmSetting_Algorithm.toJSON(e));
+ obj.algorithms = message.algorithms.map((e) => Algorithm.toJSON(e));
}
return obj;
},
@@ -2947,12 +2941,12 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
},
fromPartial(object: DeepPartial<MaskingAlgorithmSetting>): MaskingAlgorithmSetting {
const message = createBaseMaskingAlgorithmSetting();
- message.algorithms = object.algorithms?.map((e) => MaskingAlgorithmSetting_Algorithm.fromPartial(e)) || [];
+ message.algorithms = object.algorithms?.map((e) => Algorithm.fromPartial(e)) || [];
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm(): MaskingAlgorithmSetting_Algorithm {
+function createBaseAlgorithm(): Algorithm {
return {
id: "",
title: "",
@@ -2965,8 +2959,8 @@ function createBaseMaskingAlgorithmSetting_Algorithm(): MaskingAlgorithmSetting_
};
}
-export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetting_Algorithm> = {
- encode(message: MaskingAlgorithmSetting_Algorithm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+export const Algorithm: MessageFns<Algorithm> = {
+ encode(message: Algorithm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.id !== "") {
writer.uint32(10).string(message.id);
}
@@ -2980,24 +2974,24 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
writer.uint32(34).string(message.category);
}
if (message.fullMask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_FullMask.encode(message.fullMask, writer.uint32(42).fork()).join();
+ Algorithm_FullMask.encode(message.fullMask, writer.uint32(42).fork()).join();
}
if (message.rangeMask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_RangeMask.encode(message.rangeMask, writer.uint32(50).fork()).join();
+ Algorithm_RangeMask.encode(message.rangeMask, writer.uint32(50).fork()).join();
}
if (message.md5Mask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_MD5Mask.encode(message.md5Mask, writer.uint32(58).fork()).join();
+ Algorithm_MD5Mask.encode(message.md5Mask, writer.uint32(58).fork()).join();
}
if (message.innerOuterMask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask.encode(message.innerOuterMask, writer.uint32(66).fork()).join();
+ Algorithm_InnerOuterMask.encode(message.innerOuterMask, writer.uint32(66).fork()).join();
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm();
+ const message = createBaseAlgorithm();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -3038,7 +3032,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.fullMask = MaskingAlgorithmSetting_Algorithm_FullMask.decode(reader, reader.uint32());
+ message.fullMask = Algorithm_FullMask.decode(reader, reader.uint32());
continue;
}
case 6: {
@@ -3046,7 +3040,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.rangeMask = MaskingAlgorithmSetting_Algorithm_RangeMask.decode(reader, reader.uint32());
+ message.rangeMask = Algorithm_RangeMask.decode(reader, reader.uint32());
continue;
}
case 7: {
@@ -3054,7 +3048,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.md5Mask = MaskingAlgorithmSetting_Algorithm_MD5Mask.decode(reader, reader.uint32());
+ message.md5Mask = Algorithm_MD5Mask.decode(reader, reader.uint32());
continue;
}
case 8: {
@@ -3062,7 +3056,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.innerOuterMask = MaskingAlgorithmSetting_Algorithm_InnerOuterMask.decode(reader, reader.uint32());
+ message.innerOuterMask = Algorithm_InnerOuterMask.decode(reader, reader.uint32());
continue;
}
}
@@ -3074,26 +3068,22 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm {
+ fromJSON(object: any): Algorithm {
return {
id: isSet(object.id) ? globalThis.String(object.id) : "",
title: isSet(object.title) ? globalThis.String(object.title) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
category: isSet(object.category) ? globalThis.String(object.category) : "",
- fullMask: isSet(object.fullMask)
- ? MaskingAlgorithmSetting_Algorithm_FullMask.fromJSON(object.fullMask)
- : undefined,
- rangeMask: isSet(object.rangeMask)
- ? MaskingAlgorithmSetting_Algorithm_RangeMask.fromJSON(object.rangeMask)
- : undefined,
- md5Mask: isSet(object.md5Mask) ? MaskingAlgorithmSetting_Algorithm_MD5Mask.fromJSON(object.md5Mask) : undefined,
+ fullMask: isSet(object.fullMask) ? Algorithm_FullMask.fromJSON(object.fullMask) : undefined,
+ rangeMask: isSet(object.rangeMask) ? Algorithm_RangeMask.fromJSON(object.rangeMask) : undefined,
+ md5Mask: isSet(object.md5Mask) ? Algorithm_MD5Mask.fromJSON(object.md5Mask) : undefined,
innerOuterMask: isSet(object.innerOuterMask)
- ? MaskingAlgorithmSetting_Algorithm_InnerOuterMask.fromJSON(object.innerOuterMask)
+ ? Algorithm_InnerOuterMask.fromJSON(object.innerOuterMask)
: undefined,
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm): unknown {
+ toJSON(message: Algorithm): unknown {
const obj: any = {};
if (message.id !== "") {
obj.id = message.id;
@@ -3108,61 +3098,61 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
obj.category = message.category;
}
if (message.fullMask !== undefined) {
- obj.fullMask = MaskingAlgorithmSetting_Algorithm_FullMask.toJSON(message.fullMask);
+ obj.fullMask = Algorithm_FullMask.toJSON(message.fullMask);
}
if (message.rangeMask !== undefined) {
- obj.rangeMask = MaskingAlgorithmSetting_Algorithm_RangeMask.toJSON(message.rangeMask);
+ obj.rangeMask = Algorithm_RangeMask.toJSON(message.rangeMask);
}
if (message.md5Mask !== undefined) {
- obj.md5Mask = MaskingAlgorithmSetting_Algorithm_MD5Mask.toJSON(message.md5Mask);
+ obj.md5Mask = Algorithm_MD5Mask.toJSON(message.md5Mask);
}
if (message.innerOuterMask !== undefined) {
- obj.innerOuterMask = MaskingAlgorithmSetting_Algorithm_InnerOuterMask.toJSON(message.innerOuterMask);
+ obj.innerOuterMask = Algorithm_InnerOuterMask.toJSON(message.innerOuterMask);
}
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm>): MaskingAlgorithmSetting_Algorithm {
- return MaskingAlgorithmSetting_Algorithm.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm>): Algorithm {
+ return Algorithm.fromPartial(base ?? {});
},
- fromPartial(object: DeepPartial<MaskingAlgorithmSetting_Algorithm>): MaskingAlgorithmSetting_Algorithm {
- const message = createBaseMaskingAlgorithmSetting_Algorithm();
+ fromPartial(object: DeepPartial<Algorithm>): Algorithm {
+ const message = createBaseAlgorithm();
message.id = object.id ?? "";
message.title = object.title ?? "";
message.description = object.description ?? "";
message.category = object.category ?? "";
message.fullMask = (object.fullMask !== undefined && object.fullMask !== null)
- ? MaskingAlgorithmSetting_Algorithm_FullMask.fromPartial(object.fullMask)
+ ? Algorithm_FullMask.fromPartial(object.fullMask)
: undefined;
message.rangeMask = (object.rangeMask !== undefined && object.rangeMask !== null)
- ? MaskingAlgorithmSetting_Algorithm_RangeMask.fromPartial(object.rangeMask)
+ ? Algorithm_RangeMask.fromPartial(object.rangeMask)
: undefined;
message.md5Mask = (object.md5Mask !== undefined && object.md5Mask !== null)
- ? MaskingAlgorithmSetting_Algorithm_MD5Mask.fromPartial(object.md5Mask)
+ ? Algorithm_MD5Mask.fromPartial(object.md5Mask)
: undefined;
message.innerOuterMask = (object.innerOuterMask !== undefined && object.innerOuterMask !== null)
- ? MaskingAlgorithmSetting_Algorithm_InnerOuterMask.fromPartial(object.innerOuterMask)
+ ? Algorithm_InnerOuterMask.fromPartial(object.innerOuterMask)
: undefined;
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_FullMask(): MaskingAlgorithmSetting_Algorithm_FullMask {
+function createBaseAlgorithm_FullMask(): Algorithm_FullMask {
return { substitution: "" };
}
-export const MaskingAlgorithmSetting_Algorithm_FullMask: MessageFns<MaskingAlgorithmSetting_Algorithm_FullMask> = {
- encode(message: MaskingAlgorithmSetting_Algorithm_FullMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+export const Algorithm_FullMask: MessageFns<Algorithm_FullMask> = {
+ encode(message: Algorithm_FullMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.substitution !== "") {
writer.uint32(10).string(message.substitution);
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_FullMask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_FullMask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_FullMask();
+ const message = createBaseAlgorithm_FullMask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -3183,11 +3173,11 @@ export const MaskingAlgorithmSetting_Algorithm_FullMask: MessageFns<MaskingAlgor
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_FullMask {
+ fromJSON(object: any): Algorithm_FullMask {
return { substitution: isSet(object.substitution) ? globalThis.String(object.substitution) : "" };
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_FullMask): unknown {
+ toJSON(message: Algorithm_FullMask): unknown {
const obj: any = {};
if (message.substitution !== "") {
obj.substitution = message.substitution;
@@ -3195,37 +3185,32 @@ export const MaskingAlgorithmSetting_Algorithm_FullMask: MessageFns<MaskingAlgor
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_FullMask>): MaskingAlgorithmSetting_Algorithm_FullMask {
- return MaskingAlgorithmSetting_Algorithm_FullMask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_FullMask>): Algorithm_FullMask {
+ return Algorithm_FullMask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_FullMask>,
- ): MaskingAlgorithmSetting_Algorithm_FullMask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_FullMask();
+ fromPartial(object: DeepPartial<Algorithm_FullMask>): Algorithm_FullMask {
+ const message = createBaseAlgorithm_FullMask();
message.substitution = object.substitution ?? "";
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_RangeMask(): MaskingAlgorithmSetting_Algorithm_RangeMask {
+function createBaseAlgorithm_RangeMask(): Algorithm_RangeMask {
return { slices: [] };
}
-export const MaskingAlgorithmSetting_Algorithm_RangeMask: MessageFns<MaskingAlgorithmSetting_Algorithm_RangeMask> = {
- encode(
- message: MaskingAlgorithmSetting_Algorithm_RangeMask,
- writer: BinaryWriter = new BinaryWriter(),
- ): BinaryWriter {
+export const Algorithm_RangeMask: MessageFns<Algorithm_RangeMask> = {
+ encode(message: Algorithm_RangeMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
for (const v of message.slices) {
- MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.encode(v!, writer.uint32(10).fork()).join();
+ Algorithm_RangeMask_Slice.encode(v!, writer.uint32(10).fork()).join();
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_RangeMask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_RangeMask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask();
+ const message = createBaseAlgorithm_RangeMask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -3234,7 +3219,7 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask: MessageFns<MaskingAlgo
break;
}
- message.slices.push(MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.decode(reader, reader.uint32()));
+ message.slices.push(Algorithm_RangeMask_Slice.decode(reader, reader.uint32()));
continue;
}
}
@@ -3246,45 +3231,38 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask: MessageFns<MaskingAlgo
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_RangeMask {
+ fromJSON(object: any): Algorithm_RangeMask {
return {
slices: globalThis.Array.isArray(object?.slices)
- ? object.slices.map((e: any) => MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.fromJSON(e))
+ ? object.slices.map((e: any) => Algorithm_RangeMask_Slice.fromJSON(e))
: [],
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_RangeMask): unknown {
+ toJSON(message: Algorithm_RangeMask): unknown {
const obj: any = {};
if (message.slices?.length) {
- obj.slices = message.slices.map((e) => MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.toJSON(e));
+ obj.slices = message.slices.map((e) => Algorithm_RangeMask_Slice.toJSON(e));
}
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask>): MaskingAlgorithmSetting_Algorithm_RangeMask {
- return MaskingAlgorithmSetting_Algorithm_RangeMask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_RangeMask>): Algorithm_RangeMask {
+ return Algorithm_RangeMask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask>,
- ): MaskingAlgorithmSetting_Algorithm_RangeMask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask();
- message.slices = object.slices?.map((e) => MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.fromPartial(e)) || [];
+ fromPartial(object: DeepPartial<Algorithm_RangeMask>): Algorithm_RangeMask {
+ const message = createBaseAlgorithm_RangeMask();
+ message.slices = object.slices?.map((e) => Algorithm_RangeMask_Slice.fromPartial(e)) || [];
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_RangeMask_Slice(): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+function createBaseAlgorithm_RangeMask_Slice(): Algorithm_RangeMask_Slice {
return { start: 0, end: 0, substitution: "" };
}
-export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
- MaskingAlgorithmSetting_Algorithm_RangeMask_Slice
-> = {
- encode(
- message: MaskingAlgorithmSetting_Algorithm_RangeMask_Slice,
- writer: BinaryWriter = new BinaryWriter(),
- ): BinaryWriter {
+export const Algorithm_RangeMask_Slice: MessageFns<Algorithm_RangeMask_Slice> = {
+ encode(message: Algorithm_RangeMask_Slice, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.start !== 0) {
writer.uint32(8).int32(message.start);
}
@@ -3297,10 +3275,10 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_RangeMask_Slice {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask_Slice();
+ const message = createBaseAlgorithm_RangeMask_Slice();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -3337,7 +3315,7 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+ fromJSON(object: any): Algorithm_RangeMask_Slice {
return {
start: isSet(object.start) ? globalThis.Number(object.start) : 0,
end: isSet(object.end) ? globalThis.Number(object.end) : 0,
@@ -3345,7 +3323,7 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_RangeMask_Slice): unknown {
+ toJSON(message: Algorithm_RangeMask_Slice): unknown {
const obj: any = {};
if (message.start !== 0) {
obj.start = Math.round(message.start);
@@ -3359,15 +3337,11 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
return obj;
},
- create(
- base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask_Slice>,
- ): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
- return MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_RangeMask_Slice>): Algorithm_RangeMask_Slice {
+ return Algorithm_RangeMask_Slice.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask_Slice>,
- ): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask_Slice();
+ fromPartial(object: DeepPartial<Algorithm_RangeMask_Slice>): Algorithm_RangeMask_Slice {
+ const message = createBaseAlgorithm_RangeMask_Slice();
message.start = object.start ?? 0;
message.end = object.end ?? 0;
message.substitution = object.substitution ?? "";
@@ -3375,22 +3349,22 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_MD5Mask(): MaskingAlgorithmSetting_Algorithm_MD5Mask {
+function createBaseAlgorithm_MD5Mask(): Algorithm_MD5Mask {
return { salt: "" };
}
-export const MaskingAlgorithmSetting_Algorithm_MD5Mask: MessageFns<MaskingAlgorithmSetting_Algorithm_MD5Mask> = {
- encode(message: MaskingAlgorithmSetting_Algorithm_MD5Mask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+export const Algorithm_MD5Mask: MessageFns<Algorithm_MD5Mask> = {
+ encode(message: Algorithm_MD5Mask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.salt !== "") {
writer.uint32(10).string(message.salt);
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_MD5Mask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_MD5Mask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_MD5Mask();
+ const message = createBaseAlgorithm_MD5Mask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -3411,11 +3385,11 @@ export const MaskingAlgorithmSetting_Algorithm_MD5Mask: MessageFns<MaskingAlgori
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_MD5Mask {
+ fromJSON(object: any): Algorithm_MD5Mask {
return { salt: isSet(object.salt) ? globalThis.String(object.salt) : "" };
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_MD5Mask): unknown {
+ toJSON(message: Algorithm_MD5Mask): unknown {
const obj: any = {};
if (message.salt !== "") {
obj.salt = message.salt;
@@ -3423,34 +3397,27 @@ export const MaskingAlgorithmSetting_Algorithm_MD5Mask: MessageFns<MaskingAlgori
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_MD5Mask>): MaskingAlgorithmSetting_Algorithm_MD5Mask {
- return MaskingAlgorithmSetting_Algorithm_MD5Mask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_MD5Mask>): Algorithm_MD5Mask {
+ return Algorithm_MD5Mask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_MD5Mask>,
- ): MaskingAlgorithmSetting_Algorithm_MD5Mask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_MD5Mask();
+ fromPartial(object: DeepPartial<Algorithm_MD5Mask>): Algorithm_MD5Mask {
+ const message = createBaseAlgorithm_MD5Mask();
message.salt = object.salt ?? "";
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_InnerOuterMask(): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+function createBaseAlgorithm_InnerOuterMask(): Algorithm_InnerOuterMask {
return {
prefixLen: 0,
suffixLen: 0,
substitution: "",
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
+ type: Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
};
}
-export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask
-> = {
- encode(
- message: MaskingAlgorithmSetting_Algorithm_InnerOuterMask,
- writer: BinaryWriter = new BinaryWriter(),
- ): BinaryWriter {
+export const Algorithm_InnerOuterMask: MessageFns<Algorithm_InnerOuterMask> = {
+ encode(message: Algorithm_InnerOuterMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.prefixLen !== 0) {
writer.uint32(8).int32(message.prefixLen);
}
@@ -3460,16 +3427,16 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
if (message.substitution !== "") {
writer.uint32(26).string(message.substitution);
}
- if (message.type !== MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
- writer.uint32(32).int32(maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToNumber(message.type));
+ if (message.type !== Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
+ writer.uint32(32).int32(algorithm_InnerOuterMask_MaskTypeToNumber(message.type));
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_InnerOuterMask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_InnerOuterMask();
+ const message = createBaseAlgorithm_InnerOuterMask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -3502,7 +3469,7 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
break;
}
- message.type = maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeFromJSON(reader.int32());
+ message.type = algorithm_InnerOuterMask_MaskTypeFromJSON(reader.int32());
continue;
}
}
@@ -3514,18 +3481,18 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+ fromJSON(object: any): Algorithm_InnerOuterMask {
return {
prefixLen: isSet(object.prefixLen) ? globalThis.Number(object.prefixLen) : 0,
suffixLen: isSet(object.suffixLen) ? globalThis.Number(object.suffixLen) : 0,
substitution: isSet(object.substitution) ? globalThis.String(object.substitution) : "",
type: isSet(object.type)
- ? maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeFromJSON(object.type)
- : MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
+ ? algorithm_InnerOuterMask_MaskTypeFromJSON(object.type)
+ : Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_InnerOuterMask): unknown {
+ toJSON(message: Algorithm_InnerOuterMask): unknown {
const obj: any = {};
if (message.prefixLen !== 0) {
obj.prefixLen = Math.round(message.prefixLen);
@@ -3536,25 +3503,21 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
if (message.substitution !== "") {
obj.substitution = message.substitution;
}
- if (message.type !== MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
- obj.type = maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToJSON(message.type);
+ if (message.type !== Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
+ obj.type = algorithm_InnerOuterMask_MaskTypeToJSON(message.type);
}
return obj;
},
- create(
- base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_InnerOuterMask>,
- ): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_InnerOuterMask>): Algorithm_InnerOuterMask {
+ return Algorithm_InnerOuterMask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_InnerOuterMask>,
- ): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_InnerOuterMask();
+ fromPartial(object: DeepPartial<Algorithm_InnerOuterMask>): Algorithm_InnerOuterMask {
+ const message = createBaseAlgorithm_InnerOuterMask();
message.prefixLen = object.prefixLen ?? 0;
message.suffixLen = object.suffixLen ?? 0;
message.substitution = object.substitution ?? "";
- message.type = object.type ?? MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
+ message.type = object.type ?? Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
return message;
},
};
diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.ts
index f6a9120943..6caa49aa74 100644
--- a/frontend/src/types/proto/v1/setting_service.ts
+++ b/frontend/src/types/proto/v1/setting_service.ts
@@ -606,10 +606,10 @@ export interface SemanticTypeSetting_SemanticType {
export interface MaskingAlgorithmSetting {
/** algorithms is the list of masking algorithms. */
- algorithms: MaskingAlgorithmSetting_Algorithm[];
+ algorithms: Algorithm[];
}
-export interface MaskingAlgorithmSetting_Algorithm {
+export interface Algorithm {
/** id is the uuid for masking algorithm. */
id: string;
/** title is the title for masking algorithm. */
@@ -623,13 +623,13 @@ export interface MaskingAlgorithmSetting_Algorithm {
* HASH: MD5Mask
*/
category: string;
- fullMask?: MaskingAlgorithmSetting_Algorithm_FullMask | undefined;
- rangeMask?: MaskingAlgorithmSetting_Algorithm_RangeMask | undefined;
- md5Mask?: MaskingAlgorithmSetting_Algorithm_MD5Mask | undefined;
- innerOuterMask?: MaskingAlgorithmSetting_Algorithm_InnerOuterMask | undefined;
+ fullMask?: Algorithm_FullMask | undefined;
+ rangeMask?: Algorithm_RangeMask | undefined;
+ md5Mask?: Algorithm_MD5Mask | undefined;
+ innerOuterMask?: Algorithm_InnerOuterMask | undefined;
}
-export interface MaskingAlgorithmSetting_Algorithm_FullMask {
+export interface Algorithm_FullMask {
/**
* substitution is the string used to replace the original value, the
* max length of the string is 16 bytes.
@@ -637,15 +637,15 @@ export interface MaskingAlgorithmSetting_Algorithm_FullMask {
substitution: string;
}
-export interface MaskingAlgorithmSetting_Algorithm_RangeMask {
+export interface Algorithm_RangeMask {
/**
* We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
* But frontend can be started with a single rule easily.
*/
- slices: MaskingAlgorithmSetting_Algorithm_RangeMask_Slice[];
+ slices: Algorithm_RangeMask_Slice[];
}
-export interface MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+export interface Algorithm_RangeMask_Slice {
/** start is the start index of the original value, start from 0 and should be less than stop. */
start: number;
/** stop is the stop index of the original value, should be less than the length of the original value. */
@@ -654,72 +654,66 @@ export interface MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
substitution: string;
}
-export interface MaskingAlgorithmSetting_Algorithm_MD5Mask {
+export interface Algorithm_MD5Mask {
/** salt is the salt value to generate a different hash that with the word alone. */
salt: string;
}
-export interface MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+export interface Algorithm_InnerOuterMask {
prefixLen: number;
suffixLen: number;
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType;
+ type: Algorithm_InnerOuterMask_MaskType;
substitution: string;
}
-export enum MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
+export enum Algorithm_InnerOuterMask_MaskType {
MASK_TYPE_UNSPECIFIED = "MASK_TYPE_UNSPECIFIED",
INNER = "INNER",
OUTER = "OUTER",
UNRECOGNIZED = "UNRECOGNIZED",
}
-export function maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeFromJSON(
- object: any,
-): MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
+export function algorithm_InnerOuterMask_MaskTypeFromJSON(object: any): Algorithm_InnerOuterMask_MaskType {
switch (object) {
case 0:
case "MASK_TYPE_UNSPECIFIED":
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
+ return Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
case 1:
case "INNER":
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER;
+ return Algorithm_InnerOuterMask_MaskType.INNER;
case 2:
case "OUTER":
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER;
+ return Algorithm_InnerOuterMask_MaskType.OUTER;
case -1:
case "UNRECOGNIZED":
default:
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED;
+ return Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED;
}
}
-export function maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToJSON(
- object: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType,
-): string {
+export function algorithm_InnerOuterMask_MaskTypeToJSON(object: Algorithm_InnerOuterMask_MaskType): string {
switch (object) {
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
+ case Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
return "MASK_TYPE_UNSPECIFIED";
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER:
+ case Algorithm_InnerOuterMask_MaskType.INNER:
return "INNER";
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER:
+ case Algorithm_InnerOuterMask_MaskType.OUTER:
return "OUTER";
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
+ case Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
-export function maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToNumber(
- object: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType,
-): number {
+export function algorithm_InnerOuterMask_MaskTypeToNumber(object: Algorithm_InnerOuterMask_MaskType): number {
switch (object) {
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
+ case Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED:
return 0;
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.INNER:
+ case Algorithm_InnerOuterMask_MaskType.INNER:
return 1;
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.OUTER:
+ case Algorithm_InnerOuterMask_MaskType.OUTER:
return 2;
- case MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
+ case Algorithm_InnerOuterMask_MaskType.UNRECOGNIZED:
default:
return -1;
}
@@ -4370,7 +4364,7 @@ function createBaseMaskingAlgorithmSetting(): MaskingAlgorithmSetting {
export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
encode(message: MaskingAlgorithmSetting, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
for (const v of message.algorithms) {
- MaskingAlgorithmSetting_Algorithm.encode(v!, writer.uint32(10).fork()).join();
+ Algorithm.encode(v!, writer.uint32(10).fork()).join();
}
return writer;
},
@@ -4387,7 +4381,7 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
break;
}
- message.algorithms.push(MaskingAlgorithmSetting_Algorithm.decode(reader, reader.uint32()));
+ message.algorithms.push(Algorithm.decode(reader, reader.uint32()));
continue;
}
}
@@ -4402,7 +4396,7 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
fromJSON(object: any): MaskingAlgorithmSetting {
return {
algorithms: globalThis.Array.isArray(object?.algorithms)
- ? object.algorithms.map((e: any) => MaskingAlgorithmSetting_Algorithm.fromJSON(e))
+ ? object.algorithms.map((e: any) => Algorithm.fromJSON(e))
: [],
};
},
@@ -4410,7 +4404,7 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
toJSON(message: MaskingAlgorithmSetting): unknown {
const obj: any = {};
if (message.algorithms?.length) {
- obj.algorithms = message.algorithms.map((e) => MaskingAlgorithmSetting_Algorithm.toJSON(e));
+ obj.algorithms = message.algorithms.map((e) => Algorithm.toJSON(e));
}
return obj;
},
@@ -4420,12 +4414,12 @@ export const MaskingAlgorithmSetting: MessageFns<MaskingAlgorithmSetting> = {
},
fromPartial(object: DeepPartial<MaskingAlgorithmSetting>): MaskingAlgorithmSetting {
const message = createBaseMaskingAlgorithmSetting();
- message.algorithms = object.algorithms?.map((e) => MaskingAlgorithmSetting_Algorithm.fromPartial(e)) || [];
+ message.algorithms = object.algorithms?.map((e) => Algorithm.fromPartial(e)) || [];
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm(): MaskingAlgorithmSetting_Algorithm {
+function createBaseAlgorithm(): Algorithm {
return {
id: "",
title: "",
@@ -4438,8 +4432,8 @@ function createBaseMaskingAlgorithmSetting_Algorithm(): MaskingAlgorithmSetting_
};
}
-export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetting_Algorithm> = {
- encode(message: MaskingAlgorithmSetting_Algorithm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+export const Algorithm: MessageFns<Algorithm> = {
+ encode(message: Algorithm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.id !== "") {
writer.uint32(10).string(message.id);
}
@@ -4453,24 +4447,24 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
writer.uint32(34).string(message.category);
}
if (message.fullMask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_FullMask.encode(message.fullMask, writer.uint32(42).fork()).join();
+ Algorithm_FullMask.encode(message.fullMask, writer.uint32(42).fork()).join();
}
if (message.rangeMask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_RangeMask.encode(message.rangeMask, writer.uint32(50).fork()).join();
+ Algorithm_RangeMask.encode(message.rangeMask, writer.uint32(50).fork()).join();
}
if (message.md5Mask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_MD5Mask.encode(message.md5Mask, writer.uint32(58).fork()).join();
+ Algorithm_MD5Mask.encode(message.md5Mask, writer.uint32(58).fork()).join();
}
if (message.innerOuterMask !== undefined) {
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask.encode(message.innerOuterMask, writer.uint32(66).fork()).join();
+ Algorithm_InnerOuterMask.encode(message.innerOuterMask, writer.uint32(66).fork()).join();
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm();
+ const message = createBaseAlgorithm();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -4511,7 +4505,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.fullMask = MaskingAlgorithmSetting_Algorithm_FullMask.decode(reader, reader.uint32());
+ message.fullMask = Algorithm_FullMask.decode(reader, reader.uint32());
continue;
}
case 6: {
@@ -4519,7 +4513,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.rangeMask = MaskingAlgorithmSetting_Algorithm_RangeMask.decode(reader, reader.uint32());
+ message.rangeMask = Algorithm_RangeMask.decode(reader, reader.uint32());
continue;
}
case 7: {
@@ -4527,7 +4521,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.md5Mask = MaskingAlgorithmSetting_Algorithm_MD5Mask.decode(reader, reader.uint32());
+ message.md5Mask = Algorithm_MD5Mask.decode(reader, reader.uint32());
continue;
}
case 8: {
@@ -4535,7 +4529,7 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
break;
}
- message.innerOuterMask = MaskingAlgorithmSetting_Algorithm_InnerOuterMask.decode(reader, reader.uint32());
+ message.innerOuterMask = Algorithm_InnerOuterMask.decode(reader, reader.uint32());
continue;
}
}
@@ -4547,26 +4541,22 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm {
+ fromJSON(object: any): Algorithm {
return {
id: isSet(object.id) ? globalThis.String(object.id) : "",
title: isSet(object.title) ? globalThis.String(object.title) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
category: isSet(object.category) ? globalThis.String(object.category) : "",
- fullMask: isSet(object.fullMask)
- ? MaskingAlgorithmSetting_Algorithm_FullMask.fromJSON(object.fullMask)
- : undefined,
- rangeMask: isSet(object.rangeMask)
- ? MaskingAlgorithmSetting_Algorithm_RangeMask.fromJSON(object.rangeMask)
- : undefined,
- md5Mask: isSet(object.md5Mask) ? MaskingAlgorithmSetting_Algorithm_MD5Mask.fromJSON(object.md5Mask) : undefined,
+ fullMask: isSet(object.fullMask) ? Algorithm_FullMask.fromJSON(object.fullMask) : undefined,
+ rangeMask: isSet(object.rangeMask) ? Algorithm_RangeMask.fromJSON(object.rangeMask) : undefined,
+ md5Mask: isSet(object.md5Mask) ? Algorithm_MD5Mask.fromJSON(object.md5Mask) : undefined,
innerOuterMask: isSet(object.innerOuterMask)
- ? MaskingAlgorithmSetting_Algorithm_InnerOuterMask.fromJSON(object.innerOuterMask)
+ ? Algorithm_InnerOuterMask.fromJSON(object.innerOuterMask)
: undefined,
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm): unknown {
+ toJSON(message: Algorithm): unknown {
const obj: any = {};
if (message.id !== "") {
obj.id = message.id;
@@ -4581,61 +4571,61 @@ export const MaskingAlgorithmSetting_Algorithm: MessageFns<MaskingAlgorithmSetti
obj.category = message.category;
}
if (message.fullMask !== undefined) {
- obj.fullMask = MaskingAlgorithmSetting_Algorithm_FullMask.toJSON(message.fullMask);
+ obj.fullMask = Algorithm_FullMask.toJSON(message.fullMask);
}
if (message.rangeMask !== undefined) {
- obj.rangeMask = MaskingAlgorithmSetting_Algorithm_RangeMask.toJSON(message.rangeMask);
+ obj.rangeMask = Algorithm_RangeMask.toJSON(message.rangeMask);
}
if (message.md5Mask !== undefined) {
- obj.md5Mask = MaskingAlgorithmSetting_Algorithm_MD5Mask.toJSON(message.md5Mask);
+ obj.md5Mask = Algorithm_MD5Mask.toJSON(message.md5Mask);
}
if (message.innerOuterMask !== undefined) {
- obj.innerOuterMask = MaskingAlgorithmSetting_Algorithm_InnerOuterMask.toJSON(message.innerOuterMask);
+ obj.innerOuterMask = Algorithm_InnerOuterMask.toJSON(message.innerOuterMask);
}
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm>): MaskingAlgorithmSetting_Algorithm {
- return MaskingAlgorithmSetting_Algorithm.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm>): Algorithm {
+ return Algorithm.fromPartial(base ?? {});
},
- fromPartial(object: DeepPartial<MaskingAlgorithmSetting_Algorithm>): MaskingAlgorithmSetting_Algorithm {
- const message = createBaseMaskingAlgorithmSetting_Algorithm();
+ fromPartial(object: DeepPartial<Algorithm>): Algorithm {
+ const message = createBaseAlgorithm();
message.id = object.id ?? "";
message.title = object.title ?? "";
message.description = object.description ?? "";
message.category = object.category ?? "";
message.fullMask = (object.fullMask !== undefined && object.fullMask !== null)
- ? MaskingAlgorithmSetting_Algorithm_FullMask.fromPartial(object.fullMask)
+ ? Algorithm_FullMask.fromPartial(object.fullMask)
: undefined;
message.rangeMask = (object.rangeMask !== undefined && object.rangeMask !== null)
- ? MaskingAlgorithmSetting_Algorithm_RangeMask.fromPartial(object.rangeMask)
+ ? Algorithm_RangeMask.fromPartial(object.rangeMask)
: undefined;
message.md5Mask = (object.md5Mask !== undefined && object.md5Mask !== null)
- ? MaskingAlgorithmSetting_Algorithm_MD5Mask.fromPartial(object.md5Mask)
+ ? Algorithm_MD5Mask.fromPartial(object.md5Mask)
: undefined;
message.innerOuterMask = (object.innerOuterMask !== undefined && object.innerOuterMask !== null)
- ? MaskingAlgorithmSetting_Algorithm_InnerOuterMask.fromPartial(object.innerOuterMask)
+ ? Algorithm_InnerOuterMask.fromPartial(object.innerOuterMask)
: undefined;
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_FullMask(): MaskingAlgorithmSetting_Algorithm_FullMask {
+function createBaseAlgorithm_FullMask(): Algorithm_FullMask {
return { substitution: "" };
}
-export const MaskingAlgorithmSetting_Algorithm_FullMask: MessageFns<MaskingAlgorithmSetting_Algorithm_FullMask> = {
- encode(message: MaskingAlgorithmSetting_Algorithm_FullMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+export const Algorithm_FullMask: MessageFns<Algorithm_FullMask> = {
+ encode(message: Algorithm_FullMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.substitution !== "") {
writer.uint32(10).string(message.substitution);
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_FullMask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_FullMask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_FullMask();
+ const message = createBaseAlgorithm_FullMask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -4656,11 +4646,11 @@ export const MaskingAlgorithmSetting_Algorithm_FullMask: MessageFns<MaskingAlgor
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_FullMask {
+ fromJSON(object: any): Algorithm_FullMask {
return { substitution: isSet(object.substitution) ? globalThis.String(object.substitution) : "" };
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_FullMask): unknown {
+ toJSON(message: Algorithm_FullMask): unknown {
const obj: any = {};
if (message.substitution !== "") {
obj.substitution = message.substitution;
@@ -4668,37 +4658,32 @@ export const MaskingAlgorithmSetting_Algorithm_FullMask: MessageFns<MaskingAlgor
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_FullMask>): MaskingAlgorithmSetting_Algorithm_FullMask {
- return MaskingAlgorithmSetting_Algorithm_FullMask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_FullMask>): Algorithm_FullMask {
+ return Algorithm_FullMask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_FullMask>,
- ): MaskingAlgorithmSetting_Algorithm_FullMask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_FullMask();
+ fromPartial(object: DeepPartial<Algorithm_FullMask>): Algorithm_FullMask {
+ const message = createBaseAlgorithm_FullMask();
message.substitution = object.substitution ?? "";
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_RangeMask(): MaskingAlgorithmSetting_Algorithm_RangeMask {
+function createBaseAlgorithm_RangeMask(): Algorithm_RangeMask {
return { slices: [] };
}
-export const MaskingAlgorithmSetting_Algorithm_RangeMask: MessageFns<MaskingAlgorithmSetting_Algorithm_RangeMask> = {
- encode(
- message: MaskingAlgorithmSetting_Algorithm_RangeMask,
- writer: BinaryWriter = new BinaryWriter(),
- ): BinaryWriter {
+export const Algorithm_RangeMask: MessageFns<Algorithm_RangeMask> = {
+ encode(message: Algorithm_RangeMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
for (const v of message.slices) {
- MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.encode(v!, writer.uint32(10).fork()).join();
+ Algorithm_RangeMask_Slice.encode(v!, writer.uint32(10).fork()).join();
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_RangeMask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_RangeMask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask();
+ const message = createBaseAlgorithm_RangeMask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -4707,7 +4692,7 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask: MessageFns<MaskingAlgo
break;
}
- message.slices.push(MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.decode(reader, reader.uint32()));
+ message.slices.push(Algorithm_RangeMask_Slice.decode(reader, reader.uint32()));
continue;
}
}
@@ -4719,45 +4704,38 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask: MessageFns<MaskingAlgo
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_RangeMask {
+ fromJSON(object: any): Algorithm_RangeMask {
return {
slices: globalThis.Array.isArray(object?.slices)
- ? object.slices.map((e: any) => MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.fromJSON(e))
+ ? object.slices.map((e: any) => Algorithm_RangeMask_Slice.fromJSON(e))
: [],
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_RangeMask): unknown {
+ toJSON(message: Algorithm_RangeMask): unknown {
const obj: any = {};
if (message.slices?.length) {
- obj.slices = message.slices.map((e) => MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.toJSON(e));
+ obj.slices = message.slices.map((e) => Algorithm_RangeMask_Slice.toJSON(e));
}
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask>): MaskingAlgorithmSetting_Algorithm_RangeMask {
- return MaskingAlgorithmSetting_Algorithm_RangeMask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_RangeMask>): Algorithm_RangeMask {
+ return Algorithm_RangeMask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask>,
- ): MaskingAlgorithmSetting_Algorithm_RangeMask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask();
- message.slices = object.slices?.map((e) => MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.fromPartial(e)) || [];
+ fromPartial(object: DeepPartial<Algorithm_RangeMask>): Algorithm_RangeMask {
+ const message = createBaseAlgorithm_RangeMask();
+ message.slices = object.slices?.map((e) => Algorithm_RangeMask_Slice.fromPartial(e)) || [];
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_RangeMask_Slice(): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+function createBaseAlgorithm_RangeMask_Slice(): Algorithm_RangeMask_Slice {
return { start: 0, end: 0, substitution: "" };
}
-export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
- MaskingAlgorithmSetting_Algorithm_RangeMask_Slice
-> = {
- encode(
- message: MaskingAlgorithmSetting_Algorithm_RangeMask_Slice,
- writer: BinaryWriter = new BinaryWriter(),
- ): BinaryWriter {
+export const Algorithm_RangeMask_Slice: MessageFns<Algorithm_RangeMask_Slice> = {
+ encode(message: Algorithm_RangeMask_Slice, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.start !== 0) {
writer.uint32(8).int32(message.start);
}
@@ -4770,10 +4748,10 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_RangeMask_Slice {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask_Slice();
+ const message = createBaseAlgorithm_RangeMask_Slice();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -4810,7 +4788,7 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+ fromJSON(object: any): Algorithm_RangeMask_Slice {
return {
start: isSet(object.start) ? globalThis.Number(object.start) : 0,
end: isSet(object.end) ? globalThis.Number(object.end) : 0,
@@ -4818,7 +4796,7 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_RangeMask_Slice): unknown {
+ toJSON(message: Algorithm_RangeMask_Slice): unknown {
const obj: any = {};
if (message.start !== 0) {
obj.start = Math.round(message.start);
@@ -4832,15 +4810,11 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
return obj;
},
- create(
- base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask_Slice>,
- ): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
- return MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_RangeMask_Slice>): Algorithm_RangeMask_Slice {
+ return Algorithm_RangeMask_Slice.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_RangeMask_Slice>,
- ): MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_RangeMask_Slice();
+ fromPartial(object: DeepPartial<Algorithm_RangeMask_Slice>): Algorithm_RangeMask_Slice {
+ const message = createBaseAlgorithm_RangeMask_Slice();
message.start = object.start ?? 0;
message.end = object.end ?? 0;
message.substitution = object.substitution ?? "";
@@ -4848,22 +4822,22 @@ export const MaskingAlgorithmSetting_Algorithm_RangeMask_Slice: MessageFns<
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_MD5Mask(): MaskingAlgorithmSetting_Algorithm_MD5Mask {
+function createBaseAlgorithm_MD5Mask(): Algorithm_MD5Mask {
return { salt: "" };
}
-export const MaskingAlgorithmSetting_Algorithm_MD5Mask: MessageFns<MaskingAlgorithmSetting_Algorithm_MD5Mask> = {
- encode(message: MaskingAlgorithmSetting_Algorithm_MD5Mask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+export const Algorithm_MD5Mask: MessageFns<Algorithm_MD5Mask> = {
+ encode(message: Algorithm_MD5Mask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.salt !== "") {
writer.uint32(10).string(message.salt);
}
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_MD5Mask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_MD5Mask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_MD5Mask();
+ const message = createBaseAlgorithm_MD5Mask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -4884,11 +4858,11 @@ export const MaskingAlgorithmSetting_Algorithm_MD5Mask: MessageFns<MaskingAlgori
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_MD5Mask {
+ fromJSON(object: any): Algorithm_MD5Mask {
return { salt: isSet(object.salt) ? globalThis.String(object.salt) : "" };
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_MD5Mask): unknown {
+ toJSON(message: Algorithm_MD5Mask): unknown {
const obj: any = {};
if (message.salt !== "") {
obj.salt = message.salt;
@@ -4896,42 +4870,35 @@ export const MaskingAlgorithmSetting_Algorithm_MD5Mask: MessageFns<MaskingAlgori
return obj;
},
- create(base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_MD5Mask>): MaskingAlgorithmSetting_Algorithm_MD5Mask {
- return MaskingAlgorithmSetting_Algorithm_MD5Mask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_MD5Mask>): Algorithm_MD5Mask {
+ return Algorithm_MD5Mask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_MD5Mask>,
- ): MaskingAlgorithmSetting_Algorithm_MD5Mask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_MD5Mask();
+ fromPartial(object: DeepPartial<Algorithm_MD5Mask>): Algorithm_MD5Mask {
+ const message = createBaseAlgorithm_MD5Mask();
message.salt = object.salt ?? "";
return message;
},
};
-function createBaseMaskingAlgorithmSetting_Algorithm_InnerOuterMask(): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+function createBaseAlgorithm_InnerOuterMask(): Algorithm_InnerOuterMask {
return {
prefixLen: 0,
suffixLen: 0,
- type: MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
+ type: Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
substitution: "",
};
}
-export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask
-> = {
- encode(
- message: MaskingAlgorithmSetting_Algorithm_InnerOuterMask,
- writer: BinaryWriter = new BinaryWriter(),
- ): BinaryWriter {
+export const Algorithm_InnerOuterMask: MessageFns<Algorithm_InnerOuterMask> = {
+ encode(message: Algorithm_InnerOuterMask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.prefixLen !== 0) {
writer.uint32(8).int32(message.prefixLen);
}
if (message.suffixLen !== 0) {
writer.uint32(16).int32(message.suffixLen);
}
- if (message.type !== MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
- writer.uint32(24).int32(maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToNumber(message.type));
+ if (message.type !== Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
+ writer.uint32(24).int32(algorithm_InnerOuterMask_MaskTypeToNumber(message.type));
}
if (message.substitution !== "") {
writer.uint32(34).string(message.substitution);
@@ -4939,10 +4906,10 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
return writer;
},
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+ decode(input: BinaryReader | Uint8Array, length?: number): Algorithm_InnerOuterMask {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingAlgorithmSetting_Algorithm_InnerOuterMask();
+ const message = createBaseAlgorithm_InnerOuterMask();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
@@ -4967,7 +4934,7 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
break;
}
- message.type = maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeFromJSON(reader.int32());
+ message.type = algorithm_InnerOuterMask_MaskTypeFromJSON(reader.int32());
continue;
}
case 4: {
@@ -4987,18 +4954,18 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
return message;
},
- fromJSON(object: any): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
+ fromJSON(object: any): Algorithm_InnerOuterMask {
return {
prefixLen: isSet(object.prefixLen) ? globalThis.Number(object.prefixLen) : 0,
suffixLen: isSet(object.suffixLen) ? globalThis.Number(object.suffixLen) : 0,
type: isSet(object.type)
- ? maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeFromJSON(object.type)
- : MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
+ ? algorithm_InnerOuterMask_MaskTypeFromJSON(object.type)
+ : Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED,
substitution: isSet(object.substitution) ? globalThis.String(object.substitution) : "",
};
},
- toJSON(message: MaskingAlgorithmSetting_Algorithm_InnerOuterMask): unknown {
+ toJSON(message: Algorithm_InnerOuterMask): unknown {
const obj: any = {};
if (message.prefixLen !== 0) {
obj.prefixLen = Math.round(message.prefixLen);
@@ -5006,8 +4973,8 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
if (message.suffixLen !== 0) {
obj.suffixLen = Math.round(message.suffixLen);
}
- if (message.type !== MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
- obj.type = maskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskTypeToJSON(message.type);
+ if (message.type !== Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED) {
+ obj.type = algorithm_InnerOuterMask_MaskTypeToJSON(message.type);
}
if (message.substitution !== "") {
obj.substitution = message.substitution;
@@ -5015,18 +4982,14 @@ export const MaskingAlgorithmSetting_Algorithm_InnerOuterMask: MessageFns<
return obj;
},
- create(
- base?: DeepPartial<MaskingAlgorithmSetting_Algorithm_InnerOuterMask>,
- ): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask.fromPartial(base ?? {});
+ create(base?: DeepPartial<Algorithm_InnerOuterMask>): Algorithm_InnerOuterMask {
+ return Algorithm_InnerOuterMask.fromPartial(base ?? {});
},
- fromPartial(
- object: DeepPartial<MaskingAlgorithmSetting_Algorithm_InnerOuterMask>,
- ): MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
- const message = createBaseMaskingAlgorithmSetting_Algorithm_InnerOuterMask();
+ fromPartial(object: DeepPartial<Algorithm_InnerOuterMask>): Algorithm_InnerOuterMask {
+ const message = createBaseAlgorithm_InnerOuterMask();
message.prefixLen = object.prefixLen ?? 0;
message.suffixLen = object.suffixLen ?? 0;
- message.type = object.type ?? MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
+ message.type = object.type ?? Algorithm_InnerOuterMask_MaskType.MASK_TYPE_UNSPECIFIED;
message.substitution = object.substitution ?? "";
return message;
},
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 68d86da802..ce1db43b02 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -8793,6 +8793,33 @@ components:
token:
type: string
description: The token for the agent.
+ Algorithm:
+ type: object
+ properties:
+ id:
+ type: string
+ description: id is the uuid for masking algorithm.
+ title:
+ type: string
+ description: title is the title for masking algorithm.
+ description:
+ type: string
+ description: description is the description for masking algorithm.
+ category:
+ type: string
+ description: |-
+ Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+ The range of accepted Payload is decided by the category.
+ MASK: FullMask, RangeMask
+ HASH: MD5Mask
+ fullMask:
+ $ref: '#/components/schemas/Algorithm_FullMask'
+ rangeMask:
+ $ref: '#/components/schemas/Algorithm_RangeMask'
+ md5Mask:
+ $ref: '#/components/schemas/Algorithm_MD5Mask'
+ innerOuterMask:
+ $ref: '#/components/schemas/Algorithm_InnerOuterMask'
Algorithm_FullMask:
type: object
properties:
@@ -8810,6 +8837,8 @@ components:
suffixLen:
type: integer
format: int32
+ substitution:
+ type: string
type:
enum:
- MASK_TYPE_UNSPECIFIED
@@ -8817,8 +8846,6 @@ components:
- OUTER
type: string
format: enum
- substitution:
- type: string
Algorithm_MD5Mask:
type: object
properties:
@@ -11893,35 +11920,8 @@ components:
algorithms:
type: array
items:
- $ref: '#/components/schemas/MaskingAlgorithmSetting_Algorithm'
+ $ref: '#/components/schemas/Algorithm'
description: algorithms is the list of masking algorithms.
- MaskingAlgorithmSetting_Algorithm:
- type: object
- properties:
- id:
- type: string
- description: id is the uuid for masking algorithm.
- title:
- type: string
- description: title is the title for masking algorithm.
- description:
- type: string
- description: description is the description for masking algorithm.
- category:
- type: string
- description: |-
- Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
- The range of accepted Payload is decided by the category.
- MASK: FullMask, RangeMask
- HASH: MD5Mask
- fullMask:
- $ref: '#/components/schemas/Algorithm_FullMask'
- rangeMask:
- $ref: '#/components/schemas/Algorithm_RangeMask'
- md5Mask:
- $ref: '#/components/schemas/Algorithm_MD5Mask'
- innerOuterMask:
- $ref: '#/components/schemas/Algorithm_InnerOuterMask'
MaskingExceptionPolicy:
type: object
properties:
@@ -12929,7 +12929,7 @@ components:
format: int32
substitution:
type: string
- description: OriginalValue[start:end) would be replaced with replace_with.
+ description: substitution is the string used to replace the OriginalValue[start:end).
RebaseBranchResponse:
type: object
properties:
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 5f5867ad7d..87579e16bc 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -268,6 +268,12 @@
- [store/setting.proto](#store_setting-proto)
- [AgentPluginSetting](#bytebase-store-AgentPluginSetting)
+ - [Algorithm](#bytebase-store-Algorithm)
+ - [Algorithm.FullMask](#bytebase-store-Algorithm-FullMask)
+ - [Algorithm.InnerOuterMask](#bytebase-store-Algorithm-InnerOuterMask)
+ - [Algorithm.MD5Mask](#bytebase-store-Algorithm-MD5Mask)
+ - [Algorithm.RangeMask](#bytebase-store-Algorithm-RangeMask)
+ - [Algorithm.RangeMask.Slice](#bytebase-store-Algorithm-RangeMask-Slice)
- [Announcement](#bytebase-store-Announcement)
- [AppIMSetting](#bytebase-store-AppIMSetting)
- [AppIMSetting.Feishu](#bytebase-store-AppIMSetting-Feishu)
@@ -283,12 +289,6 @@
- [ExternalApprovalSetting](#bytebase-store-ExternalApprovalSetting)
- [ExternalApprovalSetting.Node](#bytebase-store-ExternalApprovalSetting-Node)
- [MaskingAlgorithmSetting](#bytebase-store-MaskingAlgorithmSetting)
- - [MaskingAlgorithmSetting.Algorithm](#bytebase-store-MaskingAlgorithmSetting-Algorithm)
- - [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-FullMask)
- - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-InnerOuterMask)
- - [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-MD5Mask)
- - [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask)
- - [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice)
- [MaximumSQLResultSizeSetting](#bytebase-store-MaximumSQLResultSizeSetting)
- [PasswordRestrictionSetting](#bytebase-store-PasswordRestrictionSetting)
- [SCIMSetting](#bytebase-store-SCIMSetting)
@@ -303,9 +303,9 @@
- [WorkspaceApprovalSetting.Rule](#bytebase-store-WorkspaceApprovalSetting-Rule)
- [WorkspaceProfileSetting](#bytebase-store-WorkspaceProfileSetting)
+ - [Algorithm.InnerOuterMask.MaskType](#bytebase-store-Algorithm-InnerOuterMask-MaskType)
- [Announcement.AlertLevel](#bytebase-store-Announcement-AlertLevel)
- [DatabaseChangeMode](#bytebase-store-DatabaseChangeMode)
- - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-store-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType)
- [SMTPMailDeliverySetting.Authentication](#bytebase-store-SMTPMailDeliverySetting-Authentication)
- [SMTPMailDeliverySetting.Encryption](#bytebase-store-SMTPMailDeliverySetting-Encryption)
@@ -4174,353 +4174,353 @@ SlowQueryPolicy is the policy configuration for slow query.
-<a name="bytebase-store-Announcement"></a>
+<a name="bytebase-store-Algorithm"></a>
-### Announcement
+### Algorithm
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| level | [Announcement.AlertLevel](#bytebase-store-Announcement-AlertLevel) | | The alert level of announcemnt |
-| text | [string](#string) | | The text of announcemnt |
-| link | [string](#string) | | The optional link, user can follow the link to check extra details |
+| id | [string](#string) | | id is the uuid for masking algorithm. |
+| title | [string](#string) | | title is the title for masking algorithm. |
+| description | [string](#string) | | description is the description for masking algorithm. |
+| category | [string](#string) | | Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH. The range of accepted Payload is decided by the category. MASK: FullMask, RangeMask HASH: MD5Mask |
+| full_mask | [Algorithm.FullMask](#bytebase-store-Algorithm-FullMask) | | |
+| range_mask | [Algorithm.RangeMask](#bytebase-store-Algorithm-RangeMask) | | |
+| md5_mask | [Algorithm.MD5Mask](#bytebase-store-Algorithm-MD5Mask) | | |
+| inner_outer_mask | [Algorithm.InnerOuterMask](#bytebase-store-Algorithm-InnerOuterMask) | | |
-<a name="bytebase-store-AppIMSetting"></a>
+<a name="bytebase-store-Algorithm-FullMask"></a>
-### AppIMSetting
+### Algorithm.FullMask
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| slack | [AppIMSetting.Slack](#bytebase-store-AppIMSetting-Slack) | | |
-| feishu | [AppIMSetting.Feishu](#bytebase-store-AppIMSetting-Feishu) | | |
-| wecom | [AppIMSetting.Wecom](#bytebase-store-AppIMSetting-Wecom) | | |
-| lark | [AppIMSetting.Lark](#bytebase-store-AppIMSetting-Lark) | | |
+| substitution | [string](#string) | | substitution is the string used to replace the original value, the max length of the string is 16 bytes. |
-<a name="bytebase-store-AppIMSetting-Feishu"></a>
+<a name="bytebase-store-Algorithm-InnerOuterMask"></a>
-### AppIMSetting.Feishu
+### Algorithm.InnerOuterMask
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| enabled | [bool](#bool) | | |
-| app_id | [string](#string) | | |
-| app_secret | [string](#string) | | |
+| prefix_len | [int32](#int32) | | |
+| suffix_len | [int32](#int32) | | |
+| substitution | [string](#string) | | |
+| type | [Algorithm.InnerOuterMask.MaskType](#bytebase-store-Algorithm-InnerOuterMask-MaskType) | | |
-<a name="bytebase-store-AppIMSetting-Lark"></a>
+<a name="bytebase-store-Algorithm-MD5Mask"></a>
-### AppIMSetting.Lark
+### Algorithm.MD5Mask
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| enabled | [bool](#bool) | | |
-| app_id | [string](#string) | | |
-| app_secret | [string](#string) | | |
+| salt | [string](#string) | | salt is the salt value to generate a different hash that with the word alone. |
-<a name="bytebase-store-AppIMSetting-Slack"></a>
+<a name="bytebase-store-Algorithm-RangeMask"></a>
-### AppIMSetting.Slack
+### Algorithm.RangeMask
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| enabled | [bool](#bool) | | |
-| token | [string](#string) | | |
+| slices | [Algorithm.RangeMask.Slice](#bytebase-store-Algorithm-RangeMask-Slice) | repeated | We store it as a repeated field to face the fact that the original value may have multiple parts should be masked. But frontend can be started with a single rule easily. |
-<a name="bytebase-store-AppIMSetting-Wecom"></a>
+<a name="bytebase-store-Algorithm-RangeMask-Slice"></a>
-### AppIMSetting.Wecom
+### Algorithm.RangeMask.Slice
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| enabled | [bool](#bool) | | |
-| corp_id | [string](#string) | | |
-| agent_id | [string](#string) | | |
-| secret | [string](#string) | | |
+| start | [int32](#int32) | | start is the start index of the original value, start from 0 and should be less than stop. |
+| end | [int32](#int32) | | stop is the stop index of the original value, should be less than the length of the original value. |
+| substitution | [string](#string) | | OriginalValue[start:end) would be replaced with replace_with. |
-<a name="bytebase-store-DataClassificationSetting"></a>
+<a name="bytebase-store-Announcement"></a>
-### DataClassificationSetting
+### Announcement
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| configs | [DataClassificationSetting.DataClassificationConfig](#bytebase-store-DataClassificationSetting-DataClassificationConfig) | repeated | |
+| level | [Announcement.AlertLevel](#bytebase-store-Announcement-AlertLevel) | | The alert level of announcemnt |
+| text | [string](#string) | | The text of announcemnt |
+| link | [string](#string) | | The optional link, user can follow the link to check extra details |
-<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig"></a>
+<a name="bytebase-store-AppIMSetting"></a>
-### DataClassificationSetting.DataClassificationConfig
+### AppIMSetting
| 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]&#43;-[0-9]&#43;-[0-9]&#43; format. |
-| classification_from_config | [bool](#bool) | | If true, we will only store the classification in the config. Otherwise we will get the classification from table/column comment, and write back to the schema metadata. |
+| slack | [AppIMSetting.Slack](#bytebase-store-AppIMSetting-Slack) | | |
+| feishu | [AppIMSetting.Feishu](#bytebase-store-AppIMSetting-Feishu) | | |
+| wecom | [AppIMSetting.Wecom](#bytebase-store-AppIMSetting-Wecom) | | |
+| lark | [AppIMSetting.Lark](#bytebase-store-AppIMSetting-Lark) | | |
-<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-ClassificationEntry"></a>
+<a name="bytebase-store-AppIMSetting-Feishu"></a>
-### DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+### AppIMSetting.Feishu
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| key | [string](#string) | | |
-| value | [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification) | | |
+| enabled | [bool](#bool) | | |
+| app_id | [string](#string) | | |
+| app_secret | [string](#string) | | |
-<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification"></a>
+<a name="bytebase-store-AppIMSetting-Lark"></a>
-### DataClassificationSetting.DataClassificationConfig.DataClassification
+### AppIMSetting.Lark
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| id | [string](#string) | | id is the classification id in [0-9]&#43;-[0-9]&#43;-[0-9]&#43; format. |
-| title | [string](#string) | | |
-| description | [string](#string) | | |
-| level_id | [string](#string) | optional | |
+| enabled | [bool](#bool) | | |
+| app_id | [string](#string) | | |
+| app_secret | [string](#string) | | |
-<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-Level"></a>
+<a name="bytebase-store-AppIMSetting-Slack"></a>
-### DataClassificationSetting.DataClassificationConfig.Level
+### AppIMSetting.Slack
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| id | [string](#string) | | |
-| title | [string](#string) | | |
-| description | [string](#string) | | |
+| enabled | [bool](#bool) | | |
+| token | [string](#string) | | |
-<a name="bytebase-store-ExternalApprovalPayload"></a>
+<a name="bytebase-store-AppIMSetting-Wecom"></a>
-### ExternalApprovalPayload
+### AppIMSetting.Wecom
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| external_approval_node_id | [string](#string) | | |
-| id | [string](#string) | | |
+| enabled | [bool](#bool) | | |
+| corp_id | [string](#string) | | |
+| agent_id | [string](#string) | | |
+| secret | [string](#string) | | |
-<a name="bytebase-store-ExternalApprovalSetting"></a>
+<a name="bytebase-store-DataClassificationSetting"></a>
-### ExternalApprovalSetting
+### DataClassificationSetting
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| nodes | [ExternalApprovalSetting.Node](#bytebase-store-ExternalApprovalSetting-Node) | repeated | |
+| configs | [DataClassificationSetting.DataClassificationConfig](#bytebase-store-DataClassificationSetting-DataClassificationConfig) | repeated | |
-<a name="bytebase-store-ExternalApprovalSetting-Node"></a>
+<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig"></a>
-### ExternalApprovalSetting.Node
+### DataClassificationSetting.DataClassificationConfig
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| id | [string](#string) | | A unique identifier for a node in UUID format. We will also include the id in the message sending to the external relay service to identify the node. |
-| title | [string](#string) | | The title of the node. |
-| endpoint | [string](#string) | | The external endpoint for the relay service, e.g. &#34;http://hello:1234&#34;. |
+| 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]&#43;-[0-9]&#43;-[0-9]&#43; format. |
+| classification_from_config | [bool](#bool) | | If true, we will only store the classification in the config. Otherwise we will get the classification from table/column comment, and write back to the schema metadata. |
-<a name="bytebase-store-MaskingAlgorithmSetting"></a>
+<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-ClassificationEntry"></a>
-### MaskingAlgorithmSetting
+### DataClassificationSetting.DataClassificationConfig.ClassificationEntry
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| algorithms | [MaskingAlgorithmSetting.Algorithm](#bytebase-store-MaskingAlgorithmSetting-Algorithm) | repeated | algorithms is the list of masking algorithms. |
+| key | [string](#string) | | |
+| value | [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification) | | |
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm"></a>
+<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-DataClassification"></a>
-### MaskingAlgorithmSetting.Algorithm
+### DataClassificationSetting.DataClassificationConfig.DataClassification
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| id | [string](#string) | | id is the uuid for masking algorithm. |
-| title | [string](#string) | | title is the title for masking algorithm. |
-| description | [string](#string) | | description is the description for masking algorithm. |
-| category | [string](#string) | | Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH. The range of accepted Payload is decided by the category. MASK: FullMask, RangeMask HASH: MD5Mask |
-| full_mask | [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-FullMask) | | |
-| range_mask | [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask) | | |
-| md5_mask | [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-MD5Mask) | | |
-| inner_outer_mask | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-store-MaskingAlgorithmSetting-Algorithm-InnerOuterMask) | | |
+| id | [string](#string) | | id is the classification id in [0-9]&#43;-[0-9]&#43;-[0-9]&#43; format. |
+| title | [string](#string) | | |
+| description | [string](#string) | | |
+| level_id | [string](#string) | optional | |
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm-FullMask"></a>
+<a name="bytebase-store-DataClassificationSetting-DataClassificationConfig-Level"></a>
-### MaskingAlgorithmSetting.Algorithm.FullMask
+### DataClassificationSetting.DataClassificationConfig.Level
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| substitution | [string](#string) | | substitution is the string used to replace the original value, the max length of the string is 16 bytes. |
+| id | [string](#string) | | |
+| title | [string](#string) | | |
+| description | [string](#string) | | |
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm-InnerOuterMask"></a>
+<a name="bytebase-store-ExternalApprovalPayload"></a>
-### MaskingAlgorithmSetting.Algorithm.InnerOuterMask
+### ExternalApprovalPayload
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| prefix_len | [int32](#int32) | | |
-| suffix_len | [int32](#int32) | | |
-| substitution | [string](#string) | | |
-| type | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-store-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType) | | |
+| external_approval_node_id | [string](#string) | | |
+| id | [string](#string) | | |
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm-MD5Mask"></a>
+<a name="bytebase-store-ExternalApprovalSetting"></a>
-### MaskingAlgorithmSetting.Algorithm.MD5Mask
+### ExternalApprovalSetting
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| salt | [string](#string) | | salt is the salt value to generate a different hash that with the word alone. |
+| nodes | [ExternalApprovalSetting.Node](#bytebase-store-ExternalApprovalSetting-Node) | repeated | |
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask"></a>
+<a name="bytebase-store-ExternalApprovalSetting-Node"></a>
-### MaskingAlgorithmSetting.Algorithm.RangeMask
+### ExternalApprovalSetting.Node
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| slices | [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice) | repeated | We store it as a repeated field to face the fact that the original value may have multiple parts should be masked. But frontend can be started with a single rule easily. |
+| id | [string](#string) | | A unique identifier for a node in UUID format. We will also include the id in the message sending to the external relay service to identify the node. |
+| title | [string](#string) | | The title of the node. |
+| endpoint | [string](#string) | | The external endpoint for the relay service, e.g. &#34;http://hello:1234&#34;. |
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice"></a>
+<a name="bytebase-store-MaskingAlgorithmSetting"></a>
-### MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
+### MaskingAlgorithmSetting
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| start | [int32](#int32) | | start is the start index of the original value, start from 0 and should be less than stop. |
-| end | [int32](#int32) | | stop is the stop index of the original value, should be less than the length of the original value. |
-| substitution | [string](#string) | | OriginalValue[start:end) would be replaced with replace_with. |
+| algorithms | [Algorithm](#bytebase-store-Algorithm) | repeated | algorithms is the list of masking algorithms. |
@@ -4770,6 +4770,19 @@ The external URL is used for: 1. Constructing the correct callback URL when conf
+<a name="bytebase-store-Algorithm-InnerOuterMask-MaskType"></a>
+
+### Algorithm.InnerOuterMask.MaskType
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| MASK_TYPE_UNSPECIFIED | 0 | |
+| INNER | 1 | |
+| OUTER | 2 | |
+
+
+
<a name="bytebase-store-Announcement-AlertLevel"></a>
### Announcement.AlertLevel
@@ -4797,19 +4810,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.
-<a name="bytebase-store-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType"></a>
-
-### MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
-
-
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| MASK_TYPE_UNSPECIFIED | 0 | |
-| INNER | 1 | |
-| OUTER | 2 | |
-
-
-
<a name="bytebase-store-SMTPMailDeliverySetting-Authentication"></a>
### SMTPMailDeliverySetting.Authentication
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 408066ffa1..197092ff4a 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1262,87 +1262,87 @@
</li>
<li>
- <a href="#bytebase.store.Announcement"><span class="badge">M</span>Announcement</a>
+ <a href="#bytebase.store.Algorithm"><span class="badge">M</span>Algorithm</a>
</li>
<li>
- <a href="#bytebase.store.AppIMSetting"><span class="badge">M</span>AppIMSetting</a>
+ <a href="#bytebase.store.Algorithm.FullMask"><span class="badge">M</span>Algorithm.FullMask</a>
</li>
<li>
- <a href="#bytebase.store.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a>
+ <a href="#bytebase.store.Algorithm.InnerOuterMask"><span class="badge">M</span>Algorithm.InnerOuterMask</a>
</li>
<li>
- <a href="#bytebase.store.AppIMSetting.Lark"><span class="badge">M</span>AppIMSetting.Lark</a>
+ <a href="#bytebase.store.Algorithm.MD5Mask"><span class="badge">M</span>Algorithm.MD5Mask</a>
</li>
<li>
- <a href="#bytebase.store.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a>
+ <a href="#bytebase.store.Algorithm.RangeMask"><span class="badge">M</span>Algorithm.RangeMask</a>
</li>
<li>
- <a href="#bytebase.store.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a>
+ <a href="#bytebase.store.Algorithm.RangeMask.Slice"><span class="badge">M</span>Algorithm.RangeMask.Slice</a>
</li>
<li>
- <a href="#bytebase.store.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a>
+ <a href="#bytebase.store.Announcement"><span class="badge">M</span>Announcement</a>
</li>
<li>
- <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a>
+ <a href="#bytebase.store.AppIMSetting"><span class="badge">M</span>AppIMSetting</a>
</li>
<li>
- <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a>
+ <a href="#bytebase.store.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a>
</li>
<li>
- <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a>
+ <a href="#bytebase.store.AppIMSetting.Lark"><span class="badge">M</span>AppIMSetting.Lark</a>
</li>
<li>
- <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a>
+ <a href="#bytebase.store.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a>
</li>
<li>
- <a href="#bytebase.store.ExternalApprovalPayload"><span class="badge">M</span>ExternalApprovalPayload</a>
+ <a href="#bytebase.store.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a>
</li>
<li>
- <a href="#bytebase.store.ExternalApprovalSetting"><span class="badge">M</span>ExternalApprovalSetting</a>
+ <a href="#bytebase.store.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a>
</li>
<li>
- <a href="#bytebase.store.ExternalApprovalSetting.Node"><span class="badge">M</span>ExternalApprovalSetting.Node</a>
+ <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting"><span class="badge">M</span>MaskingAlgorithmSetting</a>
+ <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm</a>
+ <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.FullMask</a>
+ <a href="#bytebase.store.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a>
+ <a href="#bytebase.store.ExternalApprovalPayload"><span class="badge">M</span>ExternalApprovalPayload</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.MD5Mask</a>
+ <a href="#bytebase.store.ExternalApprovalSetting"><span class="badge">M</span>ExternalApprovalSetting</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask</a>
+ <a href="#bytebase.store.ExternalApprovalSetting.Node"><span class="badge">M</span>ExternalApprovalSetting.Node</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a>
+ <a href="#bytebase.store.MaskingAlgorithmSetting"><span class="badge">M</span>MaskingAlgorithmSetting</a>
</li>
<li>
@@ -1399,15 +1399,15 @@
<li>
- <a href="#bytebase.store.Announcement.AlertLevel"><span class="badge">E</span>Announcement.AlertLevel</a>
+ <a href="#bytebase.store.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>Algorithm.InnerOuterMask.MaskType</a>
</li>
<li>
- <a href="#bytebase.store.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a>
+ <a href="#bytebase.store.Announcement.AlertLevel"><span class="badge">E</span>Announcement.AlertLevel</a>
</li>
<li>
- <a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a>
+ <a href="#bytebase.store.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a>
</li>
<li>
@@ -10571,6 +10571,239 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRu
+ <h3 id="bytebase.store.Algorithm">Algorithm</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>id is the uuid for masking algorithm. </p></td>
+ </tr>
+
+ <tr>
+ <td>title</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>title is the title for masking algorithm. </p></td>
+ </tr>
+
+ <tr>
+ <td>description</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>description is the description for masking algorithm. </p></td>
+ </tr>
+
+ <tr>
+ <td>category</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+The range of accepted Payload is decided by the category.
+MASK: FullMask, RangeMask
+HASH: MD5Mask </p></td>
+ </tr>
+
+ <tr>
+ <td>full_mask</td>
+ <td><a href="#bytebase.store.Algorithm.FullMask">Algorithm.FullMask</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>range_mask</td>
+ <td><a href="#bytebase.store.Algorithm.RangeMask">Algorithm.RangeMask</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>md5_mask</td>
+ <td><a href="#bytebase.store.Algorithm.MD5Mask">Algorithm.MD5Mask</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>inner_outer_mask</td>
+ <td><a href="#bytebase.store.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.Algorithm.FullMask">Algorithm.FullMask</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>substitution</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>substitution is the string used to replace the original value, the
+max length of the string is 16 bytes. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>prefix_len</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>suffix_len</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>substitution</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>type</td>
+ <td><a href="#bytebase.store.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.Algorithm.MD5Mask">Algorithm.MD5Mask</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>salt</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.Algorithm.RangeMask">Algorithm.RangeMask</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>slices</td>
+ <td><a href="#bytebase.store.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</a></td>
+ <td>repeated</td>
+ <td><p>We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
+But frontend can be started with a single rule easily. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>start</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>start is the start index of the original value, start from 0 and should be less than stop. </p></td>
+ </tr>
+
+ <tr>
+ <td>end</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>stop is the stop index of the original value, should be less than the length of the original value. </p></td>
+ </tr>
+
+ <tr>
+ <td>substitution</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>OriginalValue[start:end) would be replaced with replace_with. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.Announcement">Announcement</h3>
<p></p>
@@ -11108,7 +11341,7 @@ service to identify the node. </p></td>
<tr>
<td>algorithms</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</a></td>
+ <td><a href="#bytebase.store.Algorithm">Algorithm</a></td>
<td>repeated</td>
<td><p>algorithms is the list of masking algorithms. </p></td>
</tr>
@@ -11120,240 +11353,7 @@ service to identify the node. </p></td>
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>id is the uuid for masking algorithm. </p></td>
- </tr>
-
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>title is the title for masking algorithm. </p></td>
- </tr>
-
- <tr>
- <td>description</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>description is the description for masking algorithm. </p></td>
- </tr>
-
- <tr>
- <td>category</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
-The range of accepted Payload is decided by the category.
-MASK: FullMask, RangeMask
-HASH: MD5Mask </p></td>
- </tr>
-
- <tr>
- <td>full_mask</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>range_mask</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>md5_mask</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>inner_outer_mask</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>substitution</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>substitution is the string used to replace the original value, the
-max length of the string is 16 bytes. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>prefix_len</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>suffix_len</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>substitution</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>type</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>salt</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>slices</td>
- <td><a href="#bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a></td>
- <td>repeated</td>
- <td><p>We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
-But frontend can be started with a single rule easily. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>start</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>start is the start index of the original value, start from 0 and should be less than stop. </p></td>
- </tr>
-
- <tr>
- <td>end</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>stop is the stop index of the original value, should be less than the length of the original value. </p></td>
- </tr>
-
- <tr>
- <td>substitution</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>OriginalValue[start:end) would be replaced with replace_with. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</h3>
+ <h3 id="bytebase.store.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</h3>
<p></p>
@@ -11984,8 +11984,8 @@ GitOps workflow. The webhook endpoint points to the backend. </p></td>
- <h3 id="bytebase.store.Announcement.AlertLevel">Announcement.AlertLevel</h3>
- <p>We support three levels of AlertLevel: INFO, WARNING, and ERROR.</p>
+ <h3 id="bytebase.store.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</h3>
+ <p></p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -11993,34 +11993,28 @@ GitOps workflow. The webhook endpoint points to the backend. </p></td>
<tbody>
<tr>
- <td>ALERT_LEVEL_UNSPECIFIED</td>
+ <td>MASK_TYPE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>ALERT_LEVEL_INFO</td>
+ <td>INNER</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>ALERT_LEVEL_WARNING</td>
+ <td>OUTER</td>
<td>2</td>
<td><p></p></td>
</tr>
- <tr>
- <td>ALERT_LEVEL_CRITICAL</td>
- <td>3</td>
- <td><p></p></td>
- </tr>
-
</tbody>
</table>
- <h3 id="bytebase.store.DatabaseChangeMode">DatabaseChangeMode</h3>
- <p></p>
+ <h3 id="bytebase.store.Announcement.AlertLevel">Announcement.AlertLevel</h3>
+ <p>We support three levels of AlertLevel: INFO, WARNING, and ERROR.</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -12028,28 +12022,33 @@ GitOps workflow. The webhook endpoint points to the backend. </p></td>
<tbody>
<tr>
- <td>DATABASE_CHANGE_MODE_UNSPECIFIED</td>
+ <td>ALERT_LEVEL_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>PIPELINE</td>
+ <td>ALERT_LEVEL_INFO</td>
<td>1</td>
- <td><p>A more advanced database change process, including custom approval workflows and other advanced features.
-Default to this mode.</p></td>
+ <td><p></p></td>
</tr>
<tr>
- <td>EDITOR</td>
+ <td>ALERT_LEVEL_WARNING</td>
<td>2</td>
- <td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>ALERT_LEVEL_CRITICAL</td>
+ <td>3</td>
+ <td><p></p></td>
</tr>
</tbody>
</table>
- <h3 id="bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</h3>
+ <h3 id="bytebase.store.DatabaseChangeMode">DatabaseChangeMode</h3>
<p></p>
<table class="enum-table">
<thead>
@@ -12058,21 +12057,22 @@ Default to this mode.</p></td>
<tbody>
<tr>
- <td>MASK_TYPE_UNSPECIFIED</td>
+ <td>DATABASE_CHANGE_MODE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>INNER</td>
+ <td>PIPELINE</td>
<td>1</td>
- <td><p></p></td>
+ <td><p>A more advanced database change process, including custom approval workflows and other advanced features.
+Default to this mode.</p></td>
</tr>
<tr>
- <td>OUTER</td>
+ <td>EDITOR</td>
<td>2</td>
- <td><p></p></td>
+ <td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td>
</tr>
</tbody>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 56dc70d3e1..bd5d8bba71 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -244,6 +244,12 @@
- [v1/setting_service.proto](#v1_setting_service-proto)
- [AgentPluginSetting](#bytebase-v1-AgentPluginSetting)
+ - [Algorithm](#bytebase-v1-Algorithm)
+ - [Algorithm.FullMask](#bytebase-v1-Algorithm-FullMask)
+ - [Algorithm.InnerOuterMask](#bytebase-v1-Algorithm-InnerOuterMask)
+ - [Algorithm.MD5Mask](#bytebase-v1-Algorithm-MD5Mask)
+ - [Algorithm.RangeMask](#bytebase-v1-Algorithm-RangeMask)
+ - [Algorithm.RangeMask.Slice](#bytebase-v1-Algorithm-RangeMask-Slice)
- [Announcement](#bytebase-v1-Announcement)
- [AppIMSetting](#bytebase-v1-AppIMSetting)
- [AppIMSetting.Feishu](#bytebase-v1-AppIMSetting-Feishu)
@@ -262,12 +268,6 @@
- [ListSettingsRequest](#bytebase-v1-ListSettingsRequest)
- [ListSettingsResponse](#bytebase-v1-ListSettingsResponse)
- [MaskingAlgorithmSetting](#bytebase-v1-MaskingAlgorithmSetting)
- - [MaskingAlgorithmSetting.Algorithm](#bytebase-v1-MaskingAlgorithmSetting-Algorithm)
- - [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask)
- - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask)
- - [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask)
- - [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask)
- - [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice)
- [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting)
- [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)
- [SCIMSetting](#bytebase-v1-SCIMSetting)
@@ -286,9 +286,9 @@
- [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting)
- [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting)
+ - [Algorithm.InnerOuterMask.MaskType](#bytebase-v1-Algorithm-InnerOuterMask-MaskType)
- [Announcement.AlertLevel](#bytebase-v1-Announcement-AlertLevel)
- [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode)
- - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType)
- [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication)
- [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption)
@@ -4598,6 +4598,108 @@ ANY means approving any node will proceed.
+<a name="bytebase-v1-Algorithm"></a>
+
+### Algorithm
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| id | [string](#string) | | id is the uuid for masking algorithm. |
+| title | [string](#string) | | title is the title for masking algorithm. |
+| description | [string](#string) | | description is the description for masking algorithm. |
+| category | [string](#string) | | Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH. The range of accepted Payload is decided by the category. MASK: FullMask, RangeMask HASH: MD5Mask |
+| full_mask | [Algorithm.FullMask](#bytebase-v1-Algorithm-FullMask) | | |
+| range_mask | [Algorithm.RangeMask](#bytebase-v1-Algorithm-RangeMask) | | |
+| md5_mask | [Algorithm.MD5Mask](#bytebase-v1-Algorithm-MD5Mask) | | |
+| inner_outer_mask | [Algorithm.InnerOuterMask](#bytebase-v1-Algorithm-InnerOuterMask) | | |
+
+
+
+
+
+
+<a name="bytebase-v1-Algorithm-FullMask"></a>
+
+### Algorithm.FullMask
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| substitution | [string](#string) | | substitution is the string used to replace the original value, the max length of the string is 16 bytes. |
+
+
+
+
+
+
+<a name="bytebase-v1-Algorithm-InnerOuterMask"></a>
+
+### Algorithm.InnerOuterMask
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| prefix_len | [int32](#int32) | | |
+| suffix_len | [int32](#int32) | | |
+| type | [Algorithm.InnerOuterMask.MaskType](#bytebase-v1-Algorithm-InnerOuterMask-MaskType) | | |
+| substitution | [string](#string) | | |
+
+
+
+
+
+
+<a name="bytebase-v1-Algorithm-MD5Mask"></a>
+
+### Algorithm.MD5Mask
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| salt | [string](#string) | | salt is the salt value to generate a different hash that with the word alone. |
+
+
+
+
+
+
+<a name="bytebase-v1-Algorithm-RangeMask"></a>
+
+### Algorithm.RangeMask
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| slices | [Algorithm.RangeMask.Slice](#bytebase-v1-Algorithm-RangeMask-Slice) | repeated | We store it as a repeated field to face the fact that the original value may have multiple parts should be masked. But frontend can be started with a single rule easily. |
+
+
+
+
+
+
+<a name="bytebase-v1-Algorithm-RangeMask-Slice"></a>
+
+### Algorithm.RangeMask.Slice
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| start | [int32](#int32) | | start is the start index of the original value, start from 0 and should be less than stop. |
+| end | [int32](#int32) | | stop is the stop index of the original value, should be less than the length of the original value. |
+| substitution | [string](#string) | | substitution is the string used to replace the OriginalValue[start:end). |
+
+
+
+
+
+
<a name="bytebase-v1-Announcement"></a>
### Announcement
@@ -4890,109 +4992,7 @@ When paginating, all other parameters provided to `ListSettings` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| algorithms | [MaskingAlgorithmSetting.Algorithm](#bytebase-v1-MaskingAlgorithmSetting-Algorithm) | repeated | algorithms is the list of masking algorithms. |
-
-
-
-
-
-
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm"></a>
-
-### MaskingAlgorithmSetting.Algorithm
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| id | [string](#string) | | id is the uuid for masking algorithm. |
-| title | [string](#string) | | title is the title for masking algorithm. |
-| description | [string](#string) | | description is the description for masking algorithm. |
-| category | [string](#string) | | Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH. The range of accepted Payload is decided by the category. MASK: FullMask, RangeMask HASH: MD5Mask |
-| full_mask | [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask) | | |
-| range_mask | [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask) | | |
-| md5_mask | [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask) | | |
-| inner_outer_mask | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask) | | |
-
-
-
-
-
-
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask"></a>
-
-### MaskingAlgorithmSetting.Algorithm.FullMask
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| substitution | [string](#string) | | substitution is the string used to replace the original value, the max length of the string is 16 bytes. |
-
-
-
-
-
-
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask"></a>
-
-### MaskingAlgorithmSetting.Algorithm.InnerOuterMask
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| prefix_len | [int32](#int32) | | |
-| suffix_len | [int32](#int32) | | |
-| type | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType) | | |
-| substitution | [string](#string) | | |
-
-
-
-
-
-
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask"></a>
-
-### MaskingAlgorithmSetting.Algorithm.MD5Mask
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| salt | [string](#string) | | salt is the salt value to generate a different hash that with the word alone. |
-
-
-
-
-
-
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask"></a>
-
-### MaskingAlgorithmSetting.Algorithm.RangeMask
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| slices | [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice) | repeated | We store it as a repeated field to face the fact that the original value may have multiple parts should be masked. But frontend can be started with a single rule easily. |
-
-
-
-
-
-
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice"></a>
-
-### MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| start | [int32](#int32) | | start is the start index of the original value, start from 0 and should be less than stop. |
-| end | [int32](#int32) | | stop is the stop index of the original value, should be less than the length of the original value. |
-| substitution | [string](#string) | | substitution is the string used to replace the OriginalValue[start:end). |
+| algorithms | [Algorithm](#bytebase-v1-Algorithm) | repeated | algorithms is the list of masking algorithms. |
@@ -5327,6 +5327,19 @@ The external URL is used for: 1. Constructing the correct callback URL when conf
+<a name="bytebase-v1-Algorithm-InnerOuterMask-MaskType"></a>
+
+### Algorithm.InnerOuterMask.MaskType
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| MASK_TYPE_UNSPECIFIED | 0 | |
+| INNER | 1 | |
+| OUTER | 2 | |
+
+
+
<a name="bytebase-v1-Announcement-AlertLevel"></a>
### Announcement.AlertLevel
@@ -5354,19 +5367,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.
-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType"></a>
-
-### MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
-
-
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| MASK_TYPE_UNSPECIFIED | 0 | |
-| INNER | 1 | |
-| OUTER | 2 | |
-
-
-
<a name="bytebase-v1-SMTPMailDeliverySettingValue-Authentication"></a>
### SMTPMailDeliverySettingValue.Authentication
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 00bf95b46a..fa37bf702f 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -1111,99 +1111,99 @@
</li>
<li>
- <a href="#bytebase.v1.Announcement"><span class="badge">M</span>Announcement</a>
+ <a href="#bytebase.v1.Algorithm"><span class="badge">M</span>Algorithm</a>
</li>
<li>
- <a href="#bytebase.v1.AppIMSetting"><span class="badge">M</span>AppIMSetting</a>
+ <a href="#bytebase.v1.Algorithm.FullMask"><span class="badge">M</span>Algorithm.FullMask</a>
</li>
<li>
- <a href="#bytebase.v1.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a>
+ <a href="#bytebase.v1.Algorithm.InnerOuterMask"><span class="badge">M</span>Algorithm.InnerOuterMask</a>
</li>
<li>
- <a href="#bytebase.v1.AppIMSetting.Lark"><span class="badge">M</span>AppIMSetting.Lark</a>
+ <a href="#bytebase.v1.Algorithm.MD5Mask"><span class="badge">M</span>Algorithm.MD5Mask</a>
</li>
<li>
- <a href="#bytebase.v1.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a>
+ <a href="#bytebase.v1.Algorithm.RangeMask"><span class="badge">M</span>Algorithm.RangeMask</a>
</li>
<li>
- <a href="#bytebase.v1.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a>
+ <a href="#bytebase.v1.Algorithm.RangeMask.Slice"><span class="badge">M</span>Algorithm.RangeMask.Slice</a>
</li>
<li>
- <a href="#bytebase.v1.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a>
+ <a href="#bytebase.v1.Announcement"><span class="badge">M</span>Announcement</a>
</li>
<li>
- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a>
+ <a href="#bytebase.v1.AppIMSetting"><span class="badge">M</span>AppIMSetting</a>
</li>
<li>
- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a>
+ <a href="#bytebase.v1.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a>
</li>
<li>
- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a>
+ <a href="#bytebase.v1.AppIMSetting.Lark"><span class="badge">M</span>AppIMSetting.Lark</a>
</li>
<li>
- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a>
+ <a href="#bytebase.v1.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a>
</li>
<li>
- <a href="#bytebase.v1.ExternalApprovalSetting"><span class="badge">M</span>ExternalApprovalSetting</a>
+ <a href="#bytebase.v1.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a>
</li>
<li>
- <a href="#bytebase.v1.ExternalApprovalSetting.Node"><span class="badge">M</span>ExternalApprovalSetting.Node</a>
+ <a href="#bytebase.v1.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a>
</li>
<li>
- <a href="#bytebase.v1.GetSettingRequest"><span class="badge">M</span>GetSettingRequest</a>
+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a>
</li>
<li>
- <a href="#bytebase.v1.GetSettingResponse"><span class="badge">M</span>GetSettingResponse</a>
+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a>
</li>
<li>
- <a href="#bytebase.v1.ListSettingsRequest"><span class="badge">M</span>ListSettingsRequest</a>
+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a>
</li>
<li>
- <a href="#bytebase.v1.ListSettingsResponse"><span class="badge">M</span>ListSettingsResponse</a>
+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting"><span class="badge">M</span>MaskingAlgorithmSetting</a>
+ <a href="#bytebase.v1.ExternalApprovalSetting"><span class="badge">M</span>ExternalApprovalSetting</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm</a>
+ <a href="#bytebase.v1.ExternalApprovalSetting.Node"><span class="badge">M</span>ExternalApprovalSetting.Node</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.FullMask</a>
+ <a href="#bytebase.v1.GetSettingRequest"><span class="badge">M</span>GetSettingRequest</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a>
+ <a href="#bytebase.v1.GetSettingResponse"><span class="badge">M</span>GetSettingResponse</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.MD5Mask</a>
+ <a href="#bytebase.v1.ListSettingsRequest"><span class="badge">M</span>ListSettingsRequest</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask</a>
+ <a href="#bytebase.v1.ListSettingsResponse"><span class="badge">M</span>ListSettingsResponse</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a>
+ <a href="#bytebase.v1.MaskingAlgorithmSetting"><span class="badge">M</span>MaskingAlgorithmSetting</a>
</li>
<li>
@@ -1276,15 +1276,15 @@
<li>
- <a href="#bytebase.v1.Announcement.AlertLevel"><span class="badge">E</span>Announcement.AlertLevel</a>
+ <a href="#bytebase.v1.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>Algorithm.InnerOuterMask.MaskType</a>
</li>
<li>
- <a href="#bytebase.v1.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a>
+ <a href="#bytebase.v1.Announcement.AlertLevel"><span class="badge">E</span>Announcement.AlertLevel</a>
</li>
<li>
- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a>
+ <a href="#bytebase.v1.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a>
</li>
<li>
@@ -13728,7 +13728,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.Announcement">Announcement</h3>
+ <h3 id="bytebase.v1.Algorithm">Algorithm</h3>
<p></p>
@@ -13739,67 +13739,60 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>level</td>
- <td><a href="#bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</a></td>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>The alert level of announcemnt </p></td>
+ <td><p>id is the uuid for masking algorithm. </p></td>
</tr>
<tr>
- <td>text</td>
+ <td>title</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The text of announcemnt </p></td>
+ <td><p>title is the title for masking algorithm. </p></td>
</tr>
<tr>
- <td>link</td>
+ <td>description</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The optional link, user can follow the link to check extra details </p></td>
+ <td><p>description is the description for masking algorithm. </p></td>
</tr>
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.AppIMSetting">AppIMSetting</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
+ <tr>
+ <td>category</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+The range of accepted Payload is decided by the category.
+MASK: FullMask, RangeMask
+HASH: MD5Mask </p></td>
+ </tr>
<tr>
- <td>slack</td>
- <td><a href="#bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</a></td>
+ <td>full_mask</td>
+ <td><a href="#bytebase.v1.Algorithm.FullMask">Algorithm.FullMask</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>feishu</td>
- <td><a href="#bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</a></td>
+ <td>range_mask</td>
+ <td><a href="#bytebase.v1.Algorithm.RangeMask">Algorithm.RangeMask</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>wecom</td>
- <td><a href="#bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</a></td>
+ <td>md5_mask</td>
+ <td><a href="#bytebase.v1.Algorithm.MD5Mask">Algorithm.MD5Mask</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>lark</td>
- <td><a href="#bytebase.v1.AppIMSetting.Lark">AppIMSetting.Lark</a></td>
+ <td>inner_outer_mask</td>
+ <td><a href="#bytebase.v1.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</a></td>
<td></td>
<td><p> </p></td>
</tr>
@@ -13811,7 +13804,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</h3>
+ <h3 id="bytebase.v1.Algorithm.FullMask">Algorithm.FullMask</h3>
<p></p>
@@ -13822,24 +13815,11 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>enabled</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>app_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>app_secret</td>
+ <td>substitution</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>substitution is the string used to replace the original value, the
+max length of the string is 16 bytes. </p></td>
</tr>
</tbody>
@@ -13849,7 +13829,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.AppIMSetting.Lark">AppIMSetting.Lark</h3>
+ <h3 id="bytebase.v1.Algorithm.InnerOuterMask">Algorithm.InnerOuterMask</h3>
<p></p>
@@ -13860,21 +13840,28 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>enabled</td>
- <td><a href="#bool">bool</a></td>
+ <td>prefix_len</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>app_id</td>
- <td><a href="#string">string</a></td>
+ <td>suffix_len</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>app_secret</td>
+ <td>type</td>
+ <td><a href="#bytebase.v1.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>substitution</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -13887,7 +13874,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</h3>
+ <h3 id="bytebase.v1.Algorithm.MD5Mask">Algorithm.MD5Mask</h3>
<p></p>
@@ -13898,17 +13885,10 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>enabled</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>token</td>
+ <td>salt</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td>
</tr>
</tbody>
@@ -13918,7 +13898,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</h3>
+ <h3 id="bytebase.v1.Algorithm.RangeMask">Algorithm.RangeMask</h3>
<p></p>
@@ -13929,31 +13909,11 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>enabled</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>corp_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>agent_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>secret</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
+ <td>slices</td>
+ <td><a href="#bytebase.v1.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</a></td>
+ <td>repeated</td>
+ <td><p>We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
+But frontend can be started with a single rule easily. </p></td>
</tr>
</tbody>
@@ -13963,7 +13923,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.DataClassificationSetting">DataClassificationSetting</h3>
+ <h3 id="bytebase.v1.Algorithm.RangeMask.Slice">Algorithm.RangeMask.Slice</h3>
<p></p>
@@ -13974,10 +13934,24 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>configs</td>
- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</a></td>
- <td>repeated</td>
- <td><p> </p></td>
+ <td>start</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>start is the start index of the original value, start from 0 and should be less than stop. </p></td>
+ </tr>
+
+ <tr>
+ <td>end</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>stop is the stop index of the original value, should be less than the length of the original value. </p></td>
+ </tr>
+
+ <tr>
+ <td>substitution</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>substitution is the string used to replace the OriginalValue[start:end). </p></td>
</tr>
</tbody>
@@ -13987,7 +13961,7 @@ The access is based on approval flow.</p></td>
- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</h3>
+ <h3 id="bytebase.v1.Announcement">Announcement</h3>
<p></p>
@@ -13998,42 +13972,24 @@ The access is based on approval flow.</p></td>
<tbody>
<tr>
- <td>id</td>
- <td><a href="#string">string</a></td>
+ <td>level</td>
+ <td><a href="#bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</a></td>
<td></td>
- <td><p>id is the uuid for classification. Each project can chose one classification config. </p></td>
+ <td><p>The alert level of announcemnt </p></td>
</tr>
<tr>
- <td>title</td>
+ <td>text</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>levels</td>
- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</a></td>
- <td>repeated</td>
- <td><p>levels is user defined level list for classification.
-The order for the level decides its priority. </p></td>
- </tr>
-
- <tr>
- <td>classification</td>
- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></td>
- <td>repeated</td>
- <td><p>classification is the id - DataClassification map.
-The id should in [0-9]&#43;-[0-9]&#43;-[0-9]&#43; format. </p></td>
+ <td><p>The text of announcemnt </p></td>
</tr>
<tr>
- <td>classification_from_config</td>
- <td><a href="#bool">bool</a></td>
+ <td>link</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>If true, we will only store the classification in the config.
-Otherwise we will get the classification from table/column comment,
-and write back to the schema metadata. </p></td>
+ <td><p>The optional link, user can follow the link to check extra details </p></td>
</tr>
</tbody>
@@ -14043,7 +13999,7 @@ and write back to the schema metadata. </p></td>
- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</h3>
+ <h3 id="bytebase.v1.AppIMSetting">AppIMSetting</h3>
<p></p>
@@ -14054,15 +14010,29 @@ and write back to the schema metadata. </p></td>
<tbody>
<tr>
- <td>key</td>
- <td><a href="#string">string</a></td>
+ <td>slack</td>
+ <td><a href="#bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>value</td>
- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</a></td>
+ <td>feishu</td>
+ <td><a href="#bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>wecom</td>
+ <td><a href="#bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>lark</td>
+ <td><a href="#bytebase.v1.AppIMSetting.Lark">AppIMSetting.Lark</a></td>
<td></td>
<td><p> </p></td>
</tr>
@@ -14074,7 +14044,7 @@ and write back to the schema metadata. </p></td>
- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</h3>
+ <h3 id="bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</h3>
<p></p>
@@ -14085,30 +14055,23 @@ and write back to the schema metadata. </p></td>
<tbody>
<tr>
- <td>id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>id is the classification id in [0-9]&#43;-[0-9]&#43;-[0-9]&#43; format. </p></td>
- </tr>
-
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
+ <td>enabled</td>
+ <td><a href="#bool">bool</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>description</td>
+ <td>app_id</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>level_id</td>
+ <td>app_secret</td>
<td><a href="#string">string</a></td>
- <td>optional</td>
+ <td></td>
<td><p> </p></td>
</tr>
@@ -14119,7 +14082,7 @@ and write back to the schema metadata. </p></td>
- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</h3>
+ <h3 id="bytebase.v1.AppIMSetting.Lark">AppIMSetting.Lark</h3>
<p></p>
@@ -14130,21 +14093,21 @@ and write back to the schema metadata. </p></td>
<tbody>
<tr>
- <td>id</td>
- <td><a href="#string">string</a></td>
+ <td>enabled</td>
+ <td><a href="#bool">bool</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>title</td>
+ <td>app_id</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>description</td>
+ <td>app_secret</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -14157,7 +14120,7 @@ and write back to the schema metadata. </p></td>
- <h3 id="bytebase.v1.ExternalApprovalSetting">ExternalApprovalSetting</h3>
+ <h3 id="bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</h3>
<p></p>
@@ -14168,9 +14131,16 @@ and write back to the schema metadata. </p></td>
<tbody>
<tr>
- <td>nodes</td>
- <td><a href="#bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</a></td>
- <td>repeated</td>
+ <td>enabled</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
<td><p> </p></td>
</tr>
@@ -14181,7 +14151,7 @@ and write back to the schema metadata. </p></td>
- <h3 id="bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</h3>
+ <h3 id="bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</h3>
<p></p>
@@ -14192,49 +14162,31 @@ and write back to the schema metadata. </p></td>
<tbody>
<tr>
- <td>id</td>
- <td><a href="#string">string</a></td>
+ <td>enabled</td>
+ <td><a href="#bool">bool</a></td>
<td></td>
- <td><p>A unique identifier for a node in UUID format.
-We will also include the id in the message sending to the external relay service to identify the node. </p></td>
+ <td><p> </p></td>
</tr>
<tr>
- <td>title</td>
+ <td>corp_id</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The title of the node. </p></td>
+ <td><p> </p></td>
</tr>
<tr>
- <td>endpoint</td>
+ <td>agent_id</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The external endpoint for the relay service, e.g. &#34;http://hello:1234&#34;. </p></td>
+ <td><p> </p></td>
</tr>
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.GetSettingRequest">GetSettingRequest</h3>
- <p>The request message for getting a setting.</p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
<tr>
- <td>name</td>
+ <td>secret</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The resource name of the setting. </p></td>
+ <td><p> </p></td>
</tr>
</tbody>
@@ -14244,8 +14196,8 @@ We will also include the id in the message sending to the external relay service
- <h3 id="bytebase.v1.GetSettingResponse">GetSettingResponse</h3>
- <p>The response message for getting a setting.</p>
+ <h3 id="bytebase.v1.DataClassificationSetting">DataClassificationSetting</h3>
+ <p></p>
<table class="field-table">
@@ -14255,9 +14207,9 @@ We will also include the id in the message sending to the external relay service
<tbody>
<tr>
- <td>setting</td>
- <td><a href="#bytebase.v1.Setting">Setting</a></td>
- <td></td>
+ <td>configs</td>
+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</a></td>
+ <td>repeated</td>
<td><p> </p></td>
</tr>
@@ -14268,7 +14220,7 @@ We will also include the id in the message sending to the external relay service
- <h3 id="bytebase.v1.ListSettingsRequest">ListSettingsRequest</h3>
+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</h3>
<p></p>
@@ -14279,58 +14231,42 @@ We will also include the id in the message sending to the external relay service
<tbody>
<tr>
- <td>page_size</td>
- <td><a href="#int32">int32</a></td>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>Not used.
-The maximum number of settings to return. The service may return fewer than
-this value.
-If unspecified, at most 10 settings will be returned.
-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>
+ <td><p>id is the uuid for classification. Each project can chose one classification config. </p></td>
</tr>
<tr>
- <td>page_token</td>
+ <td>title</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>Not used.
-A page token, received from a previous `ListSettings` call.
-Provide this to retrieve the subsequent page.
-
-When paginating, all other parameters provided to `ListSettings` must match
-the call that provided the page token. </p></td>
+ <td><p> </p></td>
</tr>
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ListSettingsResponse">ListSettingsResponse</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
+ <tr>
+ <td>levels</td>
+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</a></td>
+ <td>repeated</td>
+ <td><p>levels is user defined level list for classification.
+The order for the level decides its priority. </p></td>
+ </tr>
<tr>
- <td>settings</td>
- <td><a href="#bytebase.v1.Setting">Setting</a></td>
+ <td>classification</td>
+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></td>
<td>repeated</td>
- <td><p>The settings from the specified request. </p></td>
+ <td><p>classification is the id - DataClassification map.
+The id should in [0-9]&#43;-[0-9]&#43;-[0-9]&#43; format. </p></td>
</tr>
<tr>
- <td>next_page_token</td>
- <td><a href="#string">string</a></td>
+ <td>classification_from_config</td>
+ <td><a href="#bool">bool</a></td>
<td></td>
- <td><p>A token, which can be sent as `page_token` to retrieve the next page.
-If this field is omitted, there are no subsequent pages. </p></td>
+ <td><p>If true, we will only store the classification in the config.
+Otherwise we will get the classification from table/column comment,
+and write back to the schema metadata. </p></td>
</tr>
</tbody>
@@ -14340,7 +14276,7 @@ If this field is omitted, there are no subsequent pages. </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting">MaskingAlgorithmSetting</h3>
+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</h3>
<p></p>
@@ -14351,10 +14287,17 @@ If this field is omitted, there are no subsequent pages. </p></td>
<tbody>
<tr>
- <td>algorithms</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</a></td>
- <td>repeated</td>
- <td><p>algorithms is the list of masking algorithms. </p></td>
+ <td>key</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>value</td>
+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</a></td>
+ <td></td>
+ <td><p> </p></td>
</tr>
</tbody>
@@ -14364,7 +14307,7 @@ If this field is omitted, there are no subsequent pages. </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</h3>
+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</h3>
<p></p>
@@ -14378,57 +14321,64 @@ If this field is omitted, there are no subsequent pages. </p></td>
<td>id</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>id is the uuid for masking algorithm. </p></td>
+ <td><p>id is the classification id in [0-9]&#43;-[0-9]&#43;-[0-9]&#43; format. </p></td>
</tr>
<tr>
<td>title</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>title is the title for masking algorithm. </p></td>
+ <td><p> </p></td>
</tr>
<tr>
<td>description</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>description is the description for masking algorithm. </p></td>
+ <td><p> </p></td>
</tr>
<tr>
- <td>category</td>
+ <td>level_id</td>
<td><a href="#string">string</a></td>
- <td></td>
- <td><p>Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
-The range of accepted Payload is decided by the category.
-MASK: FullMask, RangeMask
-HASH: MD5Mask </p></td>
- </tr>
-
- <tr>
- <td>full_mask</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</a></td>
- <td></td>
+ <td>optional</td>
<td><p> </p></td>
</tr>
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
<tr>
- <td>range_mask</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</a></td>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>md5_mask</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</a></td>
+ <td>title</td>
+ <td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>inner_outer_mask</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a></td>
+ <td>description</td>
+ <td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
@@ -14440,7 +14390,7 @@ HASH: MD5Mask </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</h3>
+ <h3 id="bytebase.v1.ExternalApprovalSetting">ExternalApprovalSetting</h3>
<p></p>
@@ -14451,11 +14401,10 @@ HASH: MD5Mask </p></td>
<tbody>
<tr>
- <td>substitution</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>substitution is the string used to replace the original value, the
-max length of the string is 16 bytes. </p></td>
+ <td>nodes</td>
+ <td><a href="#bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
</tr>
</tbody>
@@ -14465,7 +14414,7 @@ max length of the string is 16 bytes. </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</h3>
+ <h3 id="bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</h3>
<p></p>
@@ -14476,31 +14425,25 @@ max length of the string is 16 bytes. </p></td>
<tbody>
<tr>
- <td>prefix_len</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>suffix_len</td>
- <td><a href="#int32">int32</a></td>
+ <td>id</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>A unique identifier for a node in UUID format.
+We will also include the id in the message sending to the external relay service to identify the node. </p></td>
</tr>
<tr>
- <td>type</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a></td>
+ <td>title</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The title of the node. </p></td>
</tr>
<tr>
- <td>substitution</td>
+ <td>endpoint</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The external endpoint for the relay service, e.g. &#34;http://hello:1234&#34;. </p></td>
</tr>
</tbody>
@@ -14510,8 +14453,8 @@ max length of the string is 16 bytes. </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</h3>
- <p></p>
+ <h3 id="bytebase.v1.GetSettingRequest">GetSettingRequest</h3>
+ <p>The request message for getting a setting.</p>
<table class="field-table">
@@ -14521,10 +14464,10 @@ max length of the string is 16 bytes. </p></td>
<tbody>
<tr>
- <td>salt</td>
+ <td>name</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td>
+ <td><p>The resource name of the setting. </p></td>
</tr>
</tbody>
@@ -14534,8 +14477,8 @@ max length of the string is 16 bytes. </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</h3>
- <p></p>
+ <h3 id="bytebase.v1.GetSettingResponse">GetSettingResponse</h3>
+ <p>The response message for getting a setting.</p>
<table class="field-table">
@@ -14545,11 +14488,10 @@ max length of the string is 16 bytes. </p></td>
<tbody>
<tr>
- <td>slices</td>
- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a></td>
- <td>repeated</td>
- <td><p>We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
-But frontend can be started with a single rule easily. </p></td>
+ <td>setting</td>
+ <td><a href="#bytebase.v1.Setting">Setting</a></td>
+ <td></td>
+ <td><p> </p></td>
</tr>
</tbody>
@@ -14559,7 +14501,7 @@ But frontend can be started with a single rule easily. </p></td>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</h3>
+ <h3 id="bytebase.v1.ListSettingsRequest">ListSettingsRequest</h3>
<p></p>
@@ -14570,24 +14512,82 @@ But frontend can be started with a single rule easily. </p></td>
<tbody>
<tr>
- <td>start</td>
+ <td>page_size</td>
<td><a href="#int32">int32</a></td>
<td></td>
- <td><p>start is the start index of the original value, start from 0 and should be less than stop. </p></td>
+ <td><p>Not used.
+The maximum number of settings to return. The service may return fewer than
+this value.
+If unspecified, at most 10 settings will be returned.
+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>
</tr>
<tr>
- <td>end</td>
- <td><a href="#int32">int32</a></td>
+ <td>page_token</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p>stop is the stop index of the original value, should be less than the length of the original value. </p></td>
+ <td><p>Not used.
+A page token, received from a previous `ListSettings` call.
+Provide this to retrieve the subsequent page.
+
+When paginating, all other parameters provided to `ListSettings` must match
+the call that provided the page token. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.ListSettingsResponse">ListSettingsResponse</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>settings</td>
+ <td><a href="#bytebase.v1.Setting">Setting</a></td>
+ <td>repeated</td>
+ <td><p>The settings from the specified request. </p></td>
</tr>
<tr>
- <td>substitution</td>
+ <td>next_page_token</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>substitution is the string used to replace the OriginalValue[start:end). </p></td>
+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.
+If this field is omitted, there are no subsequent pages. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.MaskingAlgorithmSetting">MaskingAlgorithmSetting</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>algorithms</td>
+ <td><a href="#bytebase.v1.Algorithm">Algorithm</a></td>
+ <td>repeated</td>
+ <td><p>algorithms is the list of masking algorithms. </p></td>
</tr>
</tbody>
@@ -15486,8 +15486,8 @@ The external URL is used for:
- <h3 id="bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</h3>
- <p>We support three levels of AlertLevel: INFO, WARNING, and ERROR.</p>
+ <h3 id="bytebase.v1.Algorithm.InnerOuterMask.MaskType">Algorithm.InnerOuterMask.MaskType</h3>
+ <p></p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -15495,34 +15495,28 @@ The external URL is used for:
<tbody>
<tr>
- <td>ALERT_LEVEL_UNSPECIFIED</td>
+ <td>MASK_TYPE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>ALERT_LEVEL_INFO</td>
+ <td>INNER</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>ALERT_LEVEL_WARNING</td>
+ <td>OUTER</td>
<td>2</td>
<td><p></p></td>
</tr>
- <tr>
- <td>ALERT_LEVEL_CRITICAL</td>
- <td>3</td>
- <td><p></p></td>
- </tr>
-
</tbody>
</table>
- <h3 id="bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</h3>
- <p></p>
+ <h3 id="bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</h3>
+ <p>We support three levels of AlertLevel: INFO, WARNING, and ERROR.</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -15530,28 +15524,33 @@ The external URL is used for:
<tbody>
<tr>
- <td>DATABASE_CHANGE_MODE_UNSPECIFIED</td>
+ <td>ALERT_LEVEL_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>PIPELINE</td>
+ <td>ALERT_LEVEL_INFO</td>
<td>1</td>
- <td><p>A more advanced database change process, including custom approval workflows and other advanced features.
-Default to this mode.</p></td>
+ <td><p></p></td>
</tr>
<tr>
- <td>EDITOR</td>
+ <td>ALERT_LEVEL_WARNING</td>
<td>2</td>
- <td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>ALERT_LEVEL_CRITICAL</td>
+ <td>3</td>
+ <td><p></p></td>
</tr>
</tbody>
</table>
- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</h3>
+ <h3 id="bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</h3>
<p></p>
<table class="enum-table">
<thead>
@@ -15560,21 +15559,22 @@ Default to this mode.</p></td>
<tbody>
<tr>
- <td>MASK_TYPE_UNSPECIFIED</td>
+ <td>DATABASE_CHANGE_MODE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>INNER</td>
+ <td>PIPELINE</td>
<td>1</td>
- <td><p></p></td>
+ <td><p>A more advanced database change process, including custom approval workflows and other advanced features.
+Default to this mode.</p></td>
</tr>
<tr>
- <td>OUTER</td>
+ <td>EDITOR</td>
<td>2</td>
- <td><p></p></td>
+ <td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td>
</tr>
</tbody>
diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.go
index 4e877387a7..ea26bf90fd 100644
--- a/proto/generated-go/store/setting.pb.go
+++ b/proto/generated-go/store/setting.pb.go
@@ -238,53 +238,53 @@ func (SMTPMailDeliverySetting_Authentication) EnumDescriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{6, 1}
}
-type MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType int32
+type Algorithm_InnerOuterMask_MaskType int32
const (
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType = 0
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_INNER MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType = 1
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_OUTER MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType = 2
+ Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED Algorithm_InnerOuterMask_MaskType = 0
+ Algorithm_InnerOuterMask_INNER Algorithm_InnerOuterMask_MaskType = 1
+ Algorithm_InnerOuterMask_OUTER Algorithm_InnerOuterMask_MaskType = 2
)
-// Enum value maps for MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.
+// Enum value maps for Algorithm_InnerOuterMask_MaskType.
var (
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType_name = map[int32]string{
+ Algorithm_InnerOuterMask_MaskType_name = map[int32]string{
0: "MASK_TYPE_UNSPECIFIED",
1: "INNER",
2: "OUTER",
}
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType_value = map[string]int32{
+ Algorithm_InnerOuterMask_MaskType_value = map[string]int32{
"MASK_TYPE_UNSPECIFIED": 0,
"INNER": 1,
"OUTER": 2,
}
)
-func (x MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Enum() *MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
- p := new(MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType)
+func (x Algorithm_InnerOuterMask_MaskType) Enum() *Algorithm_InnerOuterMask_MaskType {
+ p := new(Algorithm_InnerOuterMask_MaskType)
*p = x
return p
}
-func (x MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) String() string {
+func (x Algorithm_InnerOuterMask_MaskType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
-func (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {
+func (Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {
return file_store_setting_proto_enumTypes[4].Descriptor()
}
-func (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {
+func (Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {
return &file_store_setting_proto_enumTypes[4]
}
-func (x MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {
+func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.Descriptor instead.
-func (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0, 3, 0}
+// Deprecated: Use Algorithm_InnerOuterMask_MaskType.Descriptor instead.
+func (Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11, 3, 0}
}
type WorkspaceProfileSetting struct {
@@ -966,7 +966,7 @@ func (x *SemanticTypeSetting) GetTypes() []*SemanticTypeSetting_SemanticType {
type MaskingAlgorithmSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// algorithms is the list of masking algorithms.
- Algorithms []*MaskingAlgorithmSetting_Algorithm `protobuf:"bytes,1,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
+ Algorithms []*Algorithm `protobuf:"bytes,1,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1001,13 +1001,166 @@ func (*MaskingAlgorithmSetting) Descriptor() ([]byte, []int) {
return file_store_setting_proto_rawDescGZIP(), []int{10}
}
-func (x *MaskingAlgorithmSetting) GetAlgorithms() []*MaskingAlgorithmSetting_Algorithm {
+func (x *MaskingAlgorithmSetting) GetAlgorithms() []*Algorithm {
if x != nil {
return x.Algorithms
}
return nil
}
+type Algorithm struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // id is the uuid for masking algorithm.
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ // title is the title for masking algorithm.
+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
+ // description is the description for masking algorithm.
+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
+ // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+ // The range of accepted Payload is decided by the category.
+ // MASK: FullMask, RangeMask
+ // HASH: MD5Mask
+ Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
+ // Types that are valid to be assigned to Mask:
+ //
+ // *Algorithm_FullMask_
+ // *Algorithm_RangeMask_
+ // *Algorithm_Md5Mask
+ // *Algorithm_InnerOuterMask_
+ Mask isAlgorithm_Mask `protobuf_oneof:"mask"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *Algorithm) Reset() {
+ *x = Algorithm{}
+ mi := &file_store_setting_proto_msgTypes[11]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *Algorithm) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Algorithm) ProtoMessage() {}
+
+func (x *Algorithm) ProtoReflect() protoreflect.Message {
+ mi := &file_store_setting_proto_msgTypes[11]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Algorithm.ProtoReflect.Descriptor instead.
+func (*Algorithm) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *Algorithm) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *Algorithm) GetTitle() string {
+ if x != nil {
+ return x.Title
+ }
+ return ""
+}
+
+func (x *Algorithm) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+func (x *Algorithm) GetCategory() string {
+ if x != nil {
+ return x.Category
+ }
+ return ""
+}
+
+func (x *Algorithm) GetMask() isAlgorithm_Mask {
+ if x != nil {
+ return x.Mask
+ }
+ return nil
+}
+
+func (x *Algorithm) GetFullMask() *Algorithm_FullMask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_FullMask_); ok {
+ return x.FullMask
+ }
+ }
+ return nil
+}
+
+func (x *Algorithm) GetRangeMask() *Algorithm_RangeMask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_RangeMask_); ok {
+ return x.RangeMask
+ }
+ }
+ return nil
+}
+
+func (x *Algorithm) GetMd5Mask() *Algorithm_MD5Mask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_Md5Mask); ok {
+ return x.Md5Mask
+ }
+ }
+ return nil
+}
+
+func (x *Algorithm) GetInnerOuterMask() *Algorithm_InnerOuterMask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_InnerOuterMask_); ok {
+ return x.InnerOuterMask
+ }
+ }
+ return nil
+}
+
+type isAlgorithm_Mask interface {
+ isAlgorithm_Mask()
+}
+
+type Algorithm_FullMask_ struct {
+ FullMask *Algorithm_FullMask `protobuf:"bytes,5,opt,name=full_mask,json=fullMask,proto3,oneof"`
+}
+
+type Algorithm_RangeMask_ struct {
+ RangeMask *Algorithm_RangeMask `protobuf:"bytes,6,opt,name=range_mask,json=rangeMask,proto3,oneof"`
+}
+
+type Algorithm_Md5Mask struct {
+ Md5Mask *Algorithm_MD5Mask `protobuf:"bytes,7,opt,name=md5_mask,json=md5Mask,proto3,oneof"`
+}
+
+type Algorithm_InnerOuterMask_ struct {
+ InnerOuterMask *Algorithm_InnerOuterMask `protobuf:"bytes,8,opt,name=inner_outer_mask,json=innerOuterMask,proto3,oneof"`
+}
+
+func (*Algorithm_FullMask_) isAlgorithm_Mask() {}
+
+func (*Algorithm_RangeMask_) isAlgorithm_Mask() {}
+
+func (*Algorithm_Md5Mask) isAlgorithm_Mask() {}
+
+func (*Algorithm_InnerOuterMask_) isAlgorithm_Mask() {}
+
type AppIMSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Slack *AppIMSetting_Slack `protobuf:"bytes,1,opt,name=slack,proto3" json:"slack,omitempty"`
@@ -1020,7 +1173,7 @@ type AppIMSetting struct {
func (x *AppIMSetting) Reset() {
*x = AppIMSetting{}
- mi := &file_store_setting_proto_msgTypes[11]
+ mi := &file_store_setting_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1032,7 +1185,7 @@ func (x *AppIMSetting) String() string {
func (*AppIMSetting) ProtoMessage() {}
func (x *AppIMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[11]
+ mi := &file_store_setting_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1045,7 +1198,7 @@ func (x *AppIMSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use AppIMSetting.ProtoReflect.Descriptor instead.
func (*AppIMSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{11}
+ return file_store_setting_proto_rawDescGZIP(), []int{12}
}
func (x *AppIMSetting) GetSlack() *AppIMSetting_Slack {
@@ -1087,7 +1240,7 @@ type MaximumSQLResultSizeSetting struct {
func (x *MaximumSQLResultSizeSetting) Reset() {
*x = MaximumSQLResultSizeSetting{}
- mi := &file_store_setting_proto_msgTypes[12]
+ mi := &file_store_setting_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1099,7 +1252,7 @@ func (x *MaximumSQLResultSizeSetting) String() string {
func (*MaximumSQLResultSizeSetting) ProtoMessage() {}
func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[12]
+ mi := &file_store_setting_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1112,7 +1265,7 @@ func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use MaximumSQLResultSizeSetting.ProtoReflect.Descriptor instead.
func (*MaximumSQLResultSizeSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{12}
+ return file_store_setting_proto_rawDescGZIP(), []int{13}
}
func (x *MaximumSQLResultSizeSetting) GetLimit() int64 {
@@ -1131,7 +1284,7 @@ type SCIMSetting struct {
func (x *SCIMSetting) Reset() {
*x = SCIMSetting{}
- mi := &file_store_setting_proto_msgTypes[13]
+ mi := &file_store_setting_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1143,7 +1296,7 @@ func (x *SCIMSetting) String() string {
func (*SCIMSetting) ProtoMessage() {}
func (x *SCIMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[13]
+ mi := &file_store_setting_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1156,7 +1309,7 @@ func (x *SCIMSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use SCIMSetting.ProtoReflect.Descriptor instead.
func (*SCIMSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{13}
+ return file_store_setting_proto_rawDescGZIP(), []int{14}
}
func (x *SCIMSetting) GetToken() string {
@@ -1188,7 +1341,7 @@ type PasswordRestrictionSetting struct {
func (x *PasswordRestrictionSetting) Reset() {
*x = PasswordRestrictionSetting{}
- mi := &file_store_setting_proto_msgTypes[14]
+ mi := &file_store_setting_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1200,7 +1353,7 @@ func (x *PasswordRestrictionSetting) String() string {
func (*PasswordRestrictionSetting) ProtoMessage() {}
func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[14]
+ mi := &file_store_setting_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1213,7 +1366,7 @@ func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{14}
+ return file_store_setting_proto_rawDescGZIP(), []int{15}
}
func (x *PasswordRestrictionSetting) GetMinLength() int32 {
@@ -1276,7 +1429,7 @@ type WorkspaceApprovalSetting_Rule struct {
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
- mi := &file_store_setting_proto_msgTypes[15]
+ mi := &file_store_setting_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1288,7 +1441,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[15]
+ mi := &file_store_setting_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1341,7 +1494,7 @@ type ExternalApprovalSetting_Node struct {
func (x *ExternalApprovalSetting_Node) Reset() {
*x = ExternalApprovalSetting_Node{}
- mi := &file_store_setting_proto_msgTypes[16]
+ mi := &file_store_setting_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1353,7 +1506,7 @@ func (x *ExternalApprovalSetting_Node) String() string {
func (*ExternalApprovalSetting_Node) ProtoMessage() {}
func (x *ExternalApprovalSetting_Node) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[16]
+ mi := &file_store_setting_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1403,7 +1556,7 @@ type SchemaTemplateSetting_FieldTemplate struct {
func (x *SchemaTemplateSetting_FieldTemplate) Reset() {
*x = SchemaTemplateSetting_FieldTemplate{}
- mi := &file_store_setting_proto_msgTypes[17]
+ mi := &file_store_setting_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1415,7 +1568,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {
func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[17]
+ mi := &file_store_setting_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1477,7 +1630,7 @@ type SchemaTemplateSetting_ColumnType struct {
func (x *SchemaTemplateSetting_ColumnType) Reset() {
*x = SchemaTemplateSetting_ColumnType{}
- mi := &file_store_setting_proto_msgTypes[18]
+ mi := &file_store_setting_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1489,7 +1642,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {
func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}
func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[18]
+ mi := &file_store_setting_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1539,7 +1692,7 @@ type SchemaTemplateSetting_TableTemplate struct {
func (x *SchemaTemplateSetting_TableTemplate) Reset() {
*x = SchemaTemplateSetting_TableTemplate{}
- mi := &file_store_setting_proto_msgTypes[19]
+ mi := &file_store_setting_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1551,7 +1704,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {
func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[19]
+ mi := &file_store_setting_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1624,7 +1777,7 @@ type DataClassificationSetting_DataClassificationConfig struct {
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
- mi := &file_store_setting_proto_msgTypes[20]
+ mi := &file_store_setting_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1636,7 +1789,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[20]
+ mi := &file_store_setting_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1698,7 +1851,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
- mi := &file_store_setting_proto_msgTypes[21]
+ mi := &file_store_setting_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1710,7 +1863,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() stri
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[21]
+ mi := &file_store_setting_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1760,7 +1913,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification struc
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
- mi := &file_store_setting_proto_msgTypes[22]
+ mi := &file_store_setting_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1772,7 +1925,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[22]
+ mi := &file_store_setting_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1836,7 +1989,7 @@ type SemanticTypeSetting_SemanticType struct {
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
- mi := &file_store_setting_proto_msgTypes[24]
+ mi := &file_store_setting_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1848,7 +2001,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[24]
+ mi := &file_store_setting_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1899,161 +2052,7 @@ func (x *SemanticTypeSetting_SemanticType) GetFullMaskAlgorithmId() string {
return ""
}
-type MaskingAlgorithmSetting_Algorithm struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // id is the uuid for masking algorithm.
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- // title is the title for masking algorithm.
- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
- // description is the description for masking algorithm.
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
- // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
- // The range of accepted Payload is decided by the category.
- // MASK: FullMask, RangeMask
- // HASH: MD5Mask
- Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
- // Types that are valid to be assigned to Mask:
- //
- // *MaskingAlgorithmSetting_Algorithm_FullMask_
- // *MaskingAlgorithmSetting_Algorithm_RangeMask_
- // *MaskingAlgorithmSetting_Algorithm_Md5Mask
- // *MaskingAlgorithmSetting_Algorithm_InnerOuterMask_
- Mask isMaskingAlgorithmSetting_Algorithm_Mask `protobuf_oneof:"mask"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm{}
- mi := &file_store_setting_proto_msgTypes[25]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MaskingAlgorithmSetting_Algorithm) ProtoMessage() {}
-
-func (x *MaskingAlgorithmSetting_Algorithm) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[25]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0}
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetCategory() string {
- if x != nil {
- return x.Category
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetMask() isMaskingAlgorithmSetting_Algorithm_Mask {
- if x != nil {
- return x.Mask
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetFullMask() *MaskingAlgorithmSetting_Algorithm_FullMask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_FullMask_); ok {
- return x.FullMask
- }
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetRangeMask() *MaskingAlgorithmSetting_Algorithm_RangeMask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_RangeMask_); ok {
- return x.RangeMask
- }
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetMd5Mask() *MaskingAlgorithmSetting_Algorithm_MD5Mask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_Md5Mask); ok {
- return x.Md5Mask
- }
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetInnerOuterMask() *MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_InnerOuterMask_); ok {
- return x.InnerOuterMask
- }
- }
- return nil
-}
-
-type isMaskingAlgorithmSetting_Algorithm_Mask interface {
- isMaskingAlgorithmSetting_Algorithm_Mask()
-}
-
-type MaskingAlgorithmSetting_Algorithm_FullMask_ struct {
- FullMask *MaskingAlgorithmSetting_Algorithm_FullMask `protobuf:"bytes,5,opt,name=full_mask,json=fullMask,proto3,oneof"`
-}
-
-type MaskingAlgorithmSetting_Algorithm_RangeMask_ struct {
- RangeMask *MaskingAlgorithmSetting_Algorithm_RangeMask `protobuf:"bytes,6,opt,name=range_mask,json=rangeMask,proto3,oneof"`
-}
-
-type MaskingAlgorithmSetting_Algorithm_Md5Mask struct {
- Md5Mask *MaskingAlgorithmSetting_Algorithm_MD5Mask `protobuf:"bytes,7,opt,name=md5_mask,json=md5Mask,proto3,oneof"`
-}
-
-type MaskingAlgorithmSetting_Algorithm_InnerOuterMask_ struct {
- InnerOuterMask *MaskingAlgorithmSetting_Algorithm_InnerOuterMask `protobuf:"bytes,8,opt,name=inner_outer_mask,json=innerOuterMask,proto3,oneof"`
-}
-
-func (*MaskingAlgorithmSetting_Algorithm_FullMask_) isMaskingAlgorithmSetting_Algorithm_Mask() {}
-
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask_) isMaskingAlgorithmSetting_Algorithm_Mask() {}
-
-func (*MaskingAlgorithmSetting_Algorithm_Md5Mask) isMaskingAlgorithmSetting_Algorithm_Mask() {}
-
-func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask_) isMaskingAlgorithmSetting_Algorithm_Mask() {
-}
-
-type MaskingAlgorithmSetting_Algorithm_FullMask struct {
+type Algorithm_FullMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// substitution is the string used to replace the original value, the
// max length of the string is 16 bytes.
@@ -2062,20 +2061,20 @@ type MaskingAlgorithmSetting_Algorithm_FullMask struct {
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_FullMask{}
+func (x *Algorithm_FullMask) Reset() {
+ *x = Algorithm_FullMask{}
mi := &file_store_setting_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) String() string {
+func (x *Algorithm_FullMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_FullMask) ProtoMessage() {}
+func (*Algorithm_FullMask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -2087,41 +2086,41 @@ func (x *MaskingAlgorithmSetting_Algorithm_FullMask) ProtoReflect() protoreflect
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_FullMask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_FullMask) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0, 0}
+// Deprecated: Use Algorithm_FullMask.ProtoReflect.Descriptor instead.
+func (*Algorithm_FullMask) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11, 0}
}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) GetSubstitution() string {
+func (x *Algorithm_FullMask) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
-type MaskingAlgorithmSetting_Algorithm_RangeMask struct {
+type Algorithm_RangeMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
// But frontend can be started with a single rule easily.
- Slices []*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
+ Slices []*Algorithm_RangeMask_Slice `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_RangeMask{}
+func (x *Algorithm_RangeMask) Reset() {
+ *x = Algorithm_RangeMask{}
mi := &file_store_setting_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) String() string {
+func (x *Algorithm_RangeMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoMessage() {}
+func (*Algorithm_RangeMask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -2133,19 +2132,19 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoReflect() protoreflec
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_RangeMask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0, 1}
+// Deprecated: Use Algorithm_RangeMask.ProtoReflect.Descriptor instead.
+func (*Algorithm_RangeMask) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11, 1}
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) GetSlices() []*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+func (x *Algorithm_RangeMask) GetSlices() []*Algorithm_RangeMask_Slice {
if x != nil {
return x.Slices
}
return nil
}
-type MaskingAlgorithmSetting_Algorithm_MD5Mask struct {
+type Algorithm_MD5Mask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// salt is the salt value to generate a different hash that with the word alone.
Salt string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"`
@@ -2153,20 +2152,20 @@ type MaskingAlgorithmSetting_Algorithm_MD5Mask struct {
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_MD5Mask{}
+func (x *Algorithm_MD5Mask) Reset() {
+ *x = Algorithm_MD5Mask{}
mi := &file_store_setting_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) String() string {
+func (x *Algorithm_MD5Mask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoMessage() {}
+func (*Algorithm_MD5Mask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -2178,42 +2177,42 @@ func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoReflect() protoreflect.
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_MD5Mask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_MD5Mask) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0, 2}
+// Deprecated: Use Algorithm_MD5Mask.ProtoReflect.Descriptor instead.
+func (*Algorithm_MD5Mask) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11, 2}
}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) GetSalt() string {
+func (x *Algorithm_MD5Mask) GetSalt() string {
if x != nil {
return x.Salt
}
return ""
}
-type MaskingAlgorithmSetting_Algorithm_InnerOuterMask struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PrefixLen int32 `protobuf:"varint,1,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
- SuffixLen int32 `protobuf:"varint,2,opt,name=suffix_len,json=suffixLen,proto3" json:"suffix_len,omitempty"`
- Substitution string `protobuf:"bytes,3,opt,name=substitution,proto3" json:"substitution,omitempty"`
- Type MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType `protobuf:"varint,4,opt,name=type,proto3,enum=bytebase.store.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType" json:"type,omitempty"`
+type Algorithm_InnerOuterMask struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ PrefixLen int32 `protobuf:"varint,1,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
+ SuffixLen int32 `protobuf:"varint,2,opt,name=suffix_len,json=suffixLen,proto3" json:"suffix_len,omitempty"`
+ Substitution string `protobuf:"bytes,3,opt,name=substitution,proto3" json:"substitution,omitempty"`
+ Type Algorithm_InnerOuterMask_MaskType `protobuf:"varint,4,opt,name=type,proto3,enum=bytebase.store.Algorithm_InnerOuterMask_MaskType" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_InnerOuterMask{}
+func (x *Algorithm_InnerOuterMask) Reset() {
+ *x = Algorithm_InnerOuterMask{}
mi := &file_store_setting_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) String() string {
+func (x *Algorithm_InnerOuterMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoMessage() {}
+func (*Algorithm_InnerOuterMask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -2225,40 +2224,40 @@ func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoReflect() protor
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0, 3}
+// Deprecated: Use Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.
+func (*Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11, 3}
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetPrefixLen() int32 {
+func (x *Algorithm_InnerOuterMask) GetPrefixLen() int32 {
if x != nil {
return x.PrefixLen
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetSuffixLen() int32 {
+func (x *Algorithm_InnerOuterMask) GetSuffixLen() int32 {
if x != nil {
return x.SuffixLen
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetSubstitution() string {
+func (x *Algorithm_InnerOuterMask) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetType() MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
+func (x *Algorithm_InnerOuterMask) GetType() Algorithm_InnerOuterMask_MaskType {
if x != nil {
return x.Type
}
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED
+ return Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED
}
-type MaskingAlgorithmSetting_Algorithm_RangeMask_Slice struct {
+type Algorithm_RangeMask_Slice struct {
state protoimpl.MessageState `protogen:"open.v1"`
// start is the start index of the original value, start from 0 and should be less than stop.
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
@@ -2270,20 +2269,20 @@ type MaskingAlgorithmSetting_Algorithm_RangeMask_Slice struct {
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_RangeMask_Slice{}
+func (x *Algorithm_RangeMask_Slice) Reset() {
+ *x = Algorithm_RangeMask_Slice{}
mi := &file_store_setting_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) String() string {
+func (x *Algorithm_RangeMask_Slice) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoMessage() {}
+func (*Algorithm_RangeMask_Slice) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
mi := &file_store_setting_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -2295,26 +2294,26 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoReflect() proto
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0, 1, 0}
+// Deprecated: Use Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.
+func (*Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{11, 1, 0}
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) GetStart() int32 {
+func (x *Algorithm_RangeMask_Slice) GetStart() int32 {
if x != nil {
return x.Start
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) GetEnd() int32 {
+func (x *Algorithm_RangeMask_Slice) GetEnd() int32 {
if x != nil {
return x.End
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) GetSubstitution() string {
+func (x *Algorithm_RangeMask_Slice) GetSubstitution() string {
if x != nil {
return x.Substitution
}
@@ -2356,7 +2355,7 @@ func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
// Deprecated: Use AppIMSetting_Slack.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Slack) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{11, 0}
+ return file_store_setting_proto_rawDescGZIP(), []int{12, 0}
}
func (x *AppIMSetting_Slack) GetEnabled() bool {
@@ -2409,7 +2408,7 @@ func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
// Deprecated: Use AppIMSetting_Feishu.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Feishu) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{11, 1}
+ return file_store_setting_proto_rawDescGZIP(), []int{12, 1}
}
func (x *AppIMSetting_Feishu) GetEnabled() bool {
@@ -2470,7 +2469,7 @@ func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
// Deprecated: Use AppIMSetting_Wecom.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Wecom) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{11, 2}
+ return file_store_setting_proto_rawDescGZIP(), []int{12, 2}
}
func (x *AppIMSetting_Wecom) GetEnabled() bool {
@@ -2537,7 +2536,7 @@ func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {
// Deprecated: Use AppIMSetting_Lark.ProtoReflect.Descriptor instead.
func (*AppIMSetting_Lark) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{11, 3}
+ return file_store_setting_proto_rawDescGZIP(), []int{12, 3}
}
func (x *AppIMSetting_Lark) GetEnabled() bool {
@@ -2837,155 +2836,144 @@ var file_store_setting_proto_rawDesc = []byte{
0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x75, 0x6c,
0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64,
- 0x22, 0x83, 0x09, 0x0a, 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f,
- 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x51, 0x0a, 0x0a,
- 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
- 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,
- 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x1a,
- 0x94, 0x08, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 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, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
- 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
- 0x79, 0x12, 0x59, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,
- 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c,
- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b,
- 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x5c, 0x0a, 0x0a,
- 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
- 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,
- 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52,
- 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56, 0x0a, 0x08, 0x6d, 0x64,
- 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61,
- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e,
- 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d, 0x61,
- 0x73, 0x6b, 0x12, 0x6c, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x65,
- 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61,
- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e,
- 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00,
- 0x52, 0x0e, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b,
- 0x1a, 0x2e, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c,
- 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e,
- 0x1a, 0xbb, 0x01, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x59,
- 0x0a, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
- 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
- 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63,
- 0x65, 0x52, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69,
- 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75,
- 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d,
- 0x0a, 0x07, 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c,
- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0x8e, 0x02,
- 0x0a, 0x0e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b,
- 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12,
- 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x22,
- 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,
- 0x32, 0x49, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
- 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,
- 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61,
- 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
- 0x65, 0x22, 0x3b, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a,
- 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45,
- 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06,
- 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0xd0, 0x04, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x38, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x52, 0x05, 0x73, 0x6c, 0x61, 0x63,
- 0x6b, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
- 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
- 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x52, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x12, 0x38,
- 0x0a, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e,
+ 0x22, 0x54, 0x0a, 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72,
+ 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x39, 0x0a, 0x0a, 0x61,
+ 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61, 0x6c, 0x67, 0x6f,
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x22, 0x84, 0x07, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72,
+ 0x69, 0x74, 0x68, 0x6d, 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, 0x1a, 0x0a, 0x08,
+ 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
+ 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x41, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c,
+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x67,
+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x48,
+ 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x44, 0x0a, 0x0a, 0x72,
+ 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65,
+ 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73,
+ 0x6b, 0x12, 0x3e, 0x0a, 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x4d,
+ 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d, 0x61, 0x73,
+ 0x6b, 0x12, 0x54, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x65, 0x72,
+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x67,
+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65,
+ 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75,
+ 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x1a, 0x2e, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d,
+ 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74,
+ 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xa3, 0x01, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67,
+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x41, 0x0a, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,
+ 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63, 0x65,
+ 0x52, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69, 0x63,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62,
+ 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x0a,
+ 0x07, 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0xf6, 0x01, 0x0a,
+ 0x0e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x09, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x22, 0x0a,
+ 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x45, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72,
+ 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79,
+ 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3b, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b,
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50,
+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
+ 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x55,
+ 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0xd0, 0x04,
+ 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x38,
+ 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e,
0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41,
- 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x57, 0x65, 0x63, 0x6f,
- 0x6d, 0x52, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x04, 0x6c, 0x61, 0x72, 0x6b,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x61, 0x72, 0x6b, 0x52, 0x04, 0x6c, 0x61, 0x72, 0x6b, 0x1a,
- 0x37, 0x0a, 0x05, 0x53, 0x6c, 0x61, 0x63, 0x6b, 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, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x58, 0x0a, 0x06, 0x46, 0x65, 0x69, 0x73,
- 0x68, 0x75, 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, 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, 0x1a, 0x6d, 0x0a, 0x05, 0x57, 0x65, 0x63, 0x6f, 0x6d, 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, 0x17, 0x0a, 0x07, 0x63, 0x6f, 0x72, 0x70, 0x5f, 0x69, 0x64,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x49, 0x64, 0x12, 0x19,
- 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
- 0x74, 0x1a, 0x56, 0x0a, 0x04, 0x4c, 0x61, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61,
+ 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6c, 0x61, 0x63,
+ 0x6b, 0x52, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x65, 0x69, 0x73,
+ 0x68, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x52, 0x06, 0x66,
+ 0x65, 0x69, 0x73, 0x68, 0x75, 0x12, 0x38, 0x0a, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x2e, 0x57, 0x65, 0x63, 0x6f, 0x6d, 0x52, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x12,
+ 0x35, 0x0a, 0x04, 0x6c, 0x61, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41,
+ 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x61, 0x72, 0x6b,
+ 0x52, 0x04, 0x6c, 0x61, 0x72, 0x6b, 0x1a, 0x37, 0x0a, 0x05, 0x53, 0x6c, 0x61, 0x63, 0x6b, 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, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a,
+ 0x58, 0x0a, 0x06, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 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, 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, 0x22, 0x33, 0x0a, 0x1b, 0x4d, 0x61, 0x78,
- 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x69, 0x7a,
- 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,
- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23,
- 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a,
- 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
- 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x03, 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
- 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74,
- 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6e, 0x75, 0x6d,
- 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69,
- 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75,
- 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12,
- 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72,
- 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63,
- 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x65, 0x71,
- 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x61,
- 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65,
- 0x71, 0x75, 0x69, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x68, 0x61, 0x72,
- 0x61, 0x63, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x26, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
- 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f,
- 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x52, 0x65,
- 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x46, 0x69,
- 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73,
- 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 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, 0x10,
- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e,
- 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,
- 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55,
- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,
- 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44,
- 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 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,
+ 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x6d, 0x0a, 0x05, 0x57, 0x65, 0x63,
+ 0x6f, 0x6d, 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, 0x17, 0x0a, 0x07,
+ 0x63, 0x6f, 0x72, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63,
+ 0x6f, 0x72, 0x70, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69,
+ 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64,
+ 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x56, 0x0a, 0x04, 0x4c, 0x61, 0x72, 0x6b,
+ 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, 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,
+ 0x22, 0x33, 0x0a, 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51, 0x4c, 0x52, 0x65,
+ 0x73, 0x75, 0x6c, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
+ 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
+ 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x03, 0x0a, 0x1a, 0x50,
+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e,
+ 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d,
+ 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75,
+ 0x69, 0x72, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
+ 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65,
+ 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
+ 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
+ 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74,
+ 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
+ 0x65, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72,
+ 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63,
+ 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63,
+ 0x69, 0x61, 0x6c, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x26,
+ 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61,
+ 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74,
+ 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x72, 0x65,
+ 0x71, 0x75, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
+ 0x72, 0x64, 0x46, 0x6f, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12,
+ 0x46, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x74, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 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, 0x10, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
+ 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a,
+ 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45,
+ 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
+ 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10,
+ 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 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 (
@@ -3007,7 +2995,7 @@ var file_store_setting_proto_goTypes = []any{
(Announcement_AlertLevel)(0), // 1: bytebase.store.Announcement.AlertLevel
(SMTPMailDeliverySetting_Encryption)(0), // 2: bytebase.store.SMTPMailDeliverySetting.Encryption
(SMTPMailDeliverySetting_Authentication)(0), // 3: bytebase.store.SMTPMailDeliverySetting.Authentication
- (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
+ (Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.store.Algorithm.InnerOuterMask.MaskType
(*WorkspaceProfileSetting)(nil), // 5: bytebase.store.WorkspaceProfileSetting
(*Announcement)(nil), // 6: bytebase.store.Announcement
(*AgentPluginSetting)(nil), // 7: bytebase.store.AgentPluginSetting
@@ -3019,39 +3007,39 @@ var file_store_setting_proto_goTypes = []any{
(*DataClassificationSetting)(nil), // 13: bytebase.store.DataClassificationSetting
(*SemanticTypeSetting)(nil), // 14: bytebase.store.SemanticTypeSetting
(*MaskingAlgorithmSetting)(nil), // 15: bytebase.store.MaskingAlgorithmSetting
- (*AppIMSetting)(nil), // 16: bytebase.store.AppIMSetting
- (*MaximumSQLResultSizeSetting)(nil), // 17: bytebase.store.MaximumSQLResultSizeSetting
- (*SCIMSetting)(nil), // 18: bytebase.store.SCIMSetting
- (*PasswordRestrictionSetting)(nil), // 19: bytebase.store.PasswordRestrictionSetting
- (*WorkspaceApprovalSetting_Rule)(nil), // 20: bytebase.store.WorkspaceApprovalSetting.Rule
- (*ExternalApprovalSetting_Node)(nil), // 21: bytebase.store.ExternalApprovalSetting.Node
- (*SchemaTemplateSetting_FieldTemplate)(nil), // 22: bytebase.store.SchemaTemplateSetting.FieldTemplate
- (*SchemaTemplateSetting_ColumnType)(nil), // 23: bytebase.store.SchemaTemplateSetting.ColumnType
- (*SchemaTemplateSetting_TableTemplate)(nil), // 24: bytebase.store.SchemaTemplateSetting.TableTemplate
- (*DataClassificationSetting_DataClassificationConfig)(nil), // 25: bytebase.store.DataClassificationSetting.DataClassificationConfig
- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
- nil, // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- (*SemanticTypeSetting_SemanticType)(nil), // 29: bytebase.store.SemanticTypeSetting.SemanticType
- (*MaskingAlgorithmSetting_Algorithm)(nil), // 30: bytebase.store.MaskingAlgorithmSetting.Algorithm
- (*MaskingAlgorithmSetting_Algorithm_FullMask)(nil), // 31: bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask)(nil), // 32: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask
- (*MaskingAlgorithmSetting_Algorithm_MD5Mask)(nil), // 33: bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask
- (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask)(nil), // 34: bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice)(nil), // 35: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- (*AppIMSetting_Slack)(nil), // 36: bytebase.store.AppIMSetting.Slack
- (*AppIMSetting_Feishu)(nil), // 37: bytebase.store.AppIMSetting.Feishu
- (*AppIMSetting_Wecom)(nil), // 38: bytebase.store.AppIMSetting.Wecom
- (*AppIMSetting_Lark)(nil), // 39: bytebase.store.AppIMSetting.Lark
- (*durationpb.Duration)(nil), // 40: google.protobuf.Duration
- (*v1alpha1.Expr)(nil), // 41: google.api.expr.v1alpha1.Expr
- (*ApprovalTemplate)(nil), // 42: bytebase.store.ApprovalTemplate
- (*expr.Expr)(nil), // 43: google.type.Expr
- (Engine)(0), // 44: bytebase.store.Engine
- (*ColumnMetadata)(nil), // 45: bytebase.store.ColumnMetadata
- (*ColumnCatalog)(nil), // 46: bytebase.store.ColumnCatalog
- (*TableMetadata)(nil), // 47: bytebase.store.TableMetadata
- (*TableCatalog)(nil), // 48: bytebase.store.TableCatalog
+ (*Algorithm)(nil), // 16: bytebase.store.Algorithm
+ (*AppIMSetting)(nil), // 17: bytebase.store.AppIMSetting
+ (*MaximumSQLResultSizeSetting)(nil), // 18: bytebase.store.MaximumSQLResultSizeSetting
+ (*SCIMSetting)(nil), // 19: bytebase.store.SCIMSetting
+ (*PasswordRestrictionSetting)(nil), // 20: bytebase.store.PasswordRestrictionSetting
+ (*WorkspaceApprovalSetting_Rule)(nil), // 21: bytebase.store.WorkspaceApprovalSetting.Rule
+ (*ExternalApprovalSetting_Node)(nil), // 22: bytebase.store.ExternalApprovalSetting.Node
+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 23: bytebase.store.SchemaTemplateSetting.FieldTemplate
+ (*SchemaTemplateSetting_ColumnType)(nil), // 24: bytebase.store.SchemaTemplateSetting.ColumnType
+ (*SchemaTemplateSetting_TableTemplate)(nil), // 25: bytebase.store.SchemaTemplateSetting.TableTemplate
+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 26: bytebase.store.DataClassificationSetting.DataClassificationConfig
+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 27: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 28: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ nil, // 29: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ (*SemanticTypeSetting_SemanticType)(nil), // 30: bytebase.store.SemanticTypeSetting.SemanticType
+ (*Algorithm_FullMask)(nil), // 31: bytebase.store.Algorithm.FullMask
+ (*Algorithm_RangeMask)(nil), // 32: bytebase.store.Algorithm.RangeMask
+ (*Algorithm_MD5Mask)(nil), // 33: bytebase.store.Algorithm.MD5Mask
+ (*Algorithm_InnerOuterMask)(nil), // 34: bytebase.store.Algorithm.InnerOuterMask
+ (*Algorithm_RangeMask_Slice)(nil), // 35: bytebase.store.Algorithm.RangeMask.Slice
+ (*AppIMSetting_Slack)(nil), // 36: bytebase.store.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 37: bytebase.store.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 38: bytebase.store.AppIMSetting.Wecom
+ (*AppIMSetting_Lark)(nil), // 39: bytebase.store.AppIMSetting.Lark
+ (*durationpb.Duration)(nil), // 40: google.protobuf.Duration
+ (*v1alpha1.Expr)(nil), // 41: google.api.expr.v1alpha1.Expr
+ (*ApprovalTemplate)(nil), // 42: bytebase.store.ApprovalTemplate
+ (*expr.Expr)(nil), // 43: google.type.Expr
+ (Engine)(0), // 44: bytebase.store.Engine
+ (*ColumnMetadata)(nil), // 45: bytebase.store.ColumnMetadata
+ (*ColumnCatalog)(nil), // 46: bytebase.store.ColumnCatalog
+ (*TableMetadata)(nil), // 47: bytebase.store.TableMetadata
+ (*TableCatalog)(nil), // 48: bytebase.store.TableCatalog
}
var file_store_setting_proto_depIdxs = []int32{
40, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
@@ -3059,40 +3047,40 @@ var file_store_setting_proto_depIdxs = []int32{
40, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
0, // 3: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.DatabaseChangeMode
1, // 4: bytebase.store.Announcement.level:type_name -> bytebase.store.Announcement.AlertLevel
- 20, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
- 21, // 6: bytebase.store.ExternalApprovalSetting.nodes:type_name -> bytebase.store.ExternalApprovalSetting.Node
+ 21, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
+ 22, // 6: bytebase.store.ExternalApprovalSetting.nodes:type_name -> bytebase.store.ExternalApprovalSetting.Node
2, // 7: bytebase.store.SMTPMailDeliverySetting.encryption:type_name -> bytebase.store.SMTPMailDeliverySetting.Encryption
3, // 8: bytebase.store.SMTPMailDeliverySetting.authentication:type_name -> bytebase.store.SMTPMailDeliverySetting.Authentication
- 22, // 9: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate
- 23, // 10: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType
- 24, // 11: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate
- 25, // 12: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
- 29, // 13: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
- 30, // 14: bytebase.store.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm
- 36, // 15: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
- 37, // 16: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
- 38, // 17: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
- 39, // 18: bytebase.store.AppIMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark
- 40, // 19: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
- 41, // 20: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.Expr
- 42, // 21: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
- 43, // 22: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
- 44, // 23: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine
- 45, // 24: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata
- 46, // 25: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog
- 44, // 26: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine
- 44, // 27: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine
- 47, // 28: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata
- 48, // 29: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog
- 26, // 30: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
- 28, // 31: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- 27, // 32: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
- 31, // 33: bytebase.store.MaskingAlgorithmSetting.Algorithm.full_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.FullMask
- 32, // 34: bytebase.store.MaskingAlgorithmSetting.Algorithm.range_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask
- 33, // 35: bytebase.store.MaskingAlgorithmSetting.Algorithm.md5_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.MD5Mask
- 34, // 36: bytebase.store.MaskingAlgorithmSetting.Algorithm.inner_outer_mask:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- 35, // 37: bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.slices:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- 4, // 38: bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
+ 23, // 9: bytebase.store.SchemaTemplateSetting.field_templates:type_name -> bytebase.store.SchemaTemplateSetting.FieldTemplate
+ 24, // 10: bytebase.store.SchemaTemplateSetting.column_types:type_name -> bytebase.store.SchemaTemplateSetting.ColumnType
+ 25, // 11: bytebase.store.SchemaTemplateSetting.table_templates:type_name -> bytebase.store.SchemaTemplateSetting.TableTemplate
+ 26, // 12: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
+ 30, // 13: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
+ 16, // 14: bytebase.store.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.store.Algorithm
+ 31, // 15: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask
+ 32, // 16: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask
+ 33, // 17: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask
+ 34, // 18: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask
+ 36, // 19: bytebase.store.AppIMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
+ 37, // 20: bytebase.store.AppIMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
+ 38, // 21: bytebase.store.AppIMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
+ 39, // 22: bytebase.store.AppIMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark
+ 40, // 23: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
+ 41, // 24: bytebase.store.WorkspaceApprovalSetting.Rule.expression:type_name -> google.api.expr.v1alpha1.Expr
+ 42, // 25: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
+ 43, // 26: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 44, // 27: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine
+ 45, // 28: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata
+ 46, // 29: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog
+ 44, // 30: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine
+ 44, // 31: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine
+ 47, // 32: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata
+ 48, // 33: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog
+ 27, // 34: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ 29, // 35: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 28, // 36: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 35, // 37: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice
+ 4, // 38: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType
39, // [39:39] is the sub-list for method output_type
39, // [39:39] is the sub-list for method input_type
39, // [39:39] is the sub-list for extension type_name
@@ -3108,13 +3096,13 @@ func file_store_setting_proto_init() {
file_store_approval_proto_init()
file_store_common_proto_init()
file_store_database_proto_init()
- file_store_setting_proto_msgTypes[22].OneofWrappers = []any{}
- file_store_setting_proto_msgTypes[25].OneofWrappers = []any{
- (*MaskingAlgorithmSetting_Algorithm_FullMask_)(nil),
- (*MaskingAlgorithmSetting_Algorithm_RangeMask_)(nil),
- (*MaskingAlgorithmSetting_Algorithm_Md5Mask)(nil),
- (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask_)(nil),
+ file_store_setting_proto_msgTypes[11].OneofWrappers = []any{
+ (*Algorithm_FullMask_)(nil),
+ (*Algorithm_RangeMask_)(nil),
+ (*Algorithm_Md5Mask)(nil),
+ (*Algorithm_InnerOuterMask_)(nil),
}
+ file_store_setting_proto_msgTypes[23].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.go
index da3dab3827..2d2a0f3d0d 100644
--- a/proto/generated-go/v1/setting_service.pb.go
+++ b/proto/generated-go/v1/setting_service.pb.go
@@ -239,53 +239,53 @@ func (Announcement_AlertLevel) EnumDescriptor() ([]byte, []int) {
return file_v1_setting_service_proto_rawDescGZIP(), []int{11, 0}
}
-type MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType int32
+type Algorithm_InnerOuterMask_MaskType int32
const (
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType = 0
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_INNER MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType = 1
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_OUTER MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType = 2
+ Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED Algorithm_InnerOuterMask_MaskType = 0
+ Algorithm_InnerOuterMask_INNER Algorithm_InnerOuterMask_MaskType = 1
+ Algorithm_InnerOuterMask_OUTER Algorithm_InnerOuterMask_MaskType = 2
)
-// Enum value maps for MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.
+// Enum value maps for Algorithm_InnerOuterMask_MaskType.
var (
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType_name = map[int32]string{
+ Algorithm_InnerOuterMask_MaskType_name = map[int32]string{
0: "MASK_TYPE_UNSPECIFIED",
1: "INNER",
2: "OUTER",
}
- MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType_value = map[string]int32{
+ Algorithm_InnerOuterMask_MaskType_value = map[string]int32{
"MASK_TYPE_UNSPECIFIED": 0,
"INNER": 1,
"OUTER": 2,
}
)
-func (x MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Enum() *MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
- p := new(MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType)
+func (x Algorithm_InnerOuterMask_MaskType) Enum() *Algorithm_InnerOuterMask_MaskType {
+ p := new(Algorithm_InnerOuterMask_MaskType)
*p = x
return p
}
-func (x MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) String() string {
+func (x Algorithm_InnerOuterMask_MaskType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
-func (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {
+func (Algorithm_InnerOuterMask_MaskType) Descriptor() protoreflect.EnumDescriptor {
return file_v1_setting_service_proto_enumTypes[4].Descriptor()
}
-func (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {
+func (Algorithm_InnerOuterMask_MaskType) Type() protoreflect.EnumType {
return &file_v1_setting_service_proto_enumTypes[4]
}
-func (x MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {
+func (x Algorithm_InnerOuterMask_MaskType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType.Descriptor instead.
-func (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0, 3, 0}
+// Deprecated: Use Algorithm_InnerOuterMask_MaskType.Descriptor instead.
+func (Algorithm_InnerOuterMask_MaskType) EnumDescriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 3, 0}
}
type ListSettingsRequest struct {
@@ -1709,7 +1709,7 @@ func (x *SemanticTypeSetting) GetTypes() []*SemanticTypeSetting_SemanticType {
type MaskingAlgorithmSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// algorithms is the list of masking algorithms.
- Algorithms []*MaskingAlgorithmSetting_Algorithm `protobuf:"bytes,1,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
+ Algorithms []*Algorithm `protobuf:"bytes,1,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1744,13 +1744,166 @@ func (*MaskingAlgorithmSetting) Descriptor() ([]byte, []int) {
return file_v1_setting_service_proto_rawDescGZIP(), []int{18}
}
-func (x *MaskingAlgorithmSetting) GetAlgorithms() []*MaskingAlgorithmSetting_Algorithm {
+func (x *MaskingAlgorithmSetting) GetAlgorithms() []*Algorithm {
if x != nil {
return x.Algorithms
}
return nil
}
+type Algorithm struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // id is the uuid for masking algorithm.
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ // title is the title for masking algorithm.
+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
+ // description is the description for masking algorithm.
+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
+ // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+ // The range of accepted Payload is decided by the category.
+ // MASK: FullMask, RangeMask
+ // HASH: MD5Mask
+ Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
+ // Types that are valid to be assigned to Mask:
+ //
+ // *Algorithm_FullMask_
+ // *Algorithm_RangeMask_
+ // *Algorithm_Md5Mask
+ // *Algorithm_InnerOuterMask_
+ Mask isAlgorithm_Mask `protobuf_oneof:"mask"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *Algorithm) Reset() {
+ *x = Algorithm{}
+ mi := &file_v1_setting_service_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *Algorithm) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Algorithm) ProtoMessage() {}
+
+func (x *Algorithm) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_setting_service_proto_msgTypes[19]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Algorithm.ProtoReflect.Descriptor instead.
+func (*Algorithm) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19}
+}
+
+func (x *Algorithm) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *Algorithm) GetTitle() string {
+ if x != nil {
+ return x.Title
+ }
+ return ""
+}
+
+func (x *Algorithm) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+func (x *Algorithm) GetCategory() string {
+ if x != nil {
+ return x.Category
+ }
+ return ""
+}
+
+func (x *Algorithm) GetMask() isAlgorithm_Mask {
+ if x != nil {
+ return x.Mask
+ }
+ return nil
+}
+
+func (x *Algorithm) GetFullMask() *Algorithm_FullMask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_FullMask_); ok {
+ return x.FullMask
+ }
+ }
+ return nil
+}
+
+func (x *Algorithm) GetRangeMask() *Algorithm_RangeMask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_RangeMask_); ok {
+ return x.RangeMask
+ }
+ }
+ return nil
+}
+
+func (x *Algorithm) GetMd5Mask() *Algorithm_MD5Mask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_Md5Mask); ok {
+ return x.Md5Mask
+ }
+ }
+ return nil
+}
+
+func (x *Algorithm) GetInnerOuterMask() *Algorithm_InnerOuterMask {
+ if x != nil {
+ if x, ok := x.Mask.(*Algorithm_InnerOuterMask_); ok {
+ return x.InnerOuterMask
+ }
+ }
+ return nil
+}
+
+type isAlgorithm_Mask interface {
+ isAlgorithm_Mask()
+}
+
+type Algorithm_FullMask_ struct {
+ FullMask *Algorithm_FullMask `protobuf:"bytes,5,opt,name=full_mask,json=fullMask,proto3,oneof"`
+}
+
+type Algorithm_RangeMask_ struct {
+ RangeMask *Algorithm_RangeMask `protobuf:"bytes,6,opt,name=range_mask,json=rangeMask,proto3,oneof"`
+}
+
+type Algorithm_Md5Mask struct {
+ Md5Mask *Algorithm_MD5Mask `protobuf:"bytes,7,opt,name=md5_mask,json=md5Mask,proto3,oneof"`
+}
+
+type Algorithm_InnerOuterMask_ struct {
+ InnerOuterMask *Algorithm_InnerOuterMask `protobuf:"bytes,8,opt,name=inner_outer_mask,json=innerOuterMask,proto3,oneof"`
+}
+
+func (*Algorithm_FullMask_) isAlgorithm_Mask() {}
+
+func (*Algorithm_RangeMask_) isAlgorithm_Mask() {}
+
+func (*Algorithm_Md5Mask) isAlgorithm_Mask() {}
+
+func (*Algorithm_InnerOuterMask_) isAlgorithm_Mask() {}
+
type MaximumSQLResultSizeSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The limit is in bytes.
@@ -1762,7 +1915,7 @@ type MaximumSQLResultSizeSetting struct {
func (x *MaximumSQLResultSizeSetting) Reset() {
*x = MaximumSQLResultSizeSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[19]
+ mi := &file_v1_setting_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1774,7 +1927,7 @@ func (x *MaximumSQLResultSizeSetting) String() string {
func (*MaximumSQLResultSizeSetting) ProtoMessage() {}
func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[19]
+ mi := &file_v1_setting_service_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1787,7 +1940,7 @@ func (x *MaximumSQLResultSizeSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use MaximumSQLResultSizeSetting.ProtoReflect.Descriptor instead.
func (*MaximumSQLResultSizeSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{19}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{20}
}
func (x *MaximumSQLResultSizeSetting) GetLimit() int64 {
@@ -1806,7 +1959,7 @@ type SCIMSetting struct {
func (x *SCIMSetting) Reset() {
*x = SCIMSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[20]
+ mi := &file_v1_setting_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1818,7 +1971,7 @@ func (x *SCIMSetting) String() string {
func (*SCIMSetting) ProtoMessage() {}
func (x *SCIMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[20]
+ mi := &file_v1_setting_service_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1831,7 +1984,7 @@ func (x *SCIMSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use SCIMSetting.ProtoReflect.Descriptor instead.
func (*SCIMSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{20}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{21}
}
func (x *SCIMSetting) GetToken() string {
@@ -1863,7 +2016,7 @@ type PasswordRestrictionSetting struct {
func (x *PasswordRestrictionSetting) Reset() {
*x = PasswordRestrictionSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[21]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1875,7 +2028,7 @@ func (x *PasswordRestrictionSetting) String() string {
func (*PasswordRestrictionSetting) ProtoMessage() {}
func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[21]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1888,7 +2041,7 @@ func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{21}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{22}
}
func (x *PasswordRestrictionSetting) GetMinLength() int32 {
@@ -1950,7 +2103,7 @@ type AppIMSetting_Slack struct {
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
- mi := &file_v1_setting_service_proto_msgTypes[22]
+ mi := &file_v1_setting_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1962,7 +2115,7 @@ func (x *AppIMSetting_Slack) String() string {
func (*AppIMSetting_Slack) ProtoMessage() {}
func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[22]
+ mi := &file_v1_setting_service_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2003,7 +2156,7 @@ type AppIMSetting_Feishu struct {
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
- mi := &file_v1_setting_service_proto_msgTypes[23]
+ mi := &file_v1_setting_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2015,7 +2168,7 @@ func (x *AppIMSetting_Feishu) String() string {
func (*AppIMSetting_Feishu) ProtoMessage() {}
func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[23]
+ mi := &file_v1_setting_service_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2064,7 +2217,7 @@ type AppIMSetting_Wecom struct {
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
- mi := &file_v1_setting_service_proto_msgTypes[24]
+ mi := &file_v1_setting_service_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2076,7 +2229,7 @@ func (x *AppIMSetting_Wecom) String() string {
func (*AppIMSetting_Wecom) ProtoMessage() {}
func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[24]
+ mi := &file_v1_setting_service_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2131,7 +2284,7 @@ type AppIMSetting_Lark struct {
func (x *AppIMSetting_Lark) Reset() {
*x = AppIMSetting_Lark{}
- mi := &file_v1_setting_service_proto_msgTypes[25]
+ mi := &file_v1_setting_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2143,7 +2296,7 @@ func (x *AppIMSetting_Lark) String() string {
func (*AppIMSetting_Lark) ProtoMessage() {}
func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[25]
+ mi := &file_v1_setting_service_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2190,7 +2343,7 @@ type WorkspaceApprovalSetting_Rule struct {
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
- mi := &file_v1_setting_service_proto_msgTypes[26]
+ mi := &file_v1_setting_service_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2202,7 +2355,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[26]
+ mi := &file_v1_setting_service_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2247,7 +2400,7 @@ type ExternalApprovalSetting_Node struct {
func (x *ExternalApprovalSetting_Node) Reset() {
*x = ExternalApprovalSetting_Node{}
- mi := &file_v1_setting_service_proto_msgTypes[27]
+ mi := &file_v1_setting_service_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2259,7 +2412,7 @@ func (x *ExternalApprovalSetting_Node) String() string {
func (*ExternalApprovalSetting_Node) ProtoMessage() {}
func (x *ExternalApprovalSetting_Node) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[27]
+ mi := &file_v1_setting_service_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2309,7 +2462,7 @@ type SchemaTemplateSetting_FieldTemplate struct {
func (x *SchemaTemplateSetting_FieldTemplate) Reset() {
*x = SchemaTemplateSetting_FieldTemplate{}
- mi := &file_v1_setting_service_proto_msgTypes[28]
+ mi := &file_v1_setting_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2321,7 +2474,7 @@ func (x *SchemaTemplateSetting_FieldTemplate) String() string {
func (*SchemaTemplateSetting_FieldTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_FieldTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[28]
+ mi := &file_v1_setting_service_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2383,7 +2536,7 @@ type SchemaTemplateSetting_ColumnType struct {
func (x *SchemaTemplateSetting_ColumnType) Reset() {
*x = SchemaTemplateSetting_ColumnType{}
- mi := &file_v1_setting_service_proto_msgTypes[29]
+ mi := &file_v1_setting_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2395,7 +2548,7 @@ func (x *SchemaTemplateSetting_ColumnType) String() string {
func (*SchemaTemplateSetting_ColumnType) ProtoMessage() {}
func (x *SchemaTemplateSetting_ColumnType) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[29]
+ mi := &file_v1_setting_service_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2445,7 +2598,7 @@ type SchemaTemplateSetting_TableTemplate struct {
func (x *SchemaTemplateSetting_TableTemplate) Reset() {
*x = SchemaTemplateSetting_TableTemplate{}
- mi := &file_v1_setting_service_proto_msgTypes[30]
+ mi := &file_v1_setting_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2457,7 +2610,7 @@ func (x *SchemaTemplateSetting_TableTemplate) String() string {
func (*SchemaTemplateSetting_TableTemplate) ProtoMessage() {}
func (x *SchemaTemplateSetting_TableTemplate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[30]
+ mi := &file_v1_setting_service_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2529,7 +2682,7 @@ type DataClassificationSetting_DataClassificationConfig struct {
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
- mi := &file_v1_setting_service_proto_msgTypes[31]
+ mi := &file_v1_setting_service_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2541,7 +2694,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[31]
+ mi := &file_v1_setting_service_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2603,7 +2756,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
- mi := &file_v1_setting_service_proto_msgTypes[32]
+ mi := &file_v1_setting_service_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2615,7 +2768,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() stri
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[32]
+ mi := &file_v1_setting_service_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2665,7 +2818,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification struc
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
- mi := &file_v1_setting_service_proto_msgTypes[33]
+ mi := &file_v1_setting_service_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2677,7 +2830,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[33]
+ mi := &file_v1_setting_service_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2739,7 +2892,7 @@ type SemanticTypeSetting_SemanticType struct {
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
- mi := &file_v1_setting_service_proto_msgTypes[35]
+ mi := &file_v1_setting_service_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2751,7 +2904,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[35]
+ mi := &file_v1_setting_service_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2802,161 +2955,7 @@ func (x *SemanticTypeSetting_SemanticType) GetFullMaskAlgorithmId() string {
return ""
}
-type MaskingAlgorithmSetting_Algorithm struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // id is the uuid for masking algorithm.
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- // title is the title for masking algorithm.
- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
- // description is the description for masking algorithm.
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
- // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
- // The range of accepted Payload is decided by the category.
- // MASK: FullMask, RangeMask
- // HASH: MD5Mask
- Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
- // Types that are valid to be assigned to Mask:
- //
- // *MaskingAlgorithmSetting_Algorithm_FullMask_
- // *MaskingAlgorithmSetting_Algorithm_RangeMask_
- // *MaskingAlgorithmSetting_Algorithm_Md5Mask
- // *MaskingAlgorithmSetting_Algorithm_InnerOuterMask_
- Mask isMaskingAlgorithmSetting_Algorithm_Mask `protobuf_oneof:"mask"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm{}
- mi := &file_v1_setting_service_proto_msgTypes[36]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MaskingAlgorithmSetting_Algorithm) ProtoMessage() {}
-
-func (x *MaskingAlgorithmSetting_Algorithm) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[36]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0}
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetCategory() string {
- if x != nil {
- return x.Category
- }
- return ""
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetMask() isMaskingAlgorithmSetting_Algorithm_Mask {
- if x != nil {
- return x.Mask
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetFullMask() *MaskingAlgorithmSetting_Algorithm_FullMask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_FullMask_); ok {
- return x.FullMask
- }
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetRangeMask() *MaskingAlgorithmSetting_Algorithm_RangeMask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_RangeMask_); ok {
- return x.RangeMask
- }
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetMd5Mask() *MaskingAlgorithmSetting_Algorithm_MD5Mask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_Md5Mask); ok {
- return x.Md5Mask
- }
- }
- return nil
-}
-
-func (x *MaskingAlgorithmSetting_Algorithm) GetInnerOuterMask() *MaskingAlgorithmSetting_Algorithm_InnerOuterMask {
- if x != nil {
- if x, ok := x.Mask.(*MaskingAlgorithmSetting_Algorithm_InnerOuterMask_); ok {
- return x.InnerOuterMask
- }
- }
- return nil
-}
-
-type isMaskingAlgorithmSetting_Algorithm_Mask interface {
- isMaskingAlgorithmSetting_Algorithm_Mask()
-}
-
-type MaskingAlgorithmSetting_Algorithm_FullMask_ struct {
- FullMask *MaskingAlgorithmSetting_Algorithm_FullMask `protobuf:"bytes,5,opt,name=full_mask,json=fullMask,proto3,oneof"`
-}
-
-type MaskingAlgorithmSetting_Algorithm_RangeMask_ struct {
- RangeMask *MaskingAlgorithmSetting_Algorithm_RangeMask `protobuf:"bytes,6,opt,name=range_mask,json=rangeMask,proto3,oneof"`
-}
-
-type MaskingAlgorithmSetting_Algorithm_Md5Mask struct {
- Md5Mask *MaskingAlgorithmSetting_Algorithm_MD5Mask `protobuf:"bytes,7,opt,name=md5_mask,json=md5Mask,proto3,oneof"`
-}
-
-type MaskingAlgorithmSetting_Algorithm_InnerOuterMask_ struct {
- InnerOuterMask *MaskingAlgorithmSetting_Algorithm_InnerOuterMask `protobuf:"bytes,8,opt,name=inner_outer_mask,json=innerOuterMask,proto3,oneof"`
-}
-
-func (*MaskingAlgorithmSetting_Algorithm_FullMask_) isMaskingAlgorithmSetting_Algorithm_Mask() {}
-
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask_) isMaskingAlgorithmSetting_Algorithm_Mask() {}
-
-func (*MaskingAlgorithmSetting_Algorithm_Md5Mask) isMaskingAlgorithmSetting_Algorithm_Mask() {}
-
-func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask_) isMaskingAlgorithmSetting_Algorithm_Mask() {
-}
-
-type MaskingAlgorithmSetting_Algorithm_FullMask struct {
+type Algorithm_FullMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// substitution is the string used to replace the original value, the
// max length of the string is 16 bytes.
@@ -2965,20 +2964,20 @@ type MaskingAlgorithmSetting_Algorithm_FullMask struct {
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_FullMask{}
+func (x *Algorithm_FullMask) Reset() {
+ *x = Algorithm_FullMask{}
mi := &file_v1_setting_service_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) String() string {
+func (x *Algorithm_FullMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_FullMask) ProtoMessage() {}
+func (*Algorithm_FullMask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {
mi := &file_v1_setting_service_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -2990,41 +2989,41 @@ func (x *MaskingAlgorithmSetting_Algorithm_FullMask) ProtoReflect() protoreflect
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_FullMask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_FullMask) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0, 0}
+// Deprecated: Use Algorithm_FullMask.ProtoReflect.Descriptor instead.
+func (*Algorithm_FullMask) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 0}
}
-func (x *MaskingAlgorithmSetting_Algorithm_FullMask) GetSubstitution() string {
+func (x *Algorithm_FullMask) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
-type MaskingAlgorithmSetting_Algorithm_RangeMask struct {
+type Algorithm_RangeMask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
// But frontend can be started with a single rule easily.
- Slices []*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
+ Slices []*Algorithm_RangeMask_Slice `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_RangeMask{}
+func (x *Algorithm_RangeMask) Reset() {
+ *x = Algorithm_RangeMask{}
mi := &file_v1_setting_service_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) String() string {
+func (x *Algorithm_RangeMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoMessage() {}
+func (*Algorithm_RangeMask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
mi := &file_v1_setting_service_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -3036,19 +3035,19 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) ProtoReflect() protoreflec
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_RangeMask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0, 1}
+// Deprecated: Use Algorithm_RangeMask.ProtoReflect.Descriptor instead.
+func (*Algorithm_RangeMask) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 1}
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask) GetSlices() []*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice {
+func (x *Algorithm_RangeMask) GetSlices() []*Algorithm_RangeMask_Slice {
if x != nil {
return x.Slices
}
return nil
}
-type MaskingAlgorithmSetting_Algorithm_MD5Mask struct {
+type Algorithm_MD5Mask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// salt is the salt value to generate a different hash that with the word alone.
Salt string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"`
@@ -3056,20 +3055,20 @@ type MaskingAlgorithmSetting_Algorithm_MD5Mask struct {
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_MD5Mask{}
+func (x *Algorithm_MD5Mask) Reset() {
+ *x = Algorithm_MD5Mask{}
mi := &file_v1_setting_service_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) String() string {
+func (x *Algorithm_MD5Mask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoMessage() {}
+func (*Algorithm_MD5Mask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
mi := &file_v1_setting_service_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -3081,42 +3080,42 @@ func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) ProtoReflect() protoreflect.
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_MD5Mask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_MD5Mask) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0, 2}
+// Deprecated: Use Algorithm_MD5Mask.ProtoReflect.Descriptor instead.
+func (*Algorithm_MD5Mask) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 2}
}
-func (x *MaskingAlgorithmSetting_Algorithm_MD5Mask) GetSalt() string {
+func (x *Algorithm_MD5Mask) GetSalt() string {
if x != nil {
return x.Salt
}
return ""
}
-type MaskingAlgorithmSetting_Algorithm_InnerOuterMask struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PrefixLen int32 `protobuf:"varint,1,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
- SuffixLen int32 `protobuf:"varint,2,opt,name=suffix_len,json=suffixLen,proto3" json:"suffix_len,omitempty"`
- Type MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType" json:"type,omitempty"`
- Substitution string `protobuf:"bytes,4,opt,name=substitution,proto3" json:"substitution,omitempty"`
+type Algorithm_InnerOuterMask struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ PrefixLen int32 `protobuf:"varint,1,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
+ SuffixLen int32 `protobuf:"varint,2,opt,name=suffix_len,json=suffixLen,proto3" json:"suffix_len,omitempty"`
+ Type Algorithm_InnerOuterMask_MaskType `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.Algorithm_InnerOuterMask_MaskType" json:"type,omitempty"`
+ Substitution string `protobuf:"bytes,4,opt,name=substitution,proto3" json:"substitution,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_InnerOuterMask{}
+func (x *Algorithm_InnerOuterMask) Reset() {
+ *x = Algorithm_InnerOuterMask{}
mi := &file_v1_setting_service_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) String() string {
+func (x *Algorithm_InnerOuterMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoMessage() {}
+func (*Algorithm_InnerOuterMask) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
mi := &file_v1_setting_service_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -3128,40 +3127,40 @@ func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) ProtoReflect() protor
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0, 3}
+// Deprecated: Use Algorithm_InnerOuterMask.ProtoReflect.Descriptor instead.
+func (*Algorithm_InnerOuterMask) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 3}
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetPrefixLen() int32 {
+func (x *Algorithm_InnerOuterMask) GetPrefixLen() int32 {
if x != nil {
return x.PrefixLen
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetSuffixLen() int32 {
+func (x *Algorithm_InnerOuterMask) GetSuffixLen() int32 {
if x != nil {
return x.SuffixLen
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetType() MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType {
+func (x *Algorithm_InnerOuterMask) GetType() Algorithm_InnerOuterMask_MaskType {
if x != nil {
return x.Type
}
- return MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED
+ return Algorithm_InnerOuterMask_MASK_TYPE_UNSPECIFIED
}
-func (x *MaskingAlgorithmSetting_Algorithm_InnerOuterMask) GetSubstitution() string {
+func (x *Algorithm_InnerOuterMask) GetSubstitution() string {
if x != nil {
return x.Substitution
}
return ""
}
-type MaskingAlgorithmSetting_Algorithm_RangeMask_Slice struct {
+type Algorithm_RangeMask_Slice struct {
state protoimpl.MessageState `protogen:"open.v1"`
// start is the start index of the original value, start from 0 and should be less than stop.
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
@@ -3173,20 +3172,20 @@ type MaskingAlgorithmSetting_Algorithm_RangeMask_Slice struct {
sizeCache protoimpl.SizeCache
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) Reset() {
- *x = MaskingAlgorithmSetting_Algorithm_RangeMask_Slice{}
+func (x *Algorithm_RangeMask_Slice) Reset() {
+ *x = Algorithm_RangeMask_Slice{}
mi := &file_v1_setting_service_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) String() string {
+func (x *Algorithm_RangeMask_Slice) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoMessage() {}
+func (*Algorithm_RangeMask_Slice) ProtoMessage() {}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
+func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
mi := &file_v1_setting_service_proto_msgTypes[41]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -3198,26 +3197,26 @@ func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) ProtoReflect() proto
return mi.MessageOf(x)
}
-// Deprecated: Use MaskingAlgorithmSetting_Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.
-func (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{18, 0, 1, 0}
+// Deprecated: Use Algorithm_RangeMask_Slice.ProtoReflect.Descriptor instead.
+func (*Algorithm_RangeMask_Slice) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{19, 1, 0}
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) GetStart() int32 {
+func (x *Algorithm_RangeMask_Slice) GetStart() int32 {
if x != nil {
return x.Start
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) GetEnd() int32 {
+func (x *Algorithm_RangeMask_Slice) GetEnd() int32 {
if x != nil {
return x.End
}
return 0
}
-func (x *MaskingAlgorithmSetting_Algorithm_RangeMask_Slice) GetSubstitution() string {
+func (x *Algorithm_RangeMask_Slice) GetSubstitution() string {
if x != nil {
return x.Substitution
}
@@ -3698,144 +3697,133 @@ var file_v1_setting_service_proto_rawDesc = []byte{
0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x66, 0x75, 0x6c, 0x6c,
0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f,
0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61,
- 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0xee, 0x08,
- 0x0a, 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
- 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x4e, 0x0a, 0x0a, 0x61, 0x6c, 0x67,
- 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b,
- 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61,
- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x1a, 0x82, 0x08, 0x0a, 0x09, 0x41, 0x6c,
- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 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,
- 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x56, 0x0a, 0x09, 0x66,
- 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73,
- 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x46,
- 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4d,
- 0x61, 0x73, 0x6b, 0x12, 0x59, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x61, 0x73,
- 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,
- 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c,
- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73,
- 0x6b, 0x48, 0x00, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x53,
- 0x0a, 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d,
- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,
- 0x2e, 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d,
- 0x61, 0x73, 0x6b, 0x12, 0x69, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74,
- 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b,
- 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e,
- 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e,
- 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x1a, 0x2e,
- 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75,
- 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xb8,
- 0x01, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56, 0x0a, 0x06,
- 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69,
- 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e,
- 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6c,
- 0x69, 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a,
- 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74,
- 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74,
- 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62,
- 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x0a, 0x07, 0x4d, 0x44, 0x35,
- 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0x8b, 0x02, 0x0a, 0x0e, 0x49, 0x6e, 0x6e,
- 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
- 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
- 0x09, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x75,
- 0x66, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
- 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x5a, 0x0a, 0x04, 0x74, 0x79, 0x70,
- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x46, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,
- 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c,
- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74,
- 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52,
- 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74,
- 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62,
- 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x08, 0x4d, 0x61, 0x73,
- 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59,
- 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
- 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f,
- 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x33,
- 0x0a, 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x75,
- 0x6c, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a,
- 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69,
- 0x6d, 0x69, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x03, 0x0a, 0x1a, 0x50, 0x61, 0x73,
- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c,
- 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e,
- 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
- 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
- 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a,
- 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65,
- 0x74, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f,
- 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55,
- 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x3a,
- 0x0a, 0x19, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61,
- 0x6c, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x08, 0x52, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61,
- 0x6c, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x26, 0x72, 0x65,
- 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73,
- 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c,
- 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75,
- 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
- 0x46, 0x6f, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x46, 0x0a,
- 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x18, 0x07, 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, 0x10, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x6f, 0x74,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x44,
- 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4d,
- 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
- 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12,
- 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x32, 0xae, 0x03, 0x0a, 0x0e,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x84,
- 0x01, 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, 0x69,
- 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e,
- 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30,
- 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x7f, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x3b, 0xda, 0x41, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
- 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12,
- 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x22, 0x49, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x1d, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65,
- 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f,
- 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0x51, 0x0a,
+ 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
+ 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x0a, 0x61, 0x6c, 0x67, 0x6f,
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72,
+ 0x69, 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73,
+ 0x22, 0xf2, 0x06, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 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, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f,
+ 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f,
+ 0x72, 0x79, 0x12, 0x3e, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x46, 0x75,
+ 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61,
+ 0x73, 0x6b, 0x12, 0x41, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52,
+ 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67,
+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x6d, 0x61, 0x73,
+ 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e,
+ 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d, 0x61,
+ 0x73, 0x6b, 0x12, 0x51, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x65,
+ 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72,
+ 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d,
+ 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65,
+ 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x1a, 0x2e, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73,
+ 0x6b, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74,
+ 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xa0, 0x01, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d,
+ 0x61, 0x73, 0x6b, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67,
+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6c, 0x69,
+ 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05,
+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61,
+ 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73,
+ 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x0a, 0x07, 0x4d, 0x44, 0x35, 0x4d,
+ 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0xf3, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x6e, 0x65,
+ 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72,
+ 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
+ 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x66,
+ 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73,
+ 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49,
+ 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x4d, 0x61,
+ 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c,
+ 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e,
+ 0x22, 0x3b, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15,
+ 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45, 0x52,
+ 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06, 0x0a,
+ 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x33, 0x0a, 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d,
+ 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x43,
+ 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
+ 0x9a, 0x03, 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74,
+ 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a,
+ 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4e, 0x75,
+ 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f,
+ 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65,
+ 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x72,
+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65,
+ 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72,
+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x4c,
+ 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
+ 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74,
+ 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
+ 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65,
+ 0x72, 0x12, 0x51, 0x0a, 0x26, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73,
+ 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f,
+ 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50,
+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c,
+ 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
+ 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 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, 0x10, 0x70, 0x61, 0x73, 0x73,
+ 0x77, 0x6f, 0x72, 0x64, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x54, 0x0a, 0x12,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f,
+ 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43,
+ 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45,
+ 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52,
+ 0x10, 0x02, 0x32, 0xae, 0x03, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x84, 0x01, 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, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x00,
+ 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e,
+ 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c,
+ 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x7f, 0x0a, 0x0a,
+ 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x22, 0x3b, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e,
+ 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01,
+ 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
+ 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62,
+ 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x90, 0xea, 0x30,
+ 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x73, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,
+ 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -3857,7 +3845,7 @@ var file_v1_setting_service_proto_goTypes = []any{
(SMTPMailDeliverySettingValue_Encryption)(0), // 1: bytebase.v1.SMTPMailDeliverySettingValue.Encryption
(SMTPMailDeliverySettingValue_Authentication)(0), // 2: bytebase.v1.SMTPMailDeliverySettingValue.Authentication
(Announcement_AlertLevel)(0), // 3: bytebase.v1.Announcement.AlertLevel
- (MaskingAlgorithmSetting_Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
+ (Algorithm_InnerOuterMask_MaskType)(0), // 4: bytebase.v1.Algorithm.InnerOuterMask.MaskType
(*ListSettingsRequest)(nil), // 5: bytebase.v1.ListSettingsRequest
(*ListSettingsResponse)(nil), // 6: bytebase.v1.ListSettingsResponse
(*GetSettingRequest)(nil), // 7: bytebase.v1.GetSettingRequest
@@ -3877,40 +3865,40 @@ var file_v1_setting_service_proto_goTypes = []any{
(*DataClassificationSetting)(nil), // 21: bytebase.v1.DataClassificationSetting
(*SemanticTypeSetting)(nil), // 22: bytebase.v1.SemanticTypeSetting
(*MaskingAlgorithmSetting)(nil), // 23: bytebase.v1.MaskingAlgorithmSetting
- (*MaximumSQLResultSizeSetting)(nil), // 24: bytebase.v1.MaximumSQLResultSizeSetting
- (*SCIMSetting)(nil), // 25: bytebase.v1.SCIMSetting
- (*PasswordRestrictionSetting)(nil), // 26: bytebase.v1.PasswordRestrictionSetting
- (*AppIMSetting_Slack)(nil), // 27: bytebase.v1.AppIMSetting.Slack
- (*AppIMSetting_Feishu)(nil), // 28: bytebase.v1.AppIMSetting.Feishu
- (*AppIMSetting_Wecom)(nil), // 29: bytebase.v1.AppIMSetting.Wecom
- (*AppIMSetting_Lark)(nil), // 30: bytebase.v1.AppIMSetting.Lark
- (*WorkspaceApprovalSetting_Rule)(nil), // 31: bytebase.v1.WorkspaceApprovalSetting.Rule
- (*ExternalApprovalSetting_Node)(nil), // 32: bytebase.v1.ExternalApprovalSetting.Node
- (*SchemaTemplateSetting_FieldTemplate)(nil), // 33: bytebase.v1.SchemaTemplateSetting.FieldTemplate
- (*SchemaTemplateSetting_ColumnType)(nil), // 34: bytebase.v1.SchemaTemplateSetting.ColumnType
- (*SchemaTemplateSetting_TableTemplate)(nil), // 35: bytebase.v1.SchemaTemplateSetting.TableTemplate
- (*DataClassificationSetting_DataClassificationConfig)(nil), // 36: bytebase.v1.DataClassificationSetting.DataClassificationConfig
- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 37: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 38: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
- nil, // 39: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- (*SemanticTypeSetting_SemanticType)(nil), // 40: bytebase.v1.SemanticTypeSetting.SemanticType
- (*MaskingAlgorithmSetting_Algorithm)(nil), // 41: bytebase.v1.MaskingAlgorithmSetting.Algorithm
- (*MaskingAlgorithmSetting_Algorithm_FullMask)(nil), // 42: bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask)(nil), // 43: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask
- (*MaskingAlgorithmSetting_Algorithm_MD5Mask)(nil), // 44: bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask
- (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask)(nil), // 45: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- (*MaskingAlgorithmSetting_Algorithm_RangeMask_Slice)(nil), // 46: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask
- (*durationpb.Duration)(nil), // 48: google.protobuf.Duration
- (*timestamppb.Timestamp)(nil), // 49: google.protobuf.Timestamp
- (PlanType)(0), // 50: bytebase.v1.PlanType
- (*ApprovalTemplate)(nil), // 51: bytebase.v1.ApprovalTemplate
- (*expr.Expr)(nil), // 52: google.type.Expr
- (Engine)(0), // 53: bytebase.v1.Engine
- (*ColumnMetadata)(nil), // 54: bytebase.v1.ColumnMetadata
- (*ColumnCatalog)(nil), // 55: bytebase.v1.ColumnCatalog
- (*TableMetadata)(nil), // 56: bytebase.v1.TableMetadata
- (*TableCatalog)(nil), // 57: bytebase.v1.TableCatalog
+ (*Algorithm)(nil), // 24: bytebase.v1.Algorithm
+ (*MaximumSQLResultSizeSetting)(nil), // 25: bytebase.v1.MaximumSQLResultSizeSetting
+ (*SCIMSetting)(nil), // 26: bytebase.v1.SCIMSetting
+ (*PasswordRestrictionSetting)(nil), // 27: bytebase.v1.PasswordRestrictionSetting
+ (*AppIMSetting_Slack)(nil), // 28: bytebase.v1.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 29: bytebase.v1.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 30: bytebase.v1.AppIMSetting.Wecom
+ (*AppIMSetting_Lark)(nil), // 31: bytebase.v1.AppIMSetting.Lark
+ (*WorkspaceApprovalSetting_Rule)(nil), // 32: bytebase.v1.WorkspaceApprovalSetting.Rule
+ (*ExternalApprovalSetting_Node)(nil), // 33: bytebase.v1.ExternalApprovalSetting.Node
+ (*SchemaTemplateSetting_FieldTemplate)(nil), // 34: bytebase.v1.SchemaTemplateSetting.FieldTemplate
+ (*SchemaTemplateSetting_ColumnType)(nil), // 35: bytebase.v1.SchemaTemplateSetting.ColumnType
+ (*SchemaTemplateSetting_TableTemplate)(nil), // 36: bytebase.v1.SchemaTemplateSetting.TableTemplate
+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 37: bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 38: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 39: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ nil, // 40: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ (*SemanticTypeSetting_SemanticType)(nil), // 41: bytebase.v1.SemanticTypeSetting.SemanticType
+ (*Algorithm_FullMask)(nil), // 42: bytebase.v1.Algorithm.FullMask
+ (*Algorithm_RangeMask)(nil), // 43: bytebase.v1.Algorithm.RangeMask
+ (*Algorithm_MD5Mask)(nil), // 44: bytebase.v1.Algorithm.MD5Mask
+ (*Algorithm_InnerOuterMask)(nil), // 45: bytebase.v1.Algorithm.InnerOuterMask
+ (*Algorithm_RangeMask_Slice)(nil), // 46: bytebase.v1.Algorithm.RangeMask.Slice
+ (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask
+ (*durationpb.Duration)(nil), // 48: google.protobuf.Duration
+ (*timestamppb.Timestamp)(nil), // 49: google.protobuf.Timestamp
+ (PlanType)(0), // 50: bytebase.v1.PlanType
+ (*ApprovalTemplate)(nil), // 51: bytebase.v1.ApprovalTemplate
+ (*expr.Expr)(nil), // 52: google.type.Expr
+ (Engine)(0), // 53: bytebase.v1.Engine
+ (*ColumnMetadata)(nil), // 54: bytebase.v1.ColumnMetadata
+ (*ColumnCatalog)(nil), // 55: bytebase.v1.ColumnCatalog
+ (*TableMetadata)(nil), // 56: bytebase.v1.TableMetadata
+ (*TableCatalog)(nil), // 57: bytebase.v1.TableCatalog
}
var file_v1_setting_service_proto_depIdxs = []int32{
10, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting
@@ -3929,50 +3917,50 @@ var file_v1_setting_service_proto_depIdxs = []int32{
21, // 13: bytebase.v1.Value.data_classification_setting_value:type_name -> bytebase.v1.DataClassificationSetting
22, // 14: bytebase.v1.Value.semantic_type_setting_value:type_name -> bytebase.v1.SemanticTypeSetting
23, // 15: bytebase.v1.Value.masking_algorithm_setting_value:type_name -> bytebase.v1.MaskingAlgorithmSetting
- 24, // 16: bytebase.v1.Value.maximum_sql_result_size_setting:type_name -> bytebase.v1.MaximumSQLResultSizeSetting
- 25, // 17: bytebase.v1.Value.scim_setting:type_name -> bytebase.v1.SCIMSetting
- 26, // 18: bytebase.v1.Value.password_restriction_setting:type_name -> bytebase.v1.PasswordRestrictionSetting
+ 25, // 16: bytebase.v1.Value.maximum_sql_result_size_setting:type_name -> bytebase.v1.MaximumSQLResultSizeSetting
+ 26, // 17: bytebase.v1.Value.scim_setting:type_name -> bytebase.v1.SCIMSetting
+ 27, // 18: bytebase.v1.Value.password_restriction_setting:type_name -> bytebase.v1.PasswordRestrictionSetting
1, // 19: bytebase.v1.SMTPMailDeliverySettingValue.encryption:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Encryption
2, // 20: bytebase.v1.SMTPMailDeliverySettingValue.authentication:type_name -> bytebase.v1.SMTPMailDeliverySettingValue.Authentication
- 27, // 21: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
- 28, // 22: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
- 29, // 23: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
- 30, // 24: bytebase.v1.AppIMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark
+ 28, // 21: bytebase.v1.AppIMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
+ 29, // 22: bytebase.v1.AppIMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
+ 30, // 23: bytebase.v1.AppIMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
+ 31, // 24: bytebase.v1.AppIMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark
48, // 25: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
16, // 26: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement
48, // 27: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
0, // 28: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode
3, // 29: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel
- 31, // 30: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule
- 32, // 31: bytebase.v1.ExternalApprovalSetting.nodes:type_name -> bytebase.v1.ExternalApprovalSetting.Node
- 33, // 32: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate
- 34, // 33: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType
- 35, // 34: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate
+ 32, // 30: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule
+ 33, // 31: bytebase.v1.ExternalApprovalSetting.nodes:type_name -> bytebase.v1.ExternalApprovalSetting.Node
+ 34, // 32: bytebase.v1.SchemaTemplateSetting.field_templates:type_name -> bytebase.v1.SchemaTemplateSetting.FieldTemplate
+ 35, // 33: bytebase.v1.SchemaTemplateSetting.column_types:type_name -> bytebase.v1.SchemaTemplateSetting.ColumnType
+ 36, // 34: bytebase.v1.SchemaTemplateSetting.table_templates:type_name -> bytebase.v1.SchemaTemplateSetting.TableTemplate
49, // 35: bytebase.v1.WorkspaceTrialSetting.expire_time:type_name -> google.protobuf.Timestamp
49, // 36: bytebase.v1.WorkspaceTrialSetting.issued_time:type_name -> google.protobuf.Timestamp
50, // 37: bytebase.v1.WorkspaceTrialSetting.plan:type_name -> bytebase.v1.PlanType
- 36, // 38: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig
- 40, // 39: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType
- 41, // 40: bytebase.v1.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm
- 48, // 41: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
- 51, // 42: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate
- 52, // 43: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
- 53, // 44: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine
- 54, // 45: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata
- 55, // 46: bytebase.v1.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.v1.ColumnCatalog
- 53, // 47: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine
- 53, // 48: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine
- 56, // 49: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata
- 57, // 50: bytebase.v1.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.v1.TableCatalog
- 37, // 51: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
- 39, // 52: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- 38, // 53: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
- 42, // 54: bytebase.v1.MaskingAlgorithmSetting.Algorithm.full_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask
- 43, // 55: bytebase.v1.MaskingAlgorithmSetting.Algorithm.range_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask
- 44, // 56: bytebase.v1.MaskingAlgorithmSetting.Algorithm.md5_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask
- 45, // 57: bytebase.v1.MaskingAlgorithmSetting.Algorithm.inner_outer_mask:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask
- 46, // 58: bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.slices:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice
- 4, // 59: bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType
+ 37, // 38: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ 41, // 39: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType
+ 24, // 40: bytebase.v1.MaskingAlgorithmSetting.algorithms:type_name -> bytebase.v1.Algorithm
+ 42, // 41: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask
+ 43, // 42: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask
+ 44, // 43: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask
+ 45, // 44: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask
+ 48, // 45: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
+ 51, // 46: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate
+ 52, // 47: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 53, // 48: bytebase.v1.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.v1.Engine
+ 54, // 49: bytebase.v1.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.v1.ColumnMetadata
+ 55, // 50: bytebase.v1.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.v1.ColumnCatalog
+ 53, // 51: bytebase.v1.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.v1.Engine
+ 53, // 52: bytebase.v1.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.v1.Engine
+ 56, // 53: bytebase.v1.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.v1.TableMetadata
+ 57, // 54: bytebase.v1.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.v1.TableCatalog
+ 38, // 55: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ 40, // 56: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 39, // 57: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 46, // 58: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice
+ 4, // 59: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType
5, // 60: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest
7, // 61: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest
9, // 62: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest
@@ -4015,13 +4003,13 @@ func file_v1_setting_service_proto_init() {
(*Value_PasswordRestrictionSetting)(nil),
}
file_v1_setting_service_proto_msgTypes[7].OneofWrappers = []any{}
- file_v1_setting_service_proto_msgTypes[33].OneofWrappers = []any{}
- file_v1_setting_service_proto_msgTypes[36].OneofWrappers = []any{
- (*MaskingAlgorithmSetting_Algorithm_FullMask_)(nil),
- (*MaskingAlgorithmSetting_Algorithm_RangeMask_)(nil),
- (*MaskingAlgorithmSetting_Algorithm_Md5Mask)(nil),
- (*MaskingAlgorithmSetting_Algorithm_InnerOuterMask_)(nil),
+ file_v1_setting_service_proto_msgTypes[19].OneofWrappers = []any{
+ (*Algorithm_FullMask_)(nil),
+ (*Algorithm_RangeMask_)(nil),
+ (*Algorithm_Md5Mask)(nil),
+ (*Algorithm_InnerOuterMask_)(nil),
}
+ file_v1_setting_service_proto_msgTypes[34].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
diff --git a/proto/store/setting.proto b/proto/store/setting.proto
index fb96f4addf..0ca3dcf84e 100644
--- a/proto/store/setting.proto
+++ b/proto/store/setting.proto
@@ -248,69 +248,69 @@ message SemanticTypeSetting {
}
message MaskingAlgorithmSetting {
- message Algorithm {
- // id is the uuid for masking algorithm.
- string id = 1;
- // title is the title for masking algorithm.
- string title = 2;
- // description is the description for masking algorithm.
- string description = 3;
-
- // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
- // The range of accepted Payload is decided by the category.
- // MASK: FullMask, RangeMask
- // HASH: MD5Mask
- string category = 4;
-
- message FullMask {
- // substitution is the string used to replace the original value, the
- // max length of the string is 16 bytes.
- string substitution = 1;
- }
+ // algorithms is the list of masking algorithms.
+ repeated Algorithm algorithms = 1;
+}
- message RangeMask {
- message Slice {
- // start is the start index of the original value, start from 0 and should be less than stop.
- int32 start = 1;
- // stop is the stop index of the original value, should be less than the length of the original value.
- int32 end = 2;
- // OriginalValue[start:end) would be replaced with replace_with.
- string substitution = 3;
- }
- // We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
- // But frontend can be started with a single rule easily.
- repeated Slice slices = 1;
- }
+message Algorithm {
+ // id is the uuid for masking algorithm.
+ string id = 1;
+ // title is the title for masking algorithm.
+ string title = 2;
+ // description is the description for masking algorithm.
+ string description = 3;
+
+ // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+ // The range of accepted Payload is decided by the category.
+ // MASK: FullMask, RangeMask
+ // HASH: MD5Mask
+ string category = 4;
+
+ message FullMask {
+ // substitution is the string used to replace the original value, the
+ // max length of the string is 16 bytes.
+ string substitution = 1;
+ }
- message MD5Mask {
- // salt is the salt value to generate a different hash that with the word alone.
- string salt = 1;
+ message RangeMask {
+ message Slice {
+ // start is the start index of the original value, start from 0 and should be less than stop.
+ int32 start = 1;
+ // stop is the stop index of the original value, should be less than the length of the original value.
+ int32 end = 2;
+ // OriginalValue[start:end) would be replaced with replace_with.
+ string substitution = 3;
}
+ // We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
+ // But frontend can be started with a single rule easily.
+ repeated Slice slices = 1;
+ }
- message InnerOuterMask {
- int32 prefix_len = 1;
- int32 suffix_len = 2;
- string substitution = 3;
+ message MD5Mask {
+ // salt is the salt value to generate a different hash that with the word alone.
+ string salt = 1;
+ }
- enum MaskType {
- MASK_TYPE_UNSPECIFIED = 0;
- INNER = 1;
- OUTER = 2;
- }
+ message InnerOuterMask {
+ int32 prefix_len = 1;
+ int32 suffix_len = 2;
+ string substitution = 3;
- MaskType type = 4;
+ enum MaskType {
+ MASK_TYPE_UNSPECIFIED = 0;
+ INNER = 1;
+ OUTER = 2;
}
- oneof mask {
- FullMask full_mask = 5;
- RangeMask range_mask = 6;
- MD5Mask md5_mask = 7;
- InnerOuterMask inner_outer_mask = 8;
- }
+ MaskType type = 4;
}
- // algorithms is the list of masking algorithms.
- repeated Algorithm algorithms = 1;
+ oneof mask {
+ FullMask full_mask = 5;
+ RangeMask range_mask = 6;
+ MD5Mask md5_mask = 7;
+ InnerOuterMask inner_outer_mask = 8;
+ }
}
message AppIMSetting {
diff --git a/proto/v1/setting_service.proto b/proto/v1/setting_service.proto
index 17971aa3ba..5e58e785a1 100644
--- a/proto/v1/setting_service.proto
+++ b/proto/v1/setting_service.proto
@@ -410,70 +410,70 @@ message SemanticTypeSetting {
}
message MaskingAlgorithmSetting {
- message Algorithm {
- // id is the uuid for masking algorithm.
- string id = 1;
- // title is the title for masking algorithm.
- string title = 2;
- // description is the description for masking algorithm.
- string description = 3;
-
- // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
- // The range of accepted Payload is decided by the category.
- // MASK: FullMask, RangeMask
- // HASH: MD5Mask
- string category = 4;
-
- message FullMask {
- // substitution is the string used to replace the original value, the
- // max length of the string is 16 bytes.
- string substitution = 1;
- }
+ // algorithms is the list of masking algorithms.
+ repeated Algorithm algorithms = 1;
+}
- message RangeMask {
- message Slice {
- // start is the start index of the original value, start from 0 and should be less than stop.
- int32 start = 1;
- // stop is the stop index of the original value, should be less than the length of the original value.
- int32 end = 2;
- // substitution is the string used to replace the OriginalValue[start:end).
- string substitution = 3;
- }
- // We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
- // But frontend can be started with a single rule easily.
- repeated Slice slices = 1;
- }
+message Algorithm {
+ // id is the uuid for masking algorithm.
+ string id = 1;
+ // title is the title for masking algorithm.
+ string title = 2;
+ // description is the description for masking algorithm.
+ string description = 3;
+
+ // Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.
+ // The range of accepted Payload is decided by the category.
+ // MASK: FullMask, RangeMask
+ // HASH: MD5Mask
+ string category = 4;
+
+ message FullMask {
+ // substitution is the string used to replace the original value, the
+ // max length of the string is 16 bytes.
+ string substitution = 1;
+ }
- message MD5Mask {
- // salt is the salt value to generate a different hash that with the word alone.
- string salt = 1;
+ message RangeMask {
+ message Slice {
+ // start is the start index of the original value, start from 0 and should be less than stop.
+ int32 start = 1;
+ // stop is the stop index of the original value, should be less than the length of the original value.
+ int32 end = 2;
+ // substitution is the string used to replace the OriginalValue[start:end).
+ string substitution = 3;
}
+ // We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.
+ // But frontend can be started with a single rule easily.
+ repeated Slice slices = 1;
+ }
- message InnerOuterMask {
- int32 prefix_len = 1;
- int32 suffix_len = 2;
-
- enum MaskType {
- MASK_TYPE_UNSPECIFIED = 0;
- INNER = 1;
- OUTER = 2;
- }
+ message MD5Mask {
+ // salt is the salt value to generate a different hash that with the word alone.
+ string salt = 1;
+ }
- MaskType type = 3;
+ message InnerOuterMask {
+ int32 prefix_len = 1;
+ int32 suffix_len = 2;
- string substitution = 4;
+ enum MaskType {
+ MASK_TYPE_UNSPECIFIED = 0;
+ INNER = 1;
+ OUTER = 2;
}
- oneof mask {
- FullMask full_mask = 5;
- RangeMask range_mask = 6;
- MD5Mask md5_mask = 7;
- InnerOuterMask inner_outer_mask = 8;
- }
+ MaskType type = 3;
+
+ string substitution = 4;
}
- // algorithms is the list of masking algorithms.
- repeated Algorithm algorithms = 1;
+ oneof mask {
+ FullMask full_mask = 5;
+ RangeMask range_mask = 6;
+ MD5Mask md5_mask = 7;
+ InnerOuterMask inner_outer_mask = 8;
+ }
}
enum DatabaseChangeMode {