Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(proto): review service (#5174)
p0nyf5231cf97860
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex d3fee42ef9..89cc93b414 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -42,13 +42,9 @@ export interface FileDescriptorProto {sourceCodeInfo?: SourceCodeInfo;/*** The syntax of the proto file.- * The supported values are "proto2", "proto3", and "editions".- *- * If `edition` is present, this value must be "editions".+ * The supported values are "proto2" and "proto3".*/syntax: string;- /** The edition of the proto file, which is an opaque string. */- edition: string;}/** Describes a message type. */@@ -623,10 +619,6 @@ export interface MessageOptions {*/deprecated: boolean;/**- * NOTE: Do not set the option in .proto files. Always use the maps syntax- * instead. The option should only be implicitly set by the proto compiler- * parser.- ** Whether the message is an automatically generated map entry type for the* maps field.*@@ -644,23 +636,12 @@ export interface MessageOptions {* use a native map in the target language to hold the keys and values.* The reflection APIs in such implementations still need to work as* if the field is a repeated message field.- */- mapEntry: boolean;- /**- * Enable the legacy handling of JSON field name conflicts. This lowercases- * and strips underscored from the fields before comparison in proto3 only.- * The new behavior takes `json_name` into account and applies to proto2 as- * well.*- * This should only be used as a temporary measure against broken builds due- * to the change in behavior for JSON field name conflicts.- *- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream- * teams have had time to migrate.- *- * @deprecated+ * NOTE: Do not set the option in .proto files. Always use the maps syntax+ * instead. The option should only be implicitly set by the proto compiler+ * parser.*/- deprecatedLegacyJsonFieldConflicts: boolean;+ mapEntry: boolean;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -724,8 +705,11 @@ export interface FieldOptions {* check its required fields, regardless of whether or not the message has* been parsed.*- * As of May 2022, lazy verifies the contents of the byte stream during- * parsing. An invalid byte stream will cause the overall parsing to fail.+ * As of 2021, lazy does no correctness checks on the byte stream during+ * parsing. This may lead to crashes if and when an invalid byte stream is+ * finally parsed upon access.+ *+ * TODO(b/211906113): Enable validation on lazy fields.*/lazy: boolean;/**@@ -743,13 +727,6 @@ export interface FieldOptions {deprecated: boolean;/** For Google-internal migration only. Do not use. */weak: boolean;- /**- * Indicate that the field value should not be printed out when using debug- * formats, e.g. when the field contains sensitive credentials.- */- debugRedact: boolean;- retention: FieldOptions_OptionRetention;- target: FieldOptions_OptionTargetType;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -836,137 +813,6 @@ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {}}-/**- * If set to RETENTION_SOURCE, the option will be omitted from the binary.- * Note: as of January 2023, support for this is in progress and does not yet- * have an effect (b/264593489).- */-export enum FieldOptions_OptionRetention {- RETENTION_UNKNOWN = 0,- RETENTION_RUNTIME = 1,- RETENTION_SOURCE = 2,- UNRECOGNIZED = -1,-}--export function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention {- switch (object) {- case 0:- case "RETENTION_UNKNOWN":- return FieldOptions_OptionRetention.RETENTION_UNKNOWN;- case 1:- case "RETENTION_RUNTIME":- return FieldOptions_OptionRetention.RETENTION_RUNTIME;- case 2:- case "RETENTION_SOURCE":- return FieldOptions_OptionRetention.RETENTION_SOURCE;- case -1:- case "UNRECOGNIZED":- default:- return FieldOptions_OptionRetention.UNRECOGNIZED;- }-}--export function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string {- switch (object) {- case FieldOptions_OptionRetention.RETENTION_UNKNOWN:- return "RETENTION_UNKNOWN";- case FieldOptions_OptionRetention.RETENTION_RUNTIME:- return "RETENTION_RUNTIME";- case FieldOptions_OptionRetention.RETENTION_SOURCE:- return "RETENTION_SOURCE";- case FieldOptions_OptionRetention.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--/**- * This indicates the types of entities that the field may apply to when used- * as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity. Note: as of January 2023, support for this is- * in progress and does not yet have an effect (b/264593489).- */-export enum FieldOptions_OptionTargetType {- TARGET_TYPE_UNKNOWN = 0,- TARGET_TYPE_FILE = 1,- TARGET_TYPE_EXTENSION_RANGE = 2,- TARGET_TYPE_MESSAGE = 3,- TARGET_TYPE_FIELD = 4,- TARGET_TYPE_ONEOF = 5,- TARGET_TYPE_ENUM = 6,- TARGET_TYPE_ENUM_ENTRY = 7,- TARGET_TYPE_SERVICE = 8,- TARGET_TYPE_METHOD = 9,- UNRECOGNIZED = -1,-}--export function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType {- switch (object) {- case 0:- case "TARGET_TYPE_UNKNOWN":- return FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;- case 1:- case "TARGET_TYPE_FILE":- return FieldOptions_OptionTargetType.TARGET_TYPE_FILE;- case 2:- case "TARGET_TYPE_EXTENSION_RANGE":- return FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE;- case 3:- case "TARGET_TYPE_MESSAGE":- return FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE;- case 4:- case "TARGET_TYPE_FIELD":- return FieldOptions_OptionTargetType.TARGET_TYPE_FIELD;- case 5:- case "TARGET_TYPE_ONEOF":- return FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF;- case 6:- case "TARGET_TYPE_ENUM":- return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM;- case 7:- case "TARGET_TYPE_ENUM_ENTRY":- return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY;- case 8:- case "TARGET_TYPE_SERVICE":- return FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE;- case 9:- case "TARGET_TYPE_METHOD":- return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD;- case -1:- case "UNRECOGNIZED":- default:- return FieldOptions_OptionTargetType.UNRECOGNIZED;- }-}--export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string {- switch (object) {- case FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN:- return "TARGET_TYPE_UNKNOWN";- case FieldOptions_OptionTargetType.TARGET_TYPE_FILE:- return "TARGET_TYPE_FILE";- case FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE:- return "TARGET_TYPE_EXTENSION_RANGE";- case FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE:- return "TARGET_TYPE_MESSAGE";- case FieldOptions_OptionTargetType.TARGET_TYPE_FIELD:- return "TARGET_TYPE_FIELD";- case FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF:- return "TARGET_TYPE_ONEOF";- case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM:- return "TARGET_TYPE_ENUM";- case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY:- return "TARGET_TYPE_ENUM_ENTRY";- case FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE:- return "TARGET_TYPE_SERVICE";- case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD:- return "TARGET_TYPE_METHOD";- case FieldOptions_OptionTargetType.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-export interface OneofOptions {/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];@@ -985,17 +831,6 @@ export interface EnumOptions {* is a formalization for deprecating enums.*/deprecated: boolean;- /**- * Enable the legacy handling of JSON field name conflicts. This lowercases- * and strips underscored from the fields before comparison in proto3 only.- * The new behavior takes `json_name` into account and applies to proto2 as- * well.- * TODO(b/261750190) Remove this legacy behavior once downstream teams have- * had time to migrate.- *- * @deprecated- */- deprecatedLegacyJsonFieldConflicts: boolean;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1287,57 +1122,10 @@ export interface GeneratedCodeInfo_Annotation {begin: number;/*** Identifies the ending offset in bytes in the generated code that- * relates to the identified object. The end offset should be one past+ * relates to the identified offset. The end offset should be one past* the last relevant byte (so the length of the text = end - begin).*/end: number;- semantic: GeneratedCodeInfo_Annotation_Semantic;-}--/**- * Represents the identified object's effect on the element in the original- * .proto file.- */-export enum GeneratedCodeInfo_Annotation_Semantic {- /** NONE - There is no effect or the effect is indescribable. */- NONE = 0,- /** SET - The element is set or otherwise mutated. */- SET = 1,- /** ALIAS - An alias to the element is returned. */- ALIAS = 2,- UNRECOGNIZED = -1,-}--export function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic {- switch (object) {- case 0:- case "NONE":- return GeneratedCodeInfo_Annotation_Semantic.NONE;- case 1:- case "SET":- return GeneratedCodeInfo_Annotation_Semantic.SET;- case 2:- case "ALIAS":- return GeneratedCodeInfo_Annotation_Semantic.ALIAS;- case -1:- case "UNRECOGNIZED":- default:- return GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED;- }-}--export function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string {- switch (object) {- case GeneratedCodeInfo_Annotation_Semantic.NONE:- return "NONE";- case GeneratedCodeInfo_Annotation_Semantic.SET:- return "SET";- case GeneratedCodeInfo_Annotation_Semantic.ALIAS:- return "ALIAS";- case GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }}function createBaseFileDescriptorSet(): FileDescriptorSet {@@ -1405,7 +1193,6 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {options: undefined,sourceCodeInfo: undefined,syntax: "",- edition: "",};}@@ -1451,9 +1238,6 @@ export const FileDescriptorProto = {if (message.syntax !== "") {writer.uint32(98).string(message.syntax);}- if (message.edition !== "") {- writer.uint32(106).string(message.edition);- }return writer;},@@ -1514,9 +1298,6 @@ export const FileDescriptorProto = {case 12:message.syntax = reader.string();break;- case 13:- message.edition = reader.string();- break;default:reader.skipType(tag & 7);break;@@ -1545,7 +1326,6 @@ export const FileDescriptorProto = {options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,syntax: isSet(object.syntax) ? String(object.syntax) : "",- edition: isSet(object.edition) ? String(object.edition) : "",};},@@ -1592,7 +1372,6 @@ export const FileDescriptorProto = {message.sourceCodeInfo !== undefined &&(obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined);message.syntax !== undefined && (obj.syntax = message.syntax);- message.edition !== undefined && (obj.edition = message.edition);return obj;},@@ -1614,7 +1393,6 @@ export const FileDescriptorProto = {? SourceCodeInfo.fromPartial(object.sourceCodeInfo): undefined;message.syntax = object.syntax ?? "";- message.edition = object.edition ?? "";return message;},};@@ -2871,7 +2649,6 @@ function createBaseMessageOptions(): MessageOptions {noStandardDescriptorAccessor: false,deprecated: false,mapEntry: false,- deprecatedLegacyJsonFieldConflicts: false,uninterpretedOption: [],};}@@ -2890,9 +2667,6 @@ export const MessageOptions = {if (message.mapEntry === true) {writer.uint32(56).bool(message.mapEntry);}- if (message.deprecatedLegacyJsonFieldConflicts === true) {- writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -2918,9 +2692,6 @@ export const MessageOptions = {case 7:message.mapEntry = reader.bool();break;- case 11:- message.deprecatedLegacyJsonFieldConflicts = reader.bool();- break;case 999:message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));break;@@ -2940,9 +2711,6 @@ export const MessageOptions = {: false,deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false,- deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)- ? Boolean(object.deprecatedLegacyJsonFieldConflicts)- : false,uninterpretedOption: Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -2956,8 +2724,6 @@ export const MessageOptions = {(obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor);message.deprecated !== undefined && (obj.deprecated = message.deprecated);message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry);- message.deprecatedLegacyJsonFieldConflicts !== undefined &&- (obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);if (message.uninterpretedOption) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);} else {@@ -2972,7 +2738,6 @@ export const MessageOptions = {message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;message.deprecated = object.deprecated ?? false;message.mapEntry = object.mapEntry ?? false;- message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -2987,9 +2752,6 @@ function createBaseFieldOptions(): FieldOptions {unverifiedLazy: false,deprecated: false,weak: false,- debugRedact: false,- retention: 0,- target: 0,uninterpretedOption: [],};}@@ -3017,15 +2779,6 @@ export const FieldOptions = {if (message.weak === true) {writer.uint32(80).bool(message.weak);}- if (message.debugRedact === true) {- writer.uint32(128).bool(message.debugRedact);- }- if (message.retention !== 0) {- writer.uint32(136).int32(message.retention);- }- if (message.target !== 0) {- writer.uint32(144).int32(message.target);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3060,15 +2813,6 @@ export const FieldOptions = {case 10:message.weak = reader.bool();break;- case 16:- message.debugRedact = reader.bool();- break;- case 17:- message.retention = reader.int32() as any;- break;- case 18:- message.target = reader.int32() as any;- break;case 999:message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));break;@@ -3089,9 +2833,6 @@ export const FieldOptions = {unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false,deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,weak: isSet(object.weak) ? Boolean(object.weak) : false,- debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false,- retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,- target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,uninterpretedOption: Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3107,9 +2848,6 @@ export const FieldOptions = {message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy);message.deprecated !== undefined && (obj.deprecated = message.deprecated);message.weak !== undefined && (obj.weak = message.weak);- message.debugRedact !== undefined && (obj.debugRedact = message.debugRedact);- message.retention !== undefined && (obj.retention = fieldOptions_OptionRetentionToJSON(message.retention));- message.target !== undefined && (obj.target = fieldOptions_OptionTargetTypeToJSON(message.target));if (message.uninterpretedOption) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);} else {@@ -3127,9 +2865,6 @@ export const FieldOptions = {message.unverifiedLazy = object.unverifiedLazy ?? false;message.deprecated = object.deprecated ?? false;message.weak = object.weak ?? false;- message.debugRedact = object.debugRedact ?? false;- message.retention = object.retention ?? 0;- message.target = object.target ?? 0;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -3191,7 +2926,7 @@ export const OneofOptions = {};function createBaseEnumOptions(): EnumOptions {- return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };+ return { allowAlias: false, deprecated: false, uninterpretedOption: [] };}export const EnumOptions = {@@ -3202,9 +2937,6 @@ export const EnumOptions = {if (message.deprecated === true) {writer.uint32(24).bool(message.deprecated);}- if (message.deprecatedLegacyJsonFieldConflicts === true) {- writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3224,9 +2956,6 @@ export const EnumOptions = {case 3:message.deprecated = reader.bool();break;- case 6:- message.deprecatedLegacyJsonFieldConflicts = reader.bool();- break;case 999:message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));break;@@ -3242,9 +2971,6 @@ export const EnumOptions = {return {allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false,deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,- deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)- ? Boolean(object.deprecatedLegacyJsonFieldConflicts)- : false,uninterpretedOption: Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3255,8 +2981,6 @@ export const EnumOptions = {const obj: any = {};message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias);message.deprecated !== undefined && (obj.deprecated = message.deprecated);- message.deprecatedLegacyJsonFieldConflicts !== undefined &&- (obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);if (message.uninterpretedOption) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);} else {@@ -3269,7 +2993,6 @@ export const EnumOptions = {const message = createBaseEnumOptions();message.allowAlias = object.allowAlias ?? false;message.deprecated = object.deprecated ?? false;- message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -3881,7 +3604,7 @@ export const GeneratedCodeInfo = {};function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation {- return { path: [], sourceFile: "", begin: 0, end: 0, semantic: 0 };+ return { path: [], sourceFile: "", begin: 0, end: 0 };}export const GeneratedCodeInfo_Annotation = {@@ -3900,9 +3623,6 @@ export const GeneratedCodeInfo_Annotation = {if (message.end !== 0) {writer.uint32(32).int32(message.end);}- if (message.semantic !== 0) {- writer.uint32(40).int32(message.semantic);- }return writer;},@@ -3932,9 +3652,6 @@ export const GeneratedCodeInfo_Annotation = {case 4:message.end = reader.int32();break;- case 5:- message.semantic = reader.int32() as any;- break;default:reader.skipType(tag & 7);break;@@ -3949,7 +3666,6 @@ export const GeneratedCodeInfo_Annotation = {sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "",begin: isSet(object.begin) ? Number(object.begin) : 0,end: isSet(object.end) ? Number(object.end) : 0,- semantic: isSet(object.semantic) ? generatedCodeInfo_Annotation_SemanticFromJSON(object.semantic) : 0,};},@@ -3963,7 +3679,6 @@ export const GeneratedCodeInfo_Annotation = {message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile);message.begin !== undefined && (obj.begin = Math.round(message.begin));message.end !== undefined && (obj.end = Math.round(message.end));- message.semantic !== undefined && (obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic));return obj;},@@ -3973,7 +3688,6 @@ export const GeneratedCodeInfo_Annotation = {message.sourceFile = object.sourceFile ?? "";message.begin = object.begin ?? 0;message.end = object.end ?? 0;- message.semantic = object.semantic ?? 0;return message;},};diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.tsindex 42e99434dc..7ee67d5209 100644--- a/frontend/src/types/proto/v1/project_service.ts+++ b/frontend/src/types/proto/v1/project_service.ts@@ -3,7 +3,6 @@ import type { CallContext, CallOptions } from "nice-grpc-common";import * as _m0 from "protobufjs/minimal";import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";-import { Timestamp } from "../google/protobuf/timestamp";import { State, stateFromJSON, stateToJSON } from "./common";import { ProjectGitOpsInfo } from "./externalvs_service";@@ -288,51 +287,6 @@ export function projectRoleToJSON(object: ProjectRole): string {}}-export enum ReviewStatus {- REVIEW_STATUS_UNSPECIFIED = 0,- OPEN = 1,- DONE = 2,- CANCELED = 3,- UNRECOGNIZED = -1,-}--export function reviewStatusFromJSON(object: any): ReviewStatus {- switch (object) {- case 0:- case "REVIEW_STATUS_UNSPECIFIED":- return ReviewStatus.REVIEW_STATUS_UNSPECIFIED;- case 1:- case "OPEN":- return ReviewStatus.OPEN;- case 2:- case "DONE":- return ReviewStatus.DONE;- case 3:- case "CANCELED":- return ReviewStatus.CANCELED;- case -1:- case "UNRECOGNIZED":- default:- return ReviewStatus.UNRECOGNIZED;- }-}--export function reviewStatusToJSON(object: ReviewStatus): string {- switch (object) {- case ReviewStatus.REVIEW_STATUS_UNSPECIFIED:- return "REVIEW_STATUS_UNSPECIFIED";- case ReviewStatus.OPEN:- return "OPEN";- case ReviewStatus.DONE:- return "DONE";- case ReviewStatus.CANCELED:- return "CANCELED";- case ReviewStatus.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-export enum OperatorType {/** OPERATOR_TYPE_UNSPECIFIED - The operator is not specified. */OPERATOR_TYPE_UNSPECIFIED = 0,@@ -545,80 +499,6 @@ export interface Binding {members: string[];}-export interface GetReviewRequest {- /**- * The name of the review to retrieve.- * Format: projects/{project}/reviews/{review}- */- name: string;-}--export interface ListReviewsRequest {- /**- * The parent, which owns this collection of reviews.- * Format: projects/{project}- * Use "projects/-" to list all reviews from all projects.- */- parent: string;- /**- * The maximum number of reviews to return. The service may return fewer than- * this value.- * If unspecified, at most 50 reviews will be returned.- * The maximum value is 1000; values above 1000 will be coerced to 1000.- */- pageSize: number;- /**- * A page token, received from a previous `ListReviews` call.- * Provide this to retrieve the subsequent page.- *- * When paginating, all other parameters provided to `ListReviews` must match- * the call that provided the page token.- */- pageToken: string;-}--export interface ListReviewsResponse {- /** The reviews from the specified request. */- reviews: Review[];- /**- * A token, which can be sent as `page_token` to retrieve the next page.- * If this field is omitted, there are no subsequent pages.- */- nextPageToken: string;-}--export interface UpdateReviewRequest {- /**- * The review to update.- *- * The review's `name` field is used to identify the review to update.- * Format: projects/{project}/reviews/{review}- */- review?: Review;- /** The list of fields to update. */- updateMask?: string[];-}--export interface BatchUpdateReviewsRequest {- /**- * The parent resource shared by all reviews being updated.- * Format: projects/{project}- * If the operation spans parents, a dash (-) may be accepted as a wildcard.- * We only support updating the status of databases for now.- */- parent: string;- /**- * The request message specifying the resources to update.- * A maximum of 1000 databases can be modified in a batch.- */- requests: UpdateReviewRequest[];-}--export interface BatchUpdateReviewsResponse {- /** Reviews updated. */- reviews: Review[];-}-export interface AddWebhookRequest {/*** The name of the project to add the webhook to.@@ -759,32 +639,6 @@ export function webhook_TypeToJSON(object: Webhook_Type): string {}}-export interface Review {- /**- * The name of the review.- * `review` is a system generated ID.- * Format: projects/{project}/reviews/{review}- */- name: string;- /** The system-assigned, unique identifier for a resource. */- uid: string;- title: string;- description: string;- status: ReviewStatus;- /** Format: user:[email protected] */- assignee: string;- assigneeAttention: boolean;- /**- * The subscribers.- * Format: user:[email protected]- */- subscribers: string[];- /** Format: user:[email protected] */- creator: string;- createTime?: Date;- updateTime?: Date;-}-export interface DeploymentConfig {/*** The name of the resource.@@ -2001,355 +1855,6 @@ export const Binding = {},};-function createBaseGetReviewRequest(): GetReviewRequest {- return { name: "" };-}--export const GetReviewRequest = {- encode(message: GetReviewRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): GetReviewRequest {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetReviewRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.name = reader.string();- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): GetReviewRequest {- return { name: isSet(object.name) ? String(object.name) : "" };- },-- toJSON(message: GetReviewRequest): unknown {- const obj: any = {};- message.name !== undefined && (obj.name = message.name);- return obj;- },-- fromPartial(object: DeepPartial<GetReviewRequest>): GetReviewRequest {- const message = createBaseGetReviewRequest();- message.name = object.name ?? "";- return message;- },-};--function createBaseListReviewsRequest(): ListReviewsRequest {- return { parent: "", pageSize: 0, pageToken: "" };-}--export const ListReviewsRequest = {- encode(message: ListReviewsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);- }- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListReviewsRequest {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListReviewsRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.parent = reader.string();- break;- case 2:- message.pageSize = reader.int32();- break;- case 3:- message.pageToken = reader.string();- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): ListReviewsRequest {- return {- parent: isSet(object.parent) ? String(object.parent) : "",- pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,- pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",- };- },-- toJSON(message: ListReviewsRequest): unknown {- const obj: any = {};- message.parent !== undefined && (obj.parent = message.parent);- message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));- message.pageToken !== undefined && (obj.pageToken = message.pageToken);- return obj;- },-- fromPartial(object: DeepPartial<ListReviewsRequest>): ListReviewsRequest {- const message = createBaseListReviewsRequest();- message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";- return message;- },-};--function createBaseListReviewsResponse(): ListReviewsResponse {- return { reviews: [], nextPageToken: "" };-}--export const ListReviewsResponse = {- encode(message: ListReviewsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.reviews) {- Review.encode(v!, writer.uint32(10).fork()).ldelim();- }- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListReviewsResponse {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListReviewsResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.reviews.push(Review.decode(reader, reader.uint32()));- break;- case 2:- message.nextPageToken = reader.string();- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): ListReviewsResponse {- return {- reviews: Array.isArray(object?.reviews) ? object.reviews.map((e: any) => Review.fromJSON(e)) : [],- nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",- };- },-- toJSON(message: ListReviewsResponse): unknown {- const obj: any = {};- if (message.reviews) {- obj.reviews = message.reviews.map((e) => e ? Review.toJSON(e) : undefined);- } else {- obj.reviews = [];- }- message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken);- return obj;- },-- fromPartial(object: DeepPartial<ListReviewsResponse>): ListReviewsResponse {- const message = createBaseListReviewsResponse();- message.reviews = object.reviews?.map((e) => Review.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";- return message;- },-};--function createBaseUpdateReviewRequest(): UpdateReviewRequest {- return { review: undefined, updateMask: undefined };-}--export const UpdateReviewRequest = {- encode(message: UpdateReviewRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.review !== undefined) {- Review.encode(message.review, writer.uint32(10).fork()).ldelim();- }- if (message.updateMask !== undefined) {- FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateReviewRequest {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateReviewRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.review = Review.decode(reader, reader.uint32());- break;- case 2:- message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): UpdateReviewRequest {- return {- review: isSet(object.review) ? Review.fromJSON(object.review) : undefined,- updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,- };- },-- toJSON(message: UpdateReviewRequest): unknown {- const obj: any = {};- message.review !== undefined && (obj.review = message.review ? Review.toJSON(message.review) : undefined);- message.updateMask !== undefined && (obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask)));- return obj;- },-- fromPartial(object: DeepPartial<UpdateReviewRequest>): UpdateReviewRequest {- const message = createBaseUpdateReviewRequest();- message.review = (object.review !== undefined && object.review !== null)- ? Review.fromPartial(object.review)- : undefined;- message.updateMask = object.updateMask ?? undefined;- return message;- },-};--function createBaseBatchUpdateReviewsRequest(): BatchUpdateReviewsRequest {- return { parent: "", requests: [] };-}--export const BatchUpdateReviewsRequest = {- encode(message: BatchUpdateReviewsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- for (const v of message.requests) {- UpdateReviewRequest.encode(v!, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): BatchUpdateReviewsRequest {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchUpdateReviewsRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.parent = reader.string();- break;- case 2:- message.requests.push(UpdateReviewRequest.decode(reader, reader.uint32()));- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): BatchUpdateReviewsRequest {- return {- parent: isSet(object.parent) ? String(object.parent) : "",- requests: Array.isArray(object?.requests) ? object.requests.map((e: any) => UpdateReviewRequest.fromJSON(e)) : [],- };- },-- toJSON(message: BatchUpdateReviewsRequest): unknown {- const obj: any = {};- message.parent !== undefined && (obj.parent = message.parent);- if (message.requests) {- obj.requests = message.requests.map((e) => e ? UpdateReviewRequest.toJSON(e) : undefined);- } else {- obj.requests = [];- }- return obj;- },-- fromPartial(object: DeepPartial<BatchUpdateReviewsRequest>): BatchUpdateReviewsRequest {- const message = createBaseBatchUpdateReviewsRequest();- message.parent = object.parent ?? "";- message.requests = object.requests?.map((e) => UpdateReviewRequest.fromPartial(e)) || [];- return message;- },-};--function createBaseBatchUpdateReviewsResponse(): BatchUpdateReviewsResponse {- return { reviews: [] };-}--export const BatchUpdateReviewsResponse = {- encode(message: BatchUpdateReviewsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.reviews) {- Review.encode(v!, writer.uint32(10).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): BatchUpdateReviewsResponse {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchUpdateReviewsResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.reviews.push(Review.decode(reader, reader.uint32()));- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): BatchUpdateReviewsResponse {- return { reviews: Array.isArray(object?.reviews) ? object.reviews.map((e: any) => Review.fromJSON(e)) : [] };- },-- toJSON(message: BatchUpdateReviewsResponse): unknown {- const obj: any = {};- if (message.reviews) {- obj.reviews = message.reviews.map((e) => e ? Review.toJSON(e) : undefined);- } else {- obj.reviews = [];- }- return obj;- },-- fromPartial(object: DeepPartial<BatchUpdateReviewsResponse>): BatchUpdateReviewsResponse {- const message = createBaseBatchUpdateReviewsResponse();- message.reviews = object.reviews?.map((e) => Review.fromPartial(e)) || [];- return message;- },-};-function createBaseAddWebhookRequest(): AddWebhookRequest {return { project: "", webhook: undefined };}@@ -2737,161 +2242,6 @@ export const Webhook = {},};-function createBaseReview(): Review {- return {- name: "",- uid: "",- title: "",- description: "",- status: 0,- assignee: "",- assigneeAttention: false,- subscribers: [],- creator: "",- createTime: undefined,- updateTime: undefined,- };-}--export const Review = {- encode(message: Review, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.title !== "") {- writer.uint32(26).string(message.title);- }- if (message.description !== "") {- writer.uint32(34).string(message.description);- }- if (message.status !== 0) {- writer.uint32(40).int32(message.status);- }- if (message.assignee !== "") {- writer.uint32(50).string(message.assignee);- }- if (message.assigneeAttention === true) {- writer.uint32(56).bool(message.assigneeAttention);- }- for (const v of message.subscribers) {- writer.uint32(66).string(v!);- }- if (message.creator !== "") {- writer.uint32(74).string(message.creator);- }- if (message.createTime !== undefined) {- Timestamp.encode(toTimestamp(message.createTime), writer.uint32(82).fork()).ldelim();- }- if (message.updateTime !== undefined) {- Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(90).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Review {- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseReview();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- message.name = reader.string();- break;- case 2:- message.uid = reader.string();- break;- case 3:- message.title = reader.string();- break;- case 4:- message.description = reader.string();- break;- case 5:- message.status = reader.int32() as any;- break;- case 6:- message.assignee = reader.string();- break;- case 7:- message.assigneeAttention = reader.bool();- break;- case 8:- message.subscribers.push(reader.string());- break;- case 9:- message.creator = reader.string();- break;- case 10:- message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- break;- case 11:- message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- break;- default:- reader.skipType(tag & 7);- break;- }- }- return message;- },-- fromJSON(object: any): Review {- return {- name: isSet(object.name) ? String(object.name) : "",- uid: isSet(object.uid) ? String(object.uid) : "",- title: isSet(object.title) ? String(object.title) : "",- description: isSet(object.description) ? String(object.description) : "",- status: isSet(object.status) ? reviewStatusFromJSON(object.status) : 0,- assignee: isSet(object.assignee) ? String(object.assignee) : "",- assigneeAttention: isSet(object.assigneeAttention) ? Boolean(object.assigneeAttention) : false,- subscribers: Array.isArray(object?.subscribers) ? object.subscribers.map((e: any) => String(e)) : [],- creator: isSet(object.creator) ? String(object.creator) : "",- createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,- };- },-- toJSON(message: Review): unknown {- const obj: any = {};- message.name !== undefined && (obj.name = message.name);- message.uid !== undefined && (obj.uid = message.uid);- message.title !== undefined && (obj.title = message.title);- message.description !== undefined && (obj.description = message.description);- message.status !== undefined && (obj.status = reviewStatusToJSON(message.status));- message.assignee !== undefined && (obj.assignee = message.assignee);- message.assigneeAttention !== undefined && (obj.assigneeAttention = message.assigneeAttention);- if (message.subscribers) {- obj.subscribers = message.subscribers.map((e) => e);- } else {- obj.subscribers = [];- }- message.creator !== undefined && (obj.creator = message.creator);- message.createTime !== undefined && (obj.createTime = message.createTime.toISOString());- message.updateTime !== undefined && (obj.updateTime = message.updateTime.toISOString());- return obj;- },-- fromPartial(object: DeepPartial<Review>): Review {- const message = createBaseReview();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.title = object.title ?? "";- message.description = object.description ?? "";- message.status = object.status ?? 0;- message.assignee = object.assignee ?? "";- message.assigneeAttention = object.assigneeAttention ?? false;- message.subscribers = object.subscribers?.map((e) => e) || [];- message.creator = object.creator ?? "";- message.createTime = object.createTime ?? undefined;- message.updateTime = object.updateTime ?? undefined;- return message;- },-};-function createBaseDeploymentConfig(): DeploymentConfig {return { name: "", title: "", schedule: undefined };}@@ -3360,38 +2710,6 @@ export const ProjectServiceDefinition = {responseStream: false,options: {},},- getReview: {- name: "GetReview",- requestType: GetReviewRequest,- requestStream: false,- responseType: Review,- responseStream: false,- options: {},- },- listReviews: {- name: "ListReviews",- requestType: ListReviewsRequest,- requestStream: false,- responseType: ListReviewsResponse,- responseStream: false,- options: {},- },- updateReview: {- name: "UpdateReview",- requestType: UpdateReviewRequest,- requestStream: false,- responseType: Review,- responseStream: false,- options: {},- },- batchUpdateReviews: {- name: "BatchUpdateReviews",- requestType: BatchUpdateReviewsRequest,- requestStream: false,- responseType: BatchUpdateReviewsResponse,- responseStream: false,- options: {},- },getDeploymentConfig: {name: "GetDeploymentConfig",requestType: GetDeploymentConfigRequest,@@ -3474,16 +2792,6 @@ export interface ProjectServiceImplementation<CallContextExt = {}> {): Promise<DeepPartial<Project>>;getIamPolicy(request: GetIamPolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<IamPolicy>>;setIamPolicy(request: SetIamPolicyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<IamPolicy>>;- getReview(request: GetReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;- listReviews(- request: ListReviewsRequest,- context: CallContext & CallContextExt,- ): Promise<DeepPartial<ListReviewsResponse>>;- updateReview(request: UpdateReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;- batchUpdateReviews(- request: BatchUpdateReviewsRequest,- context: CallContext & CallContextExt,- ): Promise<DeepPartial<BatchUpdateReviewsResponse>>;getDeploymentConfig(request: GetDeploymentConfigRequest,context: CallContext & CallContextExt,@@ -3524,16 +2832,6 @@ export interface ProjectServiceClient<CallOptionsExt = {}> {): Promise<Project>;getIamPolicy(request: DeepPartial<GetIamPolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<IamPolicy>;setIamPolicy(request: DeepPartial<SetIamPolicyRequest>, options?: CallOptions & CallOptionsExt): Promise<IamPolicy>;- getReview(request: DeepPartial<GetReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;- listReviews(- request: DeepPartial<ListReviewsRequest>,- options?: CallOptions & CallOptionsExt,- ): Promise<ListReviewsResponse>;- updateReview(request: DeepPartial<UpdateReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;- batchUpdateReviews(- request: DeepPartial<BatchUpdateReviewsRequest>,- options?: CallOptions & CallOptionsExt,- ): Promise<BatchUpdateReviewsResponse>;getDeploymentConfig(request: DeepPartial<GetDeploymentConfigRequest>,options?: CallOptions & CallOptionsExt,@@ -3566,28 +2864,6 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;-function toTimestamp(date: Date): Timestamp {- const seconds = date.getTime() / 1_000;- const nanos = (date.getTime() % 1_000) * 1_000_000;- return { seconds, nanos };-}--function fromTimestamp(t: Timestamp): Date {- let millis = t.seconds * 1_000;- millis += t.nanos / 1_000_000;- return new Date(millis);-}--function fromJsonTimestamp(o: any): Date {- if (o instanceof Date) {- return o;- } else if (typeof o === "string") {- return new Date(o);- } else {- return fromTimestamp(Timestamp.fromJSON(o));- }-}-function isSet(value: any): boolean {return value !== null && value !== undefined;}diff --git a/frontend/src/types/proto/v1/review_service.ts b/frontend/src/types/proto/v1/review_service.tsnew file mode 100644index 0000000000..58813377f6--- /dev/null+++ b/frontend/src/types/proto/v1/review_service.ts@@ -0,0 +1,1361 @@+/* eslint-disable */+import type { CallContext, CallOptions } from "nice-grpc-common";+import * as _m0 from "protobufjs/minimal";+import { FieldMask } from "../google/protobuf/field_mask";+import { Timestamp } from "../google/protobuf/timestamp";++export const protobufPackage = "bytebase.v1";++export enum ReviewStatus {+ REVIEW_STATUS_UNSPECIFIED = 0,+ OPEN = 1,+ DONE = 2,+ CANCELED = 3,+ UNRECOGNIZED = -1,+}++export function reviewStatusFromJSON(object: any): ReviewStatus {+ switch (object) {+ case 0:+ case "REVIEW_STATUS_UNSPECIFIED":+ return ReviewStatus.REVIEW_STATUS_UNSPECIFIED;+ case 1:+ case "OPEN":+ return ReviewStatus.OPEN;+ case 2:+ case "DONE":+ return ReviewStatus.DONE;+ case 3:+ case "CANCELED":+ return ReviewStatus.CANCELED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ReviewStatus.UNRECOGNIZED;+ }+}++export function reviewStatusToJSON(object: ReviewStatus): string {+ switch (object) {+ case ReviewStatus.REVIEW_STATUS_UNSPECIFIED:+ return "REVIEW_STATUS_UNSPECIFIED";+ case ReviewStatus.OPEN:+ return "OPEN";+ case ReviewStatus.DONE:+ return "DONE";+ case ReviewStatus.CANCELED:+ return "CANCELED";+ case ReviewStatus.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface GetReviewRequest {+ /**+ * The name of the review to retrieve.+ * Format: projects/{project}/reviews/{review}+ */+ name: string;+}++export interface ListReviewsRequest {+ /**+ * The parent, which owns this collection of reviews.+ * Format: projects/{project}+ * Use "projects/-" to list all reviews from all projects.+ */+ parent: string;+ /**+ * The maximum number of reviews to return. The service may return fewer than+ * this value.+ * If unspecified, at most 50 reviews will be returned.+ * The maximum value is 1000; values above 1000 will be coerced to 1000.+ */+ pageSize: number;+ /**+ * A page token, received from a previous `ListReviews` call.+ * Provide this to retrieve the subsequent page.+ *+ * When paginating, all other parameters provided to `ListReviews` must match+ * the call that provided the page token.+ */+ pageToken: string;+}++export interface ListReviewsResponse {+ /** The reviews from the specified request. */+ reviews: Review[];+ /**+ * A token, which can be sent as `page_token` to retrieve the next page.+ * If this field is omitted, there are no subsequent pages.+ */+ nextPageToken: string;+}++export interface UpdateReviewRequest {+ /**+ * The review to update.+ *+ * The review's `name` field is used to identify the review to update.+ * Format: projects/{project}/reviews/{review}+ */+ review?: Review;+ /** The list of fields to update. */+ updateMask?: string[];+}++export interface BatchUpdateReviewsRequest {+ /**+ * The parent resource shared by all reviews being updated.+ * Format: projects/{project}+ * If the operation spans parents, a dash (-) may be accepted as a wildcard.+ * We only support updating the status of databases for now.+ */+ parent: string;+ /**+ * The request message specifying the resources to update.+ * A maximum of 1000 databases can be modified in a batch.+ */+ requests: UpdateReviewRequest[];+}++export interface BatchUpdateReviewsResponse {+ /** Reviews updated. */+ reviews: Review[];+}++export interface ApproveReviewRequest {+ /**+ * The name of the review to add an approver.+ * Format: projects/{project}/reviews/{review}+ */+ name: string;+}++export interface Review {+ /**+ * The name of the review.+ * `review` is a system generated ID.+ * Format: projects/{project}/reviews/{review}+ */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ title: string;+ description: string;+ status: ReviewStatus;+ /** Format: user:[email protected] */+ assignee: string;+ assigneeAttention: boolean;+ approvalTemplates: ApprovalTemplate[];+ approvers: Review_Approver[];+ /**+ * The subscribers.+ * Format: user:[email protected]+ */+ subscribers: string[];+ /** Format: user:[email protected] */+ creator: string;+ createTime?: Date;+ updateTime?: Date;+}++export interface Review_Approver {+ /** The new status. */+ status: Review_Approver_Status;+ /** Format: user:[email protected] */+ principal: string;+}++export enum Review_Approver_Status {+ STATUS_UNSPECIFIED = 0,+ PENDING = 1,+ APPROVED = 2,+ UNRECOGNIZED = -1,+}++export function review_Approver_StatusFromJSON(object: any): Review_Approver_Status {+ switch (object) {+ case 0:+ case "STATUS_UNSPECIFIED":+ return Review_Approver_Status.STATUS_UNSPECIFIED;+ case 1:+ case "PENDING":+ return Review_Approver_Status.PENDING;+ case 2:+ case "APPROVED":+ return Review_Approver_Status.APPROVED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return Review_Approver_Status.UNRECOGNIZED;+ }+}++export function review_Approver_StatusToJSON(object: Review_Approver_Status): string {+ switch (object) {+ case Review_Approver_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case Review_Approver_Status.PENDING:+ return "PENDING";+ case Review_Approver_Status.APPROVED:+ return "APPROVED";+ case Review_Approver_Status.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface ApprovalTemplate {+ flow?: ApprovalFlow;+ title: string;+ description: string;+}++export interface ApprovalFlow {+ steps: ApprovalStep[];+}++export interface ApprovalStep {+ type: ApprovalStep_Type;+ nodes: ApprovalNode[];+}++/**+ * Type of the ApprovalStep+ * ALL means every node must be approved to proceed.+ * ANY means approving any node will proceed.+ */+export enum ApprovalStep_Type {+ TYPE_UNSPECIFIED = 0,+ ALL = 1,+ ANY = 2,+ UNRECOGNIZED = -1,+}++export function approvalStep_TypeFromJSON(object: any): ApprovalStep_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return ApprovalStep_Type.TYPE_UNSPECIFIED;+ case 1:+ case "ALL":+ return ApprovalStep_Type.ALL;+ case 2:+ case "ANY":+ return ApprovalStep_Type.ANY;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ApprovalStep_Type.UNRECOGNIZED;+ }+}++export function approvalStep_TypeToJSON(object: ApprovalStep_Type): string {+ switch (object) {+ case ApprovalStep_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case ApprovalStep_Type.ALL:+ return "ALL";+ case ApprovalStep_Type.ANY:+ return "ANY";+ case ApprovalStep_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface ApprovalNode {+ type: ApprovalNode_Type;+ groupValue?: ApprovalNode_GroupValue | undefined;+}++/**+ * Type of the ApprovalNode.+ * type determines who should approve this node.+ * ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+ * See GroupValue below for the predefined user groups.+ */+export enum ApprovalNode_Type {+ TYPE_UNSPECIFIED = 0,+ ANY_IN_GROUP = 1,+ UNRECOGNIZED = -1,+}++export function approvalNode_TypeFromJSON(object: any): ApprovalNode_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return ApprovalNode_Type.TYPE_UNSPECIFIED;+ case 1:+ case "ANY_IN_GROUP":+ return ApprovalNode_Type.ANY_IN_GROUP;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ApprovalNode_Type.UNRECOGNIZED;+ }+}++export function approvalNode_TypeToJSON(object: ApprovalNode_Type): string {+ switch (object) {+ case ApprovalNode_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case ApprovalNode_Type.ANY_IN_GROUP:+ return "ANY_IN_GROUP";+ case ApprovalNode_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++/**+ * GroupValue is used if ApprovalNode Type is ANY_IN_GROUP+ * The predefined user groups are:+ * - WORKSPACE_OWNER+ * - WORKSPACE_DBA+ * - PROJECT_OWNER+ * - PROJECT_MEMBER+ */+export enum ApprovalNode_GroupValue {+ GROUP_VALUE_UNSPECIFILED = 0,+ WORKSPACE_OWNER = 1,+ WORKSPACE_DBA = 2,+ PROJECT_OWNER = 3,+ PROJECT_MEMBER = 4,+ UNRECOGNIZED = -1,+}++export function approvalNode_GroupValueFromJSON(object: any): ApprovalNode_GroupValue {+ switch (object) {+ case 0:+ case "GROUP_VALUE_UNSPECIFILED":+ return ApprovalNode_GroupValue.GROUP_VALUE_UNSPECIFILED;+ case 1:+ case "WORKSPACE_OWNER":+ return ApprovalNode_GroupValue.WORKSPACE_OWNER;+ case 2:+ case "WORKSPACE_DBA":+ return ApprovalNode_GroupValue.WORKSPACE_DBA;+ case 3:+ case "PROJECT_OWNER":+ return ApprovalNode_GroupValue.PROJECT_OWNER;+ case 4:+ case "PROJECT_MEMBER":+ return ApprovalNode_GroupValue.PROJECT_MEMBER;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ApprovalNode_GroupValue.UNRECOGNIZED;+ }+}++export function approvalNode_GroupValueToJSON(object: ApprovalNode_GroupValue): string {+ switch (object) {+ case ApprovalNode_GroupValue.GROUP_VALUE_UNSPECIFILED:+ return "GROUP_VALUE_UNSPECIFILED";+ case ApprovalNode_GroupValue.WORKSPACE_OWNER:+ return "WORKSPACE_OWNER";+ case ApprovalNode_GroupValue.WORKSPACE_DBA:+ return "WORKSPACE_DBA";+ case ApprovalNode_GroupValue.PROJECT_OWNER:+ return "PROJECT_OWNER";+ case ApprovalNode_GroupValue.PROJECT_MEMBER:+ return "PROJECT_MEMBER";+ case ApprovalNode_GroupValue.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++function createBaseGetReviewRequest(): GetReviewRequest {+ return { name: "" };+}++export const GetReviewRequest = {+ encode(message: GetReviewRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): GetReviewRequest {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseGetReviewRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.name = reader.string();+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): GetReviewRequest {+ return { name: isSet(object.name) ? String(object.name) : "" };+ },++ toJSON(message: GetReviewRequest): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ return obj;+ },++ fromPartial(object: DeepPartial<GetReviewRequest>): GetReviewRequest {+ const message = createBaseGetReviewRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseListReviewsRequest(): ListReviewsRequest {+ return { parent: "", pageSize: 0, pageToken: "" };+}++export const ListReviewsRequest = {+ encode(message: ListReviewsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ if (message.pageSize !== 0) {+ writer.uint32(16).int32(message.pageSize);+ }+ if (message.pageToken !== "") {+ writer.uint32(26).string(message.pageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListReviewsRequest {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListReviewsRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.parent = reader.string();+ break;+ case 2:+ message.pageSize = reader.int32();+ break;+ case 3:+ message.pageToken = reader.string();+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ListReviewsRequest {+ return {+ parent: isSet(object.parent) ? String(object.parent) : "",+ pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",+ };+ },++ toJSON(message: ListReviewsRequest): unknown {+ const obj: any = {};+ message.parent !== undefined && (obj.parent = message.parent);+ message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));+ message.pageToken !== undefined && (obj.pageToken = message.pageToken);+ return obj;+ },++ fromPartial(object: DeepPartial<ListReviewsRequest>): ListReviewsRequest {+ const message = createBaseListReviewsRequest();+ message.parent = object.parent ?? "";+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";+ return message;+ },+};++function createBaseListReviewsResponse(): ListReviewsResponse {+ return { reviews: [], nextPageToken: "" };+}++export const ListReviewsResponse = {+ encode(message: ListReviewsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.reviews) {+ Review.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListReviewsResponse {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListReviewsResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.reviews.push(Review.decode(reader, reader.uint32()));+ break;+ case 2:+ message.nextPageToken = reader.string();+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ListReviewsResponse {+ return {+ reviews: Array.isArray(object?.reviews) ? object.reviews.map((e: any) => Review.fromJSON(e)) : [],+ nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",+ };+ },++ toJSON(message: ListReviewsResponse): unknown {+ const obj: any = {};+ if (message.reviews) {+ obj.reviews = message.reviews.map((e) => e ? Review.toJSON(e) : undefined);+ } else {+ obj.reviews = [];+ }+ message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken);+ return obj;+ },++ fromPartial(object: DeepPartial<ListReviewsResponse>): ListReviewsResponse {+ const message = createBaseListReviewsResponse();+ message.reviews = object.reviews?.map((e) => Review.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";+ return message;+ },+};++function createBaseUpdateReviewRequest(): UpdateReviewRequest {+ return { review: undefined, updateMask: undefined };+}++export const UpdateReviewRequest = {+ encode(message: UpdateReviewRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.review !== undefined) {+ Review.encode(message.review, writer.uint32(10).fork()).ldelim();+ }+ if (message.updateMask !== undefined) {+ FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateReviewRequest {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseUpdateReviewRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.review = Review.decode(reader, reader.uint32());+ break;+ case 2:+ message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): UpdateReviewRequest {+ return {+ review: isSet(object.review) ? Review.fromJSON(object.review) : undefined,+ updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,+ };+ },++ toJSON(message: UpdateReviewRequest): unknown {+ const obj: any = {};+ message.review !== undefined && (obj.review = message.review ? Review.toJSON(message.review) : undefined);+ message.updateMask !== undefined && (obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask)));+ return obj;+ },++ fromPartial(object: DeepPartial<UpdateReviewRequest>): UpdateReviewRequest {+ const message = createBaseUpdateReviewRequest();+ message.review = (object.review !== undefined && object.review !== null)+ ? Review.fromPartial(object.review)+ : undefined;+ message.updateMask = object.updateMask ?? undefined;+ return message;+ },+};++function createBaseBatchUpdateReviewsRequest(): BatchUpdateReviewsRequest {+ return { parent: "", requests: [] };+}++export const BatchUpdateReviewsRequest = {+ encode(message: BatchUpdateReviewsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ for (const v of message.requests) {+ UpdateReviewRequest.encode(v!, writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): BatchUpdateReviewsRequest {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseBatchUpdateReviewsRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.parent = reader.string();+ break;+ case 2:+ message.requests.push(UpdateReviewRequest.decode(reader, reader.uint32()));+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): BatchUpdateReviewsRequest {+ return {+ parent: isSet(object.parent) ? String(object.parent) : "",+ requests: Array.isArray(object?.requests) ? object.requests.map((e: any) => UpdateReviewRequest.fromJSON(e)) : [],+ };+ },++ toJSON(message: BatchUpdateReviewsRequest): unknown {+ const obj: any = {};+ message.parent !== undefined && (obj.parent = message.parent);+ if (message.requests) {+ obj.requests = message.requests.map((e) => e ? UpdateReviewRequest.toJSON(e) : undefined);+ } else {+ obj.requests = [];+ }+ return obj;+ },++ fromPartial(object: DeepPartial<BatchUpdateReviewsRequest>): BatchUpdateReviewsRequest {+ const message = createBaseBatchUpdateReviewsRequest();+ message.parent = object.parent ?? "";+ message.requests = object.requests?.map((e) => UpdateReviewRequest.fromPartial(e)) || [];+ return message;+ },+};++function createBaseBatchUpdateReviewsResponse(): BatchUpdateReviewsResponse {+ return { reviews: [] };+}++export const BatchUpdateReviewsResponse = {+ encode(message: BatchUpdateReviewsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.reviews) {+ Review.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): BatchUpdateReviewsResponse {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseBatchUpdateReviewsResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.reviews.push(Review.decode(reader, reader.uint32()));+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): BatchUpdateReviewsResponse {+ return { reviews: Array.isArray(object?.reviews) ? object.reviews.map((e: any) => Review.fromJSON(e)) : [] };+ },++ toJSON(message: BatchUpdateReviewsResponse): unknown {+ const obj: any = {};+ if (message.reviews) {+ obj.reviews = message.reviews.map((e) => e ? Review.toJSON(e) : undefined);+ } else {+ obj.reviews = [];+ }+ return obj;+ },++ fromPartial(object: DeepPartial<BatchUpdateReviewsResponse>): BatchUpdateReviewsResponse {+ const message = createBaseBatchUpdateReviewsResponse();+ message.reviews = object.reviews?.map((e) => Review.fromPartial(e)) || [];+ return message;+ },+};++function createBaseApproveReviewRequest(): ApproveReviewRequest {+ return { name: "" };+}++export const ApproveReviewRequest = {+ encode(message: ApproveReviewRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ApproveReviewRequest {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseApproveReviewRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.name = reader.string();+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ApproveReviewRequest {+ return { name: isSet(object.name) ? String(object.name) : "" };+ },++ toJSON(message: ApproveReviewRequest): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ return obj;+ },++ fromPartial(object: DeepPartial<ApproveReviewRequest>): ApproveReviewRequest {+ const message = createBaseApproveReviewRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseReview(): Review {+ return {+ name: "",+ uid: "",+ title: "",+ description: "",+ status: 0,+ assignee: "",+ assigneeAttention: false,+ approvalTemplates: [],+ approvers: [],+ subscribers: [],+ creator: "",+ createTime: undefined,+ updateTime: undefined,+ };+}++export const Review = {+ encode(message: Review, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.title !== "") {+ writer.uint32(26).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(34).string(message.description);+ }+ if (message.status !== 0) {+ writer.uint32(40).int32(message.status);+ }+ if (message.assignee !== "") {+ writer.uint32(50).string(message.assignee);+ }+ if (message.assigneeAttention === true) {+ writer.uint32(56).bool(message.assigneeAttention);+ }+ for (const v of message.approvalTemplates) {+ ApprovalTemplate.encode(v!, writer.uint32(66).fork()).ldelim();+ }+ for (const v of message.approvers) {+ Review_Approver.encode(v!, writer.uint32(74).fork()).ldelim();+ }+ for (const v of message.subscribers) {+ writer.uint32(82).string(v!);+ }+ if (message.creator !== "") {+ writer.uint32(90).string(message.creator);+ }+ if (message.createTime !== undefined) {+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(98).fork()).ldelim();+ }+ if (message.updateTime !== undefined) {+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(106).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Review {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseReview();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.name = reader.string();+ break;+ case 2:+ message.uid = reader.string();+ break;+ case 3:+ message.title = reader.string();+ break;+ case 4:+ message.description = reader.string();+ break;+ case 5:+ message.status = reader.int32() as any;+ break;+ case 6:+ message.assignee = reader.string();+ break;+ case 7:+ message.assigneeAttention = reader.bool();+ break;+ case 8:+ message.approvalTemplates.push(ApprovalTemplate.decode(reader, reader.uint32()));+ break;+ case 9:+ message.approvers.push(Review_Approver.decode(reader, reader.uint32()));+ break;+ case 10:+ message.subscribers.push(reader.string());+ break;+ case 11:+ message.creator = reader.string();+ break;+ case 12:+ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ break;+ case 13:+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): Review {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ uid: isSet(object.uid) ? String(object.uid) : "",+ title: isSet(object.title) ? String(object.title) : "",+ description: isSet(object.description) ? String(object.description) : "",+ status: isSet(object.status) ? reviewStatusFromJSON(object.status) : 0,+ assignee: isSet(object.assignee) ? String(object.assignee) : "",+ assigneeAttention: isSet(object.assigneeAttention) ? Boolean(object.assigneeAttention) : false,+ approvalTemplates: Array.isArray(object?.approvalTemplates)+ ? object.approvalTemplates.map((e: any) => ApprovalTemplate.fromJSON(e))+ : [],+ approvers: Array.isArray(object?.approvers) ? object.approvers.map((e: any) => Review_Approver.fromJSON(e)) : [],+ subscribers: Array.isArray(object?.subscribers) ? object.subscribers.map((e: any) => String(e)) : [],+ creator: isSet(object.creator) ? String(object.creator) : "",+ createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ };+ },++ toJSON(message: Review): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.uid !== undefined && (obj.uid = message.uid);+ message.title !== undefined && (obj.title = message.title);+ message.description !== undefined && (obj.description = message.description);+ message.status !== undefined && (obj.status = reviewStatusToJSON(message.status));+ message.assignee !== undefined && (obj.assignee = message.assignee);+ message.assigneeAttention !== undefined && (obj.assigneeAttention = message.assigneeAttention);+ if (message.approvalTemplates) {+ obj.approvalTemplates = message.approvalTemplates.map((e) => e ? ApprovalTemplate.toJSON(e) : undefined);+ } else {+ obj.approvalTemplates = [];+ }+ if (message.approvers) {+ obj.approvers = message.approvers.map((e) => e ? Review_Approver.toJSON(e) : undefined);+ } else {+ obj.approvers = [];+ }+ if (message.subscribers) {+ obj.subscribers = message.subscribers.map((e) => e);+ } else {+ obj.subscribers = [];+ }+ message.creator !== undefined && (obj.creator = message.creator);+ message.createTime !== undefined && (obj.createTime = message.createTime.toISOString());+ message.updateTime !== undefined && (obj.updateTime = message.updateTime.toISOString());+ return obj;+ },++ fromPartial(object: DeepPartial<Review>): Review {+ const message = createBaseReview();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ message.status = object.status ?? 0;+ message.assignee = object.assignee ?? "";+ message.assigneeAttention = object.assigneeAttention ?? false;+ message.approvalTemplates = object.approvalTemplates?.map((e) => ApprovalTemplate.fromPartial(e)) || [];+ message.approvers = object.approvers?.map((e) => Review_Approver.fromPartial(e)) || [];+ message.subscribers = object.subscribers?.map((e) => e) || [];+ message.creator = object.creator ?? "";+ message.createTime = object.createTime ?? undefined;+ message.updateTime = object.updateTime ?? undefined;+ return message;+ },+};++function createBaseReview_Approver(): Review_Approver {+ return { status: 0, principal: "" };+}++export const Review_Approver = {+ encode(message: Review_Approver, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.status !== 0) {+ writer.uint32(8).int32(message.status);+ }+ if (message.principal !== "") {+ writer.uint32(18).string(message.principal);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Review_Approver {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseReview_Approver();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.status = reader.int32() as any;+ break;+ case 2:+ message.principal = reader.string();+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): Review_Approver {+ return {+ status: isSet(object.status) ? review_Approver_StatusFromJSON(object.status) : 0,+ principal: isSet(object.principal) ? String(object.principal) : "",+ };+ },++ toJSON(message: Review_Approver): unknown {+ const obj: any = {};+ message.status !== undefined && (obj.status = review_Approver_StatusToJSON(message.status));+ message.principal !== undefined && (obj.principal = message.principal);+ return obj;+ },++ fromPartial(object: DeepPartial<Review_Approver>): Review_Approver {+ const message = createBaseReview_Approver();+ message.status = object.status ?? 0;+ message.principal = object.principal ?? "";+ return message;+ },+};++function createBaseApprovalTemplate(): ApprovalTemplate {+ return { flow: undefined, title: "", description: "" };+}++export const ApprovalTemplate = {+ encode(message: ApprovalTemplate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.flow !== undefined) {+ ApprovalFlow.encode(message.flow, writer.uint32(10).fork()).ldelim();+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(26).string(message.description);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ApprovalTemplate {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseApprovalTemplate();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.flow = ApprovalFlow.decode(reader, reader.uint32());+ break;+ case 2:+ message.title = reader.string();+ break;+ case 3:+ message.description = reader.string();+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ApprovalTemplate {+ return {+ flow: isSet(object.flow) ? ApprovalFlow.fromJSON(object.flow) : undefined,+ title: isSet(object.title) ? String(object.title) : "",+ description: isSet(object.description) ? String(object.description) : "",+ };+ },++ toJSON(message: ApprovalTemplate): unknown {+ const obj: any = {};+ message.flow !== undefined && (obj.flow = message.flow ? ApprovalFlow.toJSON(message.flow) : undefined);+ message.title !== undefined && (obj.title = message.title);+ message.description !== undefined && (obj.description = message.description);+ return obj;+ },++ fromPartial(object: DeepPartial<ApprovalTemplate>): ApprovalTemplate {+ const message = createBaseApprovalTemplate();+ message.flow = (object.flow !== undefined && object.flow !== null)+ ? ApprovalFlow.fromPartial(object.flow)+ : undefined;+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ return message;+ },+};++function createBaseApprovalFlow(): ApprovalFlow {+ return { steps: [] };+}++export const ApprovalFlow = {+ encode(message: ApprovalFlow, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.steps) {+ ApprovalStep.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ApprovalFlow {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseApprovalFlow();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.steps.push(ApprovalStep.decode(reader, reader.uint32()));+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ApprovalFlow {+ return { steps: Array.isArray(object?.steps) ? object.steps.map((e: any) => ApprovalStep.fromJSON(e)) : [] };+ },++ toJSON(message: ApprovalFlow): unknown {+ const obj: any = {};+ if (message.steps) {+ obj.steps = message.steps.map((e) => e ? ApprovalStep.toJSON(e) : undefined);+ } else {+ obj.steps = [];+ }+ return obj;+ },++ fromPartial(object: DeepPartial<ApprovalFlow>): ApprovalFlow {+ const message = createBaseApprovalFlow();+ message.steps = object.steps?.map((e) => ApprovalStep.fromPartial(e)) || [];+ return message;+ },+};++function createBaseApprovalStep(): ApprovalStep {+ return { type: 0, nodes: [] };+}++export const ApprovalStep = {+ encode(message: ApprovalStep, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.type !== 0) {+ writer.uint32(8).int32(message.type);+ }+ for (const v of message.nodes) {+ ApprovalNode.encode(v!, writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ApprovalStep {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseApprovalStep();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.type = reader.int32() as any;+ break;+ case 2:+ message.nodes.push(ApprovalNode.decode(reader, reader.uint32()));+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ApprovalStep {+ return {+ type: isSet(object.type) ? approvalStep_TypeFromJSON(object.type) : 0,+ nodes: Array.isArray(object?.nodes) ? object.nodes.map((e: any) => ApprovalNode.fromJSON(e)) : [],+ };+ },++ toJSON(message: ApprovalStep): unknown {+ const obj: any = {};+ message.type !== undefined && (obj.type = approvalStep_TypeToJSON(message.type));+ if (message.nodes) {+ obj.nodes = message.nodes.map((e) => e ? ApprovalNode.toJSON(e) : undefined);+ } else {+ obj.nodes = [];+ }+ return obj;+ },++ fromPartial(object: DeepPartial<ApprovalStep>): ApprovalStep {+ const message = createBaseApprovalStep();+ message.type = object.type ?? 0;+ message.nodes = object.nodes?.map((e) => ApprovalNode.fromPartial(e)) || [];+ return message;+ },+};++function createBaseApprovalNode(): ApprovalNode {+ return { type: 0, groupValue: undefined };+}++export const ApprovalNode = {+ encode(message: ApprovalNode, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.type !== 0) {+ writer.uint32(8).int32(message.type);+ }+ if (message.groupValue !== undefined) {+ writer.uint32(16).int32(message.groupValue);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ApprovalNode {+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseApprovalNode();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ message.type = reader.int32() as any;+ break;+ case 2:+ message.groupValue = reader.int32() as any;+ break;+ default:+ reader.skipType(tag & 7);+ break;+ }+ }+ return message;+ },++ fromJSON(object: any): ApprovalNode {+ return {+ type: isSet(object.type) ? approvalNode_TypeFromJSON(object.type) : 0,+ groupValue: isSet(object.groupValue) ? approvalNode_GroupValueFromJSON(object.groupValue) : undefined,+ };+ },++ toJSON(message: ApprovalNode): unknown {+ const obj: any = {};+ message.type !== undefined && (obj.type = approvalNode_TypeToJSON(message.type));+ message.groupValue !== undefined &&+ (obj.groupValue = message.groupValue !== undefined+ ? approvalNode_GroupValueToJSON(message.groupValue)+ : undefined);+ return obj;+ },++ fromPartial(object: DeepPartial<ApprovalNode>): ApprovalNode {+ const message = createBaseApprovalNode();+ message.type = object.type ?? 0;+ message.groupValue = object.groupValue ?? undefined;+ return message;+ },+};++export type ReviewServiceDefinition = typeof ReviewServiceDefinition;+export const ReviewServiceDefinition = {+ name: "ReviewService",+ fullName: "bytebase.v1.ReviewService",+ methods: {+ getReview: {+ name: "GetReview",+ requestType: GetReviewRequest,+ requestStream: false,+ responseType: Review,+ responseStream: false,+ options: {},+ },+ listReviews: {+ name: "ListReviews",+ requestType: ListReviewsRequest,+ requestStream: false,+ responseType: ListReviewsResponse,+ responseStream: false,+ options: {},+ },+ updateReview: {+ name: "UpdateReview",+ requestType: UpdateReviewRequest,+ requestStream: false,+ responseType: Review,+ responseStream: false,+ options: {},+ },+ batchUpdateReviews: {+ name: "BatchUpdateReviews",+ requestType: BatchUpdateReviewsRequest,+ requestStream: false,+ responseType: BatchUpdateReviewsResponse,+ responseStream: false,+ options: {},+ },+ approveReview: {+ name: "ApproveReview",+ requestType: ApproveReviewRequest,+ requestStream: false,+ responseType: Review,+ responseStream: false,+ options: {},+ },+ },+} as const;++export interface ReviewServiceImplementation<CallContextExt = {}> {+ getReview(request: GetReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;+ listReviews(+ request: ListReviewsRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<ListReviewsResponse>>;+ updateReview(request: UpdateReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;+ batchUpdateReviews(+ request: BatchUpdateReviewsRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<BatchUpdateReviewsResponse>>;+ approveReview(request: ApproveReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;+}++export interface ReviewServiceClient<CallOptionsExt = {}> {+ getReview(request: DeepPartial<GetReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;+ listReviews(+ request: DeepPartial<ListReviewsRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<ListReviewsResponse>;+ updateReview(request: DeepPartial<UpdateReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;+ batchUpdateReviews(+ request: DeepPartial<BatchUpdateReviewsRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<BatchUpdateReviewsResponse>;+ approveReview(request: DeepPartial<ApproveReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;+}++type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;++export type DeepPartial<T> = T extends Builtin ? T+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;++function toTimestamp(date: Date): Timestamp {+ const seconds = date.getTime() / 1_000;+ const nanos = (date.getTime() % 1_000) * 1_000_000;+ return { seconds, nanos };+}++function fromTimestamp(t: Timestamp): Date {+ let millis = t.seconds * 1_000;+ millis += t.nanos / 1_000_000;+ return new Date(millis);+}++function fromJsonTimestamp(o: any): Date {+ if (o instanceof Date) {+ return o;+ } else if (typeof o === "string") {+ return new Date(o);+ } else {+ return fromTimestamp(Timestamp.fromJSON(o));+ }+}++function isSet(value: any): boolean {+ return value !== null && value !== undefined;+}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 3e00c6384a..4a62f2b18c 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -220,8 +220,6 @@- [v1/project_service.proto](#v1_project_service-proto)- [Activity](#bytebase-v1-Activity)- [AddWebhookRequest](#bytebase-v1-AddWebhookRequest)- - [BatchUpdateReviewsRequest](#bytebase-v1-BatchUpdateReviewsRequest)- - [BatchUpdateReviewsResponse](#bytebase-v1-BatchUpdateReviewsResponse)- [Binding](#bytebase-v1-Binding)- [CreateProjectRequest](#bytebase-v1-CreateProjectRequest)- [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest)@@ -231,17 +229,13 @@- [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest)- [GetProjectGitOpsInfoRequest](#bytebase-v1-GetProjectGitOpsInfoRequest)- [GetProjectRequest](#bytebase-v1-GetProjectRequest)- - [GetReviewRequest](#bytebase-v1-GetReviewRequest)- [IamPolicy](#bytebase-v1-IamPolicy)- [LabelSelector](#bytebase-v1-LabelSelector)- [LabelSelectorRequirement](#bytebase-v1-LabelSelectorRequirement)- [ListProjectsRequest](#bytebase-v1-ListProjectsRequest)- [ListProjectsResponse](#bytebase-v1-ListProjectsResponse)- - [ListReviewsRequest](#bytebase-v1-ListReviewsRequest)- - [ListReviewsResponse](#bytebase-v1-ListReviewsResponse)- [Project](#bytebase-v1-Project)- [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest)- - [Review](#bytebase-v1-Review)- [Schedule](#bytebase-v1-Schedule)- [ScheduleDeployment](#bytebase-v1-ScheduleDeployment)- [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest)@@ -251,7 +245,6 @@- [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest)- [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest)- [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest)- - [UpdateReviewRequest](#bytebase-v1-UpdateReviewRequest)- [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest)- [Webhook](#bytebase-v1-Webhook)@@ -259,7 +252,6 @@- [LgtmCheck](#bytebase-v1-LgtmCheck)- [OperatorType](#bytebase-v1-OperatorType)- [ProjectRole](#bytebase-v1-ProjectRole)- - [ReviewStatus](#bytebase-v1-ReviewStatus)- [SchemaChange](#bytebase-v1-SchemaChange)- [SchemaVersion](#bytebase-v1-SchemaVersion)- [TenantMode](#bytebase-v1-TenantMode)@@ -269,6 +261,29 @@- [ProjectService](#bytebase-v1-ProjectService)+- [v1/review_service.proto](#v1_review_service-proto)+ - [ApprovalFlow](#bytebase-v1-ApprovalFlow)+ - [ApprovalNode](#bytebase-v1-ApprovalNode)+ - [ApprovalStep](#bytebase-v1-ApprovalStep)+ - [ApprovalTemplate](#bytebase-v1-ApprovalTemplate)+ - [ApproveReviewRequest](#bytebase-v1-ApproveReviewRequest)+ - [BatchUpdateReviewsRequest](#bytebase-v1-BatchUpdateReviewsRequest)+ - [BatchUpdateReviewsResponse](#bytebase-v1-BatchUpdateReviewsResponse)+ - [GetReviewRequest](#bytebase-v1-GetReviewRequest)+ - [ListReviewsRequest](#bytebase-v1-ListReviewsRequest)+ - [ListReviewsResponse](#bytebase-v1-ListReviewsResponse)+ - [Review](#bytebase-v1-Review)+ - [Review.Approver](#bytebase-v1-Review-Approver)+ - [UpdateReviewRequest](#bytebase-v1-UpdateReviewRequest)++ - [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue)+ - [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type)+ - [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type)+ - [Review.Approver.Status](#bytebase-v1-Review-Approver-Status)+ - [ReviewStatus](#bytebase-v1-ReviewStatus)++ - [ReviewService](#bytebase-v1-ReviewService)+- [v1/risk_service.proto](#v1_risk_service-proto)- [CreateRiskRequest](#bytebase-v1-CreateRiskRequest)- [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest)@@ -3335,37 +3350,6 @@ TODO(zp): move to activity later.-<a name="bytebase-v1-BatchUpdateReviewsRequest"></a>--### BatchUpdateReviewsRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource shared by all reviews being updated. Format: projects/{project} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the status of databases for now. |-| requests | [UpdateReviewRequest](#bytebase-v1-UpdateReviewRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |-------<a name="bytebase-v1-BatchUpdateReviewsResponse"></a>--### BatchUpdateReviewsResponse----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| reviews | [Review](#bytebase-v1-Review) | repeated | Reviews updated. |------<a name="bytebase-v1-Binding"></a>### Binding@@ -3509,21 +3493,6 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-GetReviewRequest"></a>--### GetReviewRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the review to retrieve. Format: projects/{project}/reviews/{review} |------<a name="bytebase-v1-IamPolicy"></a>### IamPolicy@@ -3606,41 +3575,6 @@ When paginating, all other parameters provided to `ListProjects` must match the-<a name="bytebase-v1-ListReviewsRequest"></a>--### ListReviewsRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of reviews. Format: projects/{project} Use "projects/-" to list all reviews from all projects. |-| page_size | [int32](#int32) | | The maximum number of reviews to return. The service may return fewer than this value. If unspecified, at most 50 reviews 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 `ListReviews` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListReviews` must match the call that provided the page token. |-------<a name="bytebase-v1-ListReviewsResponse"></a>--### ListReviewsResponse----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| reviews | [Review](#bytebase-v1-Review) | repeated | The reviews from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |------<a name="bytebase-v1-Project"></a>### Project@@ -3684,31 +3618,6 @@ When paginating, all other parameters provided to `ListReviews` must match the c-<a name="bytebase-v1-Review"></a>--### Review----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the review. `review` is a system generated ID. Format: projects/{project}/reviews/{review} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| title | [string](#string) | | |-| description | [string](#string) | | |-| status | [ReviewStatus](#bytebase-v1-ReviewStatus) | | |-| assignee | [string](#string) | | Format: user:[email protected] |-| assignee_attention | [bool](#bool) | | |-| subscribers | [string](#string) | repeated | The subscribers. Format: user:[email protected] |-| creator | [string](#string) | | Format: user:[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |------<a name="bytebase-v1-Schedule"></a>### Schedule@@ -3851,24 +3760,6 @@ The project's `name` field is used to identify the project to update. Format-<a name="bytebase-v1-UpdateReviewRequest"></a>--### UpdateReviewRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| review | [Review](#bytebase-v1-Review) | | The review to update.--The review's `name` field is used to identify the review to update. Format: projects/{project}/reviews/{review} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |------<a name="bytebase-v1-UpdateWebhookRequest"></a>### UpdateWebhookRequest@@ -3983,20 +3874,6 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the-<a name="bytebase-v1-ReviewStatus"></a>--### ReviewStatus---| Name | Number | Description |-| ---- | ------ | ----------- |-| REVIEW_STATUS_UNSPECIFIED | 0 | |-| OPEN | 1 | |-| DONE | 2 | |-| CANCELED | 3 | |---<a name="bytebase-v1-SchemaChange"></a>### SchemaChange@@ -4099,10 +3976,6 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the| UndeleteProject | [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest) | [Project](#bytebase-v1-Project) | || GetIamPolicy | [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | || SetIamPolicy | [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |-| GetReview | [GetReviewRequest](#bytebase-v1-GetReviewRequest) | [Review](#bytebase-v1-Review) | |-| ListReviews | [ListReviewsRequest](#bytebase-v1-ListReviewsRequest) | [ListReviewsResponse](#bytebase-v1-ListReviewsResponse) | |-| UpdateReview | [UpdateReviewRequest](#bytebase-v1-UpdateReviewRequest) | [Review](#bytebase-v1-Review) | |-| BatchUpdateReviews | [BatchUpdateReviewsRequest](#bytebase-v1-BatchUpdateReviewsRequest) | [BatchUpdateReviewsResponse](#bytebase-v1-BatchUpdateReviewsResponse) | || GetDeploymentConfig | [GetDeploymentConfigRequest](#bytebase-v1-GetDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | || UpdateDeploymentConfig | [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | || AddWebhook | [AddWebhookRequest](#bytebase-v1-AddWebhookRequest) | [Project](#bytebase-v1-Project) | |@@ -4116,6 +3989,334 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the+<a name="v1_review_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/review_service.proto++++<a name="bytebase-v1-ApprovalFlow"></a>++### ApprovalFlow++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |+++++++<a name="bytebase-v1-ApprovalNode"></a>++### ApprovalNode++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |+| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |+++++++<a name="bytebase-v1-ApprovalStep"></a>++### ApprovalStep++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |+| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |+++++++<a name="bytebase-v1-ApprovalTemplate"></a>++### ApprovalTemplate++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |+++++++<a name="bytebase-v1-ApproveReviewRequest"></a>++### ApproveReviewRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the review to add an approver. Format: projects/{project}/reviews/{review} |+++++++<a name="bytebase-v1-BatchUpdateReviewsRequest"></a>++### BatchUpdateReviewsRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent resource shared by all reviews being updated. Format: projects/{project} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the status of databases for now. |+| requests | [UpdateReviewRequest](#bytebase-v1-UpdateReviewRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |+++++++<a name="bytebase-v1-BatchUpdateReviewsResponse"></a>++### BatchUpdateReviewsResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| reviews | [Review](#bytebase-v1-Review) | repeated | Reviews updated. |+++++++<a name="bytebase-v1-GetReviewRequest"></a>++### GetReviewRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the review to retrieve. Format: projects/{project}/reviews/{review} |+++++++<a name="bytebase-v1-ListReviewsRequest"></a>++### ListReviewsRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent, which owns this collection of reviews. Format: projects/{project} Use "projects/-" to list all reviews from all projects. |+| page_size | [int32](#int32) | | The maximum number of reviews to return. The service may return fewer than this value. If unspecified, at most 50 reviews 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 `ListReviews` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListReviews` must match the call that provided the page token. |+++++++<a name="bytebase-v1-ListReviewsResponse"></a>++### ListReviewsResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| reviews | [Review](#bytebase-v1-Review) | repeated | The reviews from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+++++++<a name="bytebase-v1-Review"></a>++### Review++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the review. `review` is a system generated ID. Format: projects/{project}/reviews/{review} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| status | [ReviewStatus](#bytebase-v1-ReviewStatus) | | |+| assignee | [string](#string) | | Format: user:[email protected] |+| assignee_attention | [bool](#bool) | | |+| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |+| approvers | [Review.Approver](#bytebase-v1-Review-Approver) | repeated | |+| subscribers | [string](#string) | repeated | The subscribers. Format: user:[email protected] |+| creator | [string](#string) | | Format: user:[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+++++++<a name="bytebase-v1-Review-Approver"></a>++### Review.Approver++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| status | [Review.Approver.Status](#bytebase-v1-Review-Approver-Status) | | The new status. |+| principal | [string](#string) | | Format: user:[email protected] |+++++++<a name="bytebase-v1-UpdateReviewRequest"></a>++### UpdateReviewRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| review | [Review](#bytebase-v1-Review) | | The review to update.++The review's `name` field is used to identify the review to update. Format: projects/{project}/reviews/{review} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+++++++++<a name="bytebase-v1-ApprovalNode-GroupValue"></a>++### ApprovalNode.GroupValue+GroupValue is used if ApprovalNode Type is ANY_IN_GROUP+The predefined user groups are:+- WORKSPACE_OWNER+- WORKSPACE_DBA+- PROJECT_OWNER+- PROJECT_MEMBER++| Name | Number | Description |+| ---- | ------ | ----------- |+| GROUP_VALUE_UNSPECIFILED | 0 | |+| WORKSPACE_OWNER | 1 | |+| WORKSPACE_DBA | 2 | |+| PROJECT_OWNER | 3 | |+| PROJECT_MEMBER | 4 | |++++<a name="bytebase-v1-ApprovalNode-Type"></a>++### ApprovalNode.Type+Type of the ApprovalNode.+type determines who should approve this node.+ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+See GroupValue below for the predefined user groups.++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ANY_IN_GROUP | 1 | |++++<a name="bytebase-v1-ApprovalStep-Type"></a>++### ApprovalStep.Type+Type of the ApprovalStep+ALL means every node must be approved to proceed.+ANY means approving any node will proceed.++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ALL | 1 | |+| ANY | 2 | |++++<a name="bytebase-v1-Review-Approver-Status"></a>++### Review.Approver.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| APPROVED | 2 | |++++<a name="bytebase-v1-ReviewStatus"></a>++### ReviewStatus+++| Name | Number | Description |+| ---- | ------ | ----------- |+| REVIEW_STATUS_UNSPECIFIED | 0 | |+| OPEN | 1 | |+| DONE | 2 | |+| CANCELED | 3 | |++++++++<a name="bytebase-v1-ReviewService"></a>++### ReviewService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetReview | [GetReviewRequest](#bytebase-v1-GetReviewRequest) | [Review](#bytebase-v1-Review) | |+| ListReviews | [ListReviewsRequest](#bytebase-v1-ListReviewsRequest) | [ListReviewsResponse](#bytebase-v1-ListReviewsResponse) | |+| UpdateReview | [UpdateReviewRequest](#bytebase-v1-UpdateReviewRequest) | [Review](#bytebase-v1-Review) | |+| BatchUpdateReviews | [BatchUpdateReviewsRequest](#bytebase-v1-BatchUpdateReviewsRequest) | [BatchUpdateReviewsResponse](#bytebase-v1-BatchUpdateReviewsResponse) | |+| ApproveReview | [ApproveReviewRequest](#bytebase-v1-ApproveReviewRequest) | [Review](#bytebase-v1-Review) | |+++++<a name="v1_risk_service-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.goindex d3735a984d..4f915809b3 100644--- a/proto/generated-go/v1/project_service.pb.go+++ b/proto/generated-go/v1/project_service.pb.go@@ -12,7 +12,7 @@ import (protoimpl "google.golang.org/protobuf/runtime/protoimpl"emptypb "google.golang.org/protobuf/types/known/emptypb"fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"- timestamppb "google.golang.org/protobuf/types/known/timestamppb"+ _ "google.golang.org/protobuf/types/known/timestamppb"reflect "reflect"sync "sync")@@ -370,58 +370,6 @@ func (ProjectRole) EnumDescriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{6}}-type ReviewStatus int32--const (- ReviewStatus_REVIEW_STATUS_UNSPECIFIED ReviewStatus = 0- ReviewStatus_OPEN ReviewStatus = 1- ReviewStatus_DONE ReviewStatus = 2- ReviewStatus_CANCELED ReviewStatus = 3-)--// Enum value maps for ReviewStatus.-var (- ReviewStatus_name = map[int32]string{- 0: "REVIEW_STATUS_UNSPECIFIED",- 1: "OPEN",- 2: "DONE",- 3: "CANCELED",- }- ReviewStatus_value = map[string]int32{- "REVIEW_STATUS_UNSPECIFIED": 0,- "OPEN": 1,- "DONE": 2,- "CANCELED": 3,- }-)--func (x ReviewStatus) Enum() *ReviewStatus {- p := new(ReviewStatus)- *p = x- return p-}--func (x ReviewStatus) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (ReviewStatus) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[7].Descriptor()-}--func (ReviewStatus) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[7]-}--func (x ReviewStatus) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use ReviewStatus.Descriptor instead.-func (ReviewStatus) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{7}-}-type OperatorType int32const (@@ -458,11 +406,11 @@ func (x OperatorType) String() string {}func (OperatorType) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[8].Descriptor()+ return file_v1_project_service_proto_enumTypes[7].Descriptor()}func (OperatorType) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[8]+ return &file_v1_project_service_proto_enumTypes[7]}func (x OperatorType) Number() protoreflect.EnumNumber {@@ -471,7 +419,7 @@ func (x OperatorType) Number() protoreflect.EnumNumber {// Deprecated: Use OperatorType.Descriptor instead.func (OperatorType) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{8}+ return file_v1_project_service_proto_rawDescGZIP(), []int{7}}type Webhook_Type int32@@ -522,11 +470,11 @@ func (x Webhook_Type) String() string {}func (Webhook_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[9].Descriptor()+ return file_v1_project_service_proto_enumTypes[8].Descriptor()}func (Webhook_Type) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[9]+ return &file_v1_project_service_proto_enumTypes[8]}func (x Webhook_Type) Number() protoreflect.EnumNumber {@@ -535,7 +483,7 @@ func (x Webhook_Type) Number() protoreflect.EnumNumber {// Deprecated: Use Webhook_Type.Descriptor instead.func (Webhook_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{27, 0}+ return file_v1_project_service_proto_rawDescGZIP(), []int{21, 0}}type Activity_Type int32@@ -653,11 +601,11 @@ func (x Activity_Type) String() string {}func (Activity_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_project_service_proto_enumTypes[10].Descriptor()+ return file_v1_project_service_proto_enumTypes[9].Descriptor()}func (Activity_Type) Type() protoreflect.EnumType {- return &file_v1_project_service_proto_enumTypes[10]+ return &file_v1_project_service_proto_enumTypes[9]}func (x Activity_Type) Number() protoreflect.EnumNumber {@@ -666,7 +614,7 @@ func (x Activity_Type) Number() protoreflect.EnumNumber {// Deprecated: Use Activity_Type.Descriptor instead.func (Activity_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{35, 0}+ return file_v1_project_service_proto_rawDescGZIP(), []int{28, 0}}type GetProjectRequest struct {@@ -1635,18 +1583,20 @@ func (x *Binding) GetMembers() []string {return nil}-type GetReviewRequest struct {+type AddWebhookRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the review to retrieve.- // Format: projects/{project}/reviews/{review}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The name of the project to add the webhook to.+ // Format: projects/{project}+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ // The webhook to add.+ Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`}-func (x *GetReviewRequest) Reset() {- *x = GetReviewRequest{}+func (x *AddWebhookRequest) Reset() {+ *x = AddWebhookRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1654,13 +1604,13 @@ func (x *GetReviewRequest) Reset() {}}-func (x *GetReviewRequest) String() string {+func (x *AddWebhookRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*GetReviewRequest) ProtoMessage() {}+func (*AddWebhookRequest) ProtoMessage() {}-func (x *GetReviewRequest) ProtoReflect() protoreflect.Message {+func (x *AddWebhookRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1672,42 +1622,42 @@ func (x *GetReviewRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use GetReviewRequest.ProtoReflect.Descriptor instead.-func (*GetReviewRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use AddWebhookRequest.ProtoReflect.Descriptor instead.+func (*AddWebhookRequest) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{16}}-func (x *GetReviewRequest) GetName() string {+func (x *AddWebhookRequest) GetProject() string {if x != nil {- return x.Name+ return x.Project}return ""}-type ListReviewsRequest struct {+func (x *AddWebhookRequest) GetWebhook() *Webhook {+ if x != nil {+ return x.Webhook+ }+ return nil+}++type UpdateWebhookRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The parent, which owns this collection of reviews.+ // The name of the project which owns the webhook to be updated.// Format: projects/{project}- // Use "projects/-" to list all reviews from all projects.- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The maximum number of reviews to return. The service may return fewer than- // this value.- // If unspecified, at most 50 reviews 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"`- // A page token, received from a previous `ListReviews` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListReviews` 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"`+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ // The webhook to modify.+ // Identified by its url.+ Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`+ // The list of fields to update.+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`}-func (x *ListReviewsRequest) Reset() {- *x = ListReviewsRequest{}+func (x *UpdateWebhookRequest) Reset() {+ *x = UpdateWebhookRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1715,13 +1665,13 @@ func (x *ListReviewsRequest) Reset() {}}-func (x *ListReviewsRequest) String() string {+func (x *UpdateWebhookRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListReviewsRequest) ProtoMessage() {}+func (*UpdateWebhookRequest) ProtoMessage() {}-func (x *ListReviewsRequest) ProtoReflect() protoreflect.Message {+func (x *UpdateWebhookRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[17]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1733,46 +1683,46 @@ func (x *ListReviewsRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListReviewsRequest.ProtoReflect.Descriptor instead.-func (*ListReviewsRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use UpdateWebhookRequest.ProtoReflect.Descriptor instead.+func (*UpdateWebhookRequest) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{17}}-func (x *ListReviewsRequest) GetParent() string {+func (x *UpdateWebhookRequest) GetProject() string {if x != nil {- return x.Parent+ return x.Project}return ""}-func (x *ListReviewsRequest) GetPageSize() int32 {+func (x *UpdateWebhookRequest) GetWebhook() *Webhook {if x != nil {- return x.PageSize+ return x.Webhook}- return 0+ return nil}-func (x *ListReviewsRequest) GetPageToken() string {+func (x *UpdateWebhookRequest) GetUpdateMask() *fieldmaskpb.FieldMask {if x != nil {- return x.PageToken+ return x.UpdateMask}- return ""+ return nil}-type ListReviewsResponse struct {+type RemoveWebhookRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The reviews from the specified request.- Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+ // The name of the project to remove the webhook from.+ // Format: projects/{project}+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ // The webhook to remove. Identified by its url.+ Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`}-func (x *ListReviewsResponse) Reset() {- *x = ListReviewsResponse{}+func (x *RemoveWebhookRequest) Reset() {+ *x = RemoveWebhookRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1780,13 +1730,13 @@ func (x *ListReviewsResponse) Reset() {}}-func (x *ListReviewsResponse) String() string {+func (x *RemoveWebhookRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListReviewsResponse) ProtoMessage() {}+func (*RemoveWebhookRequest) ProtoMessage() {}-func (x *ListReviewsResponse) ProtoReflect() protoreflect.Message {+func (x *RemoveWebhookRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[18]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1798,41 +1748,39 @@ func (x *ListReviewsResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListReviewsResponse.ProtoReflect.Descriptor instead.-func (*ListReviewsResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use RemoveWebhookRequest.ProtoReflect.Descriptor instead.+func (*RemoveWebhookRequest) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{18}}-func (x *ListReviewsResponse) GetReviews() []*Review {+func (x *RemoveWebhookRequest) GetProject() string {if x != nil {- return x.Reviews+ return x.Project}- return nil+ return ""}-func (x *ListReviewsResponse) GetNextPageToken() string {+func (x *RemoveWebhookRequest) GetWebhook() *Webhook {if x != nil {- return x.NextPageToken+ return x.Webhook}- return ""+ return nil}-type UpdateReviewRequest struct {+type TestWebhookRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The review to update.- //- // The review's `name` field is used to identify the review to update.- // Format: projects/{project}/reviews/{review}- Review *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`- // The list of fields to update.- UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+ // The name of the project which owns the webhook to test.+ // Format: projects/{project}+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ // The webhook to test. Identified by its url.+ Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`}-func (x *UpdateReviewRequest) Reset() {- *x = UpdateReviewRequest{}+func (x *TestWebhookRequest) Reset() {+ *x = TestWebhookRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1840,13 +1788,13 @@ func (x *UpdateReviewRequest) Reset() {}}-func (x *UpdateReviewRequest) String() string {+func (x *TestWebhookRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*UpdateReviewRequest) ProtoMessage() {}+func (*TestWebhookRequest) ProtoMessage() {}-func (x *UpdateReviewRequest) ProtoReflect() protoreflect.Message {+func (x *TestWebhookRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[19]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1858,42 +1806,36 @@ func (x *UpdateReviewRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use UpdateReviewRequest.ProtoReflect.Descriptor instead.-func (*UpdateReviewRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use TestWebhookRequest.ProtoReflect.Descriptor instead.+func (*TestWebhookRequest) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{19}}-func (x *UpdateReviewRequest) GetReview() *Review {+func (x *TestWebhookRequest) GetProject() string {if x != nil {- return x.Review+ return x.Project}- return nil+ return ""}-func (x *UpdateReviewRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+func (x *TestWebhookRequest) GetWebhook() *Webhook {if x != nil {- return x.UpdateMask+ return x.Webhook}return nil}-type BatchUpdateReviewsRequest struct {+type TestWebhookResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The parent resource shared by all reviews being updated.- // Format: projects/{project}- // If the operation spans parents, a dash (-) may be accepted as a wildcard.- // We only support updating the status of databases for now.- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The request message specifying the resources to update.- // A maximum of 1000 databases can be modified in a batch.- Requests []*UpdateReviewRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`+ // The result of the test, empty if the test is successful.+ Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`}-func (x *BatchUpdateReviewsRequest) Reset() {- *x = BatchUpdateReviewsRequest{}+func (x *TestWebhookResponse) Reset() {+ *x = TestWebhookResponse{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1901,13 +1843,13 @@ func (x *BatchUpdateReviewsRequest) Reset() {}}-func (x *BatchUpdateReviewsRequest) String() string {+func (x *TestWebhookResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchUpdateReviewsRequest) ProtoMessage() {}+func (*TestWebhookResponse) ProtoMessage() {}-func (x *BatchUpdateReviewsRequest) ProtoReflect() protoreflect.Message {+func (x *TestWebhookResponse) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[20]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1919,36 +1861,43 @@ func (x *BatchUpdateReviewsRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchUpdateReviewsRequest.ProtoReflect.Descriptor instead.-func (*BatchUpdateReviewsRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use TestWebhookResponse.ProtoReflect.Descriptor instead.+func (*TestWebhookResponse) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{20}}-func (x *BatchUpdateReviewsRequest) GetParent() string {+func (x *TestWebhookResponse) GetError() string {if x != nil {- return x.Parent+ return x.Error}return ""}-func (x *BatchUpdateReviewsRequest) GetRequests() []*UpdateReviewRequest {- if x != nil {- return x.Requests- }- return nil-}--type BatchUpdateReviewsResponse struct {+type Webhook struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // Reviews updated.- Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`+ // type is the type of the webhook.+ Type Webhook_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.Webhook_Type" json:"type,omitempty"`+ // title is the title of the webhook.+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ // url is the url of the webhook, should be unique within the project.+ Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`+ // notification_types is the list of activities types that the webhook is interested in.+ // Bytebase will only send notifications to the webhook if the activity type is in the list.+ // It should not be empty, and shoule be a subset of the following:+ // - TYPE_ISSUE_CREATED+ // - TYPE_ISSUE_STATUS_UPDATE+ // - TYPE_ISSUE_PIPELINE_STAGE_UPDATE+ // - TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE+ // - TYPE_ISSUE_FIELD_UPDATE+ // - TYPE_ISSUE_COMMENT_CREAT+ NotificationTypes []Activity_Type `protobuf:"varint,4,rep,packed,name=notification_types,json=notificationTypes,proto3,enum=bytebase.v1.Activity_Type" json:"notification_types,omitempty"`}-func (x *BatchUpdateReviewsResponse) Reset() {- *x = BatchUpdateReviewsResponse{}+func (x *Webhook) Reset() {+ *x = Webhook{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1956,13 +1905,13 @@ func (x *BatchUpdateReviewsResponse) Reset() {}}-func (x *BatchUpdateReviewsResponse) String() string {+func (x *Webhook) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchUpdateReviewsResponse) ProtoMessage() {}+func (*Webhook) ProtoMessage() {}-func (x *BatchUpdateReviewsResponse) ProtoReflect() protoreflect.Message {+func (x *Webhook) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[21]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1974,32 +1923,54 @@ func (x *BatchUpdateReviewsResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchUpdateReviewsResponse.ProtoReflect.Descriptor instead.-func (*BatchUpdateReviewsResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use Webhook.ProtoReflect.Descriptor instead.+func (*Webhook) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{21}}-func (x *BatchUpdateReviewsResponse) GetReviews() []*Review {+func (x *Webhook) GetType() Webhook_Type {+ if x != nil {+ return x.Type+ }+ return Webhook_TYPE_UNSPECIFIED+}++func (x *Webhook) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Webhook) GetUrl() string {if x != nil {- return x.Reviews+ return x.Url+ }+ return ""+}++func (x *Webhook) GetNotificationTypes() []Activity_Type {+ if x != nil {+ return x.NotificationTypes}return nil}-type AddWebhookRequest struct {+type DeploymentConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the project to add the webhook to.- // Format: projects/{project}- Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`- // The webhook to add.- Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`+ // The name of the resource.+ // Format: projects/{project}/deploymentConfig+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The title of the deployment config.+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Schedule *Schedule `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"`}-func (x *AddWebhookRequest) Reset() {- *x = AddWebhookRequest{}+func (x *DeploymentConfig) Reset() {+ *x = DeploymentConfig{}if protoimpl.UnsafeEnabled {mi := &file_v1_project_service_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2007,13 +1978,13 @@ func (x *AddWebhookRequest) Reset() {}}-func (x *AddWebhookRequest) String() string {+func (x *DeploymentConfig) String() string {return protoimpl.X.MessageStringOf(x)}-func (*AddWebhookRequest) ProtoMessage() {}+func (*DeploymentConfig) ProtoMessage() {}-func (x *AddWebhookRequest) ProtoReflect() protoreflect.Message {+func (x *DeploymentConfig) ProtoReflect() protoreflect.Message {mi := &file_v1_project_service_proto_msgTypes[22]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2025,542 +1996,33 @@ func (x *AddWebhookRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use AddWebhookRequest.ProtoReflect.Descriptor instead.-func (*AddWebhookRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use DeploymentConfig.ProtoReflect.Descriptor instead.+func (*DeploymentConfig) Descriptor() ([]byte, []int) {return file_v1_project_service_proto_rawDescGZIP(), []int{22}}-func (x *AddWebhookRequest) GetProject() string {+func (x *DeploymentConfig) GetName() string {if x != nil {- return x.Project+ return x.Name}return ""}-func (x *AddWebhookRequest) GetWebhook() *Webhook {+func (x *DeploymentConfig) GetTitle() string {if x != nil {- return x.Webhook+ return x.Title+ }+ return ""+}++func (x *DeploymentConfig) GetSchedule() *Schedule {+ if x != nil {+ return x.Schedule}return nil}-type UpdateWebhookRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the project which owns the webhook to be updated.- // Format: projects/{project}- Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`- // The webhook to modify.- // Identified by its url.- Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`- // The list of fields to update.- UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`-}--func (x *UpdateWebhookRequest) Reset() {- *x = UpdateWebhookRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[23]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *UpdateWebhookRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*UpdateWebhookRequest) ProtoMessage() {}--func (x *UpdateWebhookRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[23]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use UpdateWebhookRequest.ProtoReflect.Descriptor instead.-func (*UpdateWebhookRequest) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{23}-}--func (x *UpdateWebhookRequest) GetProject() string {- if x != nil {- return x.Project- }- return ""-}--func (x *UpdateWebhookRequest) GetWebhook() *Webhook {- if x != nil {- return x.Webhook- }- return nil-}--func (x *UpdateWebhookRequest) GetUpdateMask() *fieldmaskpb.FieldMask {- if x != nil {- return x.UpdateMask- }- return nil-}--type RemoveWebhookRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the project to remove the webhook from.- // Format: projects/{project}- Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`- // The webhook to remove. Identified by its url.- Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`-}--func (x *RemoveWebhookRequest) Reset() {- *x = RemoveWebhookRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[24]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *RemoveWebhookRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*RemoveWebhookRequest) ProtoMessage() {}--func (x *RemoveWebhookRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[24]- 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 RemoveWebhookRequest.ProtoReflect.Descriptor instead.-func (*RemoveWebhookRequest) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{24}-}--func (x *RemoveWebhookRequest) GetProject() string {- if x != nil {- return x.Project- }- return ""-}--func (x *RemoveWebhookRequest) GetWebhook() *Webhook {- if x != nil {- return x.Webhook- }- return nil-}--type TestWebhookRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the project which owns the webhook to test.- // Format: projects/{project}- Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`- // The webhook to test. Identified by its url.- Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`-}--func (x *TestWebhookRequest) Reset() {- *x = TestWebhookRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[25]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *TestWebhookRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TestWebhookRequest) ProtoMessage() {}--func (x *TestWebhookRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[25]- 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 TestWebhookRequest.ProtoReflect.Descriptor instead.-func (*TestWebhookRequest) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{25}-}--func (x *TestWebhookRequest) GetProject() string {- if x != nil {- return x.Project- }- return ""-}--func (x *TestWebhookRequest) GetWebhook() *Webhook {- if x != nil {- return x.Webhook- }- return nil-}--type TestWebhookResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The result of the test, empty if the test is successful.- Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`-}--func (x *TestWebhookResponse) Reset() {- *x = TestWebhookResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[26]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *TestWebhookResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TestWebhookResponse) ProtoMessage() {}--func (x *TestWebhookResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[26]- 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 TestWebhookResponse.ProtoReflect.Descriptor instead.-func (*TestWebhookResponse) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{26}-}--func (x *TestWebhookResponse) GetError() string {- if x != nil {- return x.Error- }- return ""-}--type Webhook struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // type is the type of the webhook.- Type Webhook_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.Webhook_Type" json:"type,omitempty"`- // title is the title of the webhook.- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- // url is the url of the webhook, should be unique within the project.- Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`- // notification_types is the list of activities types that the webhook is interested in.- // Bytebase will only send notifications to the webhook if the activity type is in the list.- // It should not be empty, and shoule be a subset of the following:- // - TYPE_ISSUE_CREATED- // - TYPE_ISSUE_STATUS_UPDATE- // - TYPE_ISSUE_PIPELINE_STAGE_UPDATE- // - TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE- // - TYPE_ISSUE_FIELD_UPDATE- // - TYPE_ISSUE_COMMENT_CREAT- NotificationTypes []Activity_Type `protobuf:"varint,4,rep,packed,name=notification_types,json=notificationTypes,proto3,enum=bytebase.v1.Activity_Type" json:"notification_types,omitempty"`-}--func (x *Webhook) Reset() {- *x = Webhook{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[27]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Webhook) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Webhook) ProtoMessage() {}--func (x *Webhook) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[27]- 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 Webhook.ProtoReflect.Descriptor instead.-func (*Webhook) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{27}-}--func (x *Webhook) GetType() Webhook_Type {- if x != nil {- return x.Type- }- return Webhook_TYPE_UNSPECIFIED-}--func (x *Webhook) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Webhook) GetUrl() string {- if x != nil {- return x.Url- }- return ""-}--func (x *Webhook) GetNotificationTypes() []Activity_Type {- if x != nil {- return x.NotificationTypes- }- return nil-}--type Review struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the review.- // `review` is a system generated ID.- // Format: projects/{project}/reviews/{review}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`- Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`- Status ReviewStatus `protobuf:"varint,5,opt,name=status,proto3,enum=bytebase.v1.ReviewStatus" json:"status,omitempty"`- // Format: user:[email protected]- Assignee string `protobuf:"bytes,6,opt,name=assignee,proto3" json:"assignee,omitempty"`- AssigneeAttention bool `protobuf:"varint,7,opt,name=assignee_attention,json=assigneeAttention,proto3" json:"assignee_attention,omitempty"`- // The subscribers.- // Format: user:[email protected]- Subscribers []string `protobuf:"bytes,8,rep,name=subscribers,proto3" json:"subscribers,omitempty"`- // Format: user:[email protected]- Creator string `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator,omitempty"`- CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`-}--func (x *Review) Reset() {- *x = Review{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[28]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Review) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Review) ProtoMessage() {}--func (x *Review) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[28]- 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 Review.ProtoReflect.Descriptor instead.-func (*Review) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{28}-}--func (x *Review) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *Review) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *Review) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Review) GetDescription() string {- if x != nil {- return x.Description- }- return ""-}--func (x *Review) GetStatus() ReviewStatus {- if x != nil {- return x.Status- }- return ReviewStatus_REVIEW_STATUS_UNSPECIFIED-}--func (x *Review) GetAssignee() string {- if x != nil {- return x.Assignee- }- return ""-}--func (x *Review) GetAssigneeAttention() bool {- if x != nil {- return x.AssigneeAttention- }- return false-}--func (x *Review) GetSubscribers() []string {- if x != nil {- return x.Subscribers- }- return nil-}--func (x *Review) GetCreator() string {- if x != nil {- return x.Creator- }- return ""-}--func (x *Review) GetCreateTime() *timestamppb.Timestamp {- if x != nil {- return x.CreateTime- }- return nil-}--func (x *Review) GetUpdateTime() *timestamppb.Timestamp {- if x != nil {- return x.UpdateTime- }- return nil-}--type DeploymentConfig struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the resource.- // Format: projects/{project}/deploymentConfig- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The title of the deployment config.- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- Schedule *Schedule `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"`-}--func (x *DeploymentConfig) Reset() {- *x = DeploymentConfig{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[29]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *DeploymentConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*DeploymentConfig) ProtoMessage() {}--func (x *DeploymentConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[29]- 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 DeploymentConfig.ProtoReflect.Descriptor instead.-func (*DeploymentConfig) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{29}-}--func (x *DeploymentConfig) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *DeploymentConfig) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *DeploymentConfig) GetSchedule() *Schedule {- if x != nil {- return x.Schedule- }- return nil-}--type Schedule struct {+type Schedule struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -2571,7 +2033,7 @@ type Schedule struct {func (x *Schedule) Reset() {*x = Schedule{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[30]+ mi := &file_v1_project_service_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2584,7 +2046,7 @@ func (x *Schedule) String() string {func (*Schedule) ProtoMessage() {}func (x *Schedule) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[30]+ mi := &file_v1_project_service_proto_msgTypes[23]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2597,7 +2059,7 @@ func (x *Schedule) ProtoReflect() protoreflect.Message {// Deprecated: Use Schedule.ProtoReflect.Descriptor instead.func (*Schedule) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{30}+ return file_v1_project_service_proto_rawDescGZIP(), []int{23}}func (x *Schedule) GetDeployments() []*ScheduleDeployment {@@ -2620,7 +2082,7 @@ type ScheduleDeployment struct {func (x *ScheduleDeployment) Reset() {*x = ScheduleDeployment{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[31]+ mi := &file_v1_project_service_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2633,7 +2095,7 @@ func (x *ScheduleDeployment) String() string {func (*ScheduleDeployment) ProtoMessage() {}func (x *ScheduleDeployment) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[31]+ mi := &file_v1_project_service_proto_msgTypes[24]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2646,7 +2108,7 @@ func (x *ScheduleDeployment) ProtoReflect() protoreflect.Message {// Deprecated: Use ScheduleDeployment.ProtoReflect.Descriptor instead.func (*ScheduleDeployment) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{31}+ return file_v1_project_service_proto_rawDescGZIP(), []int{24}}func (x *ScheduleDeployment) GetTitle() string {@@ -2674,7 +2136,7 @@ type DeploymentSpec struct {func (x *DeploymentSpec) Reset() {*x = DeploymentSpec{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[32]+ mi := &file_v1_project_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2687,7 +2149,7 @@ func (x *DeploymentSpec) String() string {func (*DeploymentSpec) ProtoMessage() {}func (x *DeploymentSpec) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[32]+ mi := &file_v1_project_service_proto_msgTypes[25]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2700,7 +2162,7 @@ func (x *DeploymentSpec) ProtoReflect() protoreflect.Message {// Deprecated: Use DeploymentSpec.ProtoReflect.Descriptor instead.func (*DeploymentSpec) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{32}+ return file_v1_project_service_proto_rawDescGZIP(), []int{25}}func (x *DeploymentSpec) GetLabelSelector() *LabelSelector {@@ -2721,7 +2183,7 @@ type LabelSelector struct {func (x *LabelSelector) Reset() {*x = LabelSelector{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[33]+ mi := &file_v1_project_service_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2734,7 +2196,7 @@ func (x *LabelSelector) String() string {func (*LabelSelector) ProtoMessage() {}func (x *LabelSelector) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[33]+ mi := &file_v1_project_service_proto_msgTypes[26]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2747,7 +2209,7 @@ func (x *LabelSelector) ProtoReflect() protoreflect.Message {// Deprecated: Use LabelSelector.ProtoReflect.Descriptor instead.func (*LabelSelector) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{33}+ return file_v1_project_service_proto_rawDescGZIP(), []int{26}}func (x *LabelSelector) GetMatchExpressions() []*LabelSelectorRequirement {@@ -2770,7 +2232,7 @@ type LabelSelectorRequirement struct {func (x *LabelSelectorRequirement) Reset() {*x = LabelSelectorRequirement{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[34]+ mi := &file_v1_project_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2783,7 +2245,7 @@ func (x *LabelSelectorRequirement) String() string {func (*LabelSelectorRequirement) ProtoMessage() {}func (x *LabelSelectorRequirement) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[34]+ mi := &file_v1_project_service_proto_msgTypes[27]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2796,7 +2258,7 @@ func (x *LabelSelectorRequirement) ProtoReflect() protoreflect.Message {// Deprecated: Use LabelSelectorRequirement.ProtoReflect.Descriptor instead.func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{34}+ return file_v1_project_service_proto_rawDescGZIP(), []int{27}}func (x *LabelSelectorRequirement) GetKey() string {@@ -2830,7 +2292,7 @@ type Activity struct {func (x *Activity) Reset() {*x = Activity{}if protoimpl.UnsafeEnabled {- mi := &file_v1_project_service_proto_msgTypes[35]+ mi := &file_v1_project_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2843,7 +2305,7 @@ func (x *Activity) String() string {func (*Activity) ProtoMessage() {}func (x *Activity) ProtoReflect() protoreflect.Message {- mi := &file_v1_project_service_proto_msgTypes[35]+ mi := &file_v1_project_service_proto_msgTypes[28]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2856,7 +2318,7 @@ func (x *Activity) ProtoReflect() protoreflect.Message {// Deprecated: Use Activity.ProtoReflect.Descriptor instead.func (*Activity) Descriptor() ([]byte, []int) {- return file_v1_project_service_proto_rawDescGZIP(), []int{35}+ return file_v1_project_service_proto_rawDescGZIP(), []int{28}}var File_v1_project_service_proto protoreflect.FileDescriptor@@ -2995,424 +2457,320 @@ var file_v1_project_service_proto_rawDesc = []byte{0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f,0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20,- 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0x2b, 0x0a, 0x10,- 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73,- 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74,- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,- 0x2d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,- 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x84, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30,- 0x0a, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,- 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x76, 0x0a,- 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69,- 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x4b, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x01,- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x73, 0x22, 0x67, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,- 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0xa7, 0x01, 0x0a, 0x14,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x6a, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57,- 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a,- 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,- 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x07,- 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68,- 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,- 0x6b, 0x22, 0x68, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,+ 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0x67, 0x0a, 0x11,+ 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65,+ 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0xa7, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d,+ 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a,+ 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,+ 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,+ 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22,+ 0x6a, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70,0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x2b, 0x0a, 0x13, 0x54,- 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xd5, 0x02, 0x0a, 0x07, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0,- 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x69,- 0x74, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4e, 0x0a, 0x12, 0x6e, 0x6f,- 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73,- 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x54, 0x79,- 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x06, 0x52, 0x11, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x04, 0x54,- 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x41, 0x4d, 0x53, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x4e, 0x47, 0x54, 0x41, 0x4c, 0x4b, 0x10, 0x04, 0x12, 0x0f,- 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55, 0x10, 0x05, 0x12,- 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x43, 0x4f, 0x4d, 0x10, 0x06, 0x12,- 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x07,- 0x22, 0xa9, 0x03, 0x0a, 0x06, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b,- 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31,- 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x18, 0x06, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x12, 0x2d, 0x0a,- 0x12, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x74,- 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x73, 0x73, 0x69, 0x67,- 0x6e, 0x65, 0x65, 0x41, 0x74, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b,- 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28,- 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x73, 0x12, 0x18,- 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61,- 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a,- 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,- 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03,- 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x6f, 0x0a, 0x10,- 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x73, 0x63,- 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62,+ 0x41, 0x02, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x68, 0x0a, 0x12, 0x54,+ 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x12, 0x33, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x77, 0x65,+ 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x2b, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62,+ 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72,+ 0x6f, 0x72, 0x22, 0xd5, 0x02, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x32,+ 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f,+ 0x6f, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x15, 0x0a,+ 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4e, 0x0a, 0x12, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e,+ 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,+ 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41,+ 0x06, 0x52, 0x11, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,+ 0x79, 0x70, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,+ 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43,+ 0x4b, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x43,+ 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45,+ 0x41, 0x4d, 0x53, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49,+ 0x4e, 0x47, 0x54, 0x41, 0x4c, 0x4b, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x57, 0x45, 0x43, 0x4f, 0x4d, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x07, 0x22, 0x6f, 0x0a, 0x10, 0x44, 0x65,+ 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65,+ 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,+ 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x4d, 0x0a, 0x08, 0x53,+ 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f,+ 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64,- 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x4d, 0x0a,- 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x65, 0x70,- 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68,- 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,- 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x5b, 0x0a, 0x12,- 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65,- 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 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, 0x53,- 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x53, 0x0a, 0x0e, 0x44, 0x65, 0x70,- 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x0e, 0x6c,- 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52,- 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x63,- 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12,- 0x52, 0x0a, 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73,- 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65,- 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e,- 0x74, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,- 0x6f, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65,- 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,- 0x79, 0x12, 0x35, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08,- 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,- 0x22, 0xde, 0x05, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22, 0xd1, 0x05,- 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54,- 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55,- 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45,- 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45,- 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12,- 0x1c, 0x0a, 0x18, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x53, 0x54,- 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x2b, 0x0a,- 0x27, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45,- 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55,- 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x05, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e,- 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50,- 0x44, 0x41, 0x54, 0x45, 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49,- 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41,- 0x53, 0x4b, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x07,- 0x12, 0x2d, 0x0a, 0x29, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50,- 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41,- 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12,- 0x39, 0x0a, 0x35, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49,- 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x41, 0x52, 0x4c,- 0x49, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d,- 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45,- 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45,- 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0b, 0x12,- 0x18, 0x0a, 0x14, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x41,- 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56,- 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52,- 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59,- 0x5f, 0x50, 0x55, 0x53, 0x48, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,- 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42,- 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x10, 0x12, 0x1e, 0x0a, 0x1a, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42,- 0x45, 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12, 0x23, 0x0a, 0x1f, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42,- 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x12,- 0x12, 0x19, 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49,- 0x54, 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x12, 0x24, 0x0a, 0x20, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x43,- 0x4f, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10,- 0x14, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a,- 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12,- 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69,- 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49,- 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,- 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53,- 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10,- 0x02, 0x2a, 0x5c, 0x0a, 0x0a, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12,- 0x1b, 0x0a, 0x17, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,- 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41,- 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54,- 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a,- 0x4c, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49,- 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x12,- 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x4d, 0x41, 0x4e, 0x54, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x3f, 0x0a,- 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1d, 0x0a,- 0x19, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03,- 0x44, 0x44, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x44, 0x4c, 0x10, 0x02, 0x2a, 0x7d,- 0x0a, 0x09, 0x4c, 0x67, 0x74, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x16, 0x4c,- 0x47, 0x54, 0x4d, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4c, 0x47, 0x54, 0x4d, 0x5f,- 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01,- 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x47, 0x54, 0x4d, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x50,- 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1d,- 0x0a, 0x19, 0x4c, 0x47, 0x54, 0x4d, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x50, 0x52, 0x4f,- 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x03, 0x2a, 0x5f, 0x0a,- 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x18,- 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53,- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x52,- 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52,- 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x4f,- 0x4c, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x45, 0x4c, 0x4f, 0x50, 0x45, 0x52, 0x10, 0x02, 0x2a, 0x4f,- 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d,- 0x0a, 0x19, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,- 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a,- 0x04, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10,- 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x2a,- 0x5d, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12,- 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14,- 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x32, 0xba,- 0x14, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,- 0x65, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,- 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,- 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6c, 0x0a, 0x0c, 0x4c,- 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 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, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x22, 0x17, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31,- 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x22, 0x20, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x07,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x8e, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x64,+ 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x63,+ 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,+ 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0b, 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, 0x53, 0x70, 0x65,+ 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x53, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x6c, 0x6f,+ 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x0e, 0x6c, 0x61, 0x62,+ 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x0d, 0x6c,+ 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x63, 0x0a, 0x0d,+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x52, 0x0a,+ 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f,+ 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65,+ 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52,+ 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x73, 0x22, 0x7b, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74,+ 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a,+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,+ 0x35, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6f, 0x70,+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,+ 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xde,+ 0x05, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x22, 0xd1, 0x05, 0x0a, 0x04,+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10,+ 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,+ 0x43, 0x4f, 0x4d, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02,+ 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x46,+ 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a,+ 0x18, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54,+ 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x2b, 0x0a, 0x27, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49,+ 0x4e, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,+ 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x05, 0x12, 0x2a, 0x0a, 0x26, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f,+ 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41,+ 0x54, 0x45, 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53,+ 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b,+ 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x07, 0x12, 0x2d,+ 0x0a, 0x29, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50,+ 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,+ 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x39, 0x0a,+ 0x35, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f, 0x50, 0x49, 0x50, 0x45,+ 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45,+ 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f,+ 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x0a,+ 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f,+ 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0b, 0x12, 0x18, 0x0a,+ 0x14, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x41, 0x43, 0x54,+ 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x0c, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54,+ 0x45, 0x10, 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a,+ 0x45, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x50,+ 0x55, 0x53, 0x48, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52,+ 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x54,+ 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x0f, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52,+ 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x10, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52,+ 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x11, 0x12, 0x23, 0x0a, 0x1f, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52,+ 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x12, 0x12, 0x19,+ 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f,+ 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x12, 0x24, 0x0a, 0x20, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x56,+ 0x45, 0x52, 0x59, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x14, 0x2a,+ 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57,+ 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a,+ 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69,+ 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49,+ 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,+ 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50,+ 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42,+ 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a,+ 0x5c, 0x0a, 0x0a, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a,+ 0x17, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x45,+ 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c,+ 0x45, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x5f, 0x4d,+ 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x4c, 0x0a,+ 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e,+ 0x0a, 0x1a, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d,+ 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x12, 0x0c, 0x0a,+ 0x08, 0x53, 0x45, 0x4d, 0x41, 0x4e, 0x54, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x3f, 0x0a, 0x0c, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53,+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x44,+ 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x44, 0x4c, 0x10, 0x02, 0x2a, 0x7d, 0x0a, 0x09,+ 0x4c, 0x67, 0x74, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x16, 0x4c, 0x47, 0x54,+ 0x4d, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4c, 0x47, 0x54, 0x4d, 0x5f, 0x43, 0x48,+ 0x45, 0x43, 0x4b, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1c,+ 0x0a, 0x18, 0x4c, 0x47, 0x54, 0x4d, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x50, 0x52, 0x4f,+ 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19,+ 0x4c, 0x47, 0x54, 0x4d, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45,+ 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x03, 0x2a, 0x5f, 0x0a, 0x0b, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52,+ 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x52, 0x4f, 0x4a,+ 0x45, 0x43, 0x54, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01,+ 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x52, 0x4f, 0x4c, 0x45,+ 0x5f, 0x44, 0x45, 0x56, 0x45, 0x4c, 0x4f, 0x50, 0x45, 0x52, 0x10, 0x02, 0x2a, 0x5d, 0x0a, 0x0c,+ 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19,+ 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f,+ 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x10,+ 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x32, 0x8f, 0x10, 0x0a, 0x0e,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x68,+ 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,+ 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 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, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0xda,+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x22, 0x44, 0xda, 0x41, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x70, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 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, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x17, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x77, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65,- 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01,- 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74,- 0x65, 0x12, 0x77, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,- 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65,- 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x7a, 0x0a, 0x0c, 0x53, 0x65,- 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f,- 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22,- 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d,- 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x6f, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x22, 0x2e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76,- 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74,- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0xda, 0x41, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x92, 0x01, 0x0a,- 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x20, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,- 0x76, 0x69, 0x65, 0x77, 0x22, 0x4b, 0xda, 0x41, 0x12, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2c,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x30, 0x3a, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x32, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x9d, 0x01, 0x0a, 0x12, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,- 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65,- 0x76, 0x69, 0x65, 0x77, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,- 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f,- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c,- 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,- 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a,- 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x12, 0x72, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,- 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x7b, 0x0a, 0x0d, 0x55, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x32,- 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x7b, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76,- 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76,+ 0x22, 0x20, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x07, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x12, 0x8e, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x44, 0xda,+ 0x41, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x7d, 0x12, 0x70, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 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,+ 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x77, 0x0a, 0x0f, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74,+ 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x77,+ 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,+ 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49,+ 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27,+ 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61,+ 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x7a, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61,+ 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69,+ 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63,+ 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x76,0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x81, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62,- 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a,- 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73,- 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74,- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66,- 0x6f, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,- 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2e, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x1a, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x8d, 0x01, 0x0a, 0x14,- 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,- 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74,- 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2b,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 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,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,+ 0x69, 0x63, 0x79, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f,+ 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x70,+ 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65,+ 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,+ 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x37, 0x3a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,+ 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x12, 0x72, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2e, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x7b, 0x0a, 0x0d,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01,+ 0x2a, 0x32, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x7b, 0x0a, 0x0d, 0x52, 0x65, 0x6d,+ 0x6f, 0x76, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x81, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x57,+ 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f,+ 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74,+ 0x65, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x53,+ 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49,+ 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f,+ 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2e, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x1a, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x8d, 0x01,+ 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f,+ 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47,+ 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f,+ 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x67, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 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 (@@ -3427,8 +2785,8 @@ func file_v1_project_service_proto_rawDescGZIP() []byte {return file_v1_project_service_proto_rawDescData}-var file_v1_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 11)-var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 36)+var file_v1_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 10)+var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 29)var file_v1_project_service_proto_goTypes = []interface{}{(Workflow)(0), // 0: bytebase.v1.Workflow(Visibility)(0), // 1: bytebase.v1.Visibility@@ -3437,136 +2795,111 @@ var file_v1_project_service_proto_goTypes = []interface{}{(SchemaChange)(0), // 4: bytebase.v1.SchemaChange(LgtmCheck)(0), // 5: bytebase.v1.LgtmCheck(ProjectRole)(0), // 6: bytebase.v1.ProjectRole- (ReviewStatus)(0), // 7: bytebase.v1.ReviewStatus- (OperatorType)(0), // 8: bytebase.v1.OperatorType- (Webhook_Type)(0), // 9: bytebase.v1.Webhook.Type- (Activity_Type)(0), // 10: bytebase.v1.Activity.Type- (*GetProjectRequest)(nil), // 11: bytebase.v1.GetProjectRequest- (*ListProjectsRequest)(nil), // 12: bytebase.v1.ListProjectsRequest- (*ListProjectsResponse)(nil), // 13: bytebase.v1.ListProjectsResponse- (*CreateProjectRequest)(nil), // 14: bytebase.v1.CreateProjectRequest- (*UpdateProjectRequest)(nil), // 15: bytebase.v1.UpdateProjectRequest- (*DeleteProjectRequest)(nil), // 16: bytebase.v1.DeleteProjectRequest- (*UndeleteProjectRequest)(nil), // 17: bytebase.v1.UndeleteProjectRequest- (*GetIamPolicyRequest)(nil), // 18: bytebase.v1.GetIamPolicyRequest- (*SetIamPolicyRequest)(nil), // 19: bytebase.v1.SetIamPolicyRequest- (*GetDeploymentConfigRequest)(nil), // 20: bytebase.v1.GetDeploymentConfigRequest- (*UpdateDeploymentConfigRequest)(nil), // 21: bytebase.v1.UpdateDeploymentConfigRequest- (*SetProjectGitOpsInfoRequest)(nil), // 22: bytebase.v1.SetProjectGitOpsInfoRequest- (*GetProjectGitOpsInfoRequest)(nil), // 23: bytebase.v1.GetProjectGitOpsInfoRequest- (*Project)(nil), // 24: bytebase.v1.Project- (*IamPolicy)(nil), // 25: bytebase.v1.IamPolicy- (*Binding)(nil), // 26: bytebase.v1.Binding- (*GetReviewRequest)(nil), // 27: bytebase.v1.GetReviewRequest- (*ListReviewsRequest)(nil), // 28: bytebase.v1.ListReviewsRequest- (*ListReviewsResponse)(nil), // 29: bytebase.v1.ListReviewsResponse- (*UpdateReviewRequest)(nil), // 30: bytebase.v1.UpdateReviewRequest- (*BatchUpdateReviewsRequest)(nil), // 31: bytebase.v1.BatchUpdateReviewsRequest- (*BatchUpdateReviewsResponse)(nil), // 32: bytebase.v1.BatchUpdateReviewsResponse- (*AddWebhookRequest)(nil), // 33: bytebase.v1.AddWebhookRequest- (*UpdateWebhookRequest)(nil), // 34: bytebase.v1.UpdateWebhookRequest- (*RemoveWebhookRequest)(nil), // 35: bytebase.v1.RemoveWebhookRequest- (*TestWebhookRequest)(nil), // 36: bytebase.v1.TestWebhookRequest- (*TestWebhookResponse)(nil), // 37: bytebase.v1.TestWebhookResponse- (*Webhook)(nil), // 38: bytebase.v1.Webhook- (*Review)(nil), // 39: bytebase.v1.Review- (*DeploymentConfig)(nil), // 40: bytebase.v1.DeploymentConfig- (*Schedule)(nil), // 41: bytebase.v1.Schedule- (*ScheduleDeployment)(nil), // 42: bytebase.v1.ScheduleDeployment- (*DeploymentSpec)(nil), // 43: bytebase.v1.DeploymentSpec- (*LabelSelector)(nil), // 44: bytebase.v1.LabelSelector- (*LabelSelectorRequirement)(nil), // 45: bytebase.v1.LabelSelectorRequirement- (*Activity)(nil), // 46: bytebase.v1.Activity- (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask- (*ProjectGitOpsInfo)(nil), // 48: bytebase.v1.ProjectGitOpsInfo- (State)(0), // 49: bytebase.v1.State- (*timestamppb.Timestamp)(nil), // 50: google.protobuf.Timestamp- (*emptypb.Empty)(nil), // 51: google.protobuf.Empty+ (OperatorType)(0), // 7: bytebase.v1.OperatorType+ (Webhook_Type)(0), // 8: bytebase.v1.Webhook.Type+ (Activity_Type)(0), // 9: bytebase.v1.Activity.Type+ (*GetProjectRequest)(nil), // 10: bytebase.v1.GetProjectRequest+ (*ListProjectsRequest)(nil), // 11: bytebase.v1.ListProjectsRequest+ (*ListProjectsResponse)(nil), // 12: bytebase.v1.ListProjectsResponse+ (*CreateProjectRequest)(nil), // 13: bytebase.v1.CreateProjectRequest+ (*UpdateProjectRequest)(nil), // 14: bytebase.v1.UpdateProjectRequest+ (*DeleteProjectRequest)(nil), // 15: bytebase.v1.DeleteProjectRequest+ (*UndeleteProjectRequest)(nil), // 16: bytebase.v1.UndeleteProjectRequest+ (*GetIamPolicyRequest)(nil), // 17: bytebase.v1.GetIamPolicyRequest+ (*SetIamPolicyRequest)(nil), // 18: bytebase.v1.SetIamPolicyRequest+ (*GetDeploymentConfigRequest)(nil), // 19: bytebase.v1.GetDeploymentConfigRequest+ (*UpdateDeploymentConfigRequest)(nil), // 20: bytebase.v1.UpdateDeploymentConfigRequest+ (*SetProjectGitOpsInfoRequest)(nil), // 21: bytebase.v1.SetProjectGitOpsInfoRequest+ (*GetProjectGitOpsInfoRequest)(nil), // 22: bytebase.v1.GetProjectGitOpsInfoRequest+ (*Project)(nil), // 23: bytebase.v1.Project+ (*IamPolicy)(nil), // 24: bytebase.v1.IamPolicy+ (*Binding)(nil), // 25: bytebase.v1.Binding+ (*AddWebhookRequest)(nil), // 26: bytebase.v1.AddWebhookRequest+ (*UpdateWebhookRequest)(nil), // 27: bytebase.v1.UpdateWebhookRequest+ (*RemoveWebhookRequest)(nil), // 28: bytebase.v1.RemoveWebhookRequest+ (*TestWebhookRequest)(nil), // 29: bytebase.v1.TestWebhookRequest+ (*TestWebhookResponse)(nil), // 30: bytebase.v1.TestWebhookResponse+ (*Webhook)(nil), // 31: bytebase.v1.Webhook+ (*DeploymentConfig)(nil), // 32: bytebase.v1.DeploymentConfig+ (*Schedule)(nil), // 33: bytebase.v1.Schedule+ (*ScheduleDeployment)(nil), // 34: bytebase.v1.ScheduleDeployment+ (*DeploymentSpec)(nil), // 35: bytebase.v1.DeploymentSpec+ (*LabelSelector)(nil), // 36: bytebase.v1.LabelSelector+ (*LabelSelectorRequirement)(nil), // 37: bytebase.v1.LabelSelectorRequirement+ (*Activity)(nil), // 38: bytebase.v1.Activity+ (*fieldmaskpb.FieldMask)(nil), // 39: google.protobuf.FieldMask+ (*ProjectGitOpsInfo)(nil), // 40: bytebase.v1.ProjectGitOpsInfo+ (State)(0), // 41: bytebase.v1.State+ (*emptypb.Empty)(nil), // 42: google.protobuf.Empty}var file_v1_project_service_proto_depIdxs = []int32{- 24, // 0: bytebase.v1.ListProjectsResponse.projects:type_name -> bytebase.v1.Project- 24, // 1: bytebase.v1.CreateProjectRequest.project:type_name -> bytebase.v1.Project- 24, // 2: bytebase.v1.UpdateProjectRequest.project:type_name -> bytebase.v1.Project- 47, // 3: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask- 25, // 4: bytebase.v1.SetIamPolicyRequest.policy:type_name -> bytebase.v1.IamPolicy- 40, // 5: bytebase.v1.UpdateDeploymentConfigRequest.config:type_name -> bytebase.v1.DeploymentConfig- 48, // 6: bytebase.v1.SetProjectGitOpsInfoRequest.project_gitops_info:type_name -> bytebase.v1.ProjectGitOpsInfo- 49, // 7: bytebase.v1.Project.state:type_name -> bytebase.v1.State+ 23, // 0: bytebase.v1.ListProjectsResponse.projects:type_name -> bytebase.v1.Project+ 23, // 1: bytebase.v1.CreateProjectRequest.project:type_name -> bytebase.v1.Project+ 23, // 2: bytebase.v1.UpdateProjectRequest.project:type_name -> bytebase.v1.Project+ 39, // 3: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask+ 24, // 4: bytebase.v1.SetIamPolicyRequest.policy:type_name -> bytebase.v1.IamPolicy+ 32, // 5: bytebase.v1.UpdateDeploymentConfigRequest.config:type_name -> bytebase.v1.DeploymentConfig+ 40, // 6: bytebase.v1.SetProjectGitOpsInfoRequest.project_gitops_info:type_name -> bytebase.v1.ProjectGitOpsInfo+ 41, // 7: bytebase.v1.Project.state:type_name -> bytebase.v1.State0, // 8: bytebase.v1.Project.workflow:type_name -> bytebase.v1.Workflow1, // 9: bytebase.v1.Project.visibility:type_name -> bytebase.v1.Visibility2, // 10: bytebase.v1.Project.tenant_mode:type_name -> bytebase.v1.TenantMode3, // 11: bytebase.v1.Project.schema_version:type_name -> bytebase.v1.SchemaVersion4, // 12: bytebase.v1.Project.schema_change:type_name -> bytebase.v1.SchemaChange5, // 13: bytebase.v1.Project.lgtm_check:type_name -> bytebase.v1.LgtmCheck- 38, // 14: bytebase.v1.Project.webhooks:type_name -> bytebase.v1.Webhook- 26, // 15: bytebase.v1.IamPolicy.bindings:type_name -> bytebase.v1.Binding+ 31, // 14: bytebase.v1.Project.webhooks:type_name -> bytebase.v1.Webhook+ 25, // 15: bytebase.v1.IamPolicy.bindings:type_name -> bytebase.v1.Binding6, // 16: bytebase.v1.Binding.role:type_name -> bytebase.v1.ProjectRole- 39, // 17: bytebase.v1.ListReviewsResponse.reviews:type_name -> bytebase.v1.Review- 39, // 18: bytebase.v1.UpdateReviewRequest.review:type_name -> bytebase.v1.Review- 47, // 19: bytebase.v1.UpdateReviewRequest.update_mask:type_name -> google.protobuf.FieldMask- 30, // 20: bytebase.v1.BatchUpdateReviewsRequest.requests:type_name -> bytebase.v1.UpdateReviewRequest- 39, // 21: bytebase.v1.BatchUpdateReviewsResponse.reviews:type_name -> bytebase.v1.Review- 38, // 22: bytebase.v1.AddWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 38, // 23: bytebase.v1.UpdateWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 47, // 24: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask- 38, // 25: bytebase.v1.RemoveWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 38, // 26: bytebase.v1.TestWebhookRequest.webhook:type_name -> bytebase.v1.Webhook- 9, // 27: bytebase.v1.Webhook.type:type_name -> bytebase.v1.Webhook.Type- 10, // 28: bytebase.v1.Webhook.notification_types:type_name -> bytebase.v1.Activity.Type- 7, // 29: bytebase.v1.Review.status:type_name -> bytebase.v1.ReviewStatus- 50, // 30: bytebase.v1.Review.create_time:type_name -> google.protobuf.Timestamp- 50, // 31: bytebase.v1.Review.update_time:type_name -> google.protobuf.Timestamp- 41, // 32: bytebase.v1.DeploymentConfig.schedule:type_name -> bytebase.v1.Schedule- 42, // 33: bytebase.v1.Schedule.deployments:type_name -> bytebase.v1.ScheduleDeployment- 43, // 34: bytebase.v1.ScheduleDeployment.spec:type_name -> bytebase.v1.DeploymentSpec- 44, // 35: bytebase.v1.DeploymentSpec.label_selector:type_name -> bytebase.v1.LabelSelector- 45, // 36: bytebase.v1.LabelSelector.match_expressions:type_name -> bytebase.v1.LabelSelectorRequirement- 8, // 37: bytebase.v1.LabelSelectorRequirement.operator:type_name -> bytebase.v1.OperatorType- 11, // 38: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest- 12, // 39: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest- 14, // 40: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest- 15, // 41: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest- 16, // 42: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest- 17, // 43: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest- 18, // 44: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest- 19, // 45: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest- 27, // 46: bytebase.v1.ProjectService.GetReview:input_type -> bytebase.v1.GetReviewRequest- 28, // 47: bytebase.v1.ProjectService.ListReviews:input_type -> bytebase.v1.ListReviewsRequest- 30, // 48: bytebase.v1.ProjectService.UpdateReview:input_type -> bytebase.v1.UpdateReviewRequest- 31, // 49: bytebase.v1.ProjectService.BatchUpdateReviews:input_type -> bytebase.v1.BatchUpdateReviewsRequest- 20, // 50: bytebase.v1.ProjectService.GetDeploymentConfig:input_type -> bytebase.v1.GetDeploymentConfigRequest- 21, // 51: bytebase.v1.ProjectService.UpdateDeploymentConfig:input_type -> bytebase.v1.UpdateDeploymentConfigRequest- 33, // 52: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest- 34, // 53: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest- 35, // 54: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest- 36, // 55: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest- 22, // 56: bytebase.v1.ProjectService.SetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest- 22, // 57: bytebase.v1.ProjectService.GetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest- 24, // 58: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project- 13, // 59: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse- 24, // 60: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project- 24, // 61: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project- 51, // 62: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty- 24, // 63: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project- 25, // 64: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy- 25, // 65: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy- 39, // 66: bytebase.v1.ProjectService.GetReview:output_type -> bytebase.v1.Review- 29, // 67: bytebase.v1.ProjectService.ListReviews:output_type -> bytebase.v1.ListReviewsResponse- 39, // 68: bytebase.v1.ProjectService.UpdateReview:output_type -> bytebase.v1.Review- 32, // 69: bytebase.v1.ProjectService.BatchUpdateReviews:output_type -> bytebase.v1.BatchUpdateReviewsResponse- 40, // 70: bytebase.v1.ProjectService.GetDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig- 40, // 71: bytebase.v1.ProjectService.UpdateDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig- 24, // 72: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project- 24, // 73: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project- 24, // 74: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project- 37, // 75: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse- 48, // 76: bytebase.v1.ProjectService.SetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo- 48, // 77: bytebase.v1.ProjectService.GetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo- 58, // [58:78] is the sub-list for method output_type- 38, // [38:58] is the sub-list for method input_type- 38, // [38:38] is the sub-list for extension type_name- 38, // [38:38] is the sub-list for extension extendee- 0, // [0:38] is the sub-list for field type_name+ 31, // 17: bytebase.v1.AddWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 31, // 18: bytebase.v1.UpdateWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 39, // 19: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask+ 31, // 20: bytebase.v1.RemoveWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 31, // 21: bytebase.v1.TestWebhookRequest.webhook:type_name -> bytebase.v1.Webhook+ 8, // 22: bytebase.v1.Webhook.type:type_name -> bytebase.v1.Webhook.Type+ 9, // 23: bytebase.v1.Webhook.notification_types:type_name -> bytebase.v1.Activity.Type+ 33, // 24: bytebase.v1.DeploymentConfig.schedule:type_name -> bytebase.v1.Schedule+ 34, // 25: bytebase.v1.Schedule.deployments:type_name -> bytebase.v1.ScheduleDeployment+ 35, // 26: bytebase.v1.ScheduleDeployment.spec:type_name -> bytebase.v1.DeploymentSpec+ 36, // 27: bytebase.v1.DeploymentSpec.label_selector:type_name -> bytebase.v1.LabelSelector+ 37, // 28: bytebase.v1.LabelSelector.match_expressions:type_name -> bytebase.v1.LabelSelectorRequirement+ 7, // 29: bytebase.v1.LabelSelectorRequirement.operator:type_name -> bytebase.v1.OperatorType+ 10, // 30: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest+ 11, // 31: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest+ 13, // 32: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest+ 14, // 33: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest+ 15, // 34: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest+ 16, // 35: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest+ 17, // 36: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest+ 18, // 37: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest+ 19, // 38: bytebase.v1.ProjectService.GetDeploymentConfig:input_type -> bytebase.v1.GetDeploymentConfigRequest+ 20, // 39: bytebase.v1.ProjectService.UpdateDeploymentConfig:input_type -> bytebase.v1.UpdateDeploymentConfigRequest+ 26, // 40: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest+ 27, // 41: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest+ 28, // 42: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest+ 29, // 43: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest+ 21, // 44: bytebase.v1.ProjectService.SetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest+ 21, // 45: bytebase.v1.ProjectService.GetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest+ 23, // 46: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project+ 12, // 47: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse+ 23, // 48: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project+ 23, // 49: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project+ 42, // 50: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty+ 23, // 51: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project+ 24, // 52: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy+ 24, // 53: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy+ 32, // 54: bytebase.v1.ProjectService.GetDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig+ 32, // 55: bytebase.v1.ProjectService.UpdateDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig+ 23, // 56: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project+ 23, // 57: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project+ 23, // 58: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project+ 30, // 59: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse+ 40, // 60: bytebase.v1.ProjectService.SetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo+ 40, // 61: bytebase.v1.ProjectService.GetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo+ 46, // [46:62] is the sub-list for method output_type+ 30, // [30:46] is the sub-list for method input_type+ 30, // [30:30] is the sub-list for extension type_name+ 30, // [30:30] is the sub-list for extension extendee+ 0, // [0:30] is the sub-list for field type_name}func init() { file_v1_project_service_proto_init() }@@ -3770,78 +3103,6 @@ func file_v1_project_service_proto_init() {}}file_v1_project_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetReviewRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListReviewsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListReviewsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdateReviewRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*BatchUpdateReviewsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*BatchUpdateReviewsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*AddWebhookRequest); i {case 0:return &v.state@@ -3853,7 +3114,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*UpdateWebhookRequest); i {case 0:return &v.state@@ -3865,7 +3126,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*RemoveWebhookRequest); i {case 0:return &v.state@@ -3877,7 +3138,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TestWebhookRequest); i {case 0:return &v.state@@ -3889,7 +3150,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TestWebhookResponse); i {case 0:return &v.state@@ -3901,7 +3162,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Webhook); i {case 0:return &v.state@@ -3913,19 +3174,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Review); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_project_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DeploymentConfig); i {case 0:return &v.state@@ -3937,7 +3186,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Schedule); i {case 0:return &v.state@@ -3949,7 +3198,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ScheduleDeployment); i {case 0:return &v.state@@ -3961,7 +3210,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DeploymentSpec); i {case 0:return &v.state@@ -3973,7 +3222,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*LabelSelector); i {case 0:return &v.state@@ -3985,7 +3234,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*LabelSelectorRequirement); i {case 0:return &v.state@@ -3997,7 +3246,7 @@ func file_v1_project_service_proto_init() {return nil}}- file_v1_project_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {+ file_v1_project_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Activity); i {case 0:return &v.state@@ -4015,8 +3264,8 @@ func file_v1_project_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_project_service_proto_rawDesc,- NumEnums: 11,- NumMessages: 36,+ NumEnums: 10,+ NumMessages: 29,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/project_service.pb.gw.go b/proto/generated-go/v1/project_service.pb.gw.goindex 544a33ba49..7b62331411 100644--- a/proto/generated-go/v1/project_service.pb.gw.go+++ b/proto/generated-go/v1/project_service.pb.gw.go@@ -511,296 +511,6 @@ func local_request_ProjectService_SetIamPolicy_0(ctx context.Context, marshaler}-func request_ProjectService_GetReview_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetReviewRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.GetReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_GetReview_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetReviewRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.GetReview(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ProjectService_ListReviews_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}-)--func request_ProjectService_ListReviews_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListReviewsRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_ListReviews_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.ListReviews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_ListReviews_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListReviewsRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_ListReviews_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.ListReviews(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_ProjectService_UpdateReview_0 = &utilities.DoubleArray{Encoding: map[string]int{"review": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}}-)--func request_ProjectService_UpdateReview_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateReviewRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Review); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Review); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["review.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "review.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "review.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "review.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateReview_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.UpdateReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_UpdateReview_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateReviewRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Review); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Review); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["review.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "review.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "review.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "review.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateReview_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.UpdateReview(ctx, &protoReq)- return msg, metadata, err--}--func request_ProjectService_BatchUpdateReviews_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq BatchUpdateReviewsRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := client.BatchUpdateReviews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_ProjectService_BatchUpdateReviews_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq BatchUpdateReviewsRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := server.BatchUpdateReviews(ctx, &protoReq)- return msg, metadata, err--}-func request_ProjectService_GetDeploymentConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {var protoReq GetDeploymentConfigRequestvar metadata runtime.ServerMetadata@@ -1537,106 +1247,6 @@ func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.Serve})- mux.Handle("GET", pattern_ProjectService_GetReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/GetReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_GetReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ProjectService_ListReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/ListReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_ListReviews_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_ListReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_ProjectService_UpdateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/UpdateReview", runtime.WithHTTPPathPattern("/v1/{review.name=projects/*/reviews/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_UpdateReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ProjectService_BatchUpdateReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/BatchUpdateReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews:batchUpdate"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_ProjectService_BatchUpdateReviews_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_BatchUpdateReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_ProjectService_GetDeploymentConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -2054,94 +1664,6 @@ func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.Serve})- mux.Handle("GET", pattern_ProjectService_GetReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/GetReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_GetReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_ProjectService_ListReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/ListReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_ListReviews_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_ListReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_ProjectService_UpdateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/UpdateReview", runtime.WithHTTPPathPattern("/v1/{review.name=projects/*/reviews/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_UpdateReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_ProjectService_BatchUpdateReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/BatchUpdateReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews:batchUpdate"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_ProjectService_BatchUpdateReviews_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_ProjectService_BatchUpdateReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_ProjectService_GetDeploymentConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -2338,14 +1860,6 @@ var (pattern_ProjectService_SetIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "projects", "project"}, "setIamPolicy"))- pattern_ProjectService_GetReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "reviews", "name"}, ""))-- pattern_ProjectService_ListReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "reviews"}, ""))-- pattern_ProjectService_UpdateReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "reviews", "review.name"}, ""))-- pattern_ProjectService_BatchUpdateReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "reviews"}, "batchUpdate"))-pattern_ProjectService_GetDeploymentConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 4, 3, 5, 3}, []string{"v1", "projects", "deploymentConfig", "name"}, ""))pattern_ProjectService_UpdateDeploymentConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 4, 3, 5, 3}, []string{"v1", "projects", "deploymentConfig", "config.name"}, ""))@@ -2380,14 +1894,6 @@ var (forward_ProjectService_SetIamPolicy_0 = runtime.ForwardResponseMessage- forward_ProjectService_GetReview_0 = runtime.ForwardResponseMessage-- forward_ProjectService_ListReviews_0 = runtime.ForwardResponseMessage-- forward_ProjectService_UpdateReview_0 = runtime.ForwardResponseMessage-- forward_ProjectService_BatchUpdateReviews_0 = runtime.ForwardResponseMessage-forward_ProjectService_GetDeploymentConfig_0 = runtime.ForwardResponseMessageforward_ProjectService_UpdateDeploymentConfig_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/project_service_grpc.pb.go b/proto/generated-go/v1/project_service_grpc.pb.goindex b58cb4a509..6b2f9a8f1a 100644--- a/proto/generated-go/v1/project_service_grpc.pb.go+++ b/proto/generated-go/v1/project_service_grpc.pb.go@@ -28,10 +28,6 @@ const (ProjectService_UndeleteProject_FullMethodName = "/bytebase.v1.ProjectService/UndeleteProject"ProjectService_GetIamPolicy_FullMethodName = "/bytebase.v1.ProjectService/GetIamPolicy"ProjectService_SetIamPolicy_FullMethodName = "/bytebase.v1.ProjectService/SetIamPolicy"- ProjectService_GetReview_FullMethodName = "/bytebase.v1.ProjectService/GetReview"- ProjectService_ListReviews_FullMethodName = "/bytebase.v1.ProjectService/ListReviews"- ProjectService_UpdateReview_FullMethodName = "/bytebase.v1.ProjectService/UpdateReview"- ProjectService_BatchUpdateReviews_FullMethodName = "/bytebase.v1.ProjectService/BatchUpdateReviews"ProjectService_GetDeploymentConfig_FullMethodName = "/bytebase.v1.ProjectService/GetDeploymentConfig"ProjectService_UpdateDeploymentConfig_FullMethodName = "/bytebase.v1.ProjectService/UpdateDeploymentConfig"ProjectService_AddWebhook_FullMethodName = "/bytebase.v1.ProjectService/AddWebhook"@@ -54,10 +50,6 @@ type ProjectServiceClient interface {UndeleteProject(ctx context.Context, in *UndeleteProjectRequest, opts ...grpc.CallOption) (*Project, error)GetIamPolicy(ctx context.Context, in *GetIamPolicyRequest, opts ...grpc.CallOption) (*IamPolicy, error)SetIamPolicy(ctx context.Context, in *SetIamPolicyRequest, opts ...grpc.CallOption) (*IamPolicy, error)- GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*Review, error)- ListReviews(ctx context.Context, in *ListReviewsRequest, opts ...grpc.CallOption) (*ListReviewsResponse, error)- UpdateReview(ctx context.Context, in *UpdateReviewRequest, opts ...grpc.CallOption) (*Review, error)- BatchUpdateReviews(ctx context.Context, in *BatchUpdateReviewsRequest, opts ...grpc.CallOption) (*BatchUpdateReviewsResponse, error)GetDeploymentConfig(ctx context.Context, in *GetDeploymentConfigRequest, opts ...grpc.CallOption) (*DeploymentConfig, error)UpdateDeploymentConfig(ctx context.Context, in *UpdateDeploymentConfigRequest, opts ...grpc.CallOption) (*DeploymentConfig, error)AddWebhook(ctx context.Context, in *AddWebhookRequest, opts ...grpc.CallOption) (*Project, error)@@ -148,42 +140,6 @@ func (c *projectServiceClient) SetIamPolicy(ctx context.Context, in *SetIamPolicreturn out, nil}-func (c *projectServiceClient) GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*Review, error) {- out := new(Review)- err := c.cc.Invoke(ctx, ProjectService_GetReview_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) ListReviews(ctx context.Context, in *ListReviewsRequest, opts ...grpc.CallOption) (*ListReviewsResponse, error) {- out := new(ListReviewsResponse)- err := c.cc.Invoke(ctx, ProjectService_ListReviews_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) UpdateReview(ctx context.Context, in *UpdateReviewRequest, opts ...grpc.CallOption) (*Review, error) {- out := new(Review)- err := c.cc.Invoke(ctx, ProjectService_UpdateReview_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *projectServiceClient) BatchUpdateReviews(ctx context.Context, in *BatchUpdateReviewsRequest, opts ...grpc.CallOption) (*BatchUpdateReviewsResponse, error) {- out := new(BatchUpdateReviewsResponse)- err := c.cc.Invoke(ctx, ProjectService_BatchUpdateReviews_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *projectServiceClient) GetDeploymentConfig(ctx context.Context, in *GetDeploymentConfigRequest, opts ...grpc.CallOption) (*DeploymentConfig, error) {out := new(DeploymentConfig)err := c.cc.Invoke(ctx, ProjectService_GetDeploymentConfig_FullMethodName, in, out, opts...)@@ -268,10 +224,6 @@ type ProjectServiceServer interface {UndeleteProject(context.Context, *UndeleteProjectRequest) (*Project, error)GetIamPolicy(context.Context, *GetIamPolicyRequest) (*IamPolicy, error)SetIamPolicy(context.Context, *SetIamPolicyRequest) (*IamPolicy, error)- GetReview(context.Context, *GetReviewRequest) (*Review, error)- ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error)- UpdateReview(context.Context, *UpdateReviewRequest) (*Review, error)- BatchUpdateReviews(context.Context, *BatchUpdateReviewsRequest) (*BatchUpdateReviewsResponse, error)GetDeploymentConfig(context.Context, *GetDeploymentConfigRequest) (*DeploymentConfig, error)UpdateDeploymentConfig(context.Context, *UpdateDeploymentConfigRequest) (*DeploymentConfig, error)AddWebhook(context.Context, *AddWebhookRequest) (*Project, error)@@ -311,18 +263,6 @@ func (UnimplementedProjectServiceServer) GetIamPolicy(context.Context, *GetIamPofunc (UnimplementedProjectServiceServer) SetIamPolicy(context.Context, *SetIamPolicyRequest) (*IamPolicy, error) {return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")}-func (UnimplementedProjectServiceServer) GetReview(context.Context, *GetReviewRequest) (*Review, error) {- return nil, status.Errorf(codes.Unimplemented, "method GetReview not implemented")-}-func (UnimplementedProjectServiceServer) ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListReviews not implemented")-}-func (UnimplementedProjectServiceServer) UpdateReview(context.Context, *UpdateReviewRequest) (*Review, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdateReview not implemented")-}-func (UnimplementedProjectServiceServer) BatchUpdateReviews(context.Context, *BatchUpdateReviewsRequest) (*BatchUpdateReviewsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method BatchUpdateReviews not implemented")-}func (UnimplementedProjectServiceServer) GetDeploymentConfig(context.Context, *GetDeploymentConfigRequest) (*DeploymentConfig, error) {return nil, status.Errorf(codes.Unimplemented, "method GetDeploymentConfig not implemented")}@@ -504,78 +444,6 @@ func _ProjectService_SetIamPolicy_Handler(srv interface{}, ctx context.Context,return interceptor(ctx, in, info, handler)}-func _ProjectService_GetReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(GetReviewRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).GetReview(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_GetReview_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).GetReview(ctx, req.(*GetReviewRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_ListReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListReviewsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).ListReviews(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_ListReviews_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).ListReviews(ctx, req.(*ListReviewsRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_UpdateReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdateReviewRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).UpdateReview(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_UpdateReview_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).UpdateReview(ctx, req.(*UpdateReviewRequest))- }- return interceptor(ctx, in, info, handler)-}--func _ProjectService_BatchUpdateReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(BatchUpdateReviewsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(ProjectServiceServer).BatchUpdateReviews(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: ProjectService_BatchUpdateReviews_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(ProjectServiceServer).BatchUpdateReviews(ctx, req.(*BatchUpdateReviewsRequest))- }- return interceptor(ctx, in, info, handler)-}-func _ProjectService_GetDeploymentConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(GetDeploymentConfigRequest)if err := dec(in); err != nil {@@ -759,22 +627,6 @@ var ProjectService_ServiceDesc = grpc.ServiceDesc{MethodName: "SetIamPolicy",Handler: _ProjectService_SetIamPolicy_Handler,},- {- MethodName: "GetReview",- Handler: _ProjectService_GetReview_Handler,- },- {- MethodName: "ListReviews",- Handler: _ProjectService_ListReviews_Handler,- },- {- MethodName: "UpdateReview",- Handler: _ProjectService_UpdateReview_Handler,- },- {- MethodName: "BatchUpdateReviews",- Handler: _ProjectService_BatchUpdateReviews_Handler,- },{MethodName: "GetDeploymentConfig",Handler: _ProjectService_GetDeploymentConfig_Handler,diff --git a/proto/generated-go/v1/review_service.pb.go b/proto/generated-go/v1/review_service.pb.gonew file mode 100644index 0000000000..221ef9c2ac--- /dev/null+++ b/proto/generated-go/v1/review_service.pb.go@@ -0,0 +1,1597 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.29.0+// protoc (unknown)+// source: v1/review_service.proto++package v1++import (+ _ "google.golang.org/genproto/googleapis/api/annotations"+ _ "google.golang.org/genproto/googleapis/api/expr/v1alpha1"+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ _ "google.golang.org/protobuf/types/known/emptypb"+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++type ReviewStatus int32++const (+ ReviewStatus_REVIEW_STATUS_UNSPECIFIED ReviewStatus = 0+ ReviewStatus_OPEN ReviewStatus = 1+ ReviewStatus_DONE ReviewStatus = 2+ ReviewStatus_CANCELED ReviewStatus = 3+)++// Enum value maps for ReviewStatus.+var (+ ReviewStatus_name = map[int32]string{+ 0: "REVIEW_STATUS_UNSPECIFIED",+ 1: "OPEN",+ 2: "DONE",+ 3: "CANCELED",+ }+ ReviewStatus_value = map[string]int32{+ "REVIEW_STATUS_UNSPECIFIED": 0,+ "OPEN": 1,+ "DONE": 2,+ "CANCELED": 3,+ }+)++func (x ReviewStatus) Enum() *ReviewStatus {+ p := new(ReviewStatus)+ *p = x+ return p+}++func (x ReviewStatus) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ReviewStatus) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_review_service_proto_enumTypes[0].Descriptor()+}++func (ReviewStatus) Type() protoreflect.EnumType {+ return &file_v1_review_service_proto_enumTypes[0]+}++func (x ReviewStatus) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ReviewStatus.Descriptor instead.+func (ReviewStatus) EnumDescriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{0}+}++type Review_Approver_Status int32++const (+ Review_Approver_STATUS_UNSPECIFIED Review_Approver_Status = 0+ Review_Approver_PENDING Review_Approver_Status = 1+ Review_Approver_APPROVED Review_Approver_Status = 2+)++// Enum value maps for Review_Approver_Status.+var (+ Review_Approver_Status_name = map[int32]string{+ 0: "STATUS_UNSPECIFIED",+ 1: "PENDING",+ 2: "APPROVED",+ }+ Review_Approver_Status_value = map[string]int32{+ "STATUS_UNSPECIFIED": 0,+ "PENDING": 1,+ "APPROVED": 2,+ }+)++func (x Review_Approver_Status) Enum() *Review_Approver_Status {+ p := new(Review_Approver_Status)+ *p = x+ return p+}++func (x Review_Approver_Status) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (Review_Approver_Status) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_review_service_proto_enumTypes[1].Descriptor()+}++func (Review_Approver_Status) Type() protoreflect.EnumType {+ return &file_v1_review_service_proto_enumTypes[1]+}++func (x Review_Approver_Status) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use Review_Approver_Status.Descriptor instead.+func (Review_Approver_Status) EnumDescriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{7, 0, 0}+}++// Type of the ApprovalStep+// ALL means every node must be approved to proceed.+// ANY means approving any node will proceed.+type ApprovalStep_Type int32++const (+ ApprovalStep_TYPE_UNSPECIFIED ApprovalStep_Type = 0+ ApprovalStep_ALL ApprovalStep_Type = 1+ ApprovalStep_ANY ApprovalStep_Type = 2+)++// Enum value maps for ApprovalStep_Type.+var (+ ApprovalStep_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "ALL",+ 2: "ANY",+ }+ ApprovalStep_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "ALL": 1,+ "ANY": 2,+ }+)++func (x ApprovalStep_Type) Enum() *ApprovalStep_Type {+ p := new(ApprovalStep_Type)+ *p = x+ return p+}++func (x ApprovalStep_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ApprovalStep_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_review_service_proto_enumTypes[2].Descriptor()+}++func (ApprovalStep_Type) Type() protoreflect.EnumType {+ return &file_v1_review_service_proto_enumTypes[2]+}++func (x ApprovalStep_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ApprovalStep_Type.Descriptor instead.+func (ApprovalStep_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{10, 0}+}++// Type of the ApprovalNode.+// type determines who should approve this node.+// ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+// See GroupValue below for the predefined user groups.+type ApprovalNode_Type int32++const (+ ApprovalNode_TYPE_UNSPECIFIED ApprovalNode_Type = 0+ ApprovalNode_ANY_IN_GROUP ApprovalNode_Type = 1+)++// Enum value maps for ApprovalNode_Type.+var (+ ApprovalNode_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "ANY_IN_GROUP",+ }+ ApprovalNode_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "ANY_IN_GROUP": 1,+ }+)++func (x ApprovalNode_Type) Enum() *ApprovalNode_Type {+ p := new(ApprovalNode_Type)+ *p = x+ return p+}++func (x ApprovalNode_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ApprovalNode_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_review_service_proto_enumTypes[3].Descriptor()+}++func (ApprovalNode_Type) Type() protoreflect.EnumType {+ return &file_v1_review_service_proto_enumTypes[3]+}++func (x ApprovalNode_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ApprovalNode_Type.Descriptor instead.+func (ApprovalNode_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{11, 0}+}++// GroupValue is used if ApprovalNode Type is ANY_IN_GROUP+// The predefined user groups are:+// - WORKSPACE_OWNER+// - WORKSPACE_DBA+// - PROJECT_OWNER+// - PROJECT_MEMBER+type ApprovalNode_GroupValue int32++const (+ ApprovalNode_GROUP_VALUE_UNSPECIFILED ApprovalNode_GroupValue = 0+ ApprovalNode_WORKSPACE_OWNER ApprovalNode_GroupValue = 1+ ApprovalNode_WORKSPACE_DBA ApprovalNode_GroupValue = 2+ ApprovalNode_PROJECT_OWNER ApprovalNode_GroupValue = 3+ ApprovalNode_PROJECT_MEMBER ApprovalNode_GroupValue = 4+)++// Enum value maps for ApprovalNode_GroupValue.+var (+ ApprovalNode_GroupValue_name = map[int32]string{+ 0: "GROUP_VALUE_UNSPECIFILED",+ 1: "WORKSPACE_OWNER",+ 2: "WORKSPACE_DBA",+ 3: "PROJECT_OWNER",+ 4: "PROJECT_MEMBER",+ }+ ApprovalNode_GroupValue_value = map[string]int32{+ "GROUP_VALUE_UNSPECIFILED": 0,+ "WORKSPACE_OWNER": 1,+ "WORKSPACE_DBA": 2,+ "PROJECT_OWNER": 3,+ "PROJECT_MEMBER": 4,+ }+)++func (x ApprovalNode_GroupValue) Enum() *ApprovalNode_GroupValue {+ p := new(ApprovalNode_GroupValue)+ *p = x+ return p+}++func (x ApprovalNode_GroupValue) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ApprovalNode_GroupValue) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_review_service_proto_enumTypes[4].Descriptor()+}++func (ApprovalNode_GroupValue) Type() protoreflect.EnumType {+ return &file_v1_review_service_proto_enumTypes[4]+}++func (x ApprovalNode_GroupValue) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ApprovalNode_GroupValue.Descriptor instead.+func (ApprovalNode_GroupValue) EnumDescriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{11, 1}+}++type GetReviewRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the review to retrieve.+ // Format: projects/{project}/reviews/{review}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *GetReviewRequest) Reset() {+ *x = GetReviewRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *GetReviewRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*GetReviewRequest) ProtoMessage() {}++func (x *GetReviewRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[0]+ 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 GetReviewRequest.ProtoReflect.Descriptor instead.+func (*GetReviewRequest) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{0}+}++func (x *GetReviewRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type ListReviewsRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent, which owns this collection of reviews.+ // Format: projects/{project}+ // Use "projects/-" to list all reviews from all projects.+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The maximum number of reviews to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 reviews 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"`+ // A page token, received from a previous `ListReviews` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListReviews` 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"`+}++func (x *ListReviewsRequest) Reset() {+ *x = ListReviewsRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListReviewsRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListReviewsRequest) ProtoMessage() {}++func (x *ListReviewsRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[1]+ 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 ListReviewsRequest.ProtoReflect.Descriptor instead.+func (*ListReviewsRequest) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{1}+}++func (x *ListReviewsRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *ListReviewsRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListReviewsRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListReviewsResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The reviews from the specified request.+ Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`+ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+}++func (x *ListReviewsResponse) Reset() {+ *x = ListReviewsResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListReviewsResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListReviewsResponse) ProtoMessage() {}++func (x *ListReviewsResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[2]+ 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 ListReviewsResponse.ProtoReflect.Descriptor instead.+func (*ListReviewsResponse) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{2}+}++func (x *ListReviewsResponse) GetReviews() []*Review {+ if x != nil {+ return x.Reviews+ }+ return nil+}++func (x *ListReviewsResponse) GetNextPageToken() string {+ if x != nil {+ return x.NextPageToken+ }+ return ""+}++type UpdateReviewRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The review to update.+ //+ // The review's `name` field is used to identify the review to update.+ // Format: projects/{project}/reviews/{review}+ Review *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`+ // The list of fields to update.+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+}++func (x *UpdateReviewRequest) Reset() {+ *x = UpdateReviewRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *UpdateReviewRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*UpdateReviewRequest) ProtoMessage() {}++func (x *UpdateReviewRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[3]+ 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 UpdateReviewRequest.ProtoReflect.Descriptor instead.+func (*UpdateReviewRequest) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{3}+}++func (x *UpdateReviewRequest) GetReview() *Review {+ if x != nil {+ return x.Review+ }+ return nil+}++func (x *UpdateReviewRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+ if x != nil {+ return x.UpdateMask+ }+ return nil+}++type BatchUpdateReviewsRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent resource shared by all reviews being updated.+ // Format: projects/{project}+ // If the operation spans parents, a dash (-) may be accepted as a wildcard.+ // We only support updating the status of databases for now.+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The request message specifying the resources to update.+ // A maximum of 1000 databases can be modified in a batch.+ Requests []*UpdateReviewRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`+}++func (x *BatchUpdateReviewsRequest) Reset() {+ *x = BatchUpdateReviewsRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *BatchUpdateReviewsRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*BatchUpdateReviewsRequest) ProtoMessage() {}++func (x *BatchUpdateReviewsRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[4]+ 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 BatchUpdateReviewsRequest.ProtoReflect.Descriptor instead.+func (*BatchUpdateReviewsRequest) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{4}+}++func (x *BatchUpdateReviewsRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *BatchUpdateReviewsRequest) GetRequests() []*UpdateReviewRequest {+ if x != nil {+ return x.Requests+ }+ return nil+}++type BatchUpdateReviewsResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Reviews updated.+ Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`+}++func (x *BatchUpdateReviewsResponse) Reset() {+ *x = BatchUpdateReviewsResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[5]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *BatchUpdateReviewsResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*BatchUpdateReviewsResponse) ProtoMessage() {}++func (x *BatchUpdateReviewsResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[5]+ 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 BatchUpdateReviewsResponse.ProtoReflect.Descriptor instead.+func (*BatchUpdateReviewsResponse) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{5}+}++func (x *BatchUpdateReviewsResponse) GetReviews() []*Review {+ if x != nil {+ return x.Reviews+ }+ return nil+}++type ApproveReviewRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the review to add an approver.+ // Format: projects/{project}/reviews/{review}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *ApproveReviewRequest) Reset() {+ *x = ApproveReviewRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[6]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ApproveReviewRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ApproveReviewRequest) ProtoMessage() {}++func (x *ApproveReviewRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[6]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ApproveReviewRequest.ProtoReflect.Descriptor instead.+func (*ApproveReviewRequest) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{6}+}++func (x *ApproveReviewRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type Review struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the review.+ // `review` is a system generated ID.+ // Format: projects/{project}/reviews/{review}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`+ Status ReviewStatus `protobuf:"varint,5,opt,name=status,proto3,enum=bytebase.v1.ReviewStatus" json:"status,omitempty"`+ // Format: user:[email protected]+ Assignee string `protobuf:"bytes,6,opt,name=assignee,proto3" json:"assignee,omitempty"`+ AssigneeAttention bool `protobuf:"varint,7,opt,name=assignee_attention,json=assigneeAttention,proto3" json:"assignee_attention,omitempty"`+ ApprovalTemplates []*ApprovalTemplate `protobuf:"bytes,8,rep,name=approval_templates,json=approvalTemplates,proto3" json:"approval_templates,omitempty"`+ Approvers []*Review_Approver `protobuf:"bytes,9,rep,name=approvers,proto3" json:"approvers,omitempty"`+ // The subscribers.+ // Format: user:[email protected]+ Subscribers []string `protobuf:"bytes,10,rep,name=subscribers,proto3" json:"subscribers,omitempty"`+ // Format: user:[email protected]+ Creator string `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`+}++func (x *Review) Reset() {+ *x = Review{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[7]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Review) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Review) ProtoMessage() {}++func (x *Review) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[7]+ 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 Review.ProtoReflect.Descriptor instead.+func (*Review) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{7}+}++func (x *Review) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Review) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *Review) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Review) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++func (x *Review) GetStatus() ReviewStatus {+ if x != nil {+ return x.Status+ }+ return ReviewStatus_REVIEW_STATUS_UNSPECIFIED+}++func (x *Review) GetAssignee() string {+ if x != nil {+ return x.Assignee+ }+ return ""+}++func (x *Review) GetAssigneeAttention() bool {+ if x != nil {+ return x.AssigneeAttention+ }+ return false+}++func (x *Review) GetApprovalTemplates() []*ApprovalTemplate {+ if x != nil {+ return x.ApprovalTemplates+ }+ return nil+}++func (x *Review) GetApprovers() []*Review_Approver {+ if x != nil {+ return x.Approvers+ }+ return nil+}++func (x *Review) GetSubscribers() []string {+ if x != nil {+ return x.Subscribers+ }+ return nil+}++func (x *Review) GetCreator() string {+ if x != nil {+ return x.Creator+ }+ return ""+}++func (x *Review) GetCreateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.CreateTime+ }+ return nil+}++func (x *Review) GetUpdateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.UpdateTime+ }+ return nil+}++type ApprovalTemplate struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Flow *ApprovalFlow `protobuf:"bytes,1,opt,name=flow,proto3" json:"flow,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`+}++func (x *ApprovalTemplate) Reset() {+ *x = ApprovalTemplate{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[8]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ApprovalTemplate) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ApprovalTemplate) ProtoMessage() {}++func (x *ApprovalTemplate) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[8]+ 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 ApprovalTemplate.ProtoReflect.Descriptor instead.+func (*ApprovalTemplate) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{8}+}++func (x *ApprovalTemplate) GetFlow() *ApprovalFlow {+ if x != nil {+ return x.Flow+ }+ return nil+}++func (x *ApprovalTemplate) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *ApprovalTemplate) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++type ApprovalFlow struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Steps []*ApprovalStep `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"`+}++func (x *ApprovalFlow) Reset() {+ *x = ApprovalFlow{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[9]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ApprovalFlow) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ApprovalFlow) ProtoMessage() {}++func (x *ApprovalFlow) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[9]+ 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 ApprovalFlow.ProtoReflect.Descriptor instead.+func (*ApprovalFlow) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{9}+}++func (x *ApprovalFlow) GetSteps() []*ApprovalStep {+ if x != nil {+ return x.Steps+ }+ return nil+}++type ApprovalStep struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Type ApprovalStep_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.ApprovalStep_Type" json:"type,omitempty"`+ Nodes []*ApprovalNode `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`+}++func (x *ApprovalStep) Reset() {+ *x = ApprovalStep{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ApprovalStep) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ApprovalStep) ProtoMessage() {}++func (x *ApprovalStep) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_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 ApprovalStep.ProtoReflect.Descriptor instead.+func (*ApprovalStep) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{10}+}++func (x *ApprovalStep) GetType() ApprovalStep_Type {+ if x != nil {+ return x.Type+ }+ return ApprovalStep_TYPE_UNSPECIFIED+}++func (x *ApprovalStep) GetNodes() []*ApprovalNode {+ if x != nil {+ return x.Nodes+ }+ return nil+}++type ApprovalNode struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Type ApprovalNode_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.ApprovalNode_Type" json:"type,omitempty"`+ // Types that are assignable to Payload:+ //+ // *ApprovalNode_GroupValue_+ Payload isApprovalNode_Payload `protobuf_oneof:"payload"`+}++func (x *ApprovalNode) Reset() {+ *x = ApprovalNode{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[11]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ApprovalNode) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ApprovalNode) ProtoMessage() {}++func (x *ApprovalNode) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[11]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ApprovalNode.ProtoReflect.Descriptor instead.+func (*ApprovalNode) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{11}+}++func (x *ApprovalNode) GetType() ApprovalNode_Type {+ if x != nil {+ return x.Type+ }+ return ApprovalNode_TYPE_UNSPECIFIED+}++func (m *ApprovalNode) GetPayload() isApprovalNode_Payload {+ if m != nil {+ return m.Payload+ }+ return nil+}++func (x *ApprovalNode) GetGroupValue() ApprovalNode_GroupValue {+ if x, ok := x.GetPayload().(*ApprovalNode_GroupValue_); ok {+ return x.GroupValue+ }+ return ApprovalNode_GROUP_VALUE_UNSPECIFILED+}++type isApprovalNode_Payload interface {+ isApprovalNode_Payload()+}++type ApprovalNode_GroupValue_ struct {+ GroupValue ApprovalNode_GroupValue `protobuf:"varint,2,opt,name=group_value,json=groupValue,proto3,enum=bytebase.v1.ApprovalNode_GroupValue,oneof"`+}++func (*ApprovalNode_GroupValue_) isApprovalNode_Payload() {}++type Review_Approver struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The new status.+ Status Review_Approver_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.v1.Review_Approver_Status" json:"status,omitempty"`+ // Format: user:[email protected]+ Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"`+}++func (x *Review_Approver) Reset() {+ *x = Review_Approver{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_review_service_proto_msgTypes[12]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Review_Approver) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Review_Approver) ProtoMessage() {}++func (x *Review_Approver) ProtoReflect() protoreflect.Message {+ mi := &file_v1_review_service_proto_msgTypes[12]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Review_Approver.ProtoReflect.Descriptor instead.+func (*Review_Approver) Descriptor() ([]byte, []int) {+ return file_v1_review_service_proto_rawDescGZIP(), []int{7, 0}+}++func (x *Review_Approver) GetStatus() Review_Approver_Status {+ if x != nil {+ return x.Status+ }+ return Review_Approver_STATUS_UNSPECIFIED+}++func (x *Review_Approver) GetPrincipal() string {+ if x != nil {+ return x.Principal+ }+ return ""+}++var File_v1_review_service_proto protoreflect.FileDescriptor++var file_v1_review_service_proto_rawDesc = []byte{+ 0x0a, 0x17, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x73, 0x65, 0x72, 0x76,+ 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,+ 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,+ 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x67,+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76,+ 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,+ 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69,+ 0x65, 0x77, 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, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,+ 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, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x07,+ 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 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,+ 0x84, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65,+ 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x76, 0x0a, 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x72,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42,+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x4b,+ 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76,+ 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07,+ 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x52, 0x07, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x22, 0x2f, 0x0a, 0x14, 0x41,+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0xd8, 0x05, 0x0a,+ 0x06, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 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, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,+ 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,+ 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53,+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a,+ 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x73, 0x73,+ 0x69, 0x67, 0x6e, 0x65, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x18,+ 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x41,+ 0x74, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x72,+ 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x08,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c,+ 0x61, 0x74, 0x65, 0x52, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d,+ 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76,+ 0x65, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x41,+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x09, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65,+ 0x72, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72,+ 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,+ 0x62, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18,+ 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x40,+ 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,+ 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,+ 0x6d, 0x65, 0x1a, 0xa2, 0x01, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x12,+ 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09,+ 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0x3b, 0x0a, 0x06, 0x53, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,+ 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50,+ 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x22, 0x79, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f,+ 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x66,+ 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,+ 0x46, 0x6c, 0x6f, 0x77, 0x52, 0x04, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,+ 0x6f, 0x6e, 0x22, 0x3f, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x46, 0x6c,+ 0x6f, 0x77, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,+ 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, 0x73, 0x74,+ 0x65, 0x70, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,+ 0x53, 0x74, 0x65, 0x70, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x65, 0x70, 0x2e, 0x54, 0x79,+ 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x4e, 0x6f,+ 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x2e, 0x0a, 0x04, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x01,+ 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0x02, 0x22, 0xc1, 0x02, 0x0a, 0x0c, 0x41, 0x70,+ 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x4e,+ 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x47,+ 0x0a, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x47,+ 0x72, 0x6f, 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x67, 0x72, 0x6f,+ 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x4e, 0x59, 0x5f, 0x49, 0x4e, 0x5f,+ 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x01, 0x22, 0x79, 0x0a, 0x0a, 0x47, 0x72, 0x6f, 0x75, 0x70,+ 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x56,+ 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x4c, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45,+ 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x57, 0x4f, 0x52, 0x4b,+ 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x44, 0x42, 0x41, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50,+ 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x12, 0x12,+ 0x0a, 0x0e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52,+ 0x10, 0x04, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x4f, 0x0a,+ 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a,+ 0x19, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04,+ 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02,+ 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xb7,+ 0x05, 0x0a, 0x0d, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,+ 0x12, 0x6f, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65,+ 0x77, 0x22, 0x2e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21,+ 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a,+ 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72,+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x22, 0x4b,+ 0xda, 0x41, 0x12, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x72, 0x65, 0x76,+ 0x69, 0x65, 0x77, 0x32, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9d, 0x01, 0x0a, 0x12,+ 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65,+ 0x77, 0x73, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69,+ 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x3a,+ 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x7b, 0x0a, 0x0d, 0x41,+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f,+ 0x76, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22,+ 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a, 0x7d,+ 0x3a, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 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 (+ file_v1_review_service_proto_rawDescOnce sync.Once+ file_v1_review_service_proto_rawDescData = file_v1_review_service_proto_rawDesc+)++func file_v1_review_service_proto_rawDescGZIP() []byte {+ file_v1_review_service_proto_rawDescOnce.Do(func() {+ file_v1_review_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_review_service_proto_rawDescData)+ })+ return file_v1_review_service_proto_rawDescData+}++var file_v1_review_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)+var file_v1_review_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13)+var file_v1_review_service_proto_goTypes = []interface{}{+ (ReviewStatus)(0), // 0: bytebase.v1.ReviewStatus+ (Review_Approver_Status)(0), // 1: bytebase.v1.Review.Approver.Status+ (ApprovalStep_Type)(0), // 2: bytebase.v1.ApprovalStep.Type+ (ApprovalNode_Type)(0), // 3: bytebase.v1.ApprovalNode.Type+ (ApprovalNode_GroupValue)(0), // 4: bytebase.v1.ApprovalNode.GroupValue+ (*GetReviewRequest)(nil), // 5: bytebase.v1.GetReviewRequest+ (*ListReviewsRequest)(nil), // 6: bytebase.v1.ListReviewsRequest+ (*ListReviewsResponse)(nil), // 7: bytebase.v1.ListReviewsResponse+ (*UpdateReviewRequest)(nil), // 8: bytebase.v1.UpdateReviewRequest+ (*BatchUpdateReviewsRequest)(nil), // 9: bytebase.v1.BatchUpdateReviewsRequest+ (*BatchUpdateReviewsResponse)(nil), // 10: bytebase.v1.BatchUpdateReviewsResponse+ (*ApproveReviewRequest)(nil), // 11: bytebase.v1.ApproveReviewRequest+ (*Review)(nil), // 12: bytebase.v1.Review+ (*ApprovalTemplate)(nil), // 13: bytebase.v1.ApprovalTemplate+ (*ApprovalFlow)(nil), // 14: bytebase.v1.ApprovalFlow+ (*ApprovalStep)(nil), // 15: bytebase.v1.ApprovalStep+ (*ApprovalNode)(nil), // 16: bytebase.v1.ApprovalNode+ (*Review_Approver)(nil), // 17: bytebase.v1.Review.Approver+ (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp+}+var file_v1_review_service_proto_depIdxs = []int32{+ 12, // 0: bytebase.v1.ListReviewsResponse.reviews:type_name -> bytebase.v1.Review+ 12, // 1: bytebase.v1.UpdateReviewRequest.review:type_name -> bytebase.v1.Review+ 18, // 2: bytebase.v1.UpdateReviewRequest.update_mask:type_name -> google.protobuf.FieldMask+ 8, // 3: bytebase.v1.BatchUpdateReviewsRequest.requests:type_name -> bytebase.v1.UpdateReviewRequest+ 12, // 4: bytebase.v1.BatchUpdateReviewsResponse.reviews:type_name -> bytebase.v1.Review+ 0, // 5: bytebase.v1.Review.status:type_name -> bytebase.v1.ReviewStatus+ 13, // 6: bytebase.v1.Review.approval_templates:type_name -> bytebase.v1.ApprovalTemplate+ 17, // 7: bytebase.v1.Review.approvers:type_name -> bytebase.v1.Review.Approver+ 19, // 8: bytebase.v1.Review.create_time:type_name -> google.protobuf.Timestamp+ 19, // 9: bytebase.v1.Review.update_time:type_name -> google.protobuf.Timestamp+ 14, // 10: bytebase.v1.ApprovalTemplate.flow:type_name -> bytebase.v1.ApprovalFlow+ 15, // 11: bytebase.v1.ApprovalFlow.steps:type_name -> bytebase.v1.ApprovalStep+ 2, // 12: bytebase.v1.ApprovalStep.type:type_name -> bytebase.v1.ApprovalStep.Type+ 16, // 13: bytebase.v1.ApprovalStep.nodes:type_name -> bytebase.v1.ApprovalNode+ 3, // 14: bytebase.v1.ApprovalNode.type:type_name -> bytebase.v1.ApprovalNode.Type+ 4, // 15: bytebase.v1.ApprovalNode.group_value:type_name -> bytebase.v1.ApprovalNode.GroupValue+ 1, // 16: bytebase.v1.Review.Approver.status:type_name -> bytebase.v1.Review.Approver.Status+ 5, // 17: bytebase.v1.ReviewService.GetReview:input_type -> bytebase.v1.GetReviewRequest+ 6, // 18: bytebase.v1.ReviewService.ListReviews:input_type -> bytebase.v1.ListReviewsRequest+ 8, // 19: bytebase.v1.ReviewService.UpdateReview:input_type -> bytebase.v1.UpdateReviewRequest+ 9, // 20: bytebase.v1.ReviewService.BatchUpdateReviews:input_type -> bytebase.v1.BatchUpdateReviewsRequest+ 11, // 21: bytebase.v1.ReviewService.ApproveReview:input_type -> bytebase.v1.ApproveReviewRequest+ 12, // 22: bytebase.v1.ReviewService.GetReview:output_type -> bytebase.v1.Review+ 7, // 23: bytebase.v1.ReviewService.ListReviews:output_type -> bytebase.v1.ListReviewsResponse+ 12, // 24: bytebase.v1.ReviewService.UpdateReview:output_type -> bytebase.v1.Review+ 10, // 25: bytebase.v1.ReviewService.BatchUpdateReviews:output_type -> bytebase.v1.BatchUpdateReviewsResponse+ 12, // 26: bytebase.v1.ReviewService.ApproveReview:output_type -> bytebase.v1.Review+ 22, // [22:27] is the sub-list for method output_type+ 17, // [17:22] is the sub-list for method input_type+ 17, // [17:17] is the sub-list for extension type_name+ 17, // [17:17] is the sub-list for extension extendee+ 0, // [0:17] is the sub-list for field type_name+}++func init() { file_v1_review_service_proto_init() }+func file_v1_review_service_proto_init() {+ if File_v1_review_service_proto != nil {+ return+ }+ if !protoimpl.UnsafeEnabled {+ file_v1_review_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*GetReviewRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListReviewsRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListReviewsResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*UpdateReviewRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*BatchUpdateReviewsRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*BatchUpdateReviewsResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ApproveReviewRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Review); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ApprovalTemplate); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ApprovalFlow); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ApprovalStep); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ApprovalNode); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_review_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Review_Approver); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ file_v1_review_service_proto_msgTypes[11].OneofWrappers = []interface{}{+ (*ApprovalNode_GroupValue_)(nil),+ }+ type x struct{}+ out := protoimpl.TypeBuilder{+ File: protoimpl.DescBuilder{+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),+ RawDescriptor: file_v1_review_service_proto_rawDesc,+ NumEnums: 5,+ NumMessages: 13,+ NumExtensions: 0,+ NumServices: 1,+ },+ GoTypes: file_v1_review_service_proto_goTypes,+ DependencyIndexes: file_v1_review_service_proto_depIdxs,+ EnumInfos: file_v1_review_service_proto_enumTypes,+ MessageInfos: file_v1_review_service_proto_msgTypes,+ }.Build()+ File_v1_review_service_proto = out.File+ file_v1_review_service_proto_rawDesc = nil+ file_v1_review_service_proto_goTypes = nil+ file_v1_review_service_proto_depIdxs = nil+}diff --git a/proto/generated-go/v1/review_service.pb.gw.go b/proto/generated-go/v1/review_service.pb.gw.gonew file mode 100644index 0000000000..5c87379ece--- /dev/null+++ b/proto/generated-go/v1/review_service.pb.gw.go@@ -0,0 +1,699 @@+// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.+// source: v1/review_service.proto++/*+Package v1 is a reverse proxy.++It translates gRPC into RESTful JSON APIs.+*/+package v1++import (+ "context"+ "io"+ "net/http"++ "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"+ "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"+ "google.golang.org/grpc"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/status"+ "google.golang.org/protobuf/proto"+)++// Suppress "imported and not used" errors+var _ codes.Code+var _ io.Reader+var _ status.Status+var _ = runtime.String+var _ = utilities.NewDoubleArray+var _ = metadata.Join++func request_ReviewService_GetReview_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetReviewRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.GetReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_ReviewService_GetReview_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetReviewRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.GetReview(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_ReviewService_ListReviews_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}+)++func request_ReviewService_ListReviews_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListReviewsRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_ListReviews_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListReviews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_ReviewService_ListReviews_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListReviewsRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_ListReviews_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListReviews(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_ReviewService_UpdateReview_0 = &utilities.DoubleArray{Encoding: map[string]int{"review": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}}+)++func request_ReviewService_UpdateReview_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateReviewRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Review); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Review); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ } else {+ protoReq.UpdateMask = fieldMask+ }+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["review.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "review.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "review.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "review.name", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_UpdateReview_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.UpdateReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_ReviewService_UpdateReview_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateReviewRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Review); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Review); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ } else {+ protoReq.UpdateMask = fieldMask+ }+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["review.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "review.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "review.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "review.name", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_UpdateReview_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.UpdateReview(ctx, &protoReq)+ return msg, metadata, err++}++func request_ReviewService_BatchUpdateReviews_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq BatchUpdateReviewsRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ msg, err := client.BatchUpdateReviews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_ReviewService_BatchUpdateReviews_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq BatchUpdateReviewsRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ msg, err := server.BatchUpdateReviews(ctx, &protoReq)+ return msg, metadata, err++}++func request_ReviewService_ApproveReview_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ApproveReviewRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.ApproveReview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_ReviewService_ApproveReview_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ApproveReviewRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.ApproveReview(ctx, &protoReq)+ return msg, metadata, err++}++// RegisterReviewServiceHandlerServer registers the http handlers for service ReviewService to "mux".+// UnaryRPC :call ReviewServiceServer directly.+// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.+// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterReviewServiceHandlerFromEndpoint instead.+func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReviewServiceServer) error {++ mux.Handle("GET", pattern_ReviewService_GetReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/GetReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_ReviewService_GetReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_ReviewService_ListReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/ListReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_ReviewService_ListReviews_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_ListReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_ReviewService_UpdateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/UpdateReview", runtime.WithHTTPPathPattern("/v1/{review.name=projects/*/reviews/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_ReviewService_UpdateReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_ReviewService_BatchUpdateReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/BatchUpdateReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews:batchUpdate"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_ReviewService_BatchUpdateReviews_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_BatchUpdateReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_ReviewService_ApproveReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/ApproveReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:approve"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_ReviewService_ApproveReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_ApproveReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++// RegisterReviewServiceHandlerFromEndpoint is same as RegisterReviewServiceHandler but+// automatically dials to "endpoint" and closes the connection when "ctx" gets done.+func RegisterReviewServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {+ conn, err := grpc.DialContext(ctx, endpoint, opts...)+ if err != nil {+ return err+ }+ defer func() {+ if err != nil {+ if cerr := conn.Close(); cerr != nil {+ grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ }+ return+ }+ go func() {+ <-ctx.Done()+ if cerr := conn.Close(); cerr != nil {+ grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ }+ }()+ }()++ return RegisterReviewServiceHandler(ctx, mux, conn)+}++// RegisterReviewServiceHandler registers the http handlers for service ReviewService to "mux".+// The handlers forward requests to the grpc endpoint over "conn".+func RegisterReviewServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {+ return RegisterReviewServiceHandlerClient(ctx, mux, NewReviewServiceClient(conn))+}++// RegisterReviewServiceHandlerClient registers the http handlers for service ReviewService+// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReviewServiceClient".+// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReviewServiceClient"+// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in+// "ReviewServiceClient" to call the correct interceptors.+func RegisterReviewServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReviewServiceClient) error {++ mux.Handle("GET", pattern_ReviewService_GetReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ReviewService/GetReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_ReviewService_GetReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_ReviewService_ListReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ReviewService/ListReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_ReviewService_ListReviews_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_ListReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_ReviewService_UpdateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ReviewService/UpdateReview", runtime.WithHTTPPathPattern("/v1/{review.name=projects/*/reviews/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_ReviewService_UpdateReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_ReviewService_BatchUpdateReviews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ReviewService/BatchUpdateReviews", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews:batchUpdate"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_ReviewService_BatchUpdateReviews_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_BatchUpdateReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_ReviewService_ApproveReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ReviewService/ApproveReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:approve"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_ReviewService_ApproveReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_ReviewService_ApproveReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++var (+ pattern_ReviewService_GetReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "reviews", "name"}, ""))++ pattern_ReviewService_ListReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "reviews"}, ""))++ pattern_ReviewService_UpdateReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "reviews", "review.name"}, ""))++ pattern_ReviewService_BatchUpdateReviews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "reviews"}, "batchUpdate"))++ pattern_ReviewService_ApproveReview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "reviews", "name"}, "approve"))+)++var (+ forward_ReviewService_GetReview_0 = runtime.ForwardResponseMessage++ forward_ReviewService_ListReviews_0 = runtime.ForwardResponseMessage++ forward_ReviewService_UpdateReview_0 = runtime.ForwardResponseMessage++ forward_ReviewService_BatchUpdateReviews_0 = runtime.ForwardResponseMessage++ forward_ReviewService_ApproveReview_0 = runtime.ForwardResponseMessage+)diff --git a/proto/generated-go/v1/review_service_grpc.pb.go b/proto/generated-go/v1/review_service_grpc.pb.gonew file mode 100644index 0000000000..82e650305f--- /dev/null+++ b/proto/generated-go/v1/review_service_grpc.pb.go@@ -0,0 +1,257 @@+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.+// versions:+// - protoc-gen-go-grpc v1.3.0+// - protoc (unknown)+// source: v1/review_service.proto++package v1++import (+ context "context"+ grpc "google.golang.org/grpc"+ codes "google.golang.org/grpc/codes"+ status "google.golang.org/grpc/status"+)++// This is a compile-time assertion to ensure that this generated file+// is compatible with the grpc package it is being compiled against.+// Requires gRPC-Go v1.32.0 or later.+const _ = grpc.SupportPackageIsVersion7++const (+ ReviewService_GetReview_FullMethodName = "/bytebase.v1.ReviewService/GetReview"+ ReviewService_ListReviews_FullMethodName = "/bytebase.v1.ReviewService/ListReviews"+ ReviewService_UpdateReview_FullMethodName = "/bytebase.v1.ReviewService/UpdateReview"+ ReviewService_BatchUpdateReviews_FullMethodName = "/bytebase.v1.ReviewService/BatchUpdateReviews"+ ReviewService_ApproveReview_FullMethodName = "/bytebase.v1.ReviewService/ApproveReview"+)++// ReviewServiceClient is the client API for ReviewService service.+//+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.+type ReviewServiceClient interface {+ GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*Review, error)+ ListReviews(ctx context.Context, in *ListReviewsRequest, opts ...grpc.CallOption) (*ListReviewsResponse, error)+ UpdateReview(ctx context.Context, in *UpdateReviewRequest, opts ...grpc.CallOption) (*Review, error)+ BatchUpdateReviews(ctx context.Context, in *BatchUpdateReviewsRequest, opts ...grpc.CallOption) (*BatchUpdateReviewsResponse, error)+ ApproveReview(ctx context.Context, in *ApproveReviewRequest, opts ...grpc.CallOption) (*Review, error)+}++type reviewServiceClient struct {+ cc grpc.ClientConnInterface+}++func NewReviewServiceClient(cc grpc.ClientConnInterface) ReviewServiceClient {+ return &reviewServiceClient{cc}+}++func (c *reviewServiceClient) GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*Review, error) {+ out := new(Review)+ err := c.cc.Invoke(ctx, ReviewService_GetReview_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *reviewServiceClient) ListReviews(ctx context.Context, in *ListReviewsRequest, opts ...grpc.CallOption) (*ListReviewsResponse, error) {+ out := new(ListReviewsResponse)+ err := c.cc.Invoke(ctx, ReviewService_ListReviews_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *reviewServiceClient) UpdateReview(ctx context.Context, in *UpdateReviewRequest, opts ...grpc.CallOption) (*Review, error) {+ out := new(Review)+ err := c.cc.Invoke(ctx, ReviewService_UpdateReview_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *reviewServiceClient) BatchUpdateReviews(ctx context.Context, in *BatchUpdateReviewsRequest, opts ...grpc.CallOption) (*BatchUpdateReviewsResponse, error) {+ out := new(BatchUpdateReviewsResponse)+ err := c.cc.Invoke(ctx, ReviewService_BatchUpdateReviews_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *reviewServiceClient) ApproveReview(ctx context.Context, in *ApproveReviewRequest, opts ...grpc.CallOption) (*Review, error) {+ out := new(Review)+ err := c.cc.Invoke(ctx, ReviewService_ApproveReview_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++// ReviewServiceServer is the server API for ReviewService service.+// All implementations must embed UnimplementedReviewServiceServer+// for forward compatibility+type ReviewServiceServer interface {+ GetReview(context.Context, *GetReviewRequest) (*Review, error)+ ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error)+ UpdateReview(context.Context, *UpdateReviewRequest) (*Review, error)+ BatchUpdateReviews(context.Context, *BatchUpdateReviewsRequest) (*BatchUpdateReviewsResponse, error)+ ApproveReview(context.Context, *ApproveReviewRequest) (*Review, error)+ mustEmbedUnimplementedReviewServiceServer()+}++// UnimplementedReviewServiceServer must be embedded to have forward compatible implementations.+type UnimplementedReviewServiceServer struct {+}++func (UnimplementedReviewServiceServer) GetReview(context.Context, *GetReviewRequest) (*Review, error) {+ return nil, status.Errorf(codes.Unimplemented, "method GetReview not implemented")+}+func (UnimplementedReviewServiceServer) ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListReviews not implemented")+}+func (UnimplementedReviewServiceServer) UpdateReview(context.Context, *UpdateReviewRequest) (*Review, error) {+ return nil, status.Errorf(codes.Unimplemented, "method UpdateReview not implemented")+}+func (UnimplementedReviewServiceServer) BatchUpdateReviews(context.Context, *BatchUpdateReviewsRequest) (*BatchUpdateReviewsResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method BatchUpdateReviews not implemented")+}+func (UnimplementedReviewServiceServer) ApproveReview(context.Context, *ApproveReviewRequest) (*Review, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ApproveReview not implemented")+}+func (UnimplementedReviewServiceServer) mustEmbedUnimplementedReviewServiceServer() {}++// UnsafeReviewServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to ReviewServiceServer will+// result in compilation errors.+type UnsafeReviewServiceServer interface {+ mustEmbedUnimplementedReviewServiceServer()+}++func RegisterReviewServiceServer(s grpc.ServiceRegistrar, srv ReviewServiceServer) {+ s.RegisterService(&ReviewService_ServiceDesc, srv)+}++func _ReviewService_GetReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(GetReviewRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(ReviewServiceServer).GetReview(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: ReviewService_GetReview_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(ReviewServiceServer).GetReview(ctx, req.(*GetReviewRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _ReviewService_ListReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListReviewsRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(ReviewServiceServer).ListReviews(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: ReviewService_ListReviews_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(ReviewServiceServer).ListReviews(ctx, req.(*ListReviewsRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _ReviewService_UpdateReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(UpdateReviewRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(ReviewServiceServer).UpdateReview(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: ReviewService_UpdateReview_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(ReviewServiceServer).UpdateReview(ctx, req.(*UpdateReviewRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _ReviewService_BatchUpdateReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(BatchUpdateReviewsRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(ReviewServiceServer).BatchUpdateReviews(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: ReviewService_BatchUpdateReviews_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(ReviewServiceServer).BatchUpdateReviews(ctx, req.(*BatchUpdateReviewsRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _ReviewService_ApproveReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ApproveReviewRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(ReviewServiceServer).ApproveReview(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: ReviewService_ApproveReview_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(ReviewServiceServer).ApproveReview(ctx, req.(*ApproveReviewRequest))+ }+ return interceptor(ctx, in, info, handler)+}++// ReviewService_ServiceDesc is the grpc.ServiceDesc for ReviewService service.+// It's only intended for direct use with grpc.RegisterService,+// and not to be introspected or modified (even as a copy)+var ReviewService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "bytebase.v1.ReviewService",+ HandlerType: (*ReviewServiceServer)(nil),+ Methods: []grpc.MethodDesc{+ {+ MethodName: "GetReview",+ Handler: _ReviewService_GetReview_Handler,+ },+ {+ MethodName: "ListReviews",+ Handler: _ReviewService_ListReviews_Handler,+ },+ {+ MethodName: "UpdateReview",+ Handler: _ReviewService_UpdateReview_Handler,+ },+ {+ MethodName: "BatchUpdateReviews",+ Handler: _ReviewService_BatchUpdateReviews_Handler,+ },+ {+ MethodName: "ApproveReview",+ Handler: _ReviewService_ApproveReview_Handler,+ },+ },+ Streams: []grpc.StreamDesc{},+ Metadata: "v1/review_service.proto",+}diff --git a/proto/store/database.proto b/proto/store/database.protoindex 3921e683ad..5671e47ff0 100644--- a/proto/store/database.proto+++ b/proto/store/database.proto@@ -124,10 +124,10 @@ message ViewMetadata {message DependentColumn {// The schema is the schema of a reference column.string schema = 1;-+// The table is the table of a reference column.string table = 2;-+// The column is the name of a reference column.string column = 3;}diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.protoindex 869e917428..85ea28c5b7 100644--- a/proto/v1/database_service.proto+++ b/proto/v1/database_service.proto@@ -333,7 +333,7 @@ message ViewMetadata {// The comment is the comment of a view.string comment = 3;-+// The dependent_columns is the list of dependent columns of a view.repeated DependentColumn dependent_columns = 4;}@@ -342,10 +342,10 @@ message ViewMetadata {message DependentColumn {// The schema is the schema of a reference column.string schema = 1;-+// The table is the table of a reference column.string table = 2;-+// The column is the name of a reference column.string column = 3;}diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.protoindex 0e754788a3..33f6f7fa99 100644--- a/proto/v1/project_service.proto+++ b/proto/v1/project_service.proto@@ -63,31 +63,6 @@ service ProjectService {};}- rpc GetReview(GetReviewRequest) returns (Review) {- option (google.api.http) = {get: "/v1/{name=projects/*/reviews/*}"};- option (google.api.method_signature) = "name";- }-- rpc ListReviews(ListReviewsRequest) returns (ListReviewsResponse) {- option (google.api.http) = {get: "/v1/{parent=projects/*}/reviews"};- option (google.api.method_signature) = "parent";- }-- rpc UpdateReview(UpdateReviewRequest) returns (Review) {- option (google.api.http) = {- patch: "/v1/{review.name=projects/*/reviews/*}"- body: "review"- };- option (google.api.method_signature) = "review,update_mask";- }-- rpc BatchUpdateReviews(BatchUpdateReviewsRequest) returns (BatchUpdateReviewsResponse) {- option (google.api.http) = {- post: "/v1/{parent=projects/*}/reviews:batchUpdate"- body: "*"- };- }-rpc GetDeploymentConfig(GetDeploymentConfigRequest) returns (DeploymentConfig) {option (google.api.http) = {get: "/v1/{name=projects/*/deploymentConfig}"};}@@ -341,69 +316,6 @@ enum ProjectRole {PROJECT_ROLE_DEVELOPER = 2;}-message GetReviewRequest {- // The name of the review to retrieve.- // Format: projects/{project}/reviews/{review}- string name = 1 [(google.api.field_behavior) = REQUIRED];-}--message ListReviewsRequest {- // The parent, which owns this collection of reviews.- // Format: projects/{project}- // Use "projects/-" to list all reviews from all projects.- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // The maximum number of reviews to return. The service may return fewer than- // this value.- // If unspecified, at most 50 reviews will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- int32 page_size = 2;-- // A page token, received from a previous `ListReviews` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListReviews` must match- // the call that provided the page token.- string page_token = 3;-}--message ListReviewsResponse {- // The reviews from the specified request.- repeated Review reviews = 1;-- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- string next_page_token = 2;-}--message UpdateReviewRequest {- // The review to update.- //- // The review's `name` field is used to identify the review to update.- // Format: projects/{project}/reviews/{review}- Review review = 1 [(google.api.field_behavior) = REQUIRED];-- // The list of fields to update.- google.protobuf.FieldMask update_mask = 2;-}--message BatchUpdateReviewsRequest {- // The parent resource shared by all reviews being updated.- // Format: projects/{project}- // If the operation spans parents, a dash (-) may be accepted as a wildcard.- // We only support updating the status of databases for now.- string parent = 1;-- // The request message specifying the resources to update.- // A maximum of 1000 databases can be modified in a batch.- repeated UpdateReviewRequest requests = 2 [(google.api.field_behavior) = REQUIRED];-}--message BatchUpdateReviewsResponse {- // Reviews updated.- repeated Review reviews = 1;-}-message AddWebhookRequest {// The name of the project to add the webhook to.// Format: projects/{project}@@ -482,45 +394,6 @@ message Webhook {repeated Activity.Type notification_types = 4 [(google.api.field_behavior) = UNORDERED_LIST];}-message Review {- // The name of the review.- // `review` is a system generated ID.- // Format: projects/{project}/reviews/{review}- string name = 1;-- // The system-assigned, unique identifier for a resource.- string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];-- string title = 3;-- string description = 4;-- ReviewStatus status = 5;-- // Format: user:[email protected]- string assignee = 6;-- bool assignee_attention = 7;-- // The subscribers.- // Format: user:[email protected]- repeated string subscribers = 8;-- // Format: user:[email protected]- string creator = 9;-- google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];-- google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];-}--enum ReviewStatus {- REVIEW_STATUS_UNSPECIFIED = 0;- OPEN = 1;- DONE = 2;- CANCELED = 3;-}-message DeploymentConfig {// The name of the resource.// Format: projects/{project}/deploymentConfigdiff --git a/proto/v1/review_service.proto b/proto/v1/review_service.protonew file mode 100644index 0000000000..42edaf2bce--- /dev/null+++ b/proto/v1/review_service.proto@@ -0,0 +1,224 @@+syntax = "proto3";++package bytebase.v1;++import "google/api/annotations.proto";+import "google/api/client.proto";+import "google/api/expr/v1alpha1/syntax.proto";+import "google/api/field_behavior.proto";+import "google/protobuf/empty.proto";+import "google/protobuf/field_mask.proto";+import "google/protobuf/timestamp.proto";++option go_package = "generated-go/v1";++service ReviewService {+ rpc GetReview(GetReviewRequest) returns (Review) {+ option (google.api.http) = {get: "/v1/{name=projects/*/reviews/*}"};+ option (google.api.method_signature) = "name";+ }++ rpc ListReviews(ListReviewsRequest) returns (ListReviewsResponse) {+ option (google.api.http) = {get: "/v1/{parent=projects/*}/reviews"};+ option (google.api.method_signature) = "parent";+ }++ rpc UpdateReview(UpdateReviewRequest) returns (Review) {+ option (google.api.http) = {+ patch: "/v1/{review.name=projects/*/reviews/*}"+ body: "review"+ };+ option (google.api.method_signature) = "review,update_mask";+ }++ rpc BatchUpdateReviews(BatchUpdateReviewsRequest) returns (BatchUpdateReviewsResponse) {+ option (google.api.http) = {+ post: "/v1/{parent=projects/*}/reviews:batchUpdate"+ body: "*"+ };+ }++ rpc ApproveReview(ApproveReviewRequest) returns (Review) {+ option (google.api.http) = {+ post: "/v1/{name=projects/*/reviews/*}:approve"+ body: "*"+ };+ }+}++message GetReviewRequest {+ // The name of the review to retrieve.+ // Format: projects/{project}/reviews/{review}+ string name = 1 [(google.api.field_behavior) = REQUIRED];+}++message ListReviewsRequest {+ // The parent, which owns this collection of reviews.+ // Format: projects/{project}+ // Use "projects/-" to list all reviews from all projects.+ string parent = 1 [(google.api.field_behavior) = REQUIRED];++ // The maximum number of reviews to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 reviews will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ int32 page_size = 2;++ // A page token, received from a previous `ListReviews` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListReviews` must match+ // the call that provided the page token.+ string page_token = 3;+}++message ListReviewsResponse {+ // The reviews from the specified request.+ repeated Review reviews = 1;++ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ string next_page_token = 2;+}++message UpdateReviewRequest {+ // The review to update.+ //+ // The review's `name` field is used to identify the review to update.+ // Format: projects/{project}/reviews/{review}+ Review review = 1 [(google.api.field_behavior) = REQUIRED];++ // The list of fields to update.+ google.protobuf.FieldMask update_mask = 2;+}++message BatchUpdateReviewsRequest {+ // The parent resource shared by all reviews being updated.+ // Format: projects/{project}+ // If the operation spans parents, a dash (-) may be accepted as a wildcard.+ // We only support updating the status of databases for now.+ string parent = 1;++ // The request message specifying the resources to update.+ // A maximum of 1000 databases can be modified in a batch.+ repeated UpdateReviewRequest requests = 2 [(google.api.field_behavior) = REQUIRED];+}++message BatchUpdateReviewsResponse {+ // Reviews updated.+ repeated Review reviews = 1;+}++message ApproveReviewRequest {+ // The name of the review to add an approver.+ // Format: projects/{project}/reviews/{review}+ string name = 1 [(google.api.field_behavior) = REQUIRED];+}++message Review {+ // The name of the review.+ // `review` is a system generated ID.+ // Format: projects/{project}/reviews/{review}+ string name = 1;++ // The system-assigned, unique identifier for a resource.+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];++ string title = 3;++ string description = 4;++ ReviewStatus status = 5;++ // Format: user:[email protected]+ string assignee = 6;++ bool assignee_attention = 7;++ message Approver {+ enum Status {+ STATUS_UNSPECIFIED = 0;+ PENDING = 1;+ APPROVED = 2;+ }+ // The new status.+ Status status = 1;++ // Format: user:[email protected]+ string principal = 2;+ }++ repeated ApprovalTemplate approval_templates = 8;+ repeated Approver approvers = 9;++ // The subscribers.+ // Format: user:[email protected]+ repeated string subscribers = 10;++ // Format: user:[email protected]+ string creator = 11;++ google.protobuf.Timestamp create_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];++ google.protobuf.Timestamp update_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY];+}++enum ReviewStatus {+ REVIEW_STATUS_UNSPECIFIED = 0;+ OPEN = 1;+ DONE = 2;+ CANCELED = 3;+}++message ApprovalTemplate {+ ApprovalFlow flow = 1;+ string title = 2;+ string description = 3;+}++message ApprovalFlow {+ repeated ApprovalStep steps = 1;+}++message ApprovalStep {+ // Type of the ApprovalStep+ // ALL means every node must be approved to proceed.+ // ANY means approving any node will proceed.+ enum Type {+ TYPE_UNSPECIFIED = 0;+ ALL = 1;+ ANY = 2;+ }+ Type type = 1;++ repeated ApprovalNode nodes = 2;+}++message ApprovalNode {+ // Type of the ApprovalNode.+ // type determines who should approve this node.+ // ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+ // See GroupValue below for the predefined user groups.+ enum Type {+ TYPE_UNSPECIFIED = 0;+ ANY_IN_GROUP = 1;+ }+ Type type = 1;++ // GroupValue is used if ApprovalNode Type is ANY_IN_GROUP+ // The predefined user groups are:+ // - WORKSPACE_OWNER+ // - WORKSPACE_DBA+ // - PROJECT_OWNER+ // - PROJECT_MEMBER+ enum GroupValue {+ GROUP_VALUE_UNSPECIFILED = 0;+ WORKSPACE_OWNER = 1;+ WORKSPACE_DBA = 2;+ PROJECT_OWNER = 3;+ PROJECT_MEMBER = 4;+ }+ oneof payload {+ GroupValue group_value = 2;+ }+}