Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update policy v1 api (#5997)
ecmadaoe791177f50c9
diff --git a/backend/api/v1/environment_service.go b/backend/api/v1/environment_service.goindex 4f08b519a4..e4a0eaa71c 100644--- a/backend/api/v1/environment_service.go+++ b/backend/api/v1/environment_service.go@@ -186,9 +186,15 @@ func (s *EnvironmentService) getEnvironmentMessage(ctx context.Context, name strreturn nil, status.Errorf(codes.InvalidArgument, err.Error())}- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{- ResourceID: &environmentID,- })+ environmentUID, isNumber := isNumber(environmentID)+ find := &store.FindEnvironmentMessage{}+ if isNumber {+ find.UID = &environmentUID+ } else {+ find.ResourceID = &environmentID+ }++ environment, err := s.store.GetEnvironmentV2(ctx, find)if err != nil {return nil, status.Errorf(codes.Internal, err.Error())}diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex fa75f1f12c..94a028a036 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -59,10 +59,21 @@ func (s *OrgPolicyService) ListPolicies(ctx context.Context, request *v1pb.ListPreturn nil, err}- policies, err := s.store.ListPoliciesV2(ctx, &store.FindPolicyMessage{+ find := &store.FindPolicyMessage{ResourceType: &resourceType,ResourceUID: resourceID,- })+ ShowDeleted: request.ShowDeleted,+ }++ if v := request.PolicyType; v != nil {+ policyType, err := convertPolicyType(v.String())+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ find.Type = &policyType+ }++ policies, err := s.store.ListPoliciesV2(ctx, find)if err != nil {return nil, status.Errorf(codes.Internal, err.Error())}@@ -135,6 +146,12 @@ func (s *OrgPolicyService) UpdatePolicy(ctx context.Context, request *v1pb.Updatpatch.Payload = &payloadStrcase "enforce":patch.Enforce = &request.Policy.Enforce+ case "state":+ if request.Policy.State == v1pb.State_DELETED {+ patch.Delete = &deletePatch+ } else if request.Policy.State == v1pb.State_ACTIVE {+ patch.Delete = &undeletePatch+ }}}@@ -355,6 +372,10 @@ func (s *OrgPolicyService) createPolicyMessage(ctx context.Context, creatorID inreturn nil, status.Errorf(codes.InvalidArgument, err.Error())}+ if err := validatePolicyType(policyType, resourceType); err != nil {+ return nil, err+ }+payloadStr, err := convertPolicyPayloadToString(policy)if err != nil {return nil, status.Errorf(codes.InvalidArgument, "invalid policy %v", err.Error())@@ -420,15 +441,26 @@ func (s *OrgPolicyService) getPolicyParentPath(ctx context.Context, policyMessag}}+func validatePolicyType(policyType api.PolicyType, policyResourceType api.PolicyResourceType) error {+ for _, rt := range api.AllowedResourceTypes[policyType] {+ if rt == policyResourceType {+ return nil+ }+ }+ return status.Errorf(codes.InvalidArgument, "policy %v is not allowed in resource %v", policyType, policyResourceType)+}+func convertPolicyPayloadToString(policy *v1pb.Policy) (string, error) {switch policy.Type {case v1pb.PolicyType_DEPLOYMENT_APPROVAL:+ // TODO: validatepayload, err := convertToPipelineApprovalPolicyPayload(policy.GetDeploymentApprovalPolicy())if err != nil {return "", err}return payload.String()case v1pb.PolicyType_BACKUP_PLAN:+ // TODO: validatepayload, err := convertToBackupPlanPolicyPayload(policy.GetBackupPlanPolicy())if err != nil {return "", err@@ -439,29 +471,56 @@ func convertPolicyPayloadToString(policy *v1pb.Policy) (string, error) {if err != nil {return "", err}+ if err := payload.Validate(); err != nil {+ return "", err+ }return payload.String()case v1pb.PolicyType_SENSITIVE_DATA:+ // TODO: validatepayload, err := convertToSensitiveDataPolicyPayload(policy.GetSensitiveDataPolicy())if err != nil {return "", err}return payload.String()case v1pb.PolicyType_ACCESS_CONTROL:+ // TODO: validatepayload, err := convertToAccessControlPolicyPayload(policy.GetAccessControlPolicy())if err != nil {return "", err}return payload.String()+ case v1pb.PolicyType_SLOW_QUERY:+ payload, err := convertToSlowQueryPolicyPayload(policy.GetSlowQueryPolicy())+ if err != nil {+ return "", err+ }+ return payload.String()}return "", errors.Errorf("invalid policy %v", policy.Type)}func convertToPolicy(parentPath string, policyMessage *store.PolicyMessage) (*v1pb.Policy, error) {+ resourceType := v1pb.PolicyResourceType_RESOURCE_TYPE_UNSPECIFIED+ switch policyMessage.ResourceType {+ case api.PolicyResourceTypeEnvironment:+ resourceType = v1pb.PolicyResourceType_ENVIRONMENT+ case api.PolicyResourceTypeWorkspace:+ resourceType = v1pb.PolicyResourceType_WORKSPACE+ case api.PolicyResourceTypeProject:+ resourceType = v1pb.PolicyResourceType_PROJECT+ case api.PolicyResourceTypeDatabase:+ resourceType = v1pb.PolicyResourceType_DATABASE+ case api.PolicyResourceTypeInstance:+ resourceType = v1pb.PolicyResourceType_INSTANCE+ }policy := &v1pb.Policy{Uid: fmt.Sprintf("%d", policyMessage.UID),InheritFromParent: policyMessage.InheritFromParent,Enforce: policyMessage.Enforce,+ ResourceType: resourceType,+ ResourceUid: fmt.Sprintf("%d", policyMessage.ResourceUID),+ State: convertDeletedToState(policyMessage.Deleted),}pType := v1pb.PolicyType_POLICY_TYPE_UNSPECIFIED@@ -501,6 +560,13 @@ func convertToPolicy(parentPath string, policyMessage *store.PolicyMessage) (*v1return nil, err}policy.Policy = payload+ case api.PolicyTypeSlowQuery:+ pType = v1pb.PolicyType_SLOW_QUERY+ payload, err := convertToV1PBSlowQueryPolicy(policyMessage.Payload)+ if err != nil {+ return nil, err+ }+ policy.Policy = payload}policy.Type = pType@@ -513,7 +579,9 @@ func convertToPolicy(parentPath string, policyMessage *store.PolicyMessage) (*v1}func convertToV1PBSQLReviewPolicy(payloadStr string) (*v1pb.Policy_SqlReviewPolicy, error) {- payload, err := api.UnmarshalSQLReviewPolicy(payloadStr)+ payload, err := api.UnmarshalSQLReviewPolicy(+ api.MergeSQLReviewRulesWithoutEngine(payloadStr),+ )if err != nil {return nil, err}@@ -540,7 +608,7 @@ func convertToV1PBSQLReviewPolicy(payloadStr string) (*v1pb.Policy_SqlReviewPolireturn &v1pb.Policy_SqlReviewPolicy{SqlReviewPolicy: &v1pb.SQLReviewPolicy{- Title: payload.Name,+ Name: payload.Name,Rules: rules,},}, nil@@ -569,10 +637,10 @@ func convertToSQLReviewPolicyPayload(policy *v1pb.SQLReviewPolicy) (*advisor.SQL})}- return &advisor.SQLReviewPolicy{- Name: policy.Title,+ return api.FlattenSQLReviewRulesWithEngine(&advisor.SQLReviewPolicy{+ Name: policy.Name,RuleList: ruleList,- }, nil+ }), nil}func convertToV1PBAccessControlPolicy(payloadStr string) (*v1pb.Policy_AccessControlPolicy, error) {@@ -786,6 +854,24 @@ func convertToPipelineApprovalPolicyPayload(policy *v1pb.DeploymentApprovalPolic}, nil}+func convertToV1PBSlowQueryPolicy(payloadStr string) (*v1pb.Policy_SlowQueryPolicy, error) {+ payload, err := api.UnmarshalSlowQueryPolicy(payloadStr)+ if err != nil {+ return nil, err+ }+ return &v1pb.Policy_SlowQueryPolicy{+ SlowQueryPolicy: &v1pb.SlowQueryPolicy{+ Active: payload.Active,+ },+ }, nil+}++func convertToSlowQueryPolicyPayload(policy *v1pb.SlowQueryPolicy) (*api.SlowQueryPolicy, error) {+ return &api.SlowQueryPolicy{+ Active: policy.Active,+ }, nil+}+func convertIssueTypeToDeplymentType(issueType api.IssueType) v1pb.DeploymentType {res := v1pb.DeploymentType_DEPLOYMENT_TYPE_UNSPECIFIEDswitch issueType {@@ -817,6 +903,8 @@ func convertPolicyType(pType string) (api.PolicyType, error) {return api.PolicyTypeSensitiveData, nilcase v1pb.PolicyType_ACCESS_CONTROL.String():return api.PolicyTypeAccessControl, nil+ case v1pb.PolicyType_SLOW_QUERY.String():+ return api.PolicyTypeSlowQuery, nil}return policyType, errors.Errorf("invalid policy type %v", pType)}diff --git a/backend/legacyapi/policy.go b/backend/legacyapi/policy.goindex 07035bfc7a..5b35a4430e 100644--- a/backend/legacyapi/policy.go+++ b/backend/legacyapi/policy.go@@ -6,6 +6,7 @@ import ("github.com/pkg/errors""github.com/bytebase/bytebase/backend/plugin/advisor"+ "github.com/bytebase/bytebase/backend/plugin/advisor/db")// PolicyType is the type or name of a policy.@@ -82,8 +83,8 @@ const ()var (- // allowedResourceTypes includes allowed resource types for each policy type.- allowedResourceTypes = map[PolicyType][]PolicyResourceType{+ // AllowedResourceTypes includes allowed resource types for each policy type.+ AllowedResourceTypes = map[PolicyType][]PolicyResourceType{PolicyTypePipelineApproval: {PolicyResourceTypeEnvironment},PolicyTypeBackupPlan: {PolicyResourceTypeEnvironment},PolicyTypeSQLReview: {PolicyResourceTypeEnvironment},@@ -324,7 +325,7 @@ func UnmarshalEnvironmentTierPolicy(payload string) (*EnvironmentTierPolicy, err// ValidatePolicyType will validate the policy type.func ValidatePolicyType(pType PolicyType) error {- if _, ok := allowedResourceTypes[pType]; !ok {+ if _, ok := AllowedResourceTypes[pType]; !ok {return errors.Errorf("invalid policy type: %s", pType)}return nil@@ -333,7 +334,7 @@ func ValidatePolicyType(pType PolicyType) error {// ValidatePolicy will validate the policy resource type, type and payload values.func ValidatePolicy(resourceType PolicyResourceType, pType PolicyType, payload *string) error {hasResourceType := false- for _, rt := range allowedResourceTypes[pType] {+ for _, rt := range AllowedResourceTypes[pType] {if rt == resourceType {hasResourceType = true}@@ -466,3 +467,84 @@ func GetPolicyResourceType(resourceType string) (PolicyResourceType, error) {}return rt, nil}++// FlattenSQLReviewRulesWithEngine will map SQL review rules with engine.+func FlattenSQLReviewRulesWithEngine(policy *advisor.SQLReviewPolicy) *advisor.SQLReviewPolicy {+ var ruleList []*advisor.SQLReviewRule+ for i, rule := range policy.RuleList {+ if rule.Engine != "" {+ ruleList = append(ruleList, policy.RuleList[i])+ } else {+ if advisor.RuleExists(rule.Type, db.MySQL) {+ ruleList = append(ruleList, &advisor.SQLReviewRule{+ Type: rule.Type,+ Level: rule.Level,+ Engine: db.MySQL,+ Comment: rule.Comment,+ Payload: rule.Payload,+ })+ }+ if advisor.RuleExists(rule.Type, db.TiDB) {+ ruleList = append(ruleList, &advisor.SQLReviewRule{+ Type: rule.Type,+ Level: rule.Level,+ Engine: db.TiDB,+ Comment: rule.Comment,+ Payload: rule.Payload,+ })+ }+ if advisor.RuleExists(rule.Type, db.MariaDB) {+ ruleList = append(ruleList, &advisor.SQLReviewRule{+ Type: rule.Type,+ Level: rule.Level,+ Engine: db.MariaDB,+ Comment: rule.Comment,+ Payload: rule.Payload,+ })+ }+ if advisor.RuleExists(rule.Type, db.Postgres) {+ ruleList = append(ruleList, &advisor.SQLReviewRule{+ Type: rule.Type,+ Level: rule.Level,+ Engine: db.Postgres,+ Comment: rule.Comment,+ Payload: rule.Payload,+ })+ }+ }+ }++ policy.RuleList = ruleList+ return policy+}++// MergeSQLReviewRulesWithoutEngine will merge SQL review rules without engine.+func MergeSQLReviewRulesWithoutEngine(payload string) string {+ policy, err := UnmarshalSQLReviewPolicy(payload)+ if err != nil {+ return payload+ }++ ruleMap := make(map[advisor.SQLReviewRuleType]bool)+ var ruleList []*advisor.SQLReviewRule+ for _, rule := range policy.RuleList {+ if _, exists := ruleMap[rule.Type]; exists {+ continue+ }+ ruleMap[rule.Type] = true++ ruleList = append(ruleList, &advisor.SQLReviewRule{+ Type: rule.Type,+ Level: rule.Level,+ Comment: rule.Comment,+ Payload: rule.Payload,+ })+ }++ policy.RuleList = ruleList+ result, err := json.Marshal(policy)+ if err != nil {+ return payload+ }+ return string(result)+}diff --git a/backend/server/policy.go b/backend/server/policy.goindex dc58d1be3b..b52558cbd1 100644--- a/backend/server/policy.go+++ b/backend/server/policy.go@@ -1,7 +1,6 @@package serverimport (- "encoding/json""fmt""net/http""strconv"@@ -11,8 +10,6 @@ import ("github.com/pkg/errors"api "github.com/bytebase/bytebase/backend/legacyapi"- "github.com/bytebase/bytebase/backend/plugin/advisor"- "github.com/bytebase/bytebase/backend/plugin/advisor/db""github.com/bytebase/bytebase/backend/store")@@ -37,8 +34,17 @@ func (s *Server) registerPolicyRoutes(g *echo.Group) {if err := jsonapi.UnmarshalPayload(c.Request().Body, policyUpsert); err != nil {return echo.NewHTTPError(http.StatusBadRequest, "Malformed set policy request").SetInternal(err)}- if pType == api.PolicyTypeSQLReview {- policyUpsert.Payload = splitSQLReviewRule(policyUpsert.Payload)+ if pType == api.PolicyTypeSQLReview && policyUpsert.Payload != nil {+ policy, err := api.UnmarshalSQLReviewPolicy(*policyUpsert.Payload)+ if err != nil {+ return echo.NewHTTPError(http.StatusBadRequest, "Failed to unmarshal policy payload").SetInternal(err)+ }+ payload := api.FlattenSQLReviewRulesWithEngine(policy)+ payloadStr, err := payload.String()+ if err != nil {+ return echo.NewHTTPError(http.StatusInternalServerError, "Failed to marshal policy payload").SetInternal(err)+ }+ policyUpsert.Payload = &payloadStr}if err := s.hasAccessToUpsertPolicy(pType, policyUpsert); err != nil {@@ -150,7 +156,7 @@ func (s *Server) registerPolicyRoutes(g *echo.Group) {}if pType == api.PolicyTypeSQLReview {- policy.Payload = mergeSQLReviewRule(policy.Payload)+ policy.Payload = api.MergeSQLReviewRulesWithoutEngine(policy.Payload)}composedPolicy := &api.Policy{@@ -288,7 +294,7 @@ func (s *Server) registerPolicyRoutes(g *echo.Group) {}if pType == api.PolicyTypeSQLReview {- policy.Payload = mergeSQLReviewRule(policy.Payload)+ policy.Payload = api.MergeSQLReviewRulesWithoutEngine(policy.Payload)}composedPolicy := &api.Policy{@@ -347,7 +353,7 @@ func (s *Server) registerPolicyRoutes(g *echo.Group) {for _, policy := range policies {policy := policyif pType == api.PolicyTypeSQLReview {- policy.Payload = mergeSQLReviewRule(policy.Payload)+ policy.Payload = api.MergeSQLReviewRulesWithoutEngine(policy.Payload)}composedPolicy := &api.Policy{@@ -433,95 +439,3 @@ func (s *Server) hasAccessToUpsertPolicy(pType api.PolicyType, policyUpsert *api}return nil}--func mergeSQLReviewRule(payload string) string {- policy, err := api.UnmarshalSQLReviewPolicy(payload)- if err != nil {- return payload- }-- ruleMap := make(map[advisor.SQLReviewRuleType]bool)- var ruleList []*advisor.SQLReviewRule- for _, rule := range policy.RuleList {- if _, exists := ruleMap[rule.Type]; exists {- continue- }- ruleMap[rule.Type] = true-- ruleList = append(ruleList, &advisor.SQLReviewRule{- Type: rule.Type,- Level: rule.Level,- Comment: rule.Comment,- Payload: rule.Payload,- })- }-- policy.RuleList = ruleList- result, err := json.Marshal(policy)- if err != nil {- return payload- }- return string(result)-}--func splitSQLReviewRule(payload *string) *string {- if payload == nil {- return nil- }- policy, err := api.UnmarshalSQLReviewPolicy(*payload)- if err != nil {- return payload- }-- var ruleList []*advisor.SQLReviewRule- for i, rule := range policy.RuleList {- if rule.Engine != "" {- ruleList = append(ruleList, policy.RuleList[i])- } else {- if advisor.RuleExists(rule.Type, db.MySQL) {- ruleList = append(ruleList, &advisor.SQLReviewRule{- Type: rule.Type,- Level: rule.Level,- Engine: db.MySQL,- Comment: rule.Comment,- Payload: rule.Payload,- })- }- if advisor.RuleExists(rule.Type, db.TiDB) {- ruleList = append(ruleList, &advisor.SQLReviewRule{- Type: rule.Type,- Level: rule.Level,- Engine: db.TiDB,- Comment: rule.Comment,- Payload: rule.Payload,- })- }- if advisor.RuleExists(rule.Type, db.MariaDB) {- ruleList = append(ruleList, &advisor.SQLReviewRule{- Type: rule.Type,- Level: rule.Level,- Engine: db.MariaDB,- Comment: rule.Comment,- Payload: rule.Payload,- })- }- if advisor.RuleExists(rule.Type, db.Postgres) {- ruleList = append(ruleList, &advisor.SQLReviewRule{- Type: rule.Type,- Level: rule.Level,- Engine: db.Postgres,- Comment: rule.Comment,- Payload: rule.Payload,- })- }- }- }-- policy.RuleList = ruleList- result, err := json.Marshal(policy)- if err != nil {- return payload- }- resultString := string(result)- return &resultString-}diff --git a/backend/store/policy.go b/backend/store/policy.goindex 09a26cc87c..dfc1d11e01 100644--- a/backend/store/policy.go+++ b/backend/store/policy.go@@ -148,7 +148,8 @@ type PolicyMessage struct {Enforce bool// Output only.- UID int+ UID int+ Deleted bool}// FindPolicyMessage is the message for finding policies.@@ -156,6 +157,7 @@ type FindPolicyMessage struct {ResourceType *api.PolicyResourceTypeResourceUID *intType *api.PolicyType+ ShowDeleted bool}// UpdatePolicyMessage is the message for updating a policy.@@ -167,6 +169,7 @@ type UpdatePolicyMessage struct {InheritFromParent *boolPayload *stringEnforce *bool+ Delete *bool}// GetPolicyV2 gets a policy.@@ -186,6 +189,8 @@ func (s *Store) GetPolicyV2(ctx context.Context, find *FindPolicyMessage) (*Poli}defer tx.Rollback()+ // We will always return the resource regardless of its deleted state.+ find.ShowDeleted = truepolicies, err := s.listPolicyImplV2(ctx, tx, find)if err != nil {return nil, err@@ -273,6 +278,13 @@ func (s *Store) UpdatePolicyV2(ctx context.Context, patch *UpdatePolicyMessage)}set, args = append(set, fmt.Sprintf(`"row_status" = $%d`, len(args)+1)), append(args, rowStatus)}+ if v := patch.Delete; v != nil {+ rowStatus := api.Normal+ if *patch.Delete {+ rowStatus = api.Archived+ }+ set, args = append(set, fmt.Sprintf(`"row_status" = $%d`, len(args)+1)), append(args, rowStatus)+ }args = append(args, patch.ResourceType, patch.ResourceUID, patch.Type)tx, err := s.db.BeginTx(ctx, nil)@@ -310,6 +322,7 @@ func (s *Store) UpdatePolicyV2(ctx context.Context, patch *UpdatePolicyMessage)if rowStatus == string(api.Normal) {policy.Enforce = true}+ policy.Deleted = convertRowStatusToDeleted(rowStatus)if err := tx.Commit(); err != nil {return nil, err@@ -397,6 +410,9 @@ func (*Store) listPolicyImplV2(ctx context.Context, tx *Tx, find *FindPolicyMessif v := find.Type; v != nil {where, args = append(where, fmt.Sprintf("type = $%d", len(args)+1)), append(args, *v)}+ if !find.ShowDeleted {+ where, args = append(where, fmt.Sprintf("row_status = $%d", len(args)+1)), append(args, api.Normal)+ }rows, err := tx.QueryContext(ctx, `SELECT@@ -434,6 +450,7 @@ func (*Store) listPolicyImplV2(ctx context.Context, tx *Tx, find *FindPolicyMessif rowStatus == api.Normal {policyMessage.Enforce = true}+ policyMessage.Deleted = convertRowStatusToDeleted(string(rowStatus))policyList = append(policyList, &policyMessage)}if err := rows.Err(); err != nil {diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.tsindex 3af8f71e55..f3024af65f 100644--- a/frontend/src/types/proto/v1/org_policy_service.ts+++ b/frontend/src/types/proto/v1/org_policy_service.ts@@ -4,7 +4,7 @@ import * as _m0 from "protobufjs/minimal";import { Duration } from "../google/protobuf/duration";import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";-import { Engine, engineFromJSON, engineToJSON } from "./common";+import { Engine, engineFromJSON, engineToJSON, State, stateFromJSON, stateToJSON } from "./common";import { DeploymentType, deploymentTypeFromJSON, deploymentTypeToJSON } from "./deployment";export const protobufPackage = "bytebase.v1";@@ -16,6 +16,7 @@ export enum PolicyType {SQL_REVIEW = 3,SENSITIVE_DATA = 4,ACCESS_CONTROL = 5,+ SLOW_QUERY = 6,UNRECOGNIZED = -1,}@@ -39,6 +40,9 @@ export function policyTypeFromJSON(object: any): PolicyType {case 5:case "ACCESS_CONTROL":return PolicyType.ACCESS_CONTROL;+ case 6:+ case "SLOW_QUERY":+ return PolicyType.SLOW_QUERY;case -1:case "UNRECOGNIZED":default:@@ -60,12 +64,71 @@ export function policyTypeToJSON(object: PolicyType): string {return "SENSITIVE_DATA";case PolicyType.ACCESS_CONTROL:return "ACCESS_CONTROL";+ case PolicyType.SLOW_QUERY:+ return "SLOW_QUERY";case PolicyType.UNRECOGNIZED:default:return "UNRECOGNIZED";}}+export enum PolicyResourceType {+ RESOURCE_TYPE_UNSPECIFIED = 0,+ WORKSPACE = 1,+ ENVIRONMENT = 2,+ PROJECT = 3,+ INSTANCE = 4,+ DATABASE = 5,+ UNRECOGNIZED = -1,+}++export function policyResourceTypeFromJSON(object: any): PolicyResourceType {+ switch (object) {+ case 0:+ case "RESOURCE_TYPE_UNSPECIFIED":+ return PolicyResourceType.RESOURCE_TYPE_UNSPECIFIED;+ case 1:+ case "WORKSPACE":+ return PolicyResourceType.WORKSPACE;+ case 2:+ case "ENVIRONMENT":+ return PolicyResourceType.ENVIRONMENT;+ case 3:+ case "PROJECT":+ return PolicyResourceType.PROJECT;+ case 4:+ case "INSTANCE":+ return PolicyResourceType.INSTANCE;+ case 5:+ case "DATABASE":+ return PolicyResourceType.DATABASE;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PolicyResourceType.UNRECOGNIZED;+ }+}++export function policyResourceTypeToJSON(object: PolicyResourceType): string {+ switch (object) {+ case PolicyResourceType.RESOURCE_TYPE_UNSPECIFIED:+ return "RESOURCE_TYPE_UNSPECIFIED";+ case PolicyResourceType.WORKSPACE:+ return "WORKSPACE";+ case PolicyResourceType.ENVIRONMENT:+ return "ENVIRONMENT";+ case PolicyResourceType.PROJECT:+ return "PROJECT";+ case PolicyResourceType.INSTANCE:+ return "INSTANCE";+ case PolicyResourceType.DATABASE:+ return "DATABASE";+ case PolicyResourceType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}+export enum ApprovalGroup {ASSIGNEE_GROUP_UNSPECIFIED = 0,APPROVAL_GROUP_DBA = 1,@@ -328,6 +391,9 @@ export interface ListPoliciesRequest {* Format: {resource type}/{resource id}/policies/{policy type}*/parent: string;+ policyType?:+ | PolicyType+ | undefined;/*** The maximum number of policies to return. The service may return fewer than* this value.@@ -343,6 +409,8 @@ export interface ListPoliciesRequest {* the call that provided the page token.*/pageToken: string;+ /** Show deleted policies if specified. */+ showDeleted: boolean;}export interface ListPoliciesResponse {@@ -374,7 +442,13 @@ export interface Policy {sensitiveDataPolicy?: SensitiveDataPolicy | undefined;accessControlPolicy?: AccessControlPolicy | undefined;sqlReviewPolicy?: SQLReviewPolicy | undefined;+ slowQueryPolicy?: SlowQueryPolicy | undefined;enforce: boolean;+ /** The resource type for the policy. */+ resourceType: PolicyResourceType;+ /** The system-assigned, unique identifier for the resource. */+ resourceUid: string;+ state: State;}export interface DeploymentApprovalPolicy {@@ -393,6 +467,10 @@ export interface BackupPlanPolicy {retentionDuration?: Duration;}+export interface SlowQueryPolicy {+ active: boolean;+}+export interface SensitiveDataPolicy {sensitiveData: SensitiveData[];}@@ -413,7 +491,7 @@ export interface AccessControlRule {}export interface SQLReviewPolicy {- title: string;+ name: string;rules: SQLReviewRule[];}@@ -710,7 +788,7 @@ export const GetPolicyRequest = {};function createBaseListPoliciesRequest(): ListPoliciesRequest {- return { parent: "", pageSize: 0, pageToken: "" };+ return { parent: "", policyType: undefined, pageSize: 0, pageToken: "", showDeleted: false };}export const ListPoliciesRequest = {@@ -718,11 +796,17 @@ export const ListPoliciesRequest = {if (message.parent !== "") {writer.uint32(10).string(message.parent);}+ if (message.policyType !== undefined) {+ writer.uint32(16).int32(message.policyType);+ }if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);+ writer.uint32(24).int32(message.pageSize);}if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);+ writer.uint32(34).string(message.pageToken);+ }+ if (message.showDeleted === true) {+ writer.uint32(40).bool(message.showDeleted);}return writer;},@@ -746,15 +830,29 @@ export const ListPoliciesRequest = {break;}- message.pageSize = reader.int32();+ message.policyType = reader.int32() as any;continue;case 3:- if (tag !== 26) {+ if (tag !== 24) {+ break;+ }++ message.pageSize = reader.int32();+ continue;+ case 4:+ if (tag !== 34) {break;}message.pageToken = reader.string();continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.showDeleted = reader.bool();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -767,16 +865,21 @@ export const ListPoliciesRequest = {fromJSON(object: any): ListPoliciesRequest {return {parent: isSet(object.parent) ? String(object.parent) : "",+ policyType: isSet(object.policyType) ? policyTypeFromJSON(object.policyType) : undefined,pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",+ showDeleted: isSet(object.showDeleted) ? Boolean(object.showDeleted) : false,};},toJSON(message: ListPoliciesRequest): unknown {const obj: any = {};message.parent !== undefined && (obj.parent = message.parent);+ message.policyType !== undefined &&+ (obj.policyType = message.policyType !== undefined ? policyTypeToJSON(message.policyType) : undefined);message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));message.pageToken !== undefined && (obj.pageToken = message.pageToken);+ message.showDeleted !== undefined && (obj.showDeleted = message.showDeleted);return obj;},@@ -787,8 +890,10 @@ export const ListPoliciesRequest = {fromPartial(object: DeepPartial<ListPoliciesRequest>): ListPoliciesRequest {const message = createBaseListPoliciesRequest();message.parent = object.parent ?? "";+ message.policyType = object.policyType ?? undefined;message.pageSize = object.pageSize ?? 0;message.pageToken = object.pageToken ?? "";+ message.showDeleted = object.showDeleted ?? false;return message;},};@@ -879,7 +984,11 @@ function createBasePolicy(): Policy {sensitiveDataPolicy: undefined,accessControlPolicy: undefined,sqlReviewPolicy: undefined,+ slowQueryPolicy: undefined,enforce: false,+ resourceType: 0,+ resourceUid: "",+ state: 0,};}@@ -912,8 +1021,20 @@ export const Policy = {if (message.sqlReviewPolicy !== undefined) {SQLReviewPolicy.encode(message.sqlReviewPolicy, writer.uint32(82).fork()).ldelim();}+ if (message.slowQueryPolicy !== undefined) {+ SlowQueryPolicy.encode(message.slowQueryPolicy, writer.uint32(90).fork()).ldelim();+ }if (message.enforce === true) {- writer.uint32(88).bool(message.enforce);+ writer.uint32(96).bool(message.enforce);+ }+ if (message.resourceType !== 0) {+ writer.uint32(104).int32(message.resourceType);+ }+ if (message.resourceUid !== "") {+ writer.uint32(114).string(message.resourceUid);+ }+ if (message.state !== 0) {+ writer.uint32(120).int32(message.state);}return writer;},@@ -989,12 +1110,40 @@ export const Policy = {message.sqlReviewPolicy = SQLReviewPolicy.decode(reader, reader.uint32());continue;case 11:- if (tag !== 88) {+ if (tag !== 90) {+ break;+ }++ message.slowQueryPolicy = SlowQueryPolicy.decode(reader, reader.uint32());+ continue;+ case 12:+ if (tag !== 96) {break;}message.enforce = reader.bool();continue;+ case 13:+ if (tag !== 104) {+ break;+ }++ message.resourceType = reader.int32() as any;+ continue;+ case 14:+ if (tag !== 114) {+ break;+ }++ message.resourceUid = reader.string();+ continue;+ case 15:+ if (tag !== 120) {+ break;+ }++ message.state = reader.int32() as any;+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1021,7 +1170,11 @@ export const Policy = {? AccessControlPolicy.fromJSON(object.accessControlPolicy): undefined,sqlReviewPolicy: isSet(object.sqlReviewPolicy) ? SQLReviewPolicy.fromJSON(object.sqlReviewPolicy) : undefined,+ slowQueryPolicy: isSet(object.slowQueryPolicy) ? SlowQueryPolicy.fromJSON(object.slowQueryPolicy) : undefined,enforce: isSet(object.enforce) ? Boolean(object.enforce) : false,+ resourceType: isSet(object.resourceType) ? policyResourceTypeFromJSON(object.resourceType) : 0,+ resourceUid: isSet(object.resourceUid) ? String(object.resourceUid) : "",+ state: isSet(object.state) ? stateFromJSON(object.state) : 0,};},@@ -1044,7 +1197,12 @@ export const Policy = {: undefined);message.sqlReviewPolicy !== undefined &&(obj.sqlReviewPolicy = message.sqlReviewPolicy ? SQLReviewPolicy.toJSON(message.sqlReviewPolicy) : undefined);+ message.slowQueryPolicy !== undefined &&+ (obj.slowQueryPolicy = message.slowQueryPolicy ? SlowQueryPolicy.toJSON(message.slowQueryPolicy) : undefined);message.enforce !== undefined && (obj.enforce = message.enforce);+ message.resourceType !== undefined && (obj.resourceType = policyResourceTypeToJSON(message.resourceType));+ message.resourceUid !== undefined && (obj.resourceUid = message.resourceUid);+ message.state !== undefined && (obj.state = stateToJSON(message.state));return obj;},@@ -1074,7 +1232,13 @@ export const Policy = {message.sqlReviewPolicy = (object.sqlReviewPolicy !== undefined && object.sqlReviewPolicy !== null)? SQLReviewPolicy.fromPartial(object.sqlReviewPolicy): undefined;+ message.slowQueryPolicy = (object.slowQueryPolicy !== undefined && object.slowQueryPolicy !== null)+ ? SlowQueryPolicy.fromPartial(object.slowQueryPolicy)+ : undefined;message.enforce = object.enforce ?? false;+ message.resourceType = object.resourceType ?? 0;+ message.resourceUid = object.resourceUid ?? "";+ message.state = object.state ?? 0;return message;},};@@ -1317,6 +1481,62 @@ export const BackupPlanPolicy = {},};+function createBaseSlowQueryPolicy(): SlowQueryPolicy {+ return { active: false };+}++export const SlowQueryPolicy = {+ encode(message: SlowQueryPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.active === true) {+ writer.uint32(8).bool(message.active);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): SlowQueryPolicy {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseSlowQueryPolicy();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.active = reader.bool();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): SlowQueryPolicy {+ return { active: isSet(object.active) ? Boolean(object.active) : false };+ },++ toJSON(message: SlowQueryPolicy): unknown {+ const obj: any = {};+ message.active !== undefined && (obj.active = message.active);+ return obj;+ },++ create(base?: DeepPartial<SlowQueryPolicy>): SlowQueryPolicy {+ return SlowQueryPolicy.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<SlowQueryPolicy>): SlowQueryPolicy {+ const message = createBaseSlowQueryPolicy();+ message.active = object.active ?? false;+ return message;+ },+};+function createBaseSensitiveDataPolicy(): SensitiveDataPolicy {return { sensitiveData: [] };}@@ -1599,13 +1819,13 @@ export const AccessControlRule = {};function createBaseSQLReviewPolicy(): SQLReviewPolicy {- return { title: "", rules: [] };+ return { name: "", rules: [] };}export const SQLReviewPolicy = {encode(message: SQLReviewPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.title !== "") {- writer.uint32(10).string(message.title);+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}for (const v of message.rules) {SQLReviewRule.encode(v!, writer.uint32(18).fork()).ldelim();@@ -1625,7 +1845,7 @@ export const SQLReviewPolicy = {break;}- message.title = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {@@ -1645,14 +1865,14 @@ export const SQLReviewPolicy = {fromJSON(object: any): SQLReviewPolicy {return {- title: isSet(object.title) ? String(object.title) : "",+ name: isSet(object.name) ? String(object.name) : "",rules: Array.isArray(object?.rules) ? object.rules.map((e: any) => SQLReviewRule.fromJSON(e)) : [],};},toJSON(message: SQLReviewPolicy): unknown {const obj: any = {};- message.title !== undefined && (obj.title = message.title);+ message.name !== undefined && (obj.name = message.name);if (message.rules) {obj.rules = message.rules.map((e) => e ? SQLReviewRule.toJSON(e) : undefined);} else {@@ -1667,7 +1887,7 @@ export const SQLReviewPolicy = {fromPartial(object: DeepPartial<SQLReviewPolicy>): SQLReviewPolicy {const message = createBaseSQLReviewPolicy();- message.title = object.title ?? "";+ message.name = object.name ?? "";message.rules = object.rules?.map((e) => SQLReviewRule.fromPartial(e)) || [];return message;},diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 598f3e78b3..f50b0b3af5 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -221,11 +221,13 @@- [SQLReviewRule](#bytebase-v1-SQLReviewRule)- [SensitiveData](#bytebase-v1-SensitiveData)- [SensitiveDataPolicy](#bytebase-v1-SensitiveDataPolicy)+ - [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy)- [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest)- [ApprovalGroup](#bytebase-v1-ApprovalGroup)- [ApprovalStrategy](#bytebase-v1-ApprovalStrategy)- [BackupPlanSchedule](#bytebase-v1-BackupPlanSchedule)+ - [PolicyResourceType](#bytebase-v1-PolicyResourceType)- [PolicyType](#bytebase-v1-PolicyType)- [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel)- [SensitiveDataMaskType](#bytebase-v1-SensitiveDataMaskType)@@ -3390,10 +3392,12 @@ ACTION_SQL_EDITOR_QUERY is the type for SQL editor query. If user runs SQL in Re| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || parent | [string](#string) | | The parent, which owns this collection of policies. Format: {resource type}/{resource id}/policies/{policy type} |+| policy_type | [PolicyType](#bytebase-v1-PolicyType) | optional | || page_size | [int32](#int32) | | The maximum number of policies to return. The service may return fewer than this value. If unspecified, at most 50 policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. || page_token | [string](#string) | | A page token, received from a previous `GetPolicies` call. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `GetPolicies` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted policies if specified. |@@ -3433,7 +3437,11 @@ When paginating, all other parameters provided to `GetPolicies` must match the c| sensitive_data_policy | [SensitiveDataPolicy](#bytebase-v1-SensitiveDataPolicy) | | || access_control_policy | [AccessControlPolicy](#bytebase-v1-AccessControlPolicy) | | || sql_review_policy | [SQLReviewPolicy](#bytebase-v1-SQLReviewPolicy) | | |+| slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | || enforce | [bool](#bool) | | |+| resource_type | [PolicyResourceType](#bytebase-v1-PolicyResourceType) | | The resource type for the policy. |+| resource_uid | [string](#string) | | The system-assigned, unique identifier for the resource. |+| state | [State](#bytebase-v1-State) | | |@@ -3448,7 +3456,7 @@ When paginating, all other parameters provided to `GetPolicies` must match the c| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | |+| name | [string](#string) | | || rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |@@ -3508,6 +3516,21 @@ When paginating, all other parameters provided to `GetPolicies` must match the c+<a name="bytebase-v1-SlowQueryPolicy"></a>++### SlowQueryPolicy++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| active | [bool](#bool) | | |++++++<a name="bytebase-v1-UpdatePolicyRequest"></a>### UpdatePolicyRequest@@ -3569,6 +3592,22 @@ The policy's `name` field is used to identify the instance to update. Format+<a name="bytebase-v1-PolicyResourceType"></a>++### PolicyResourceType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| RESOURCE_TYPE_UNSPECIFIED | 0 | |+| WORKSPACE | 1 | |+| ENVIRONMENT | 2 | |+| PROJECT | 3 | |+| INSTANCE | 4 | |+| DATABASE | 5 | |+++<a name="bytebase-v1-PolicyType"></a>### PolicyType@@ -3582,6 +3621,7 @@ The policy's `name` field is used to identify the instance to update. Format| SQL_REVIEW | 3 | || SENSITIVE_DATA | 4 | || ACCESS_CONTROL | 5 | |+| SLOW_QUERY | 6 | |diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.goindex f3b70dd735..2037e7ddb9 100644--- a/proto/generated-go/v1/org_policy_service.pb.go+++ b/proto/generated-go/v1/org_policy_service.pb.go@@ -33,6 +33,7 @@ const (PolicyType_SQL_REVIEW PolicyType = 3PolicyType_SENSITIVE_DATA PolicyType = 4PolicyType_ACCESS_CONTROL PolicyType = 5+ PolicyType_SLOW_QUERY PolicyType = 6)// Enum value maps for PolicyType.@@ -44,6 +45,7 @@ var (3: "SQL_REVIEW",4: "SENSITIVE_DATA",5: "ACCESS_CONTROL",+ 6: "SLOW_QUERY",}PolicyType_value = map[string]int32{"POLICY_TYPE_UNSPECIFIED": 0,@@ -52,6 +54,7 @@ var ("SQL_REVIEW": 3,"SENSITIVE_DATA": 4,"ACCESS_CONTROL": 5,+ "SLOW_QUERY": 6,})@@ -82,6 +85,64 @@ func (PolicyType) EnumDescriptor() ([]byte, []int) {return file_v1_org_policy_service_proto_rawDescGZIP(), []int{0}}+type PolicyResourceType int32++const (+ PolicyResourceType_RESOURCE_TYPE_UNSPECIFIED PolicyResourceType = 0+ PolicyResourceType_WORKSPACE PolicyResourceType = 1+ PolicyResourceType_ENVIRONMENT PolicyResourceType = 2+ PolicyResourceType_PROJECT PolicyResourceType = 3+ PolicyResourceType_INSTANCE PolicyResourceType = 4+ PolicyResourceType_DATABASE PolicyResourceType = 5+)++// Enum value maps for PolicyResourceType.+var (+ PolicyResourceType_name = map[int32]string{+ 0: "RESOURCE_TYPE_UNSPECIFIED",+ 1: "WORKSPACE",+ 2: "ENVIRONMENT",+ 3: "PROJECT",+ 4: "INSTANCE",+ 5: "DATABASE",+ }+ PolicyResourceType_value = map[string]int32{+ "RESOURCE_TYPE_UNSPECIFIED": 0,+ "WORKSPACE": 1,+ "ENVIRONMENT": 2,+ "PROJECT": 3,+ "INSTANCE": 4,+ "DATABASE": 5,+ }+)++func (x PolicyResourceType) Enum() *PolicyResourceType {+ p := new(PolicyResourceType)+ *p = x+ return p+}++func (x PolicyResourceType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PolicyResourceType) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_org_policy_service_proto_enumTypes[1].Descriptor()+}++func (PolicyResourceType) Type() protoreflect.EnumType {+ return &file_v1_org_policy_service_proto_enumTypes[1]+}++func (x PolicyResourceType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PolicyResourceType.Descriptor instead.+func (PolicyResourceType) EnumDescriptor() ([]byte, []int) {+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{1}+}+type ApprovalGroup int32const (@@ -115,11 +176,11 @@ func (x ApprovalGroup) String() string {}func (ApprovalGroup) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[1].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[2].Descriptor()}func (ApprovalGroup) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[1]+ return &file_v1_org_policy_service_proto_enumTypes[2]}func (x ApprovalGroup) Number() protoreflect.EnumNumber {@@ -128,7 +189,7 @@ func (x ApprovalGroup) Number() protoreflect.EnumNumber {// Deprecated: Use ApprovalGroup.Descriptor instead.func (ApprovalGroup) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{1}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{2}}type ApprovalStrategy int32@@ -164,11 +225,11 @@ func (x ApprovalStrategy) String() string {}func (ApprovalStrategy) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[2].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[3].Descriptor()}func (ApprovalStrategy) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[2]+ return &file_v1_org_policy_service_proto_enumTypes[3]}func (x ApprovalStrategy) Number() protoreflect.EnumNumber {@@ -177,7 +238,7 @@ func (x ApprovalStrategy) Number() protoreflect.EnumNumber {// Deprecated: Use ApprovalStrategy.Descriptor instead.func (ApprovalStrategy) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{2}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{3}}type BackupPlanSchedule int32@@ -216,11 +277,11 @@ func (x BackupPlanSchedule) String() string {}func (BackupPlanSchedule) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[3].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[4].Descriptor()}func (BackupPlanSchedule) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[3]+ return &file_v1_org_policy_service_proto_enumTypes[4]}func (x BackupPlanSchedule) Number() protoreflect.EnumNumber {@@ -229,7 +290,7 @@ func (x BackupPlanSchedule) Number() protoreflect.EnumNumber {// Deprecated: Use BackupPlanSchedule.Descriptor instead.func (BackupPlanSchedule) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{3}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{4}}type SensitiveDataMaskType int32@@ -262,11 +323,11 @@ func (x SensitiveDataMaskType) String() string {}func (SensitiveDataMaskType) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[4].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[5].Descriptor()}func (SensitiveDataMaskType) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[4]+ return &file_v1_org_policy_service_proto_enumTypes[5]}func (x SensitiveDataMaskType) Number() protoreflect.EnumNumber {@@ -275,7 +336,7 @@ func (x SensitiveDataMaskType) Number() protoreflect.EnumNumber {// Deprecated: Use SensitiveDataMaskType.Descriptor instead.func (SensitiveDataMaskType) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{4}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{5}}type SQLReviewRuleLevel int32@@ -314,11 +375,11 @@ func (x SQLReviewRuleLevel) String() string {}func (SQLReviewRuleLevel) Descriptor() protoreflect.EnumDescriptor {- return file_v1_org_policy_service_proto_enumTypes[5].Descriptor()+ return file_v1_org_policy_service_proto_enumTypes[6].Descriptor()}func (SQLReviewRuleLevel) Type() protoreflect.EnumType {- return &file_v1_org_policy_service_proto_enumTypes[5]+ return &file_v1_org_policy_service_proto_enumTypes[6]}func (x SQLReviewRuleLevel) Number() protoreflect.EnumNumber {@@ -327,7 +388,7 @@ func (x SQLReviewRuleLevel) Number() protoreflect.EnumNumber {// Deprecated: Use SQLReviewRuleLevel.Descriptor instead.func (SQLReviewRuleLevel) EnumDescriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{5}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{6}}type CreatePolicyRequest struct {@@ -582,18 +643,21 @@ type ListPoliciesRequest struct {// The parent, which owns this collection of policies.// Format: {resource type}/{resource id}/policies/{policy type}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ PolicyType *PolicyType `protobuf:"varint,2,opt,name=policy_type,json=policyType,proto3,enum=bytebase.v1.PolicyType,oneof" json:"policy_type,omitempty"`// The maximum number of policies to return. The service may return fewer than// this value.// If unspecified, at most 50 policies will be returned.// The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`// A page token, received from a previous `GetPolicies` call.// Provide this to retrieve the subsequent page.//// When paginating, all other parameters provided to `GetPolicies` must match// the call that provided the page token.- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+ PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+ // Show deleted policies if specified.+ ShowDeleted bool `protobuf:"varint,5,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`}func (x *ListPoliciesRequest) Reset() {@@ -635,6 +699,13 @@ func (x *ListPoliciesRequest) GetParent() string {return ""}+func (x *ListPoliciesRequest) GetPolicyType() PolicyType {+ if x != nil && x.PolicyType != nil {+ return *x.PolicyType+ }+ return PolicyType_POLICY_TYPE_UNSPECIFIED+}+func (x *ListPoliciesRequest) GetPageSize() int32 {if x != nil {return x.PageSize@@ -649,6 +720,13 @@ func (x *ListPoliciesRequest) GetPageToken() string {return ""}+func (x *ListPoliciesRequest) GetShowDeleted() bool {+ if x != nil {+ return x.ShowDeleted+ }+ return false+}+type ListPoliciesResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -730,8 +808,14 @@ type Policy struct {// *Policy_SensitiveDataPolicy// *Policy_AccessControlPolicy// *Policy_SqlReviewPolicy+ // *Policy_SlowQueryPolicyPolicy isPolicy_Policy `protobuf_oneof:"policy"`- Enforce bool `protobuf:"varint,11,opt,name=enforce,proto3" json:"enforce,omitempty"`+ Enforce bool `protobuf:"varint,12,opt,name=enforce,proto3" json:"enforce,omitempty"`+ // The resource type for the policy.+ ResourceType PolicyResourceType `protobuf:"varint,13,opt,name=resource_type,json=resourceType,proto3,enum=bytebase.v1.PolicyResourceType" json:"resource_type,omitempty"`+ // The system-assigned, unique identifier for the resource.+ ResourceUid string `protobuf:"bytes,14,opt,name=resource_uid,json=resourceUid,proto3" json:"resource_uid,omitempty"`+ State State `protobuf:"varint,15,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`}func (x *Policy) Reset() {@@ -836,6 +920,13 @@ func (x *Policy) GetSqlReviewPolicy() *SQLReviewPolicy {return nil}+func (x *Policy) GetSlowQueryPolicy() *SlowQueryPolicy {+ if x, ok := x.GetPolicy().(*Policy_SlowQueryPolicy); ok {+ return x.SlowQueryPolicy+ }+ return nil+}+func (x *Policy) GetEnforce() bool {if x != nil {return x.Enforce@@ -843,6 +934,27 @@ func (x *Policy) GetEnforce() bool {return false}+func (x *Policy) GetResourceType() PolicyResourceType {+ if x != nil {+ return x.ResourceType+ }+ return PolicyResourceType_RESOURCE_TYPE_UNSPECIFIED+}++func (x *Policy) GetResourceUid() string {+ if x != nil {+ return x.ResourceUid+ }+ return ""+}++func (x *Policy) GetState() State {+ if x != nil {+ return x.State+ }+ return State_STATE_UNSPECIFIED+}+type isPolicy_Policy interface {isPolicy_Policy()}@@ -867,6 +979,10 @@ type Policy_SqlReviewPolicy struct {SqlReviewPolicy *SQLReviewPolicy `protobuf:"bytes,10,opt,name=sql_review_policy,json=sqlReviewPolicy,proto3,oneof"`}+type Policy_SlowQueryPolicy struct {+ SlowQueryPolicy *SlowQueryPolicy `protobuf:"bytes,11,opt,name=slow_query_policy,json=slowQueryPolicy,proto3,oneof"`+}+func (*Policy_DeploymentApprovalPolicy) isPolicy_Policy() {}func (*Policy_BackupPlanPolicy) isPolicy_Policy() {}@@ -877,6 +993,8 @@ func (*Policy_AccessControlPolicy) isPolicy_Policy() {}func (*Policy_SqlReviewPolicy) isPolicy_Policy() {}+func (*Policy_SlowQueryPolicy) isPolicy_Policy() {}+type DeploymentApprovalPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1050,6 +1168,53 @@ func (x *BackupPlanPolicy) GetRetentionDuration() *durationpb.Duration {return nil}+type SlowQueryPolicy struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`+}++func (x *SlowQueryPolicy) Reset() {+ *x = SlowQueryPolicy{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_org_policy_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SlowQueryPolicy) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SlowQueryPolicy) ProtoMessage() {}++func (x *SlowQueryPolicy) ProtoReflect() protoreflect.Message {+ mi := &file_v1_org_policy_service_proto_msgTypes[10]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use SlowQueryPolicy.ProtoReflect.Descriptor instead.+func (*SlowQueryPolicy) Descriptor() ([]byte, []int) {+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+}++func (x *SlowQueryPolicy) GetActive() bool {+ if x != nil {+ return x.Active+ }+ return false+}+type SensitiveDataPolicy struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -1061,7 +1226,7 @@ type SensitiveDataPolicy struct {func (x *SensitiveDataPolicy) Reset() {*x = SensitiveDataPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1074,7 +1239,7 @@ func (x *SensitiveDataPolicy) String() string {func (*SensitiveDataPolicy) ProtoMessage() {}func (x *SensitiveDataPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[10]+ mi := &file_v1_org_policy_service_proto_msgTypes[11]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1087,7 +1252,7 @@ func (x *SensitiveDataPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use SensitiveDataPolicy.ProtoReflect.Descriptor instead.func (*SensitiveDataPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{10}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}}func (x *SensitiveDataPolicy) GetSensitiveData() []*SensitiveData {@@ -1111,7 +1276,7 @@ type SensitiveData struct {func (x *SensitiveData) Reset() {*x = SensitiveData{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1124,7 +1289,7 @@ func (x *SensitiveData) String() string {func (*SensitiveData) ProtoMessage() {}func (x *SensitiveData) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[11]+ mi := &file_v1_org_policy_service_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1137,7 +1302,7 @@ func (x *SensitiveData) ProtoReflect() protoreflect.Message {// Deprecated: Use SensitiveData.ProtoReflect.Descriptor instead.func (*SensitiveData) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{11}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}}func (x *SensitiveData) GetSchema() string {@@ -1179,7 +1344,7 @@ type AccessControlPolicy struct {func (x *AccessControlPolicy) Reset() {*x = AccessControlPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1192,7 +1357,7 @@ func (x *AccessControlPolicy) String() string {func (*AccessControlPolicy) ProtoMessage() {}func (x *AccessControlPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[12]+ mi := &file_v1_org_policy_service_proto_msgTypes[13]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1205,7 +1370,7 @@ func (x *AccessControlPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use AccessControlPolicy.ProtoReflect.Descriptor instead.func (*AccessControlPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{12}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}}func (x *AccessControlPolicy) GetDisallowRules() []*AccessControlRule {@@ -1226,7 +1391,7 @@ type AccessControlRule struct {func (x *AccessControlRule) Reset() {*x = AccessControlRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1239,7 +1404,7 @@ func (x *AccessControlRule) String() string {func (*AccessControlRule) ProtoMessage() {}func (x *AccessControlRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[13]+ mi := &file_v1_org_policy_service_proto_msgTypes[14]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1252,7 +1417,7 @@ func (x *AccessControlRule) ProtoReflect() protoreflect.Message {// Deprecated: Use AccessControlRule.ProtoReflect.Descriptor instead.func (*AccessControlRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{13}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}}func (x *AccessControlRule) GetFullDatabase() bool {@@ -1267,14 +1432,14 @@ type SQLReviewPolicy struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`Rules []*SQLReviewRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`}func (x *SQLReviewPolicy) Reset() {*x = SQLReviewPolicy{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1287,7 +1452,7 @@ func (x *SQLReviewPolicy) String() string {func (*SQLReviewPolicy) ProtoMessage() {}func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[14]+ mi := &file_v1_org_policy_service_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1300,12 +1465,12 @@ func (x *SQLReviewPolicy) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewPolicy.ProtoReflect.Descriptor instead.func (*SQLReviewPolicy) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{14}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}}-func (x *SQLReviewPolicy) GetTitle() string {+func (x *SQLReviewPolicy) GetName() string {if x != nil {- return x.Title+ return x.Name}return ""}@@ -1332,7 +1497,7 @@ type SQLReviewRule struct {func (x *SQLReviewRule) Reset() {*x = SQLReviewRule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1345,7 +1510,7 @@ func (x *SQLReviewRule) String() string {func (*SQLReviewRule) ProtoMessage() {}func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {- mi := &file_v1_org_policy_service_proto_msgTypes[15]+ mi := &file_v1_org_policy_service_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1358,7 +1523,7 @@ func (x *SQLReviewRule) ProtoReflect() protoreflect.Message {// Deprecated: Use SQLReviewRule.ProtoReflect.Descriptor instead.func (*SQLReviewRule) Descriptor() ([]byte, []int) {- return file_v1_org_policy_service_proto_rawDescGZIP(), []int{15}+ return file_v1_org_policy_service_proto_rawDescGZIP(), []int{16}}func (x *SQLReviewRule) GetType() string {@@ -1441,281 +1606,314 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f,0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e,0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,- 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,- 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,- 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,+ 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a,- 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,- 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe6, 0x04, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x69,- 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69,- 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x74,- 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79,- 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x1a, 0x64, 0x65, 0x70, 0x6c,- 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f,- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x18, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,- 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,- 0x4d, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,- 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x10, 0x62, 0x61,- 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x56,- 0x0a, 0x15, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61,- 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x73,- 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48,- 0x00, 0x52, 0x13, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x56, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,- 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18,- 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,- 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x73,- 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a,- 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65,- 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e,- 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x66,- 0x6f, 0x72, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xd3,- 0x01, 0x0a, 0x18, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70,- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x48, 0x0a, 0x10, 0x64,- 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61,- 0x74, 0x65, 0x67, 0x79, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x72,- 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x6d, 0x0a, 0x1e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,- 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72,- 0x61, 0x74, 0x65, 0x67, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c,- 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74,- 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x1c, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,- 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,- 0x67, 0x69, 0x65, 0x73, 0x22, 0xf1, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,- 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74,- 0x65, 0x67, 0x79, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,- 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x64, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x61, 0x70, 0x70,- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0d, 0x61,- 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x11,- 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,- 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74,- 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,- 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x0a,- 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,- 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,- 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x72, 0x65,- 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,- 0x18, 0x02, 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, 0x11, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61,- 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x58, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,- 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x41, 0x0a, 0x0e, 0x73,- 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,- 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52,- 0x0d, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x96,- 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 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, 0x3f, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x74,- 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,- 0x65, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6d,- 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x5c, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x65, 0x73,- 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x45,- 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73,- 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72,- 0x6f, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,- 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43,- 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75,- 0x6c, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x08, 0x52, 0x0c, 0x66, 0x75, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22,- 0x59, 0x0a, 0x0f, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65,- 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,- 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x53,- 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04,- 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,- 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c,- 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,- 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,- 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18,- 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2a, 0x8b, 0x01, 0x0a, 0x0a, 0x50, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x49, 0x43,- 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,- 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x4d, 0x45,- 0x4e, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0f, 0x0a,- 0x0b, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x02, 0x12, 0x0e,- 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x03, 0x12, 0x12,- 0x0a, 0x0e, 0x53, 0x45, 0x4e, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41,- 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x43, 0x4f, 0x4e,- 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x05, 0x2a, 0x69, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,- 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x53, 0x53, 0x49, 0x47,- 0x4e, 0x45, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x50, 0x50, 0x52, 0x4f,- 0x56, 0x41, 0x4c, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x44, 0x42, 0x41, 0x10, 0x01, 0x12,- 0x20, 0x0a, 0x1c, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x47, 0x52, 0x4f, 0x55,- 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10,- 0x02, 0x2a, 0x50, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72,- 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41,- 0x4c, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f,- 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41,- 0x4c, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x12, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61,- 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x43, 0x48,- 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x09,- 0x0a, 0x05, 0x44, 0x41, 0x49, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x45, 0x45,- 0x4b, 0x4c, 0x59, 0x10, 0x03, 0x2a, 0x3f, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69,- 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 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, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46,- 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x15, 0x0a, 0x11,- 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b,- 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44,- 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0x81, 0x0d, 0x0a, 0x10, 0x4f, 0x72,- 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa7,- 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x22, 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd7,- 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,- 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x12,- 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x5a, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xae, 0x02, 0x0a, 0x0c, 0x4c, 0x69, 0x73,- 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd8,- 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xce, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a,- 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65,- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x3e, 0x12, 0x3c, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31,- 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xd5, 0x02, 0x0a, 0x0c, 0x43, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62,+ 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,+ 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,+ 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77,+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,+ 0x2f, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,+ 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50,+ 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xcf, 0x06, 0x0a, 0x06, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2e,+ 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x68,+ 0x65, 0x72, 0x69, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b,+ 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x22, 0x8d, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xf6, 0x01, 0x3a, 0x06, 0x70, 0x6f, 0x6c,- 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x20, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a,- 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a,- 0x3a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x46, 0x3a, 0x06, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,- 0x73, 0x12, 0x86, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69,- 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xbe, 0x02, 0xda, 0x41, 0x12, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xa2, 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,- 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x2b, 0x2f,+ 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x1a, 0x64,+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76,+ 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,+ 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x18, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,+ 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x4d, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x70, 0x6c, 0x61,+ 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63,+ 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52,+ 0x10, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x56, 0x0a, 0x15, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64,+ 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x48, 0x00, 0x52, 0x13, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x56, 0x0a, 0x15, 0x61, 0x63, 0x63,+ 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e,+ 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x13, 0x61, 0x63,+ 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x12, 0x4a, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71,+ 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4a, 0x0a,+ 0x11, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79,+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75,+ 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x66,+ 0x6f, 0x72, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x66, 0x6f,+ 0x72, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03,+ 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26,+ 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x0e,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x55, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18,+ 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,+ 0x42, 0x08, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xd3, 0x01, 0x0a, 0x18, 0x44,+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61,+ 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x48, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75,+ 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,+ 0x52, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,+ 0x79, 0x12, 0x6d, 0x0a, 0x1e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,+ 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,+ 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,+ 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,+ 0x67, 0x79, 0x52, 0x1c, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x70,+ 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x69, 0x65, 0x73,+ 0x22, 0xf1, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41,+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12,+ 0x44, 0x0a, 0x0f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,+ 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61,+ 0x6c, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72,+ 0x6f, 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f,+ 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72,+ 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,+ 0x67, 0x79, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x61,+ 0x74, 0x65, 0x67, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50,+ 0x6c, 0x61, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x63, 0x68,+ 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,+ 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63,+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74,+ 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x11, 0x72,+ 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 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, 0x58, 0x0a, 0x13, 0x53,+ 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f,+ 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69,+ 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x96, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74,+ 0x69, 0x76, 0x65, 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, 0x3f, 0x0a,+ 0x09, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x73, 0x6b,+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x5c,+ 0x0a, 0x13, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x45, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,+ 0x77, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65,+ 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x64,+ 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x11,+ 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x75, 0x6c,+ 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x75, 0x6c, 0x6c, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x57, 0x0a, 0x0f, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76,+ 0x69, 0x65, 0x77, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a,+ 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22,+ 0xbb, 0x01, 0x0a, 0x0d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c,+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65,+ 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07,+ 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70,+ 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67,+ 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2a, 0x9b, 0x01,+ 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17,+ 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x45, 0x50,+ 0x4c, 0x4f, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c,+ 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x50, 0x4c, 0x41,+ 0x4e, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45,+ 0x57, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x45, 0x4e, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45,+ 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x43, 0x45, 0x53,+ 0x53, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x53,+ 0x4c, 0x4f, 0x57, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x06, 0x2a, 0x7c, 0x0a, 0x12, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12,+ 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02,+ 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x0c, 0x0a,+ 0x08, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x05, 0x2a, 0x69, 0x0a, 0x0d, 0x41, 0x70, 0x70,+ 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x53,+ 0x53, 0x49, 0x47, 0x4e, 0x45, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x50,+ 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x44, 0x42, 0x41,+ 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x47,+ 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4f, 0x57, 0x4e,+ 0x45, 0x52, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,+ 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x50, 0x50, 0x52,+ 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41,+ 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41,+ 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x12, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,+ 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x14,+ 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10,+ 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x41, 0x49, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06,+ 0x57, 0x45, 0x45, 0x4b, 0x4c, 0x59, 0x10, 0x03, 0x2a, 0x3f, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x73,+ 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 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, 0x0b, 0x0a, 0x07,+ 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x2a, 0x51, 0x0a, 0x12, 0x53, 0x51, 0x4c,+ 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,+ 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10,+ 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c,+ 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0x81, 0x0d, 0x0a,+ 0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x12, 0xa7, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,+ 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x22, 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0xd7, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xae, 0x02, 0x0a, 0x0c,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,+ 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0xd8, 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xce, 0x01, 0x5a, 0x22,+ 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x3e,+ 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e,+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x0c,+ 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xd5, 0x02, 0x0a,+ 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,+ 0x6c, 0x69, 0x63, 0x79, 0x22, 0x8d, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xf6, 0x01, 0x3a, 0x06,+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x5a, 0x3a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x46,+ 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69,+ 0x63, 0x69, 0x65, 0x73, 0x12, 0x86, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,+ 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xbe, 0x02, 0xda,+ 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xa2, 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f,0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x41, 0x3a, 0x06, 0x70, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x32, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x4d, 0x3a,- 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x43, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,+ 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,+ 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x41, 0x3a,+ 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f,0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb0, 0x02, 0x0a, 0x0c, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0xd7, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70,- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a, 0x24, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,- 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,- 0x2a, 0x7d, 0x5a, 0x32, 0x2a, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69,- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x2a, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a,- 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31,- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x5a, 0x4d, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x43, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32,+ 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb0, 0x02,+ 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd7, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a,+ 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x2a, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x2a, 0x3c, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,+ 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,+ 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,+ 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -1730,77 +1928,84 @@ func file_v1_org_policy_service_proto_rawDescGZIP() []byte {return file_v1_org_policy_service_proto_rawDescData}-var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)-var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)+var file_v1_org_policy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 7)+var file_v1_org_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 17)var file_v1_org_policy_service_proto_goTypes = []interface{}{(PolicyType)(0), // 0: bytebase.v1.PolicyType- (ApprovalGroup)(0), // 1: bytebase.v1.ApprovalGroup- (ApprovalStrategy)(0), // 2: bytebase.v1.ApprovalStrategy- (BackupPlanSchedule)(0), // 3: bytebase.v1.BackupPlanSchedule- (SensitiveDataMaskType)(0), // 4: bytebase.v1.SensitiveDataMaskType- (SQLReviewRuleLevel)(0), // 5: bytebase.v1.SQLReviewRuleLevel- (*CreatePolicyRequest)(nil), // 6: bytebase.v1.CreatePolicyRequest- (*UpdatePolicyRequest)(nil), // 7: bytebase.v1.UpdatePolicyRequest- (*DeletePolicyRequest)(nil), // 8: bytebase.v1.DeletePolicyRequest- (*GetPolicyRequest)(nil), // 9: bytebase.v1.GetPolicyRequest- (*ListPoliciesRequest)(nil), // 10: bytebase.v1.ListPoliciesRequest- (*ListPoliciesResponse)(nil), // 11: bytebase.v1.ListPoliciesResponse- (*Policy)(nil), // 12: bytebase.v1.Policy- (*DeploymentApprovalPolicy)(nil), // 13: bytebase.v1.DeploymentApprovalPolicy- (*DeploymentApprovalStrategy)(nil), // 14: bytebase.v1.DeploymentApprovalStrategy- (*BackupPlanPolicy)(nil), // 15: bytebase.v1.BackupPlanPolicy- (*SensitiveDataPolicy)(nil), // 16: bytebase.v1.SensitiveDataPolicy- (*SensitiveData)(nil), // 17: bytebase.v1.SensitiveData- (*AccessControlPolicy)(nil), // 18: bytebase.v1.AccessControlPolicy- (*AccessControlRule)(nil), // 19: bytebase.v1.AccessControlRule- (*SQLReviewPolicy)(nil), // 20: bytebase.v1.SQLReviewPolicy- (*SQLReviewRule)(nil), // 21: bytebase.v1.SQLReviewRule- (*fieldmaskpb.FieldMask)(nil), // 22: google.protobuf.FieldMask- (DeploymentType)(0), // 23: bytebase.v1.DeploymentType- (*durationpb.Duration)(nil), // 24: google.protobuf.Duration- (Engine)(0), // 25: bytebase.v1.Engine- (*emptypb.Empty)(nil), // 26: google.protobuf.Empty+ (PolicyResourceType)(0), // 1: bytebase.v1.PolicyResourceType+ (ApprovalGroup)(0), // 2: bytebase.v1.ApprovalGroup+ (ApprovalStrategy)(0), // 3: bytebase.v1.ApprovalStrategy+ (BackupPlanSchedule)(0), // 4: bytebase.v1.BackupPlanSchedule+ (SensitiveDataMaskType)(0), // 5: bytebase.v1.SensitiveDataMaskType+ (SQLReviewRuleLevel)(0), // 6: bytebase.v1.SQLReviewRuleLevel+ (*CreatePolicyRequest)(nil), // 7: bytebase.v1.CreatePolicyRequest+ (*UpdatePolicyRequest)(nil), // 8: bytebase.v1.UpdatePolicyRequest+ (*DeletePolicyRequest)(nil), // 9: bytebase.v1.DeletePolicyRequest+ (*GetPolicyRequest)(nil), // 10: bytebase.v1.GetPolicyRequest+ (*ListPoliciesRequest)(nil), // 11: bytebase.v1.ListPoliciesRequest+ (*ListPoliciesResponse)(nil), // 12: bytebase.v1.ListPoliciesResponse+ (*Policy)(nil), // 13: bytebase.v1.Policy+ (*DeploymentApprovalPolicy)(nil), // 14: bytebase.v1.DeploymentApprovalPolicy+ (*DeploymentApprovalStrategy)(nil), // 15: bytebase.v1.DeploymentApprovalStrategy+ (*BackupPlanPolicy)(nil), // 16: bytebase.v1.BackupPlanPolicy+ (*SlowQueryPolicy)(nil), // 17: bytebase.v1.SlowQueryPolicy+ (*SensitiveDataPolicy)(nil), // 18: bytebase.v1.SensitiveDataPolicy+ (*SensitiveData)(nil), // 19: bytebase.v1.SensitiveData+ (*AccessControlPolicy)(nil), // 20: bytebase.v1.AccessControlPolicy+ (*AccessControlRule)(nil), // 21: bytebase.v1.AccessControlRule+ (*SQLReviewPolicy)(nil), // 22: bytebase.v1.SQLReviewPolicy+ (*SQLReviewRule)(nil), // 23: bytebase.v1.SQLReviewRule+ (*fieldmaskpb.FieldMask)(nil), // 24: google.protobuf.FieldMask+ (State)(0), // 25: bytebase.v1.State+ (DeploymentType)(0), // 26: bytebase.v1.DeploymentType+ (*durationpb.Duration)(nil), // 27: google.protobuf.Duration+ (Engine)(0), // 28: bytebase.v1.Engine+ (*emptypb.Empty)(nil), // 29: google.protobuf.Empty}var file_v1_org_policy_service_proto_depIdxs = []int32{- 12, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy+ 13, // 0: bytebase.v1.CreatePolicyRequest.policy:type_name -> bytebase.v1.Policy0, // 1: bytebase.v1.CreatePolicyRequest.type:type_name -> bytebase.v1.PolicyType- 12, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy- 22, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask- 12, // 4: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy- 0, // 5: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType- 13, // 6: bytebase.v1.Policy.deployment_approval_policy:type_name -> bytebase.v1.DeploymentApprovalPolicy- 15, // 7: bytebase.v1.Policy.backup_plan_policy:type_name -> bytebase.v1.BackupPlanPolicy- 16, // 8: bytebase.v1.Policy.sensitive_data_policy:type_name -> bytebase.v1.SensitiveDataPolicy- 18, // 9: bytebase.v1.Policy.access_control_policy:type_name -> bytebase.v1.AccessControlPolicy- 20, // 10: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy- 2, // 11: bytebase.v1.DeploymentApprovalPolicy.default_strategy:type_name -> bytebase.v1.ApprovalStrategy- 14, // 12: bytebase.v1.DeploymentApprovalPolicy.deployment_approval_strategies:type_name -> bytebase.v1.DeploymentApprovalStrategy- 23, // 13: bytebase.v1.DeploymentApprovalStrategy.deployment_type:type_name -> bytebase.v1.DeploymentType- 1, // 14: bytebase.v1.DeploymentApprovalStrategy.approval_group:type_name -> bytebase.v1.ApprovalGroup- 2, // 15: bytebase.v1.DeploymentApprovalStrategy.approval_strategy:type_name -> bytebase.v1.ApprovalStrategy- 3, // 16: bytebase.v1.BackupPlanPolicy.schedule:type_name -> bytebase.v1.BackupPlanSchedule- 24, // 17: bytebase.v1.BackupPlanPolicy.retention_duration:type_name -> google.protobuf.Duration- 17, // 18: bytebase.v1.SensitiveDataPolicy.sensitive_data:type_name -> bytebase.v1.SensitiveData- 4, // 19: bytebase.v1.SensitiveData.mask_type:type_name -> bytebase.v1.SensitiveDataMaskType- 19, // 20: bytebase.v1.AccessControlPolicy.disallow_rules:type_name -> bytebase.v1.AccessControlRule- 21, // 21: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule- 5, // 22: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel- 25, // 23: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine- 9, // 24: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest- 10, // 25: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest- 6, // 26: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest- 7, // 27: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest- 8, // 28: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest- 12, // 29: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy- 11, // 30: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse- 12, // 31: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy- 12, // 32: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy- 26, // 33: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty- 29, // [29:34] is the sub-list for method output_type- 24, // [24:29] is the sub-list for method input_type- 24, // [24:24] is the sub-list for extension type_name- 24, // [24:24] is the sub-list for extension extendee- 0, // [0:24] is the sub-list for field type_name+ 13, // 2: bytebase.v1.UpdatePolicyRequest.policy:type_name -> bytebase.v1.Policy+ 24, // 3: bytebase.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask+ 0, // 4: bytebase.v1.ListPoliciesRequest.policy_type:type_name -> bytebase.v1.PolicyType+ 13, // 5: bytebase.v1.ListPoliciesResponse.policies:type_name -> bytebase.v1.Policy+ 0, // 6: bytebase.v1.Policy.type:type_name -> bytebase.v1.PolicyType+ 14, // 7: bytebase.v1.Policy.deployment_approval_policy:type_name -> bytebase.v1.DeploymentApprovalPolicy+ 16, // 8: bytebase.v1.Policy.backup_plan_policy:type_name -> bytebase.v1.BackupPlanPolicy+ 18, // 9: bytebase.v1.Policy.sensitive_data_policy:type_name -> bytebase.v1.SensitiveDataPolicy+ 20, // 10: bytebase.v1.Policy.access_control_policy:type_name -> bytebase.v1.AccessControlPolicy+ 22, // 11: bytebase.v1.Policy.sql_review_policy:type_name -> bytebase.v1.SQLReviewPolicy+ 17, // 12: bytebase.v1.Policy.slow_query_policy:type_name -> bytebase.v1.SlowQueryPolicy+ 1, // 13: bytebase.v1.Policy.resource_type:type_name -> bytebase.v1.PolicyResourceType+ 25, // 14: bytebase.v1.Policy.state:type_name -> bytebase.v1.State+ 3, // 15: bytebase.v1.DeploymentApprovalPolicy.default_strategy:type_name -> bytebase.v1.ApprovalStrategy+ 15, // 16: bytebase.v1.DeploymentApprovalPolicy.deployment_approval_strategies:type_name -> bytebase.v1.DeploymentApprovalStrategy+ 26, // 17: bytebase.v1.DeploymentApprovalStrategy.deployment_type:type_name -> bytebase.v1.DeploymentType+ 2, // 18: bytebase.v1.DeploymentApprovalStrategy.approval_group:type_name -> bytebase.v1.ApprovalGroup+ 3, // 19: bytebase.v1.DeploymentApprovalStrategy.approval_strategy:type_name -> bytebase.v1.ApprovalStrategy+ 4, // 20: bytebase.v1.BackupPlanPolicy.schedule:type_name -> bytebase.v1.BackupPlanSchedule+ 27, // 21: bytebase.v1.BackupPlanPolicy.retention_duration:type_name -> google.protobuf.Duration+ 19, // 22: bytebase.v1.SensitiveDataPolicy.sensitive_data:type_name -> bytebase.v1.SensitiveData+ 5, // 23: bytebase.v1.SensitiveData.mask_type:type_name -> bytebase.v1.SensitiveDataMaskType+ 21, // 24: bytebase.v1.AccessControlPolicy.disallow_rules:type_name -> bytebase.v1.AccessControlRule+ 23, // 25: bytebase.v1.SQLReviewPolicy.rules:type_name -> bytebase.v1.SQLReviewRule+ 6, // 26: bytebase.v1.SQLReviewRule.level:type_name -> bytebase.v1.SQLReviewRuleLevel+ 28, // 27: bytebase.v1.SQLReviewRule.engine:type_name -> bytebase.v1.Engine+ 10, // 28: bytebase.v1.OrgPolicyService.GetPolicy:input_type -> bytebase.v1.GetPolicyRequest+ 11, // 29: bytebase.v1.OrgPolicyService.ListPolicies:input_type -> bytebase.v1.ListPoliciesRequest+ 7, // 30: bytebase.v1.OrgPolicyService.CreatePolicy:input_type -> bytebase.v1.CreatePolicyRequest+ 8, // 31: bytebase.v1.OrgPolicyService.UpdatePolicy:input_type -> bytebase.v1.UpdatePolicyRequest+ 9, // 32: bytebase.v1.OrgPolicyService.DeletePolicy:input_type -> bytebase.v1.DeletePolicyRequest+ 13, // 33: bytebase.v1.OrgPolicyService.GetPolicy:output_type -> bytebase.v1.Policy+ 12, // 34: bytebase.v1.OrgPolicyService.ListPolicies:output_type -> bytebase.v1.ListPoliciesResponse+ 13, // 35: bytebase.v1.OrgPolicyService.CreatePolicy:output_type -> bytebase.v1.Policy+ 13, // 36: bytebase.v1.OrgPolicyService.UpdatePolicy:output_type -> bytebase.v1.Policy+ 29, // 37: bytebase.v1.OrgPolicyService.DeletePolicy:output_type -> google.protobuf.Empty+ 33, // [33:38] is the sub-list for method output_type+ 28, // [28:33] is the sub-list for method input_type+ 28, // [28:28] is the sub-list for extension type_name+ 28, // [28:28] is the sub-list for extension extendee+ 0, // [0:28] is the sub-list for field type_name}func init() { file_v1_org_policy_service_proto_init() }@@ -1932,7 +2137,7 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SensitiveDataPolicy); i {+ switch v := v.(*SlowQueryPolicy); i {case 0:return &v.statecase 1:@@ -1944,7 +2149,7 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SensitiveData); i {+ switch v := v.(*SensitiveDataPolicy); i {case 0:return &v.statecase 1:@@ -1956,7 +2161,7 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*AccessControlPolicy); i {+ switch v := v.(*SensitiveData); i {case 0:return &v.statecase 1:@@ -1968,7 +2173,7 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*AccessControlRule); i {+ switch v := v.(*AccessControlPolicy); i {case 0:return &v.statecase 1:@@ -1980,7 +2185,7 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SQLReviewPolicy); i {+ switch v := v.(*AccessControlRule); i {case 0:return &v.statecase 1:@@ -1992,6 +2197,18 @@ func file_v1_org_policy_service_proto_init() {}}file_v1_org_policy_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SQLReviewPolicy); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_org_policy_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SQLReviewRule); i {case 0:return &v.state@@ -2004,20 +2221,22 @@ func file_v1_org_policy_service_proto_init() {}}}+ file_v1_org_policy_service_proto_msgTypes[4].OneofWrappers = []interface{}{}file_v1_org_policy_service_proto_msgTypes[6].OneofWrappers = []interface{}{(*Policy_DeploymentApprovalPolicy)(nil),(*Policy_BackupPlanPolicy)(nil),(*Policy_SensitiveDataPolicy)(nil),(*Policy_AccessControlPolicy)(nil),(*Policy_SqlReviewPolicy)(nil),+ (*Policy_SlowQueryPolicy)(nil),}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_org_policy_service_proto_rawDesc,- NumEnums: 6,- NumMessages: 16,+ NumEnums: 7,+ NumMessages: 17,NumExtensions: 0,NumServices: 1,},diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex d86cc0921d..7991d36467 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -155,18 +155,23 @@ message ListPoliciesRequest {// Format: {resource type}/{resource id}/policies/{policy type}string parent = 1 [(google.api.field_behavior) = REQUIRED];+ optional PolicyType policy_type = 2;+// The maximum number of policies to return. The service may return fewer than// this value.// If unspecified, at most 50 policies will be returned.// The maximum value is 1000; values above 1000 will be coerced to 1000.- int32 page_size = 2;+ int32 page_size = 3;// A page token, received from a previous `GetPolicies` call.// Provide this to retrieve the subsequent page.//// When paginating, all other parameters provided to `GetPolicies` must match// the call that provided the page token.- string page_token = 3;+ string page_token = 4;++ // Show deleted policies if specified.+ bool show_deleted = 5;}message ListPoliciesResponse {@@ -200,9 +205,18 @@ message Policy {SensitiveDataPolicy sensitive_data_policy = 8;AccessControlPolicy access_control_policy = 9;SQLReviewPolicy sql_review_policy = 10;+ SlowQueryPolicy slow_query_policy = 11;}- bool enforce = 11;+ bool enforce = 12;++ // The resource type for the policy.+ PolicyResourceType resource_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY];++ // The system-assigned, unique identifier for the resource.+ string resource_uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY];++ State state = 15;}enum PolicyType {@@ -212,6 +226,16 @@ enum PolicyType {SQL_REVIEW = 3;SENSITIVE_DATA = 4;ACCESS_CONTROL = 5;+ SLOW_QUERY = 6;+}++enum PolicyResourceType {+ RESOURCE_TYPE_UNSPECIFIED = 0;+ WORKSPACE = 1;+ ENVIRONMENT = 2;+ PROJECT = 3;+ INSTANCE = 4;+ DATABASE = 5;}message DeploymentApprovalPolicy {@@ -242,6 +266,10 @@ message BackupPlanPolicy {google.protobuf.Duration retention_duration = 2;}+message SlowQueryPolicy {+ bool active = 1;+}+enum BackupPlanSchedule {SCHEDULE_UNSPECIFIED = 0;UNSET = 1;@@ -274,7 +302,7 @@ message AccessControlRule {}message SQLReviewPolicy {- string title = 1;+ string name = 1;repeated SQLReviewRule rules = 2;}