Skip to content

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

chore: group owner check (#14347)

ecmadao7cc5931511a3
diff --git a/backend/api/v1/group_service.go b/backend/api/v1/group_service.go
index 75ecef6ecc..26419a7792 100644
--- a/backend/api/v1/group_service.go
+++ b/backend/api/v1/group_service.go
@@ -109,7 +109,6 @@ func (s *GroupService) UpdateGroup(ctx context.Context, request *v1pb.UpdateGrou
if !ok {
return nil, status.Errorf(codes.Internal, "user not found")
}
- userName := common.FormatUserUID(user.ID)
group, err := s.store.GetGroup(ctx, groupEmail)
if err != nil {
@@ -117,6 +116,13 @@ func (s *GroupService) UpdateGroup(ctx context.Context, request *v1pb.UpdateGrou
}
if group == nil {
if request.AllowMissing {
+ ok, err := s.iamManager.CheckPermission(ctx, iam.PermissionGroupsCreate, user)
+ if err != nil {
+ return nil, err
+ }
+ if !ok {
+ return nil, status.Errorf(codes.PermissionDenied, "user does not have permission %q", iam.PermissionGroupsCreate)
+ }
return s.CreateGroup(ctx, &v1pb.CreateGroupRequest{
Group: request.Group,
GroupEmail: groupEmail,
@@ -125,19 +131,8 @@ func (s *GroupService) UpdateGroup(ctx context.Context, request *v1pb.UpdateGrou
return nil, status.Errorf(codes.NotFound, "group %q not found", groupEmail)
}
- ok, err = func() (bool, error) {
- for _, member := range group.Payload.GetMembers() {
- if member.Role == storepb.GroupMember_OWNER && member.Member == userName {
- return true, nil
- }
- }
- return s.iamManager.CheckPermission(ctx, iam.PermissionGroupsUpdate, user)
- }()
- if err != nil {
- return nil, status.Errorf(codes.Internal, "failed to check permission, error: %v", err)
- }
- if !ok {
- return nil, status.Errorf(codes.PermissionDenied, "permission denied to update group")
+ if err := s.checkPermission(ctx, group, user, iam.PermissionGroupsUpdate); err != nil {
+ return nil, err
}
patch := &store.UpdateGroupMessage{}
@@ -180,6 +175,23 @@ func (s *GroupService) DeleteGroup(ctx context.Context, request *v1pb.DeleteGrou
return nil, status.Error(codes.InvalidArgument, err.Error())
}
+ user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)
+ if !ok {
+ return nil, status.Errorf(codes.Internal, "user not found")
+ }
+
+ group, err := s.store.GetGroup(ctx, email)
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get group %q with error: %v", email, err)
+ }
+ if group == nil {
+ return nil, status.Errorf(codes.NotFound, "cannot found the group %v", request.Name)
+ }
+
+ if err := s.checkPermission(ctx, group, user, iam.PermissionGroupsDelete); err != nil {
+ return nil, err
+ }
+
if err := s.store.DeleteGroup(ctx, email); err != nil {
return nil, status.Error(codes.Internal, err.Error())
}
@@ -191,6 +203,26 @@ func (s *GroupService) DeleteGroup(ctx context.Context, request *v1pb.DeleteGrou
return &emptypb.Empty{}, nil
}
+func (s *GroupService) checkPermission(ctx context.Context, group *store.GroupMessage, user *store.UserMessage, permission string) error {
+ userName := common.FormatUserUID(user.ID)
+
+ ok, err := func() (bool, error) {
+ for _, member := range group.Payload.GetMembers() {
+ if member.Role == storepb.GroupMember_OWNER && member.Member == userName {
+ return true, nil
+ }
+ }
+ return s.iamManager.CheckPermission(ctx, permission, user)
+ }()
+ if err != nil {
+ return status.Errorf(codes.Internal, "failed to check permission, error: %v", err)
+ }
+ if !ok {
+ return status.Errorf(codes.PermissionDenied, "user does not have permission %q", permission)
+ }
+ return nil
+}
+
func (s *GroupService) convertToGroupPayload(ctx context.Context, group *v1pb.Group) (*storepb.GroupPayload, error) {
payload := &storepb.GroupPayload{}
for _, member := range group.Members {
diff --git a/frontend/src/components/Member/types.ts b/frontend/src/components/Member/types.ts
index 9a06e07ae6..cc872aca28 100644
--- a/frontend/src/components/Member/types.ts
+++ b/frontend/src/components/Member/types.ts
@@ -1,5 +1,5 @@
import { type User } from "@/types/proto/v1/auth_service";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
import type { Binding } from "@/types/proto/v1/iam_policy";
export interface MemberRole {
diff --git a/frontend/src/components/SensitiveData/ClassificationView.vue b/frontend/src/components/SensitiveData/ClassificationView.vue
index 949cc17045..bc973045d8 100644
--- a/frontend/src/components/SensitiveData/ClassificationView.vue
+++ b/frontend/src/components/SensitiveData/ClassificationView.vue
@@ -44,14 +44,12 @@
<div class="flex items-center justify-end gap-2">
<NButton
+ type="primary"
:disabled="!allowEdit || !hasSensitiveDataFeature"
@click="onUpload"
>
{{ $t("settings.sensitive-data.classification.upload") }}
</NButton>
- <NButton type="primary" :disabled="!allowSave" @click="saveChanges">
- {{ $t("common.save") }}
- </NButton>
<input
ref="uploader"
type="file"
@@ -288,11 +286,8 @@ const onFileSelect = (file: File) => {
title: "Nothing changed",
});
}
- if (
- Object.keys(formerConfig.value.classification).length === 0 &&
- allowSave.value
- ) {
- upsertSetting();
+ if (allowSave.value) {
+ saveChanges();
}
};
fr.onerror = () => {
diff --git a/frontend/src/components/SensitiveData/types.ts b/frontend/src/components/SensitiveData/types.ts
index 80238c84cf..6ad690e6fa 100644
--- a/frontend/src/components/SensitiveData/types.ts
+++ b/frontend/src/components/SensitiveData/types.ts
@@ -1,7 +1,7 @@
import type { ComposedDatabase, DatabaseResource } from "@/types";
import { type User } from "@/types/proto/v1/auth_service";
import { MaskingLevel } from "@/types/proto/v1/common";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
import type {
MaskData,
MaskingExceptionPolicy_MaskingException_Action,
diff --git a/frontend/src/components/User/Settings/CreateGroupDrawer.vue b/frontend/src/components/User/Settings/CreateGroupDrawer.vue
index f4f3848e13..1166cb0a79 100644
--- a/frontend/src/components/User/Settings/CreateGroupDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateGroupDrawer.vue
@@ -95,7 +95,7 @@
<template #footer>
<div class="w-full flex justify-between items-center">
<RemoveGroupButton
- v-if="!isCreating"
+ v-if="!isCreating && allowDelete"
:group="group!"
@removed="$emit('close')"
>
@@ -151,7 +151,11 @@ import {
} from "@/store";
import { userNamePrefix, groupNamePrefix } from "@/store/modules/v1/common";
import { getUserEmailFromIdentifier } from "@/store/modules/v1/common";
-import { Group, GroupMember, GroupMember_Role } from "@/types/proto/v1/group";
+import {
+ Group,
+ GroupMember,
+ GroupMember_Role,
+} from "@/types/proto/v1/group_service";
import {
isValidEmail,
extractUserUID,
@@ -209,15 +213,21 @@ const workspaceDomain = computed(() =>
const disallowEditMember = computed(() => !!props.group?.source);
-const selfMemberInGroup = computed(() => {
- return props.group?.members.find(
- (member) =>
- getUserEmailFromIdentifier(member.member) === currentUserV1.value.email
+const isGroupOwner = computed(() => {
+ return (
+ props.group?.members.find(
+ (member) =>
+ getUserEmailFromIdentifier(member.member) === currentUserV1.value.email
+ )?.role === GroupMember_Role.OWNER
);
});
+const allowDelete = computed(() => {
+ return isGroupOwner.value || hasWorkspacePermissionV2("bb.groups.delete");
+});
+
const allowEdit = computed(() => {
- if (selfMemberInGroup.value?.role === GroupMember_Role.OWNER) {
+ if (isGroupOwner.value) {
return true;
}
return hasWorkspacePermissionV2(
diff --git a/frontend/src/components/User/Settings/RemoveGroupButton.vue b/frontend/src/components/User/Settings/RemoveGroupButton.vue
index 6cfa59f1e2..27aa668b94 100644
--- a/frontend/src/components/User/Settings/RemoveGroupButton.vue
+++ b/frontend/src/components/User/Settings/RemoveGroupButton.vue
@@ -33,7 +33,7 @@ import {
import { getProjectName } from "@/store/modules/v1/common";
import { getUserEmailFromIdentifier } from "@/store/modules/v1/common";
import { getGroupEmailInBinding } from "@/types";
-import { type Group, GroupMember_Role } from "@/types/proto/v1/group";
+import { type Group, GroupMember_Role } from "@/types/proto/v1/group_service";
import { PolicyType } from "@/types/proto/v1/org_policy_service";
import type { Project } from "@/types/proto/v1/project_service";
import { hasWorkspacePermissionV2 } from "@/utils";
diff --git a/frontend/src/components/User/Settings/UserDataTable/cells/GroupsCell.vue b/frontend/src/components/User/Settings/UserDataTable/cells/GroupsCell.vue
index b3abfbc1a1..f41a4cfada 100644
--- a/frontend/src/components/User/Settings/UserDataTable/cells/GroupsCell.vue
+++ b/frontend/src/components/User/Settings/UserDataTable/cells/GroupsCell.vue
@@ -18,7 +18,7 @@ import { computed } from "vue";
import { useGroupStore } from "@/store";
import { getUserEmailFromIdentifier } from "@/store/modules/v1/common";
import { type User } from "@/types/proto/v1/auth_service";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
const props = defineProps<{
user: User;
diff --git a/frontend/src/components/User/Settings/UserDataTable/index.vue b/frontend/src/components/User/Settings/UserDataTable/index.vue
index 138be446dd..4dcb415ec8 100644
--- a/frontend/src/components/User/Settings/UserDataTable/index.vue
+++ b/frontend/src/components/User/Settings/UserDataTable/index.vue
@@ -29,7 +29,7 @@ import { useI18n } from "vue-i18n";
import { BBAlert } from "@/bbkit";
import { useAppFeature, useUserStore, useWorkspaceV1Store } from "@/store";
import { type User } from "@/types/proto/v1/auth_service";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
import { copyServiceKeyToClipboardIfNeeded } from "../common";
import GroupsCell from "./cells/GroupsCell.vue";
import UserNameCell from "./cells/UserNameCell.vue";
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberNameCell.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberNameCell.vue
index 11b8e2d69c..5b724fefa0 100644
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberNameCell.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberNameCell.vue
@@ -59,7 +59,7 @@ import { UserType, type User } from "@/types/proto/v1/auth_service";
import {
GroupMember_Role,
groupMember_RoleToJSON,
-} from "@/types/proto/v1/group";
+} from "@/types/proto/v1/group_service";
withDefaults(
defineProps<{
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue
index d58c4435b3..e2d473bf5e 100644
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue
@@ -17,7 +17,7 @@ import { useI18n } from "vue-i18n";
import {
GroupMember_Role,
groupMember_RoleToJSON,
-} from "@/types/proto/v1/group";
+} from "@/types/proto/v1/group_service";
defineProps<{
value: GroupMember_Role;
@@ -31,14 +31,13 @@ defineEmits<{
const { t } = useI18n();
const options = computed(() => {
- return [
- GroupMember_Role.OWNER,
- GroupMember_Role.MEMBER,
- ].map<SelectOption>((role) => ({
- value: role,
- label: t(
- `settings.members.groups.form.role.${groupMember_RoleToJSON(role).toLowerCase()}`
- ),
- }));
+ return [GroupMember_Role.OWNER, GroupMember_Role.MEMBER].map<SelectOption>(
+ (role) => ({
+ value: role,
+ label: t(
+ `settings.members.groups.form.role.${groupMember_RoleToJSON(role).toLowerCase()}`
+ ),
+ })
+ );
});
</script>
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue
index 3f2bb26a3b..2add2f7664 100644
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue
@@ -47,7 +47,7 @@ import UserRolesCell from "@/components/Member/MemberDataTable/cells/UserRolesCe
import type { MemberRole } from "@/components/Member/types";
import { WORKSPACE_ROUTE_USERS } from "@/router/dashboard/workspaceRoutes";
import { extractGroupEmail, extractUserEmail, useCurrentUserV1 } from "@/store";
-import { Group } from "@/types/proto/v1/group";
+import { Group } from "@/types/proto/v1/group_service";
import { hasWorkspacePermissionV2 } from "@/utils";
const props = withDefaults(
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue
index 36946cedf1..5ee45ee09c 100644
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue
@@ -1,13 +1,13 @@
<template>
<div class="flex justify-end">
- <RemoveGroupButton :group="group!">
+ <RemoveGroupButton v-if="allowDeleteGroup" :group="group!">
<template #icon>
<Trash2Icon class="w-4 h-auto" />
</template>
</RemoveGroupButton>
<NButton
- v-if="allowEdit"
+ v-if="allowEditGroup"
quaternary
size="small"
@click="$emit('update-group')"
@@ -22,15 +22,37 @@
<script lang="ts" setup>
import { PencilIcon, Trash2Icon } from "lucide-vue-next";
import { NButton } from "naive-ui";
-import type { Group } from "@/types/proto/v1/group";
+import { computed } from "vue";
+import { useCurrentUserV1 } from "@/store";
+import { getUserEmailFromIdentifier } from "@/store/modules/v1/common";
+import type { Group } from "@/types/proto/v1/group_service";
+import { GroupMember_Role } from "@/types/proto/v1/group_service";
+import { hasWorkspacePermissionV2 } from "@/utils";
import RemoveGroupButton from "../../RemoveGroupButton.vue";
-defineProps<{
+const props = defineProps<{
group: Group;
- allowEdit: boolean;
}>();
defineEmits<{
(event: "update-group"): void;
}>();
+
+const currentUser = useCurrentUserV1();
+
+const isGroupOwner = computed(() => {
+ return (
+ props.group.members.find(
+ (m) => getUserEmailFromIdentifier(m.member) === currentUser.value.email
+ )?.role === GroupMember_Role.OWNER
+ );
+});
+
+const allowEditGroup = computed(() => {
+ return isGroupOwner.value || hasWorkspacePermissionV2("bb.groups.update");
+});
+
+const allowDeleteGroup = computed(() => {
+ return isGroupOwner.value || hasWorkspacePermissionV2("bb.groups.update");
+});
</script>
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
index 20cec4a9ec..7b7ca236d2 100644
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
@@ -18,7 +18,7 @@ import { useI18n } from "vue-i18n";
import { useUserStore } from "@/store";
import { getUserEmailFromIdentifier } from "@/store/modules/v1/common";
import { type User } from "@/types/proto/v1/auth_service";
-import { Group, GroupMember_Role } from "@/types/proto/v1/group";
+import { Group, GroupMember_Role } from "@/types/proto/v1/group_service";
import GroupMemberNameCell from "./cells/GroupMemberNameCell.vue";
import GroupNameCell from "./cells/GroupNameCell.vue";
import GroupOperationsCell from "./cells/GroupOperationsCell.vue";
@@ -41,7 +41,6 @@ const props = withDefaults(
defineProps<{
groups: Group[];
showGroupRole?: boolean;
- allowEdit: boolean;
onClickUser?: (user: User, event: MouseEvent) => void;
}>(),
{
@@ -88,7 +87,6 @@ const columns = computed(() => {
if (row.type === "group") {
return h(GroupOperationsCell, {
group: row.group,
- allowEdit: props.allowEdit,
"onUpdate-group": () => {
emit("update-group", row.group);
},
diff --git a/frontend/src/components/v2/Select/GroupSelect.vue b/frontend/src/components/v2/Select/GroupSelect.vue
index 7a96a1e75a..392f57ac35 100644
--- a/frontend/src/components/v2/Select/GroupSelect.vue
+++ b/frontend/src/components/v2/Select/GroupSelect.vue
@@ -25,7 +25,7 @@ import {
import GroupNameCell from "@/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue";
import { useGroupStore, useProjectV1Store, useWorkspaceV1Store } from "@/store";
import { PRESET_WORKSPACE_ROLES } from "@/types";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
export interface GroupSelectOption extends SelectOption {
value: string;
diff --git a/frontend/src/grpcweb/index.ts b/frontend/src/grpcweb/index.ts
index 77ebdec890..a6fbef5100 100644
--- a/frontend/src/grpcweb/index.ts
+++ b/frontend/src/grpcweb/index.ts
@@ -15,7 +15,7 @@ import { ChangelistServiceDefinition } from "@/types/proto/v1/changelist_service
import { DatabaseGroupServiceDefinition } from "@/types/proto/v1/database_group_service";
import { DatabaseServiceDefinition } from "@/types/proto/v1/database_service";
import { EnvironmentServiceDefinition } from "@/types/proto/v1/environment_service";
-import { GroupServiceDefinition } from "@/types/proto/v1/group";
+import { GroupServiceDefinition } from "@/types/proto/v1/group_service";
import { IdentityProviderServiceDefinition } from "@/types/proto/v1/idp_service";
import { InstanceServiceDefinition } from "@/types/proto/v1/instance_service";
import { IssueServiceDefinition } from "@/types/proto/v1/issue_service";
diff --git a/frontend/src/store/modules/v1/group.ts b/frontend/src/store/modules/v1/group.ts
index 4f4a5aef5e..09966e128b 100644
--- a/frontend/src/store/modules/v1/group.ts
+++ b/frontend/src/store/modules/v1/group.ts
@@ -2,7 +2,7 @@ import { orderBy } from "lodash-es";
import { defineStore } from "pinia";
import { computed, reactive } from "vue";
import { groupServiceClient } from "@/grpcweb";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
import { hasWorkspacePermissionV2 } from "@/utils";
import { groupNamePrefix } from "./common";
diff --git a/frontend/src/types/proto/v1/group.ts b/frontend/src/types/proto/v1/group_service.ts
similarity index 99%
rename from frontend/src/types/proto/v1/group.ts
rename to frontend/src/types/proto/v1/group_service.ts
index 4ad45b04d3..98ced7ef83 100644
--- a/frontend/src/types/proto/v1/group.ts
+++ b/frontend/src/types/proto/v1/group_service.ts
@@ -2,7 +2,7 @@
// versions:
// protoc-gen-ts_proto v2.2.0
// protoc unknown
-// source: v1/group.proto
+// source: v1/group_service.proto
/* eslint-disable */
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
@@ -971,7 +971,7 @@ export const GroupServiceDefinition = {
_unknownFields: {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
800010: [new Uint8Array([16, 98, 98, 46, 103, 114, 111, 117, 112, 115, 46, 100, 101, 108, 101, 116, 101])],
- 800016: [new Uint8Array([1])],
+ 800016: [new Uint8Array([2])],
578365826: [
new Uint8Array([
21,
diff --git a/frontend/src/types/v1/group.ts b/frontend/src/types/v1/group.ts
index 98ae85a675..ec88dc5256 100644
--- a/frontend/src/types/v1/group.ts
+++ b/frontend/src/types/v1/group.ts
@@ -1,6 +1,6 @@
import { groupNamePrefix } from "@/store/modules/v1/common";
import { EMPTY_ID, UNKNOWN_ID } from "../const";
-import { Group } from "../proto/v1/group";
+import { Group } from "../proto/v1/group_service";
export const UNKNOWN_GROUP_NAME = `${groupNamePrefix}${UNKNOWN_ID}`;
diff --git a/frontend/src/views/SettingWorkspaceUsers.vue b/frontend/src/views/SettingWorkspaceUsers.vue
index 13643039ef..2fc23328f7 100644
--- a/frontend/src/views/SettingWorkspaceUsers.vue
+++ b/frontend/src/views/SettingWorkspaceUsers.vue
@@ -42,7 +42,6 @@
<UserDataTableByGroup
:groups="filteredGroupList"
- :allow-edit="allowEditGroup"
:on-click-user="onClickUser"
@update-group="handleUpdateGroup"
/>
@@ -53,7 +52,7 @@
<SearchBox v-model:value="state.activeUserFilterText" />
<NButton
- v-if="allowGetSCIMSetting"
+ v-if="allowGetSCIMSetting && allowCreateUser"
class="capitalize"
@click="
() => {
@@ -193,7 +192,7 @@ import {
} from "@/types";
import { UserType, type User } from "@/types/proto/v1/auth_service";
import { State } from "@/types/proto/v1/common";
-import type { Group } from "@/types/proto/v1/group";
+import type { Group } from "@/types/proto/v1/group_service";
import { WorkspaceProfileSetting } from "@/types/proto/v1/setting_service";
import { hasWorkspacePermissionV2, hasWorkspaceLevelRole } from "@/utils";
@@ -281,10 +280,6 @@ const allowCreateUser = computed(() => {
return hasWorkspaceLevelRole(PresetRoleType.WORKSPACE_ADMIN);
});
-const allowEditGroup = computed(() => {
- return hasWorkspacePermissionV2("bb.groups.update");
-});
-
onMounted(() => {
if (!uiStateStore.getIntroStateByKey("member.visit")) {
uiStateStore.saveIntroStateByKey({
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index baf6be58c0..d7dba166cc 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -404,7 +404,7 @@
- [EnvironmentService](#bytebase-v1-EnvironmentService)
-- [v1/group.proto](#v1_group-proto)
+- [v1/group_service.proto](#v1_group_service-proto)
- [CreateGroupRequest](#bytebase-v1-CreateGroupRequest)
- [DeleteGroupRequest](#bytebase-v1-DeleteGroupRequest)
- [GetGroupRequest](#bytebase-v1-GetGroupRequest)
@@ -6781,10 +6781,10 @@ The environment&#39;s `name` field is used to identify the environment to update
-<a name="v1_group-proto"></a>
+<a name="v1_group_service-proto"></a>
<p align="right"><a href="#top">Top</a></p>
-## v1/group.proto
+## v1/group_service.proto
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 02d251fbf0..0001795bae 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -1717,7 +1717,7 @@
<li>
- <a href="#v1%2fgroup.proto">v1/group.proto</a>
+ <a href="#v1%2fgroup_service.proto">v1/group_service.proto</a>
<ul>
<li>
@@ -19156,7 +19156,7 @@ Format: environments/{environment} </p></td>
<div class="file-heading">
- <h2 id="v1/group.proto">v1/group.proto</h2><a href="#title">Top</a>
+ <h2 id="v1/group_service.proto">v1/group_service.proto</h2><a href="#title">Top</a>
</div>
<p></p>
diff --git a/proto/generated-go/v1/group.pb.go b/proto/generated-go/v1/group_service.pb.go
similarity index 56%
rename from proto/generated-go/v1/group.pb.go
rename to proto/generated-go/v1/group_service.pb.go
index 9a6493680d..49672c9bb1 100644
--- a/proto/generated-go/v1/group.pb.go
+++ b/proto/generated-go/v1/group_service.pb.go
@@ -2,7 +2,7 @@
// versions:
// protoc-gen-go v1.35.1
// protoc (unknown)
-// source: v1/group.proto
+// source: v1/group_service.proto
package v1
@@ -57,11 +57,11 @@ func (x GroupMember_Role) String() string {
}
func (GroupMember_Role) Descriptor() protoreflect.EnumDescriptor {
- return file_v1_group_proto_enumTypes[0].Descriptor()
+ return file_v1_group_service_proto_enumTypes[0].Descriptor()
}
func (GroupMember_Role) Type() protoreflect.EnumType {
- return &file_v1_group_proto_enumTypes[0]
+ return &file_v1_group_service_proto_enumTypes[0]
}
func (x GroupMember_Role) Number() protoreflect.EnumNumber {
@@ -70,7 +70,7 @@ func (x GroupMember_Role) Number() protoreflect.EnumNumber {
// Deprecated: Use GroupMember_Role.Descriptor instead.
func (GroupMember_Role) EnumDescriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{6, 0}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{6, 0}
}
type GetGroupRequest struct {
@@ -85,7 +85,7 @@ type GetGroupRequest struct {
func (x *GetGroupRequest) Reset() {
*x = GetGroupRequest{}
- mi := &file_v1_group_proto_msgTypes[0]
+ mi := &file_v1_group_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -97,7 +97,7 @@ func (x *GetGroupRequest) String() string {
func (*GetGroupRequest) ProtoMessage() {}
func (x *GetGroupRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[0]
+ mi := &file_v1_group_service_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -110,7 +110,7 @@ func (x *GetGroupRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.
func (*GetGroupRequest) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{0}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{0}
}
func (x *GetGroupRequest) GetName() string {
@@ -142,7 +142,7 @@ type ListGroupsRequest struct {
func (x *ListGroupsRequest) Reset() {
*x = ListGroupsRequest{}
- mi := &file_v1_group_proto_msgTypes[1]
+ mi := &file_v1_group_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -154,7 +154,7 @@ func (x *ListGroupsRequest) String() string {
func (*ListGroupsRequest) ProtoMessage() {}
func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[1]
+ mi := &file_v1_group_service_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -167,7 +167,7 @@ func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListGroupsRequest) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{1}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{1}
}
func (x *ListGroupsRequest) GetPageSize() int32 {
@@ -198,7 +198,7 @@ type ListGroupsResponse struct {
func (x *ListGroupsResponse) Reset() {
*x = ListGroupsResponse{}
- mi := &file_v1_group_proto_msgTypes[2]
+ mi := &file_v1_group_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -210,7 +210,7 @@ func (x *ListGroupsResponse) String() string {
func (*ListGroupsResponse) ProtoMessage() {}
func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[2]
+ mi := &file_v1_group_service_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -223,7 +223,7 @@ func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListGroupsResponse) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{2}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{2}
}
func (x *ListGroupsResponse) GetGroups() []*Group {
@@ -254,7 +254,7 @@ type CreateGroupRequest struct {
func (x *CreateGroupRequest) Reset() {
*x = CreateGroupRequest{}
- mi := &file_v1_group_proto_msgTypes[3]
+ mi := &file_v1_group_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -266,7 +266,7 @@ func (x *CreateGroupRequest) String() string {
func (*CreateGroupRequest) ProtoMessage() {}
func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[3]
+ mi := &file_v1_group_service_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -279,7 +279,7 @@ func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupRequest) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{3}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{3}
}
func (x *CreateGroupRequest) GetGroup() *Group {
@@ -315,7 +315,7 @@ type UpdateGroupRequest struct {
func (x *UpdateGroupRequest) Reset() {
*x = UpdateGroupRequest{}
- mi := &file_v1_group_proto_msgTypes[4]
+ mi := &file_v1_group_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -327,7 +327,7 @@ func (x *UpdateGroupRequest) String() string {
func (*UpdateGroupRequest) ProtoMessage() {}
func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[4]
+ mi := &file_v1_group_service_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -340,7 +340,7 @@ func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateGroupRequest) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{4}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{4}
}
func (x *UpdateGroupRequest) GetGroup() *Group {
@@ -376,7 +376,7 @@ type DeleteGroupRequest struct {
func (x *DeleteGroupRequest) Reset() {
*x = DeleteGroupRequest{}
- mi := &file_v1_group_proto_msgTypes[5]
+ mi := &file_v1_group_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -388,7 +388,7 @@ func (x *DeleteGroupRequest) String() string {
func (*DeleteGroupRequest) ProtoMessage() {}
func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[5]
+ mi := &file_v1_group_service_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -401,7 +401,7 @@ func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupRequest) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{5}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{5}
}
func (x *DeleteGroupRequest) GetName() string {
@@ -425,7 +425,7 @@ type GroupMember struct {
func (x *GroupMember) Reset() {
*x = GroupMember{}
- mi := &file_v1_group_proto_msgTypes[6]
+ mi := &file_v1_group_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -437,7 +437,7 @@ func (x *GroupMember) String() string {
func (*GroupMember) ProtoMessage() {}
func (x *GroupMember) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[6]
+ mi := &file_v1_group_service_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -450,7 +450,7 @@ func (x *GroupMember) ProtoReflect() protoreflect.Message {
// Deprecated: Use GroupMember.ProtoReflect.Descriptor instead.
func (*GroupMember) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{6}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{6}
}
func (x *GroupMember) GetMember() string {
@@ -489,7 +489,7 @@ type Group struct {
func (x *Group) Reset() {
*x = Group{}
- mi := &file_v1_group_proto_msgTypes[7]
+ mi := &file_v1_group_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -501,7 +501,7 @@ func (x *Group) String() string {
func (*Group) ProtoMessage() {}
func (x *Group) ProtoReflect() protoreflect.Message {
- mi := &file_v1_group_proto_msgTypes[7]
+ mi := &file_v1_group_service_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -514,7 +514,7 @@ func (x *Group) ProtoReflect() protoreflect.Message {
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) Descriptor() ([]byte, []int) {
- return file_v1_group_proto_rawDescGZIP(), []int{7}
+ return file_v1_group_service_proto_rawDescGZIP(), []int{7}
}
func (x *Group) GetName() string {
@@ -566,153 +566,153 @@ func (x *Group) GetSource() string {
return ""
}
-var File_v1_group_proto protoreflect.FileDescriptor
-
-var file_v1_group_proto_rawDesc = []byte{
- 0x0a, 0x0e, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 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, 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, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
- 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 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,
- 0x1a, 0x13, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
- 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x14, 0x0a,
- 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72,
- 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x11, 0x4c, 0x69, 0x73,
- 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
- 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x68, 0x0a, 0x12, 0x4c, 0x69,
- 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x2a, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
- 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 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, 0x6b, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72,
- 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x67, 0x72,
- 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x04, 0xe2,
- 0x41, 0x01, 0x02, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x0a, 0x0b, 0x67, 0x72,
- 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
- 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6d, 0x61, 0x69,
- 0x6c, 0x22, 0xa6, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75,
- 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75,
- 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01,
- 0x02, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 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, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d,
- 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c,
- 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x45, 0x0a, 0x12, 0x44, 0x65,
- 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+var File_v1_group_service_proto protoreflect.FileDescriptor
+
+var file_v1_group_service_proto_rawDesc = []byte{
+ 0x0a, 0x16, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 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, 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, 0x19, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 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, 0x1a, 0x13, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x6e,
+ 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, 0x0a,
+ 0x0f, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x2f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b,
0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x0b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
- 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x04, 0x72, 0x6f, 0x6c,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
- 0x72, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x33, 0x0a, 0x04,
- 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53,
- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57,
- 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10,
- 0x02, 0x22, 0xb1, 0x02, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 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, 0x20, 0x0a, 0x0b, 0x64,
- 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a,
- 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,
- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a,
- 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f,
- 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72,
- 0x73, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
- 0x18, 0x06, 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, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3a, 0x27, 0xea, 0x41,
- 0x24, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x67,
- 0x72, 0x6f, 0x75, 0x70, 0x7d, 0x32, 0xa0, 0x05, 0x0a, 0x0c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x75, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f,
- 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
- 0x72, 0x6f, 0x75, 0x70, 0x22, 0x37, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,
- 0x0d, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea,
- 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
- 0x61, 0x6d, 0x65, 0x3d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a,
- 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1e, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72,
- 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72,
- 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41,
- 0x00, 0x8a, 0xea, 0x30, 0x0e, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x6c,
- 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f,
- 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x7d, 0x0a, 0x0b, 0x43, 0x72, 0x65,
- 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f,
- 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x39, 0xda,
- 0x41, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x67, 0x72,
- 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82,
- 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x0a, 0x2f, 0x76,
- 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x98, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f,
- 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x54, 0xda,
- 0x41, 0x11, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
- 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73,
- 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x22, 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67,
- 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73,
- 0x2f, 0x2a, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72,
- 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x3a, 0xda, 0x41,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75,
- 0x70, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x15, 0x2a, 0x13, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x67,
- 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65,
- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x33,
+ 0x65, 0x22, 0x4f, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
+ 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x22, 0x68, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 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, 0x6b, 0x0a, 0x12,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x05, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x12, 0x25, 0x0a, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x6d, 0x61, 0x69,
+ 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0a, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0xa6, 0x01, 0x0a, 0x12, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x2e, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 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, 0x12, 0x23, 0x0a,
+ 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69,
+ 0x6e, 0x67, 0x22, 0x45, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x14, 0x0a,
+ 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x0b, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d,
+ 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65,
+ 0x72, 0x12, 0x31, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04,
+ 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x33, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x10,
+ 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a,
+ 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x22, 0xb1, 0x02, 0x0a, 0x05, 0x47, 0x72,
+ 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 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, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72,
+ 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
+ 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
+ 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 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, 0x04, 0xe2, 0x41, 0x01, 0x03,
+ 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06,
+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x3a, 0x27, 0xea, 0x41, 0x24, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x7d, 0x32, 0xa0, 0x05,
+ 0x0a, 0x0c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x75,
+ 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x37, 0xda, 0x41,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0d, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15,
+ 0x12, 0x13, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x67, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x73, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x0e, 0x62, 0x62, 0x2e,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x73, 0x12, 0x7d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x39, 0xda, 0x41, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x8a,
+ 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x05, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x22, 0x0a, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73,
+ 0x12, 0x98, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x54, 0xda, 0x41, 0x11, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x10, 0x62,
+ 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90,
+ 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,
+ 0x32, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0b,
+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x3a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,
+ 0x10, 0x62, 0x62, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x2a, 0x13, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d,
+ 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,
+ 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
- file_v1_group_proto_rawDescOnce sync.Once
- file_v1_group_proto_rawDescData = file_v1_group_proto_rawDesc
+ file_v1_group_service_proto_rawDescOnce sync.Once
+ file_v1_group_service_proto_rawDescData = file_v1_group_service_proto_rawDesc
)
-func file_v1_group_proto_rawDescGZIP() []byte {
- file_v1_group_proto_rawDescOnce.Do(func() {
- file_v1_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_group_proto_rawDescData)
+func file_v1_group_service_proto_rawDescGZIP() []byte {
+ file_v1_group_service_proto_rawDescOnce.Do(func() {
+ file_v1_group_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_group_service_proto_rawDescData)
})
- return file_v1_group_proto_rawDescData
+ return file_v1_group_service_proto_rawDescData
}
-var file_v1_group_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_v1_group_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
-var file_v1_group_proto_goTypes = []any{
+var file_v1_group_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_v1_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_v1_group_service_proto_goTypes = []any{
(GroupMember_Role)(0), // 0: bytebase.v1.GroupMember.Role
(*GetGroupRequest)(nil), // 1: bytebase.v1.GetGroupRequest
(*ListGroupsRequest)(nil), // 2: bytebase.v1.ListGroupsRequest
@@ -726,7 +726,7 @@ var file_v1_group_proto_goTypes = []any{
(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
(*emptypb.Empty)(nil), // 11: google.protobuf.Empty
}
-var file_v1_group_proto_depIdxs = []int32{
+var file_v1_group_service_proto_depIdxs = []int32{
8, // 0: bytebase.v1.ListGroupsResponse.groups:type_name -> bytebase.v1.Group
8, // 1: bytebase.v1.CreateGroupRequest.group:type_name -> bytebase.v1.Group
8, // 2: bytebase.v1.UpdateGroupRequest.group:type_name -> bytebase.v1.Group
@@ -751,9 +751,9 @@ var file_v1_group_proto_depIdxs = []int32{
0, // [0:7] is the sub-list for field type_name
}
-func init() { file_v1_group_proto_init() }
-func file_v1_group_proto_init() {
- if File_v1_group_proto != nil {
+func init() { file_v1_group_service_proto_init() }
+func file_v1_group_service_proto_init() {
+ if File_v1_group_service_proto != nil {
return
}
file_v1_annotation_proto_init()
@@ -761,19 +761,19 @@ func file_v1_group_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_v1_group_proto_rawDesc,
+ RawDescriptor: file_v1_group_service_proto_rawDesc,
NumEnums: 1,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
- GoTypes: file_v1_group_proto_goTypes,
- DependencyIndexes: file_v1_group_proto_depIdxs,
- EnumInfos: file_v1_group_proto_enumTypes,
- MessageInfos: file_v1_group_proto_msgTypes,
+ GoTypes: file_v1_group_service_proto_goTypes,
+ DependencyIndexes: file_v1_group_service_proto_depIdxs,
+ EnumInfos: file_v1_group_service_proto_enumTypes,
+ MessageInfos: file_v1_group_service_proto_msgTypes,
}.Build()
- File_v1_group_proto = out.File
- file_v1_group_proto_rawDesc = nil
- file_v1_group_proto_goTypes = nil
- file_v1_group_proto_depIdxs = nil
+ File_v1_group_service_proto = out.File
+ file_v1_group_service_proto_rawDesc = nil
+ file_v1_group_service_proto_goTypes = nil
+ file_v1_group_service_proto_depIdxs = nil
}
diff --git a/proto/generated-go/v1/group.pb.gw.go b/proto/generated-go/v1/group_service.pb.gw.go
similarity index 99%
rename from proto/generated-go/v1/group.pb.gw.go
rename to proto/generated-go/v1/group_service.pb.gw.go
index 8cd23196cc..4f311fe722 100644
--- a/proto/generated-go/v1/group.pb.gw.go
+++ b/proto/generated-go/v1/group_service.pb.gw.go
@@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
-// source: v1/group.proto
+// source: v1/group_service.proto
/*
Package v1 is a reverse proxy.
diff --git a/proto/generated-go/v1/group_grpc.pb.go b/proto/generated-go/v1/group_service_grpc.pb.go
similarity index 99%
rename from proto/generated-go/v1/group_grpc.pb.go
rename to proto/generated-go/v1/group_service_grpc.pb.go
index 8b88bca8eb..89cb3e3b48 100644
--- a/proto/generated-go/v1/group_grpc.pb.go
+++ b/proto/generated-go/v1/group_service_grpc.pb.go
@@ -2,7 +2,7 @@
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
-// source: v1/group.proto
+// source: v1/group_service.proto
package v1
@@ -274,5 +274,5 @@ var GroupService_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
- Metadata: "v1/group.proto",
+ Metadata: "v1/group_service.proto",
}
diff --git a/proto/v1/group.proto b/proto/v1/group_service.proto
similarity index 99%
rename from proto/v1/group.proto
rename to proto/v1/group_service.proto
index f0ea784c05..4bca839fed 100644
--- a/proto/v1/group.proto
+++ b/proto/v1/group_service.proto
@@ -54,7 +54,7 @@ service GroupService {
option (google.api.http) = {delete: "/v1/{name=groups/*}"};
option (google.api.method_signature) = "name";
option (bytebase.v1.permission) = "bb.groups.delete";
- option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.auth_method) = CUSTOM;
}
}