Skip to content

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

chore: move to deprecated proto (#14818)

Danny Xud644c9414b4a
diff --git a/backend/server/init.go b/backend/server/init.go
index 173aed4682..981ede2047 100644
--- a/backend/server/init.go
+++ b/backend/server/init.go
@@ -270,7 +270,7 @@ func (s *Server) migrateMaskingData(ctx context.Context) error {
}
for _, policy := range policies {
- p := new(storepb.MaskingPolicy)
+ p := new(storepb.DeprecatedMaskingPolicy)
if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(policy.Payload), p); err != nil {
return errors.Wrapf(err, "failed to unmarshal masking policy")
}
diff --git a/frontend/src/types/proto/store/deprecated.ts b/frontend/src/types/proto/store/deprecated.ts
new file mode 100644
index 0000000000..366495a365
--- /dev/null
+++ b/frontend/src/types/proto/store/deprecated.ts
@@ -0,0 +1,261 @@
+// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
+// versions:
+// protoc-gen-ts_proto v2.3.0
+// protoc unknown
+// source: store/deprecated.proto
+
+/* eslint-disable */
+import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
+import Long from "long";
+import { MaskingLevel, maskingLevelFromJSON, maskingLevelToJSON, maskingLevelToNumber } from "./common";
+
+export const protobufPackage = "bytebase.store";
+
+export interface DeprecatedMaskingPolicy {
+ maskData: DeprecatedMaskData[];
+}
+
+export interface DeprecatedMaskData {
+ schema: string;
+ table: string;
+ column: string;
+ maskingLevel: MaskingLevel;
+ fullMaskingAlgorithmId: string;
+ partialMaskingAlgorithmId: string;
+}
+
+function createBaseDeprecatedMaskingPolicy(): DeprecatedMaskingPolicy {
+ return { maskData: [] };
+}
+
+export const DeprecatedMaskingPolicy: MessageFns<DeprecatedMaskingPolicy> = {
+ encode(message: DeprecatedMaskingPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+ for (const v of message.maskData) {
+ DeprecatedMaskData.encode(v!, writer.uint32(10).fork()).join();
+ }
+ return writer;
+ },
+
+ decode(input: BinaryReader | Uint8Array, length?: number): DeprecatedMaskingPolicy {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDeprecatedMaskingPolicy();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (tag !== 10) {
+ break;
+ }
+
+ message.maskData.push(DeprecatedMaskData.decode(reader, reader.uint32()));
+ continue;
+ }
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skip(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DeprecatedMaskingPolicy {
+ return {
+ maskData: globalThis.Array.isArray(object?.maskData)
+ ? object.maskData.map((e: any) => DeprecatedMaskData.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: DeprecatedMaskingPolicy): unknown {
+ const obj: any = {};
+ if (message.maskData?.length) {
+ obj.maskData = message.maskData.map((e) => DeprecatedMaskData.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<DeprecatedMaskingPolicy>): DeprecatedMaskingPolicy {
+ return DeprecatedMaskingPolicy.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<DeprecatedMaskingPolicy>): DeprecatedMaskingPolicy {
+ const message = createBaseDeprecatedMaskingPolicy();
+ message.maskData = object.maskData?.map((e) => DeprecatedMaskData.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseDeprecatedMaskData(): DeprecatedMaskData {
+ return {
+ schema: "",
+ table: "",
+ column: "",
+ maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
+ fullMaskingAlgorithmId: "",
+ partialMaskingAlgorithmId: "",
+ };
+}
+
+export const DeprecatedMaskData: MessageFns<DeprecatedMaskData> = {
+ encode(message: DeprecatedMaskData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
+ if (message.schema !== "") {
+ writer.uint32(10).string(message.schema);
+ }
+ if (message.table !== "") {
+ writer.uint32(18).string(message.table);
+ }
+ if (message.column !== "") {
+ writer.uint32(26).string(message.column);
+ }
+ if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {
+ writer.uint32(32).int32(maskingLevelToNumber(message.maskingLevel));
+ }
+ if (message.fullMaskingAlgorithmId !== "") {
+ writer.uint32(42).string(message.fullMaskingAlgorithmId);
+ }
+ if (message.partialMaskingAlgorithmId !== "") {
+ writer.uint32(50).string(message.partialMaskingAlgorithmId);
+ }
+ return writer;
+ },
+
+ decode(input: BinaryReader | Uint8Array, length?: number): DeprecatedMaskData {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDeprecatedMaskData();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (tag !== 10) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ }
+ case 2: {
+ if (tag !== 18) {
+ break;
+ }
+
+ message.table = reader.string();
+ continue;
+ }
+ case 3: {
+ if (tag !== 26) {
+ break;
+ }
+
+ message.column = reader.string();
+ continue;
+ }
+ case 4: {
+ if (tag !== 32) {
+ break;
+ }
+
+ message.maskingLevel = maskingLevelFromJSON(reader.int32());
+ continue;
+ }
+ case 5: {
+ if (tag !== 42) {
+ break;
+ }
+
+ message.fullMaskingAlgorithmId = reader.string();
+ continue;
+ }
+ case 6: {
+ if (tag !== 50) {
+ break;
+ }
+
+ message.partialMaskingAlgorithmId = reader.string();
+ continue;
+ }
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skip(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DeprecatedMaskData {
+ return {
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ table: isSet(object.table) ? globalThis.String(object.table) : "",
+ column: isSet(object.column) ? globalThis.String(object.column) : "",
+ maskingLevel: isSet(object.maskingLevel)
+ ? maskingLevelFromJSON(object.maskingLevel)
+ : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
+ fullMaskingAlgorithmId: isSet(object.fullMaskingAlgorithmId)
+ ? globalThis.String(object.fullMaskingAlgorithmId)
+ : "",
+ partialMaskingAlgorithmId: isSet(object.partialMaskingAlgorithmId)
+ ? globalThis.String(object.partialMaskingAlgorithmId)
+ : "",
+ };
+ },
+
+ toJSON(message: DeprecatedMaskData): unknown {
+ const obj: any = {};
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.table !== "") {
+ obj.table = message.table;
+ }
+ if (message.column !== "") {
+ obj.column = message.column;
+ }
+ if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {
+ obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);
+ }
+ if (message.fullMaskingAlgorithmId !== "") {
+ obj.fullMaskingAlgorithmId = message.fullMaskingAlgorithmId;
+ }
+ if (message.partialMaskingAlgorithmId !== "") {
+ obj.partialMaskingAlgorithmId = message.partialMaskingAlgorithmId;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<DeprecatedMaskData>): DeprecatedMaskData {
+ return DeprecatedMaskData.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<DeprecatedMaskData>): DeprecatedMaskData {
+ const message = createBaseDeprecatedMaskData();
+ message.schema = object.schema ?? "";
+ message.table = object.table ?? "";
+ message.column = object.column ?? "";
+ message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;
+ message.fullMaskingAlgorithmId = object.fullMaskingAlgorithmId ?? "";
+ message.partialMaskingAlgorithmId = object.partialMaskingAlgorithmId ?? "";
+ return message;
+ },
+};
+
+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
+
+export type DeepPartial<T> = T extends Builtin ? T
+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
+ : Partial<T>;
+
+function isSet(value: any): boolean {
+ return value !== null && value !== undefined;
+}
+
+export interface MessageFns<T> {
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
+ fromJSON(object: any): T;
+ toJSON(message: T): unknown;
+ create(base?: DeepPartial<T>): T;
+ fromPartial(object: DeepPartial<T>): T;
+}
diff --git a/frontend/src/types/proto/store/policy.ts b/frontend/src/types/proto/store/policy.ts
index dfc71829ce..ec378e8f5d 100644
--- a/frontend/src/types/proto/store/policy.ts
+++ b/frontend/src/types/proto/store/policy.ts
@@ -93,19 +93,6 @@ export interface RolloutPolicy {
issueRoles: string[];
}
-export interface MaskingPolicy {
- maskData: MaskData[];
-}
-
-export interface MaskData {
- schema: string;
- table: string;
- column: string;
- maskingLevel: MaskingLevel;
- fullMaskingAlgorithmId: string;
- partialMaskingAlgorithmId: string;
-}
-
/** MaskingExceptionPolicy is the allowlist of users who can access sensitive data. */
export interface MaskingExceptionPolicy {
maskingExceptions: MaskingExceptionPolicy_MaskingException[];
@@ -500,219 +487,6 @@ export const RolloutPolicy: MessageFns<RolloutPolicy> = {
},
};
-function createBaseMaskingPolicy(): MaskingPolicy {
- return { maskData: [] };
-}
-
-export const MaskingPolicy: MessageFns<MaskingPolicy> = {
- encode(message: MaskingPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- for (const v of message.maskData) {
- MaskData.encode(v!, writer.uint32(10).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): MaskingPolicy {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskingPolicy();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.maskData.push(MaskData.decode(reader, reader.uint32()));
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): MaskingPolicy {
- return {
- maskData: globalThis.Array.isArray(object?.maskData) ? object.maskData.map((e: any) => MaskData.fromJSON(e)) : [],
- };
- },
-
- toJSON(message: MaskingPolicy): unknown {
- const obj: any = {};
- if (message.maskData?.length) {
- obj.maskData = message.maskData.map((e) => MaskData.toJSON(e));
- }
- return obj;
- },
-
- create(base?: DeepPartial<MaskingPolicy>): MaskingPolicy {
- return MaskingPolicy.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<MaskingPolicy>): MaskingPolicy {
- const message = createBaseMaskingPolicy();
- message.maskData = object.maskData?.map((e) => MaskData.fromPartial(e)) || [];
- return message;
- },
-};
-
-function createBaseMaskData(): MaskData {
- return {
- schema: "",
- table: "",
- column: "",
- maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
- fullMaskingAlgorithmId: "",
- partialMaskingAlgorithmId: "",
- };
-}
-
-export const MaskData: MessageFns<MaskData> = {
- encode(message: MaskData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.schema !== "") {
- writer.uint32(10).string(message.schema);
- }
- if (message.table !== "") {
- writer.uint32(18).string(message.table);
- }
- if (message.column !== "") {
- writer.uint32(26).string(message.column);
- }
- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {
- writer.uint32(32).int32(maskingLevelToNumber(message.maskingLevel));
- }
- if (message.fullMaskingAlgorithmId !== "") {
- writer.uint32(42).string(message.fullMaskingAlgorithmId);
- }
- if (message.partialMaskingAlgorithmId !== "") {
- writer.uint32(50).string(message.partialMaskingAlgorithmId);
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): MaskData {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseMaskData();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.schema = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.table = reader.string();
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.column = reader.string();
- continue;
- }
- case 4: {
- if (tag !== 32) {
- break;
- }
-
- message.maskingLevel = maskingLevelFromJSON(reader.int32());
- continue;
- }
- case 5: {
- if (tag !== 42) {
- break;
- }
-
- message.fullMaskingAlgorithmId = reader.string();
- continue;
- }
- case 6: {
- if (tag !== 50) {
- break;
- }
-
- message.partialMaskingAlgorithmId = reader.string();
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): MaskData {
- return {
- schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
- table: isSet(object.table) ? globalThis.String(object.table) : "",
- column: isSet(object.column) ? globalThis.String(object.column) : "",
- maskingLevel: isSet(object.maskingLevel)
- ? maskingLevelFromJSON(object.maskingLevel)
- : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
- fullMaskingAlgorithmId: isSet(object.fullMaskingAlgorithmId)
- ? globalThis.String(object.fullMaskingAlgorithmId)
- : "",
- partialMaskingAlgorithmId: isSet(object.partialMaskingAlgorithmId)
- ? globalThis.String(object.partialMaskingAlgorithmId)
- : "",
- };
- },
-
- toJSON(message: MaskData): unknown {
- const obj: any = {};
- if (message.schema !== "") {
- obj.schema = message.schema;
- }
- if (message.table !== "") {
- obj.table = message.table;
- }
- if (message.column !== "") {
- obj.column = message.column;
- }
- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {
- obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);
- }
- if (message.fullMaskingAlgorithmId !== "") {
- obj.fullMaskingAlgorithmId = message.fullMaskingAlgorithmId;
- }
- if (message.partialMaskingAlgorithmId !== "") {
- obj.partialMaskingAlgorithmId = message.partialMaskingAlgorithmId;
- }
- return obj;
- },
-
- create(base?: DeepPartial<MaskData>): MaskData {
- return MaskData.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<MaskData>): MaskData {
- const message = createBaseMaskData();
- message.schema = object.schema ?? "";
- message.table = object.table ?? "";
- message.column = object.column ?? "";
- message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;
- message.fullMaskingAlgorithmId = object.fullMaskingAlgorithmId ?? "";
- message.partialMaskingAlgorithmId = object.partialMaskingAlgorithmId ?? "";
- return message;
- },
-};
-
function createBaseMaskingExceptionPolicy(): MaskingExceptionPolicy {
return { maskingExceptions: [] };
}
diff --git a/frontend/src/types/proto/v1/common.ts b/frontend/src/types/proto/v1/common.ts
index 1b9ba386d9..07fc19071f 100644
--- a/frontend/src/types/proto/v1/common.ts
+++ b/frontend/src/types/proto/v1/common.ts
@@ -529,10 +529,7 @@ function createBasePosition(): Position {
}
export const Position: MessageFns<Position> = {
- encode(
- message: Position,
- writer: BinaryWriter = new BinaryWriter()
- ): BinaryWriter {
+ encode(message: Position, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.line !== 0) {
writer.uint32(8).int32(message.line);
}
@@ -543,8 +540,7 @@ export const Position: MessageFns<Position> = {
},
decode(input: BinaryReader | Uint8Array, length?: number): Position {
- const reader =
- input instanceof BinaryReader ? input : new BinaryReader(input);
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePosition();
while (reader.pos < end) {
@@ -609,10 +605,7 @@ function createBaseRange(): Range {
}
export const Range: MessageFns<Range> = {
- encode(
- message: Range,
- writer: BinaryWriter = new BinaryWriter()
- ): BinaryWriter {
+ encode(message: Range, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.start !== 0) {
writer.uint32(8).int32(message.start);
}
@@ -623,8 +616,7 @@ export const Range: MessageFns<Range> = {
},
decode(input: BinaryReader | Uint8Array, length?: number): Range {
- const reader =
- input instanceof BinaryReader ? input : new BinaryReader(input);
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseRange();
while (reader.pos < end) {
@@ -684,26 +676,13 @@ export const Range: MessageFns<Range> = {
},
};
-type Builtin =
- | Date
- | Function
- | Uint8Array
- | string
- | number
- | boolean
- | undefined;
-
-export type DeepPartial<T> = T extends Builtin
- ? T
- : T extends Long
- ? string | number | Long
- : T extends globalThis.Array<infer U>
- ? globalThis.Array<DeepPartial<U>>
- : T extends ReadonlyArray<infer U>
- ? ReadonlyArray<DeepPartial<U>>
- : T extends {}
- ? { [K in keyof T]?: DeepPartial<T[K]> }
- : Partial<T>;
+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
+
+export type DeepPartial<T> = T extends Builtin ? T
+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
+ : Partial<T>;
function isSet(value: any): boolean {
return value !== null && value !== undefined;
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 5fe934b481..404248129f 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -140,6 +140,10 @@
- [LabelSelectorRequirement.OperatorType](#bytebase-store-LabelSelectorRequirement-OperatorType)
+- [store/deprecated.proto](#store_deprecated-proto)
+ - [DeprecatedMaskData](#bytebase-store-DeprecatedMaskData)
+ - [DeprecatedMaskingPolicy](#bytebase-store-DeprecatedMaskingPolicy)
+
- [store/export_archive.proto](#store_export_archive-proto)
- [ExportArchivePayload](#bytebase-store-ExportArchivePayload)
@@ -222,10 +226,8 @@
- [EnvironmentTierPolicy](#bytebase-store-EnvironmentTierPolicy)
- [ExportDataPolicy](#bytebase-store-ExportDataPolicy)
- [IamPolicy](#bytebase-store-IamPolicy)
- - [MaskData](#bytebase-store-MaskData)
- [MaskingExceptionPolicy](#bytebase-store-MaskingExceptionPolicy)
- [MaskingExceptionPolicy.MaskingException](#bytebase-store-MaskingExceptionPolicy-MaskingException)
- - [MaskingPolicy](#bytebase-store-MaskingPolicy)
- [MaskingRulePolicy](#bytebase-store-MaskingRulePolicy)
- [MaskingRulePolicy.MaskingRule](#bytebase-store-MaskingRulePolicy-MaskingRule)
- [RestrictIssueCreationForSQLReviewPolicy](#bytebase-store-RestrictIssueCreationForSQLReviewPolicy)
@@ -2442,6 +2444,57 @@ Schedule is the message for deployment schedule.
+<a name="store_deprecated-proto"></a>
+<p align="right"><a href="#top">Top</a></p>
+
+## store/deprecated.proto
+
+
+
+<a name="bytebase-store-DeprecatedMaskData"></a>
+
+### DeprecatedMaskData
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| schema | [string](#string) | | |
+| table | [string](#string) | | |
+| column | [string](#string) | | |
+| masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | |
+| full_masking_algorithm_id | [string](#string) | | |
+| partial_masking_algorithm_id | [string](#string) | | |
+
+
+
+
+
+
+<a name="bytebase-store-DeprecatedMaskingPolicy"></a>
+
+### DeprecatedMaskingPolicy
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| mask_data | [DeprecatedMaskData](#bytebase-store-DeprecatedMaskData) | repeated | |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<a name="store_export_archive-proto"></a>
<p align="right"><a href="#top">Top</a></p>
@@ -3595,26 +3648,6 @@ ExportDataPolicy is the policy configuration for export data.
-<a name="bytebase-store-MaskData"></a>
-
-### MaskData
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| schema | [string](#string) | | |
-| table | [string](#string) | | |
-| column | [string](#string) | | |
-| masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | |
-| full_masking_algorithm_id | [string](#string) | | |
-| partial_masking_algorithm_id | [string](#string) | | |
-
-
-
-
-
-
<a name="bytebase-store-MaskingExceptionPolicy"></a>
### MaskingExceptionPolicy
@@ -3649,21 +3682,6 @@ Format: users/{userUID} or groups/{group email} |
-<a name="bytebase-store-MaskingPolicy"></a>
-
-### MaskingPolicy
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| mask_data | [MaskData](#bytebase-store-MaskData) | repeated | |
-
-
-
-
-
-
<a name="bytebase-store-MaskingRulePolicy"></a>
### MaskingRulePolicy
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index df921af4a5..7aacd162df 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -726,6 +726,25 @@
</li>
+ <li>
+ <a href="#store%2fdeprecated.proto">store/deprecated.proto</a>
+ <ul>
+
+ <li>
+ <a href="#bytebase.store.DeprecatedMaskData"><span class="badge">M</span>DeprecatedMaskData</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.DeprecatedMaskingPolicy"><span class="badge">M</span>DeprecatedMaskingPolicy</a>
+ </li>
+
+
+
+
+ </ul>
+ </li>
+
+
<li>
<a href="#store%2fexport_archive.proto">store/export_archive.proto</a>
<ul>
@@ -1061,10 +1080,6 @@
<a href="#bytebase.store.IamPolicy"><span class="badge">M</span>IamPolicy</a>
</li>
- <li>
- <a href="#bytebase.store.MaskData"><span class="badge">M</span>MaskData</a>
- </li>
-
<li>
<a href="#bytebase.store.MaskingExceptionPolicy"><span class="badge">M</span>MaskingExceptionPolicy</a>
</li>
@@ -1073,10 +1088,6 @@
<a href="#bytebase.store.MaskingExceptionPolicy.MaskingException"><span class="badge">M</span>MaskingExceptionPolicy.MaskingException</a>
</li>
- <li>
- <a href="#bytebase.store.MaskingPolicy"><span class="badge">M</span>MaskingPolicy</a>
- </li>
-
<li>
<a href="#bytebase.store.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a>
</li>
@@ -6869,6 +6880,103 @@ Used for authentication when connecting to the data source. </p></td>
+ <div class="file-heading">
+ <h2 id="store/deprecated.proto">store/deprecated.proto</h2><a href="#title">Top</a>
+ </div>
+ <p></p>
+
+
+ <h3 id="bytebase.store.DeprecatedMaskData">DeprecatedMaskData</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>schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>table</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>column</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>masking_level</td>
+ <td><a href="#bytebase.store.MaskingLevel">MaskingLevel</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>full_masking_algorithm_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>partial_masking_algorithm_id</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.DeprecatedMaskingPolicy">DeprecatedMaskingPolicy</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>mask_data</td>
+ <td><a href="#bytebase.store.DeprecatedMaskData">DeprecatedMaskData</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+
+
+
+
+
+
+
+
<div class="file-heading">
<h2 id="store/export_archive.proto">store/export_archive.proto</h2><a href="#title">Top</a>
</div>
@@ -9475,65 +9583,6 @@ A binding binds one or more members or groups to a single role. </p></td>
- <h3 id="bytebase.store.MaskData">MaskData</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>schema</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>table</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>column</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>masking_level</td>
- <td><a href="#bytebase.store.MaskingLevel">MaskingLevel</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>full_masking_algorithm_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>partial_masking_algorithm_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.MaskingExceptionPolicy">MaskingExceptionPolicy</h3>
<p>MaskingExceptionPolicy is the allowlist of users who can access sensitive data.</p>
@@ -9598,30 +9647,6 @@ Format: users/{userUID} or groups/{group email} </p></td>
- <h3 id="bytebase.store.MaskingPolicy">MaskingPolicy</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>mask_data</td>
- <td><a href="#bytebase.store.MaskData">MaskData</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.MaskingRulePolicy">MaskingRulePolicy</h3>
<p></p>
diff --git a/proto/generated-go/store/deprecated.pb.go b/proto/generated-go/store/deprecated.pb.go
new file mode 100644
index 0000000000..d52de847e8
--- /dev/null
+++ b/proto/generated-go/store/deprecated.pb.go
@@ -0,0 +1,238 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.36.1
+// protoc (unknown)
+// source: store/deprecated.proto
+
+package store
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type DeprecatedMaskingPolicy struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ MaskData []*DeprecatedMaskData `protobuf:"bytes,1,rep,name=mask_data,json=maskData,proto3" json:"mask_data,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *DeprecatedMaskingPolicy) Reset() {
+ *x = DeprecatedMaskingPolicy{}
+ mi := &file_store_deprecated_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *DeprecatedMaskingPolicy) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeprecatedMaskingPolicy) ProtoMessage() {}
+
+func (x *DeprecatedMaskingPolicy) ProtoReflect() protoreflect.Message {
+ mi := &file_store_deprecated_proto_msgTypes[0]
+ 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 DeprecatedMaskingPolicy.ProtoReflect.Descriptor instead.
+func (*DeprecatedMaskingPolicy) Descriptor() ([]byte, []int) {
+ return file_store_deprecated_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *DeprecatedMaskingPolicy) GetMaskData() []*DeprecatedMaskData {
+ if x != nil {
+ return x.MaskData
+ }
+ return nil
+}
+
+type DeprecatedMaskData struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
+ Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
+ Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
+ MaskingLevel MaskingLevel `protobuf:"varint,4,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`
+ FullMaskingAlgorithmId string `protobuf:"bytes,5,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`
+ PartialMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *DeprecatedMaskData) Reset() {
+ *x = DeprecatedMaskData{}
+ mi := &file_store_deprecated_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *DeprecatedMaskData) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeprecatedMaskData) ProtoMessage() {}
+
+func (x *DeprecatedMaskData) ProtoReflect() protoreflect.Message {
+ mi := &file_store_deprecated_proto_msgTypes[1]
+ 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 DeprecatedMaskData.ProtoReflect.Descriptor instead.
+func (*DeprecatedMaskData) Descriptor() ([]byte, []int) {
+ return file_store_deprecated_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *DeprecatedMaskData) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *DeprecatedMaskData) GetTable() string {
+ if x != nil {
+ return x.Table
+ }
+ return ""
+}
+
+func (x *DeprecatedMaskData) GetColumn() string {
+ if x != nil {
+ return x.Column
+ }
+ return ""
+}
+
+func (x *DeprecatedMaskData) GetMaskingLevel() MaskingLevel {
+ if x != nil {
+ return x.MaskingLevel
+ }
+ return MaskingLevel_MASKING_LEVEL_UNSPECIFIED
+}
+
+func (x *DeprecatedMaskData) GetFullMaskingAlgorithmId() string {
+ if x != nil {
+ return x.FullMaskingAlgorithmId
+ }
+ return ""
+}
+
+func (x *DeprecatedMaskData) GetPartialMaskingAlgorithmId() string {
+ if x != nil {
+ return x.PartialMaskingAlgorithmId
+ }
+ return ""
+}
+
+var File_store_deprecated_proto protoreflect.FileDescriptor
+
+var file_store_deprecated_proto_rawDesc = []byte{
+ 0x0a, 0x16, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74,
+ 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x17,
+ 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,
+ 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3f, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x6b, 0x5f,
+ 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x70, 0x72,
+ 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08,
+ 0x6d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x22, 0x99, 0x02, 0x0a, 0x12, 0x44, 0x65, 0x70,
+ 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12,
+ 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a,
+ 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63,
+ 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,
+ 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61,
+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b,
+ 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c,
+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
+ 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c,
+ 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
+ 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d,
+ 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,
+ 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69,
+ 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,
+ 0x68, 0x6d, 0x49, 0x64, 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 (
+ file_store_deprecated_proto_rawDescOnce sync.Once
+ file_store_deprecated_proto_rawDescData = file_store_deprecated_proto_rawDesc
+)
+
+func file_store_deprecated_proto_rawDescGZIP() []byte {
+ file_store_deprecated_proto_rawDescOnce.Do(func() {
+ file_store_deprecated_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_deprecated_proto_rawDescData)
+ })
+ return file_store_deprecated_proto_rawDescData
+}
+
+var file_store_deprecated_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_store_deprecated_proto_goTypes = []any{
+ (*DeprecatedMaskingPolicy)(nil), // 0: bytebase.store.DeprecatedMaskingPolicy
+ (*DeprecatedMaskData)(nil), // 1: bytebase.store.DeprecatedMaskData
+ (MaskingLevel)(0), // 2: bytebase.store.MaskingLevel
+}
+var file_store_deprecated_proto_depIdxs = []int32{
+ 1, // 0: bytebase.store.DeprecatedMaskingPolicy.mask_data:type_name -> bytebase.store.DeprecatedMaskData
+ 2, // 1: bytebase.store.DeprecatedMaskData.masking_level:type_name -> bytebase.store.MaskingLevel
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() { file_store_deprecated_proto_init() }
+func file_store_deprecated_proto_init() {
+ if File_store_deprecated_proto != nil {
+ return
+ }
+ file_store_common_proto_init()
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_store_deprecated_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_store_deprecated_proto_goTypes,
+ DependencyIndexes: file_store_deprecated_proto_depIdxs,
+ MessageInfos: file_store_deprecated_proto_msgTypes,
+ }.Build()
+ File_store_deprecated_proto = out.File
+ file_store_deprecated_proto_rawDesc = nil
+ file_store_deprecated_proto_goTypes = nil
+ file_store_deprecated_proto_depIdxs = nil
+}
diff --git a/proto/generated-go/store/policy.pb.go b/proto/generated-go/store/policy.pb.go
index 190afd65d8..438588dd4d 100644
--- a/proto/generated-go/store/policy.pb.go
+++ b/proto/generated-go/store/policy.pb.go
@@ -119,7 +119,7 @@ func (x MaskingExceptionPolicy_MaskingException_Action) Number() protoreflect.En
// Deprecated: Use MaskingExceptionPolicy_MaskingException_Action.Descriptor instead.
func (MaskingExceptionPolicy_MaskingException_Action) EnumDescriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{3, 0, 0}
+ return file_store_policy_proto_rawDescGZIP(), []int{1, 0, 0}
}
type EnvironmentTierPolicy_EnvironmentTier int32
@@ -168,7 +168,7 @@ func (x EnvironmentTierPolicy_EnvironmentTier) Number() protoreflect.EnumNumber
// Deprecated: Use EnvironmentTierPolicy_EnvironmentTier.Descriptor instead.
func (EnvironmentTierPolicy_EnvironmentTier) EnumDescriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{9, 0}
+ return file_store_policy_proto_rawDescGZIP(), []int{7, 0}
}
type DataSourceQueryPolicy_Restriction int32
@@ -219,7 +219,7 @@ func (x DataSourceQueryPolicy_Restriction) Number() protoreflect.EnumNumber {
// Deprecated: Use DataSourceQueryPolicy_Restriction.Descriptor instead.
func (DataSourceQueryPolicy_Restriction) EnumDescriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{14, 0}
+ return file_store_policy_proto_rawDescGZIP(), []int{12, 0}
}
type RolloutPolicy struct {
@@ -292,134 +292,6 @@ func (x *RolloutPolicy) GetIssueRoles() []string {
return nil
}
-type MaskingPolicy struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MaskData []*MaskData `protobuf:"bytes,1,rep,name=mask_data,json=maskData,proto3" json:"mask_data,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MaskingPolicy) Reset() {
- *x = MaskingPolicy{}
- mi := &file_store_policy_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MaskingPolicy) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MaskingPolicy) ProtoMessage() {}
-
-func (x *MaskingPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[1]
- 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 MaskingPolicy.ProtoReflect.Descriptor instead.
-func (*MaskingPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *MaskingPolicy) GetMaskData() []*MaskData {
- if x != nil {
- return x.MaskData
- }
- return nil
-}
-
-type MaskData struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
- Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
- Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
- MaskingLevel MaskingLevel `protobuf:"varint,4,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`
- FullMaskingAlgorithmId string `protobuf:"bytes,5,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`
- PartialMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MaskData) Reset() {
- *x = MaskData{}
- mi := &file_store_policy_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MaskData) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MaskData) ProtoMessage() {}
-
-func (x *MaskData) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[2]
- 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 MaskData.ProtoReflect.Descriptor instead.
-func (*MaskData) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *MaskData) GetSchema() string {
- if x != nil {
- return x.Schema
- }
- return ""
-}
-
-func (x *MaskData) GetTable() string {
- if x != nil {
- return x.Table
- }
- return ""
-}
-
-func (x *MaskData) GetColumn() string {
- if x != nil {
- return x.Column
- }
- return ""
-}
-
-func (x *MaskData) GetMaskingLevel() MaskingLevel {
- if x != nil {
- return x.MaskingLevel
- }
- return MaskingLevel_MASKING_LEVEL_UNSPECIFIED
-}
-
-func (x *MaskData) GetFullMaskingAlgorithmId() string {
- if x != nil {
- return x.FullMaskingAlgorithmId
- }
- return ""
-}
-
-func (x *MaskData) GetPartialMaskingAlgorithmId() string {
- if x != nil {
- return x.PartialMaskingAlgorithmId
- }
- return ""
-}
-
// MaskingExceptionPolicy is the allowlist of users who can access sensitive data.
type MaskingExceptionPolicy struct {
state protoimpl.MessageState `protogen:"open.v1"`
@@ -430,7 +302,7 @@ type MaskingExceptionPolicy struct {
func (x *MaskingExceptionPolicy) Reset() {
*x = MaskingExceptionPolicy{}
- mi := &file_store_policy_proto_msgTypes[3]
+ mi := &file_store_policy_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -442,7 +314,7 @@ func (x *MaskingExceptionPolicy) String() string {
func (*MaskingExceptionPolicy) ProtoMessage() {}
func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[3]
+ mi := &file_store_policy_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -455,7 +327,7 @@ func (x *MaskingExceptionPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use MaskingExceptionPolicy.ProtoReflect.Descriptor instead.
func (*MaskingExceptionPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{3}
+ return file_store_policy_proto_rawDescGZIP(), []int{1}
}
func (x *MaskingExceptionPolicy) GetMaskingExceptions() []*MaskingExceptionPolicy_MaskingException {
@@ -474,7 +346,7 @@ type MaskingRulePolicy struct {
func (x *MaskingRulePolicy) Reset() {
*x = MaskingRulePolicy{}
- mi := &file_store_policy_proto_msgTypes[4]
+ mi := &file_store_policy_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -486,7 +358,7 @@ func (x *MaskingRulePolicy) String() string {
func (*MaskingRulePolicy) ProtoMessage() {}
func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[4]
+ mi := &file_store_policy_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -499,7 +371,7 @@ func (x *MaskingRulePolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use MaskingRulePolicy.ProtoReflect.Descriptor instead.
func (*MaskingRulePolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{4}
+ return file_store_policy_proto_rawDescGZIP(), []int{2}
}
func (x *MaskingRulePolicy) GetRules() []*MaskingRulePolicy_MaskingRule {
@@ -522,7 +394,7 @@ type SQLReviewRule struct {
func (x *SQLReviewRule) Reset() {
*x = SQLReviewRule{}
- mi := &file_store_policy_proto_msgTypes[5]
+ mi := &file_store_policy_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -534,7 +406,7 @@ func (x *SQLReviewRule) String() string {
func (*SQLReviewRule) ProtoMessage() {}
func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[5]
+ mi := &file_store_policy_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -547,7 +419,7 @@ func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {
// Deprecated: Use SQLReviewRule.ProtoReflect.Descriptor instead.
func (*SQLReviewRule) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{5}
+ return file_store_policy_proto_rawDescGZIP(), []int{3}
}
func (x *SQLReviewRule) GetType() string {
@@ -596,7 +468,7 @@ type TagPolicy struct {
func (x *TagPolicy) Reset() {
*x = TagPolicy{}
- mi := &file_store_policy_proto_msgTypes[6]
+ mi := &file_store_policy_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -608,7 +480,7 @@ func (x *TagPolicy) String() string {
func (*TagPolicy) ProtoMessage() {}
func (x *TagPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[6]
+ mi := &file_store_policy_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -621,7 +493,7 @@ func (x *TagPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use TagPolicy.ProtoReflect.Descriptor instead.
func (*TagPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{6}
+ return file_store_policy_proto_rawDescGZIP(), []int{4}
}
func (x *TagPolicy) GetTags() map[string]string {
@@ -650,7 +522,7 @@ type Binding struct {
func (x *Binding) Reset() {
*x = Binding{}
- mi := &file_store_policy_proto_msgTypes[7]
+ mi := &file_store_policy_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -662,7 +534,7 @@ func (x *Binding) String() string {
func (*Binding) ProtoMessage() {}
func (x *Binding) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[7]
+ mi := &file_store_policy_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -675,7 +547,7 @@ func (x *Binding) ProtoReflect() protoreflect.Message {
// Deprecated: Use Binding.ProtoReflect.Descriptor instead.
func (*Binding) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{7}
+ return file_store_policy_proto_rawDescGZIP(), []int{5}
}
func (x *Binding) GetRole() string {
@@ -710,7 +582,7 @@ type IamPolicy struct {
func (x *IamPolicy) Reset() {
*x = IamPolicy{}
- mi := &file_store_policy_proto_msgTypes[8]
+ mi := &file_store_policy_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -722,7 +594,7 @@ func (x *IamPolicy) String() string {
func (*IamPolicy) ProtoMessage() {}
func (x *IamPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[8]
+ mi := &file_store_policy_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -735,7 +607,7 @@ func (x *IamPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use IamPolicy.ProtoReflect.Descriptor instead.
func (*IamPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{8}
+ return file_store_policy_proto_rawDescGZIP(), []int{6}
}
func (x *IamPolicy) GetBindings() []*Binding {
@@ -756,7 +628,7 @@ type EnvironmentTierPolicy struct {
func (x *EnvironmentTierPolicy) Reset() {
*x = EnvironmentTierPolicy{}
- mi := &file_store_policy_proto_msgTypes[9]
+ mi := &file_store_policy_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -768,7 +640,7 @@ func (x *EnvironmentTierPolicy) String() string {
func (*EnvironmentTierPolicy) ProtoMessage() {}
func (x *EnvironmentTierPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[9]
+ mi := &file_store_policy_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -781,7 +653,7 @@ func (x *EnvironmentTierPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use EnvironmentTierPolicy.ProtoReflect.Descriptor instead.
func (*EnvironmentTierPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{9}
+ return file_store_policy_proto_rawDescGZIP(), []int{7}
}
func (x *EnvironmentTierPolicy) GetEnvironmentTier() EnvironmentTierPolicy_EnvironmentTier {
@@ -808,7 +680,7 @@ type SlowQueryPolicy struct {
func (x *SlowQueryPolicy) Reset() {
*x = SlowQueryPolicy{}
- mi := &file_store_policy_proto_msgTypes[10]
+ mi := &file_store_policy_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -820,7 +692,7 @@ func (x *SlowQueryPolicy) String() string {
func (*SlowQueryPolicy) ProtoMessage() {}
func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[10]
+ mi := &file_store_policy_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -833,7 +705,7 @@ func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use SlowQueryPolicy.ProtoReflect.Descriptor instead.
func (*SlowQueryPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{10}
+ return file_store_policy_proto_rawDescGZIP(), []int{8}
}
func (x *SlowQueryPolicy) GetActive() bool {
@@ -853,7 +725,7 @@ type DisableCopyDataPolicy struct {
func (x *DisableCopyDataPolicy) Reset() {
*x = DisableCopyDataPolicy{}
- mi := &file_store_policy_proto_msgTypes[11]
+ mi := &file_store_policy_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -865,7 +737,7 @@ func (x *DisableCopyDataPolicy) String() string {
func (*DisableCopyDataPolicy) ProtoMessage() {}
func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[11]
+ mi := &file_store_policy_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -878,7 +750,7 @@ func (x *DisableCopyDataPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use DisableCopyDataPolicy.ProtoReflect.Descriptor instead.
func (*DisableCopyDataPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{11}
+ return file_store_policy_proto_rawDescGZIP(), []int{9}
}
func (x *DisableCopyDataPolicy) GetActive() bool {
@@ -898,7 +770,7 @@ type ExportDataPolicy struct {
func (x *ExportDataPolicy) Reset() {
*x = ExportDataPolicy{}
- mi := &file_store_policy_proto_msgTypes[12]
+ mi := &file_store_policy_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -910,7 +782,7 @@ func (x *ExportDataPolicy) String() string {
func (*ExportDataPolicy) ProtoMessage() {}
func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[12]
+ mi := &file_store_policy_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -923,7 +795,7 @@ func (x *ExportDataPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExportDataPolicy.ProtoReflect.Descriptor instead.
func (*ExportDataPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{12}
+ return file_store_policy_proto_rawDescGZIP(), []int{10}
}
func (x *ExportDataPolicy) GetDisable() bool {
@@ -943,7 +815,7 @@ type RestrictIssueCreationForSQLReviewPolicy struct {
func (x *RestrictIssueCreationForSQLReviewPolicy) Reset() {
*x = RestrictIssueCreationForSQLReviewPolicy{}
- mi := &file_store_policy_proto_msgTypes[13]
+ mi := &file_store_policy_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -955,7 +827,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) String() string {
func (*RestrictIssueCreationForSQLReviewPolicy) ProtoMessage() {}
func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[13]
+ mi := &file_store_policy_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -968,7 +840,7 @@ func (x *RestrictIssueCreationForSQLReviewPolicy) ProtoReflect() protoreflect.Me
// Deprecated: Use RestrictIssueCreationForSQLReviewPolicy.ProtoReflect.Descriptor instead.
func (*RestrictIssueCreationForSQLReviewPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{13}
+ return file_store_policy_proto_rawDescGZIP(), []int{11}
}
func (x *RestrictIssueCreationForSQLReviewPolicy) GetDisallow() bool {
@@ -992,7 +864,7 @@ type DataSourceQueryPolicy struct {
func (x *DataSourceQueryPolicy) Reset() {
*x = DataSourceQueryPolicy{}
- mi := &file_store_policy_proto_msgTypes[14]
+ mi := &file_store_policy_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1004,7 +876,7 @@ func (x *DataSourceQueryPolicy) String() string {
func (*DataSourceQueryPolicy) ProtoMessage() {}
func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[14]
+ mi := &file_store_policy_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1017,7 +889,7 @@ func (x *DataSourceQueryPolicy) ProtoReflect() protoreflect.Message {
// Deprecated: Use DataSourceQueryPolicy.ProtoReflect.Descriptor instead.
func (*DataSourceQueryPolicy) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{14}
+ return file_store_policy_proto_rawDescGZIP(), []int{12}
}
func (x *DataSourceQueryPolicy) GetAdminDataSourceRestriction() DataSourceQueryPolicy_Restriction {
@@ -1057,7 +929,7 @@ type MaskingExceptionPolicy_MaskingException struct {
func (x *MaskingExceptionPolicy_MaskingException) Reset() {
*x = MaskingExceptionPolicy_MaskingException{}
- mi := &file_store_policy_proto_msgTypes[15]
+ mi := &file_store_policy_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1069,7 +941,7 @@ func (x *MaskingExceptionPolicy_MaskingException) String() string {
func (*MaskingExceptionPolicy_MaskingException) ProtoMessage() {}
func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[15]
+ mi := &file_store_policy_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1082,7 +954,7 @@ func (x *MaskingExceptionPolicy_MaskingException) ProtoReflect() protoreflect.Me
// Deprecated: Use MaskingExceptionPolicy_MaskingException.ProtoReflect.Descriptor instead.
func (*MaskingExceptionPolicy_MaskingException) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{3, 0}
+ return file_store_policy_proto_rawDescGZIP(), []int{1, 0}
}
func (x *MaskingExceptionPolicy_MaskingException) GetAction() MaskingExceptionPolicy_MaskingException_Action {
@@ -1118,7 +990,7 @@ type MaskingRulePolicy_MaskingRule struct {
func (x *MaskingRulePolicy_MaskingRule) Reset() {
*x = MaskingRulePolicy_MaskingRule{}
- mi := &file_store_policy_proto_msgTypes[16]
+ mi := &file_store_policy_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1130,7 +1002,7 @@ func (x *MaskingRulePolicy_MaskingRule) String() string {
func (*MaskingRulePolicy_MaskingRule) ProtoMessage() {}
func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {
- mi := &file_store_policy_proto_msgTypes[16]
+ mi := &file_store_policy_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1143,7 +1015,7 @@ func (x *MaskingRulePolicy_MaskingRule) ProtoReflect() protoreflect.Message {
// Deprecated: Use MaskingRulePolicy_MaskingRule.ProtoReflect.Descriptor instead.
func (*MaskingRulePolicy_MaskingRule) Descriptor() ([]byte, []int) {
- return file_store_policy_proto_rawDescGZIP(), []int{4, 0}
+ return file_store_policy_proto_rawDescGZIP(), []int{2, 0}
}
func (x *MaskingRulePolicy_MaskingRule) GetId() string {
@@ -1185,149 +1057,128 @@ var file_store_policy_proto_rawDesc = []byte{
0x52, 0x0c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1f,
0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20,
0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22,
- 0x46, 0x0a, 0x0d, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
- 0x12, 0x35, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d,
- 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8f, 0x02, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b,
- 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05,
- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62,
- 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61,
- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
- 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52,
- 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a,
- 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c,
- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,
- 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74,
- 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f,
- 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19,
- 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c,
- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0xef, 0x02, 0x0a, 0x16, 0x4d, 0x61,
- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x66, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f,
- 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,
- 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,
- 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69,
- 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xec, 0x01, 0x0a,
- 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f,
- 0x6e, 0x12, 0x56, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x3e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
- 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74,
- 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,
- 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d,
- 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65,
- 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79,
- 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69,
- 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12,
- 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
- 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01, 0x12,
- 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x22, 0xec, 0x01, 0x0a, 0x11,
- 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,
- 0x79, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c,
- 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52,
- 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x91, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x73, 0x6b, 0x69,
- 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,
- 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
- 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f,
- 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69,
- 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
- 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61,
- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x53,
- 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04,
- 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
- 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
- 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65,
- 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
- 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79,
- 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e,
- 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7d,
- 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x37, 0x0a, 0x04, 0x74,
- 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04,
- 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72,
- 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
- 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x68, 0x0a,
- 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07,
- 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d,
- 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,
- 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
- 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f,
- 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x09, 0x49, 0x61, 0x6d, 0x50, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73,
- 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52,
- 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xe4, 0x01, 0x0a, 0x15, 0x45, 0x6e,
- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x50, 0x6f, 0x6c,
- 0x69, 0x63, 0x79, 0x12, 0x60, 0x0a, 0x10, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
- 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45,
- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x50, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
- 0x54, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
- 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0x53, 0x0a, 0x0f, 0x45,
- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x20,
- 0x0a, 0x1c, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x49,
- 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
- 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12,
- 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02,
- 0x22, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c,
- 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44,
- 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10,
- 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
- 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65,
- 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50,
- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,
- 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,
- 0x77, 0x22, 0x9b, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61,
- 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,
- 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75,
- 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69,
- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61,
- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f,
- 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64,
- 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,
- 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
- 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61,
- 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72,
- 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49,
- 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
- 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10,
- 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a,
- 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65,
- 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55,
- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
- 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49,
- 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44,
- 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,
- 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0xef, 0x02, 0x0a, 0x16, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70,
+ 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x66, 0x0a, 0x12, 0x6d, 0x61,
+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45,
+ 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d,
+ 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52,
+ 0x11, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x1a, 0xec, 0x01, 0x0a, 0x10, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78,
+ 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,
+ 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
+ 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,
+ 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63,
+ 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,
+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55,
+ 0x45, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10,
+ 0x02, 0x22, 0xec, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c,
+ 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52,
+ 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,
+ 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x91, 0x01, 0x0a,
+ 0x0b, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02,
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x09,
+ 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78,
+ 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a,
+ 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76,
+ 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c,
+ 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75,
+ 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,
+ 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
+ 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e,
+ 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69,
+ 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
+ 0x79, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x54, 0x61, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45,
+ 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61,
+ 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
+ 0x02, 0x38, 0x01, 0x22, 0x68, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12,
+ 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f,
+ 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20,
+ 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09,
+ 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78,
+ 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a,
+ 0x09, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x08, 0x62, 0x69,
+ 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69,
+ 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22,
+ 0xe4, 0x01, 0x0a, 0x15, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54,
+ 0x69, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x60, 0x0a, 0x10, 0x65, 0x6e, 0x76,
+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
+ 0x54, 0x69, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72,
+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x65, 0x6e, 0x76, 0x69,
+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63,
+ 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f,
+ 0x72, 0x22, 0x53, 0x0a, 0x0f, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
+ 0x54, 0x69, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d,
+ 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x49, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x4f, 0x54, 0x45, 0x43,
+ 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x54, 0x45,
+ 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x29, 0x0a, 0x0f, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74,
+ 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76,
+ 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x70, 0x79,
+ 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63,
+ 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69,
+ 0x76, 0x65, 0x22, 0x2c, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61,
+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
+ 0x22, 0x45, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x49, 0x73, 0x73, 0x75,
+ 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x53, 0x51, 0x4c, 0x52,
+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64,
+ 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64,
+ 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x22, 0x9b, 0x02, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61,
+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63,
+ 0x79, 0x12, 0x74, 0x0a, 0x1d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f,
+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
+ 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x64, 0x6d,
+ 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74,
+ 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x6c,
+ 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64,
+ 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x64, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69,
+ 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
+ 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x6d, 0x6c, 0x22, 0x46, 0x0a,
+ 0x0b, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17,
+ 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,
+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x41, 0x4c,
+ 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x4c,
+ 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69,
+ 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11, 0x4c,
+ 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a,
+ 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49,
+ 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,
+ 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -1343,55 +1194,51 @@ func file_store_policy_proto_rawDescGZIP() []byte {
}
var file_store_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
-var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
+var file_store_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_store_policy_proto_goTypes = []any{
(SQLReviewRuleLevel)(0), // 0: bytebase.store.SQLReviewRuleLevel
(MaskingExceptionPolicy_MaskingException_Action)(0), // 1: bytebase.store.MaskingExceptionPolicy.MaskingException.Action
(EnvironmentTierPolicy_EnvironmentTier)(0), // 2: bytebase.store.EnvironmentTierPolicy.EnvironmentTier
(DataSourceQueryPolicy_Restriction)(0), // 3: bytebase.store.DataSourceQueryPolicy.Restriction
(*RolloutPolicy)(nil), // 4: bytebase.store.RolloutPolicy
- (*MaskingPolicy)(nil), // 5: bytebase.store.MaskingPolicy
- (*MaskData)(nil), // 6: bytebase.store.MaskData
- (*MaskingExceptionPolicy)(nil), // 7: bytebase.store.MaskingExceptionPolicy
- (*MaskingRulePolicy)(nil), // 8: bytebase.store.MaskingRulePolicy
- (*SQLReviewRule)(nil), // 9: bytebase.store.SQLReviewRule
- (*TagPolicy)(nil), // 10: bytebase.store.TagPolicy
- (*Binding)(nil), // 11: bytebase.store.Binding
- (*IamPolicy)(nil), // 12: bytebase.store.IamPolicy
- (*EnvironmentTierPolicy)(nil), // 13: bytebase.store.EnvironmentTierPolicy
- (*SlowQueryPolicy)(nil), // 14: bytebase.store.SlowQueryPolicy
- (*DisableCopyDataPolicy)(nil), // 15: bytebase.store.DisableCopyDataPolicy
- (*ExportDataPolicy)(nil), // 16: bytebase.store.ExportDataPolicy
- (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 17: bytebase.store.RestrictIssueCreationForSQLReviewPolicy
- (*DataSourceQueryPolicy)(nil), // 18: bytebase.store.DataSourceQueryPolicy
- (*MaskingExceptionPolicy_MaskingException)(nil), // 19: bytebase.store.MaskingExceptionPolicy.MaskingException
- (*MaskingRulePolicy_MaskingRule)(nil), // 20: bytebase.store.MaskingRulePolicy.MaskingRule
- nil, // 21: bytebase.store.TagPolicy.TagsEntry
+ (*MaskingExceptionPolicy)(nil), // 5: bytebase.store.MaskingExceptionPolicy
+ (*MaskingRulePolicy)(nil), // 6: bytebase.store.MaskingRulePolicy
+ (*SQLReviewRule)(nil), // 7: bytebase.store.SQLReviewRule
+ (*TagPolicy)(nil), // 8: bytebase.store.TagPolicy
+ (*Binding)(nil), // 9: bytebase.store.Binding
+ (*IamPolicy)(nil), // 10: bytebase.store.IamPolicy
+ (*EnvironmentTierPolicy)(nil), // 11: bytebase.store.EnvironmentTierPolicy
+ (*SlowQueryPolicy)(nil), // 12: bytebase.store.SlowQueryPolicy
+ (*DisableCopyDataPolicy)(nil), // 13: bytebase.store.DisableCopyDataPolicy
+ (*ExportDataPolicy)(nil), // 14: bytebase.store.ExportDataPolicy
+ (*RestrictIssueCreationForSQLReviewPolicy)(nil), // 15: bytebase.store.RestrictIssueCreationForSQLReviewPolicy
+ (*DataSourceQueryPolicy)(nil), // 16: bytebase.store.DataSourceQueryPolicy
+ (*MaskingExceptionPolicy_MaskingException)(nil), // 17: bytebase.store.MaskingExceptionPolicy.MaskingException
+ (*MaskingRulePolicy_MaskingRule)(nil), // 18: bytebase.store.MaskingRulePolicy.MaskingRule
+ nil, // 19: bytebase.store.TagPolicy.TagsEntry
+ (Engine)(0), // 20: bytebase.store.Engine
+ (*expr.Expr)(nil), // 21: google.type.Expr
(MaskingLevel)(0), // 22: bytebase.store.MaskingLevel
- (Engine)(0), // 23: bytebase.store.Engine
- (*expr.Expr)(nil), // 24: google.type.Expr
}
var file_store_policy_proto_depIdxs = []int32{
- 6, // 0: bytebase.store.MaskingPolicy.mask_data:type_name -> bytebase.store.MaskData
- 22, // 1: bytebase.store.MaskData.masking_level:type_name -> bytebase.store.MaskingLevel
- 19, // 2: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException
- 20, // 3: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule
- 0, // 4: bytebase.store.SQLReviewRule.level:type_name -> bytebase.store.SQLReviewRuleLevel
- 23, // 5: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine
- 21, // 6: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry
- 24, // 7: bytebase.store.Binding.condition:type_name -> google.type.Expr
- 11, // 8: bytebase.store.IamPolicy.bindings:type_name -> bytebase.store.Binding
- 2, // 9: bytebase.store.EnvironmentTierPolicy.environment_tier:type_name -> bytebase.store.EnvironmentTierPolicy.EnvironmentTier
- 3, // 10: bytebase.store.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.store.DataSourceQueryPolicy.Restriction
- 1, // 11: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action
- 24, // 12: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr
- 24, // 13: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr
- 22, // 14: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel
- 15, // [15:15] is the sub-list for method output_type
- 15, // [15:15] is the sub-list for method input_type
- 15, // [15:15] is the sub-list for extension type_name
- 15, // [15:15] is the sub-list for extension extendee
- 0, // [0:15] is the sub-list for field type_name
+ 17, // 0: bytebase.store.MaskingExceptionPolicy.masking_exceptions:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException
+ 18, // 1: bytebase.store.MaskingRulePolicy.rules:type_name -> bytebase.store.MaskingRulePolicy.MaskingRule
+ 0, // 2: bytebase.store.SQLReviewRule.level:type_name -> bytebase.store.SQLReviewRuleLevel
+ 20, // 3: bytebase.store.SQLReviewRule.engine:type_name -> bytebase.store.Engine
+ 19, // 4: bytebase.store.TagPolicy.tags:type_name -> bytebase.store.TagPolicy.TagsEntry
+ 21, // 5: bytebase.store.Binding.condition:type_name -> google.type.Expr
+ 9, // 6: bytebase.store.IamPolicy.bindings:type_name -> bytebase.store.Binding
+ 2, // 7: bytebase.store.EnvironmentTierPolicy.environment_tier:type_name -> bytebase.store.EnvironmentTierPolicy.EnvironmentTier
+ 3, // 8: bytebase.store.DataSourceQueryPolicy.admin_data_source_restriction:type_name -> bytebase.store.DataSourceQueryPolicy.Restriction
+ 1, // 9: bytebase.store.MaskingExceptionPolicy.MaskingException.action:type_name -> bytebase.store.MaskingExceptionPolicy.MaskingException.Action
+ 21, // 10: bytebase.store.MaskingExceptionPolicy.MaskingException.condition:type_name -> google.type.Expr
+ 21, // 11: bytebase.store.MaskingRulePolicy.MaskingRule.condition:type_name -> google.type.Expr
+ 22, // 12: bytebase.store.MaskingRulePolicy.MaskingRule.masking_level:type_name -> bytebase.store.MaskingLevel
+ 13, // [13:13] is the sub-list for method output_type
+ 13, // [13:13] is the sub-list for method input_type
+ 13, // [13:13] is the sub-list for extension type_name
+ 13, // [13:13] is the sub-list for extension extendee
+ 0, // [0:13] is the sub-list for field type_name
}
func init() { file_store_policy_proto_init() }
@@ -1406,7 +1253,7 @@ func file_store_policy_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_policy_proto_rawDesc,
NumEnums: 4,
- NumMessages: 18,
+ NumMessages: 16,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/deprecated.proto b/proto/store/deprecated.proto
new file mode 100644
index 0000000000..09dd03f538
--- /dev/null
+++ b/proto/store/deprecated.proto
@@ -0,0 +1,20 @@
+syntax = "proto3";
+
+package bytebase.store;
+
+import "store/common.proto";
+
+option go_package = "generated-go/store";
+
+message DeprecatedMaskingPolicy {
+ repeated DeprecatedMaskData mask_data = 1;
+}
+
+message DeprecatedMaskData {
+ string schema = 1;
+ string table = 2;
+ string column = 3;
+ MaskingLevel masking_level = 4;
+ string full_masking_algorithm_id = 5;
+ string partial_masking_algorithm_id = 6;
+}
diff --git a/proto/store/policy.proto b/proto/store/policy.proto
index 219f26ca51..3f109b875b 100644
--- a/proto/store/policy.proto
+++ b/proto/store/policy.proto
@@ -16,19 +16,6 @@ message RolloutPolicy {
repeated string issue_roles = 4;
}
-message MaskingPolicy {
- repeated MaskData mask_data = 1;
-}
-
-message MaskData {
- string schema = 1;
- string table = 2;
- string column = 3;
- MaskingLevel masking_level = 4;
- string full_masking_algorithm_id = 5;
- string partial_masking_algorithm_id = 6;
-}
-
// MaskingExceptionPolicy is the allowlist of users who can access sensitive data.
message MaskingExceptionPolicy {
message MaskingException {