Skip to content

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

chore: rename issue part 2 (#6929)

Danny Xud1b9d38574c8
diff --git a/backend/api/v1/issue_service.go b/backend/api/v1/issue_service.go
index a16bb32f9e..24ee2a7582 100644
--- a/backend/api/v1/issue_service.go
+++ b/backend/api/v1/issue_service.go
@@ -31,9 +31,9 @@ import (
v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"
)
-// ReviewService implements the review service.
-type ReviewService struct {
- v1pb.UnimplementedReviewServiceServer
+// IssueService implements the review service.
+type IssueService struct {
+ v1pb.UnimplementedIssueServiceServer
store *store.Store
activityManager *activity.Manager
taskScheduler *taskrun.Scheduler
@@ -42,9 +42,9 @@ type ReviewService struct {
stateCfg *state.State
}
-// NewReviewService creates a new ReviewService.
-func NewReviewService(store *store.Store, activityManager *activity.Manager, taskScheduler *taskrun.Scheduler, taskCheckScheduler *taskcheck.Scheduler, relayRunner *relay.Runner, stateCfg *state.State) *ReviewService {
- return &ReviewService{
+// NewIssueService creates a new IssueService.
+func NewIssueService(store *store.Store, activityManager *activity.Manager, taskScheduler *taskrun.Scheduler, taskCheckScheduler *taskcheck.Scheduler, relayRunner *relay.Runner, stateCfg *state.State) *IssueService {
+ return &IssueService{
store: store,
activityManager: activityManager,
taskScheduler: taskScheduler,
@@ -56,7 +56,7 @@ func NewReviewService(store *store.Store, activityManager *activity.Manager, tas
// GetReview gets a review.
// Currently, only review.ApprovalTemplates and review.Approvers are set.
-func (s *ReviewService) GetReview(ctx context.Context, request *v1pb.GetReviewRequest) (*v1pb.Review, error) {
+func (s *IssueService) GetReview(ctx context.Context, request *v1pb.GetReviewRequest) (*v1pb.Review, error) {
issue, err := s.getIssue(ctx, request.Name)
if err != nil {
return nil, err
@@ -99,7 +99,7 @@ func (s *ReviewService) GetReview(ctx context.Context, request *v1pb.GetReviewRe
}
// ApproveReview approves the approval flow of the review.
-func (s *ReviewService) ApproveReview(ctx context.Context, request *v1pb.ApproveReviewRequest) (*v1pb.Review, error) {
+func (s *IssueService) ApproveReview(ctx context.Context, request *v1pb.ApproveReviewRequest) (*v1pb.Review, error) {
issue, err := s.getIssue(ctx, request.Name)
if err != nil {
return nil, err
@@ -327,7 +327,7 @@ func (s *ReviewService) ApproveReview(ctx context.Context, request *v1pb.Approve
}
// RejectReview rejects a review.
-func (s *ReviewService) RejectReview(ctx context.Context, request *v1pb.RejectReviewRequest) (*v1pb.Review, error) {
+func (s *IssueService) RejectReview(ctx context.Context, request *v1pb.RejectReviewRequest) (*v1pb.Review, error) {
issue, err := s.getIssue(ctx, request.Name)
if err != nil {
return nil, err
@@ -433,7 +433,7 @@ func (s *ReviewService) RejectReview(ctx context.Context, request *v1pb.RejectRe
}
// RequestReview requests a review.
-func (s *ReviewService) RequestReview(ctx context.Context, request *v1pb.RequestReviewRequest) (*v1pb.Review, error) {
+func (s *IssueService) RequestReview(ctx context.Context, request *v1pb.RequestReviewRequest) (*v1pb.Review, error) {
issue, err := s.getIssue(ctx, request.Name)
if err != nil {
return nil, err
@@ -544,7 +544,7 @@ func (s *ReviewService) RequestReview(ctx context.Context, request *v1pb.Request
// UpdateReview updates the review.
// It can only update approval_finding_done to false.
-func (s *ReviewService) UpdateReview(ctx context.Context, request *v1pb.UpdateReviewRequest) (*v1pb.Review, error) {
+func (s *IssueService) UpdateReview(ctx context.Context, request *v1pb.UpdateReviewRequest) (*v1pb.Review, error) {
principalID := ctx.Value(common.PrincipalIDContextKey).(int)
if request.UpdateMask == nil {
return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")
@@ -604,7 +604,7 @@ func (s *ReviewService) UpdateReview(ctx context.Context, request *v1pb.UpdateRe
}
// CreateReviewComment creates the review comment.
-func (s *ReviewService) CreateReviewComment(ctx context.Context, request *v1pb.CreateReviewCommentRequest) (*v1pb.ReviewComment, error) {
+func (s *IssueService) CreateReviewComment(ctx context.Context, request *v1pb.CreateReviewCommentRequest) (*v1pb.ReviewComment, error) {
if request.ReviewComment.Comment == "" {
return nil, status.Errorf(codes.InvalidArgument, "review comment is empty")
}
@@ -649,7 +649,7 @@ func (s *ReviewService) CreateReviewComment(ctx context.Context, request *v1pb.C
}
// UpdateReviewComment updates the review comment.
-func (s *ReviewService) UpdateReviewComment(ctx context.Context, request *v1pb.UpdateReviewCommentRequest) (*v1pb.ReviewComment, error) {
+func (s *IssueService) UpdateReviewComment(ctx context.Context, request *v1pb.UpdateReviewCommentRequest) (*v1pb.ReviewComment, error) {
if request.UpdateMask.Paths == nil {
return nil, status.Errorf(codes.InvalidArgument, "update_mask is required")
}
@@ -691,7 +691,7 @@ func (s *ReviewService) UpdateReviewComment(ctx context.Context, request *v1pb.U
}, nil
}
-func (s *ReviewService) onReviewApproved(ctx context.Context, issue *store.IssueMessage) {
+func (s *IssueService) onReviewApproved(ctx context.Context, issue *store.IssueMessage) {
if issue.Type == api.IssueGrantRequest {
if err := func() error {
payload := &storepb.IssuePayload{}
@@ -714,7 +714,7 @@ func (s *ReviewService) onReviewApproved(ctx context.Context, issue *store.Issue
}
}
-func (s *ReviewService) getIssue(ctx context.Context, name string) (*store.IssueMessage, error) {
+func (s *IssueService) getIssue(ctx context.Context, name string) (*store.IssueMessage, error) {
reviewID, err := getReviewID(name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
diff --git a/backend/server/server.go b/backend/server/server.go
index 83b739d343..23e0e20e24 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -591,7 +591,7 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {
v1pb.RegisterSQLServiceServer(s.grpcServer, v1.NewSQLService(s.store, s.SchemaSyncer, s.dbFactory, s.ActivityManager))
v1pb.RegisterExternalVersionControlServiceServer(s.grpcServer, v1.NewExternalVersionControlService(s.store))
v1pb.RegisterRiskServiceServer(s.grpcServer, v1.NewRiskService(s.store, s.licenseService))
- v1pb.RegisterReviewServiceServer(s.grpcServer, v1.NewReviewService(s.store, s.ActivityManager, s.TaskScheduler, s.TaskCheckScheduler, s.RelayRunner, s.stateCfg))
+ v1pb.RegisterIssueServiceServer(s.grpcServer, v1.NewIssueService(s.store, s.ActivityManager, s.TaskScheduler, s.TaskCheckScheduler, s.RelayRunner, s.stateCfg))
v1pb.RegisterRolloutServiceServer(s.grpcServer, v1.NewRolloutService(s.store, s.licenseService, s.dbFactory, s.TaskScheduler, s.TaskCheckScheduler, s.stateCfg, s.ActivityManager))
v1pb.RegisterRoleServiceServer(s.grpcServer, v1.NewRoleService(s.store, s.licenseService))
v1pb.RegisterSheetServiceServer(s.grpcServer, v1.NewSheetService(s.store, s.licenseService))
diff --git a/backend/tests/external_approval_test.go b/backend/tests/external_approval_test.go
index 52c35029f6..478f855dad 100644
--- a/backend/tests/external_approval_test.go
+++ b/backend/tests/external_approval_test.go
@@ -170,7 +170,7 @@ func TestExternalApprovalFeishu_AllUserCanBeFound(t *testing.T) {
a.NoError(err)
for {
- review, err := ctl.reviewServiceClient.GetReview(ctx, &v1pb.GetReviewRequest{
+ review, err := ctl.issueServiceClient.GetReview(ctx, &v1pb.GetReviewRequest{
Name: fmt.Sprintf("projects/%d/reviews/%d", issue.ProjectID, issue.ID),
})
a.NoError(err)
@@ -361,7 +361,7 @@ func TestExternalApprovalFeishu_AssigneeCanBeFound(t *testing.T) {
a.NoError(err)
for {
- review, err := ctl.reviewServiceClient.GetReview(ctx, &v1pb.GetReviewRequest{
+ review, err := ctl.issueServiceClient.GetReview(ctx, &v1pb.GetReviewRequest{
Name: fmt.Sprintf("projects/%d/reviews/%d", issue.ProjectID, issue.ID),
})
a.NoError(err)
diff --git a/backend/tests/issue.go b/backend/tests/issue.go
index 14c3ac741d..36f3951605 100644
--- a/backend/tests/issue.go
+++ b/backend/tests/issue.go
@@ -287,7 +287,7 @@ func (ctl *controller) waitIssuePipelineTaskImpl(ctx context.Context, id int, ap
return api.TaskFailed, err
}
- review, err := ctl.reviewServiceClient.GetReview(ctx, &v1.GetReviewRequest{
+ review, err := ctl.issueServiceClient.GetReview(ctx, &v1.GetReviewRequest{
Name: fmt.Sprintf("projects/%d/reviews/%d", issue.ProjectID, issue.ID),
})
if err != nil {
diff --git a/backend/tests/tests.go b/backend/tests/tests.go
index ece84cd849..4c6ff8175e 100644
--- a/backend/tests/tests.go
+++ b/backend/tests/tests.go
@@ -161,7 +161,7 @@ type controller struct {
profile componentConfig.Profile
client *http.Client
grpcConn *grpc.ClientConn
- reviewServiceClient v1pb.ReviewServiceClient
+ issueServiceClient v1pb.IssueServiceClient
orgPolicyServiceClient v1pb.OrgPolicyServiceClient
projectServiceClient v1pb.ProjectServiceClient
authServiceClient v1pb.AuthServiceClient
@@ -435,7 +435,7 @@ func (ctl *controller) start(ctx context.Context, port int) (context.Context, er
return nil, errors.Wrap(err, "failed to dial grpc")
}
ctl.grpcConn = grpcConn
- ctl.reviewServiceClient = v1pb.NewReviewServiceClient(ctl.grpcConn)
+ ctl.issueServiceClient = v1pb.NewIssueServiceClient(ctl.grpcConn)
ctl.orgPolicyServiceClient = v1pb.NewOrgPolicyServiceClient(ctl.grpcConn)
ctl.projectServiceClient = v1pb.NewProjectServiceClient(ctl.grpcConn)
ctl.authServiceClient = v1pb.NewAuthServiceClient(ctl.grpcConn)
diff --git a/frontend/src/grpcweb/index.ts b/frontend/src/grpcweb/index.ts
index 523e2888f7..6bea61a657 100644
--- a/frontend/src/grpcweb/index.ts
+++ b/frontend/src/grpcweb/index.ts
@@ -18,7 +18,7 @@ import { ProjectServiceDefinition } from "@/types/proto/v1/project_service";
import { SQLServiceDefinition } from "@/types/proto/v1/sql_service";
import { RiskServiceDefinition } from "@/types/proto/v1/risk_service";
import { SettingServiceDefinition } from "@/types/proto/v1/setting_service";
-import { ReviewServiceDefinition } from "@/types/proto/v1/issue_service";
+import { IssueServiceDefinition } from "@/types/proto/v1/issue_service";
import { DatabaseServiceDefinition } from "@/types/proto/v1/database_service";
import { SheetServiceDefinition } from "@/types/proto/v1/sheet_service";
import { InstanceRoleServiceDefinition } from "@/types/proto/v1/instance_role_service";
@@ -121,8 +121,8 @@ export const sheetServiceClient = clientFactory.create(
channel
);
-export const reviewServiceClient = clientFactory.create(
- ReviewServiceDefinition,
+export const issueServiceClient = clientFactory.create(
+ IssueServiceDefinition,
channel
);
diff --git a/frontend/src/plugins/issue/logic/review/context.ts b/frontend/src/plugins/issue/logic/review/context.ts
index 483d25cd5e..6d7e633875 100644
--- a/frontend/src/plugins/issue/logic/review/context.ts
+++ b/frontend/src/plugins/issue/logic/review/context.ts
@@ -1,8 +1,5 @@
import { ReviewFlow } from "@/types";
-import {
- Review,
- Review_Approver_Status,
-} from "@/types/proto/v1/issue_service";
+import { Review, Review_Approver_Status } from "@/types/proto/v1/issue_service";
import { inject, provide, type InjectionKey, type Ref } from "vue";
export type IssueReviewContext = {
diff --git a/frontend/src/store/modules/review.ts b/frontend/src/store/modules/review.ts
index 199e0bcbbc..07f8f26de1 100644
--- a/frontend/src/store/modules/review.ts
+++ b/frontend/src/store/modules/review.ts
@@ -10,7 +10,7 @@ import {
ApprovalNode_GroupValue,
} from "@/types/proto/v1/issue_service";
import { useUserStore } from "./user";
-import { reviewServiceClient } from "@/grpcweb";
+import { issueServiceClient } from "@/grpcweb";
import { User, UserRole, UserType } from "@/types/proto/v1/auth_service";
import { extractUserResourceName, memberListInProjectV1 } from "@/utils";
import { useProjectV1Store } from "./v1";
@@ -42,7 +42,7 @@ export const useReviewStore = defineStore("review", () => {
const name = reviewName(issue);
try {
- const review = await reviewServiceClient.getReview({
+ const review = await issueServiceClient.getReview({
name,
force,
});
@@ -54,7 +54,7 @@ export const useReviewStore = defineStore("review", () => {
};
const approveReview = async (issue: Issue, comment?: string) => {
- const review = await reviewServiceClient.approveReview({
+ const review = await issueServiceClient.approveReview({
name: reviewName(issue),
comment,
});
@@ -62,7 +62,7 @@ export const useReviewStore = defineStore("review", () => {
};
const rejectReview = async (issue: Issue, comment?: string) => {
- const review = await reviewServiceClient.rejectReview({
+ const review = await issueServiceClient.rejectReview({
name: reviewName(issue),
comment,
});
@@ -70,7 +70,7 @@ export const useReviewStore = defineStore("review", () => {
};
const requestReview = async (issue: Issue, comment?: string) => {
- const review = await reviewServiceClient.requestReview({
+ const review = await issueServiceClient.requestReview({
name: reviewName(issue),
comment,
});
@@ -78,7 +78,7 @@ export const useReviewStore = defineStore("review", () => {
};
const regenerateReview = async (issue: Issue) => {
- const review = await reviewServiceClient.updateReview({
+ const review = await issueServiceClient.updateReview({
review: {
name: reviewName(issue),
approvalFindingDone: false,
diff --git a/frontend/src/store/modules/v1/review.ts b/frontend/src/store/modules/v1/review.ts
index 5de628f81c..8b574cfe13 100644
--- a/frontend/src/store/modules/v1/review.ts
+++ b/frontend/src/store/modules/v1/review.ts
@@ -1,6 +1,6 @@
import { defineStore } from "pinia";
-import { reviewServiceClient } from "@/grpcweb";
+import { issueServiceClient } from "@/grpcweb";
import { useActivityV1Store } from "./activity";
import { IdType, ActivityIssueCommentCreatePayload } from "@/types";
import { projectNamePrefix, reviewNamePrefix } from "./common";
@@ -15,7 +15,7 @@ export const useReviewV1Store = defineStore("review_v1", () => {
comment: string;
payload?: ActivityIssueCommentCreatePayload;
}) => {
- await reviewServiceClient.createReviewComment({
+ await issueServiceClient.createReviewComment({
parent: `${projectNamePrefix}-/${reviewNamePrefix}${reviewId}`,
reviewComment: {
comment,
@@ -34,7 +34,7 @@ export const useReviewV1Store = defineStore("review_v1", () => {
reviewId: IdType;
comment: string;
}) => {
- await reviewServiceClient.updateReviewComment({
+ await issueServiceClient.updateReviewComment({
parent: `${projectNamePrefix}-/${reviewNamePrefix}${reviewId}`,
reviewComment: {
uid: commentId,
diff --git a/frontend/src/types/proto/v1/issue_service.ts b/frontend/src/types/proto/v1/issue_service.ts
index cbbe70588a..c1deee36a0 100644
--- a/frontend/src/types/proto/v1/issue_service.ts
+++ b/frontend/src/types/proto/v1/issue_service.ts
@@ -2159,10 +2159,10 @@ export const ReviewComment = {
},
};
-export type ReviewServiceDefinition = typeof ReviewServiceDefinition;
-export const ReviewServiceDefinition = {
- name: "ReviewService",
- fullName: "bytebase.v1.ReviewService",
+export type IssueServiceDefinition = typeof IssueServiceDefinition;
+export const IssueServiceDefinition = {
+ name: "IssueService",
+ fullName: "bytebase.v1.IssueService",
methods: {
getReview: {
name: "GetReview",
@@ -2849,7 +2849,7 @@ export const ReviewServiceDefinition = {
},
} as const;
-export interface ReviewServiceImplementation<CallContextExt = {}> {
+export interface IssueServiceImplementation<CallContextExt = {}> {
getReview(request: GetReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;
createReview(request: CreateReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;
listReviews(
@@ -2874,7 +2874,7 @@ export interface ReviewServiceImplementation<CallContextExt = {}> {
requestReview(request: RequestReviewRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Review>>;
}
-export interface ReviewServiceClient<CallOptionsExt = {}> {
+export interface IssueServiceClient<CallOptionsExt = {}> {
getReview(request: DeepPartial<GetReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;
createReview(request: DeepPartial<CreateReviewRequest>, options?: CallOptions & CallOptionsExt): Promise<Review>;
listReviews(
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index aec9759b19..13c09cab9b 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -321,7 +321,7 @@
- [Review.Approver.Status](#bytebase-v1-Review-Approver-Status)
- [ReviewStatus](#bytebase-v1-ReviewStatus)
- - [ReviewService](#bytebase-v1-ReviewService)
+ - [IssueService](#bytebase-v1-IssueService)
- [v1/project_service.proto](#v1_project_service-proto)
- [Activity](#bytebase-v1-Activity)
@@ -5159,9 +5159,9 @@ ANY means approving any node will proceed.
-<a name="bytebase-v1-ReviewService"></a>
+<a name="bytebase-v1-IssueService"></a>
-### ReviewService
+### IssueService
| Method Name | Request Type | Response Type | Description |
diff --git a/proto/generated-go/v1/issue_service.pb.go b/proto/generated-go/v1/issue_service.pb.go
index e85ce75fe9..22887b2626 100644
--- a/proto/generated-go/v1/issue_service.pb.go
+++ b/proto/generated-go/v1/issue_service.pb.go
@@ -1824,100 +1824,100 @@ var file_v1_issue_service_proto_rawDesc = []byte{
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, 0xb3, 0x0b, 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,
- 0x86, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,
- 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
- 0x72, 0x65, 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, 0x3f, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a,
- 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x22, 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, 0x82, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73,
- 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xb2, 0x0b, 0x0a,
+ 0x0c, 0x49, 0x73, 0x73, 0x75, 0x65, 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, 0x86,
+ 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12,
+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,
+ 0x65, 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, 0x3f, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x06,
+ 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x22, 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, 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, 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,
+ 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, 0xb5, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69,
+ 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65,
+ 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x59,
+ 0xda, 0x41, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,
+ 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x0e,
+ 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x29,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0xc1, 0x01, 0x0a, 0x13, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x12, 0x27, 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, 0x43, 0x6f, 0x6d, 0x6d,
+ 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x65, 0xda, 0x41, 0x21, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
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, 0xb5, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76,
- 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,
- 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22,
- 0x59, 0xda, 0x41, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x65,
- 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a,
- 0x0e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22,
- 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,
+ 0x02, 0x3b, 0x3a, 0x0e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
+ 0x6e, 0x74, 0x32, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,
+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65,
+ 0x77, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 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, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0xc1, 0x01, 0x0a, 0x13, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
- 0x6e, 0x74, 0x12, 0x27, 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, 0x43, 0x6f, 0x6d,
- 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,
- 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x65, 0xda, 0x41, 0x21, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
- 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x3b, 0x3a, 0x0e, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
- 0x65, 0x6e, 0x74, 0x32, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69,
- 0x65, 0x77, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 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, 0x12, 0x78, 0x0a, 0x0c, 0x52,
- 0x65, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x20, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 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, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 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, 0x72,
- 0x65, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x7b, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 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, 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, 0x72, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 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,
+ 0x2a, 0x7d, 0x3a, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x78, 0x0a, 0x0c, 0x52, 0x65,
+ 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6a, 0x65, 0x63, 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, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 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, 0x72, 0x65,
+ 0x6a, 0x65, 0x63, 0x74, 0x12, 0x7b, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52,
+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 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, 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, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 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 (
@@ -1986,26 +1986,26 @@ var file_v1_issue_service_proto_depIdxs = []int32{
25, // 20: bytebase.v1.ReviewComment.create_time:type_name -> google.protobuf.Timestamp
25, // 21: bytebase.v1.ReviewComment.update_time:type_name -> google.protobuf.Timestamp
1, // 22: bytebase.v1.Review.Approver.status:type_name -> bytebase.v1.Review.Approver.Status
- 5, // 23: bytebase.v1.ReviewService.GetReview:input_type -> bytebase.v1.GetReviewRequest
- 6, // 24: bytebase.v1.ReviewService.CreateReview:input_type -> bytebase.v1.CreateReviewRequest
- 7, // 25: bytebase.v1.ReviewService.ListReviews:input_type -> bytebase.v1.ListReviewsRequest
- 9, // 26: bytebase.v1.ReviewService.UpdateReview:input_type -> bytebase.v1.UpdateReviewRequest
- 20, // 27: bytebase.v1.ReviewService.CreateReviewComment:input_type -> bytebase.v1.CreateReviewCommentRequest
- 21, // 28: bytebase.v1.ReviewService.UpdateReviewComment:input_type -> bytebase.v1.UpdateReviewCommentRequest
- 10, // 29: bytebase.v1.ReviewService.BatchUpdateReviews:input_type -> bytebase.v1.BatchUpdateReviewsRequest
- 12, // 30: bytebase.v1.ReviewService.ApproveReview:input_type -> bytebase.v1.ApproveReviewRequest
- 13, // 31: bytebase.v1.ReviewService.RejectReview:input_type -> bytebase.v1.RejectReviewRequest
- 14, // 32: bytebase.v1.ReviewService.RequestReview:input_type -> bytebase.v1.RequestReviewRequest
- 15, // 33: bytebase.v1.ReviewService.GetReview:output_type -> bytebase.v1.Review
- 15, // 34: bytebase.v1.ReviewService.CreateReview:output_type -> bytebase.v1.Review
- 8, // 35: bytebase.v1.ReviewService.ListReviews:output_type -> bytebase.v1.ListReviewsResponse
- 15, // 36: bytebase.v1.ReviewService.UpdateReview:output_type -> bytebase.v1.Review
- 22, // 37: bytebase.v1.ReviewService.CreateReviewComment:output_type -> bytebase.v1.ReviewComment
- 22, // 38: bytebase.v1.ReviewService.UpdateReviewComment:output_type -> bytebase.v1.ReviewComment
- 11, // 39: bytebase.v1.ReviewService.BatchUpdateReviews:output_type -> bytebase.v1.BatchUpdateReviewsResponse
- 15, // 40: bytebase.v1.ReviewService.ApproveReview:output_type -> bytebase.v1.Review
- 15, // 41: bytebase.v1.ReviewService.RejectReview:output_type -> bytebase.v1.Review
- 15, // 42: bytebase.v1.ReviewService.RequestReview:output_type -> bytebase.v1.Review
+ 5, // 23: bytebase.v1.IssueService.GetReview:input_type -> bytebase.v1.GetReviewRequest
+ 6, // 24: bytebase.v1.IssueService.CreateReview:input_type -> bytebase.v1.CreateReviewRequest
+ 7, // 25: bytebase.v1.IssueService.ListReviews:input_type -> bytebase.v1.ListReviewsRequest
+ 9, // 26: bytebase.v1.IssueService.UpdateReview:input_type -> bytebase.v1.UpdateReviewRequest
+ 20, // 27: bytebase.v1.IssueService.CreateReviewComment:input_type -> bytebase.v1.CreateReviewCommentRequest
+ 21, // 28: bytebase.v1.IssueService.UpdateReviewComment:input_type -> bytebase.v1.UpdateReviewCommentRequest
+ 10, // 29: bytebase.v1.IssueService.BatchUpdateReviews:input_type -> bytebase.v1.BatchUpdateReviewsRequest
+ 12, // 30: bytebase.v1.IssueService.ApproveReview:input_type -> bytebase.v1.ApproveReviewRequest
+ 13, // 31: bytebase.v1.IssueService.RejectReview:input_type -> bytebase.v1.RejectReviewRequest
+ 14, // 32: bytebase.v1.IssueService.RequestReview:input_type -> bytebase.v1.RequestReviewRequest
+ 15, // 33: bytebase.v1.IssueService.GetReview:output_type -> bytebase.v1.Review
+ 15, // 34: bytebase.v1.IssueService.CreateReview:output_type -> bytebase.v1.Review
+ 8, // 35: bytebase.v1.IssueService.ListReviews:output_type -> bytebase.v1.ListReviewsResponse
+ 15, // 36: bytebase.v1.IssueService.UpdateReview:output_type -> bytebase.v1.Review
+ 22, // 37: bytebase.v1.IssueService.CreateReviewComment:output_type -> bytebase.v1.ReviewComment
+ 22, // 38: bytebase.v1.IssueService.UpdateReviewComment:output_type -> bytebase.v1.ReviewComment
+ 11, // 39: bytebase.v1.IssueService.BatchUpdateReviews:output_type -> bytebase.v1.BatchUpdateReviewsResponse
+ 15, // 40: bytebase.v1.IssueService.ApproveReview:output_type -> bytebase.v1.Review
+ 15, // 41: bytebase.v1.IssueService.RejectReview:output_type -> bytebase.v1.Review
+ 15, // 42: bytebase.v1.IssueService.RequestReview:output_type -> bytebase.v1.Review
33, // [33:43] is the sub-list for method output_type
23, // [23:33] is the sub-list for method input_type
23, // [23:23] is the sub-list for extension type_name
diff --git a/proto/generated-go/v1/issue_service.pb.gw.go b/proto/generated-go/v1/issue_service.pb.gw.go
index 913cea1d10..c1c443fa9c 100644
--- a/proto/generated-go/v1/issue_service.pb.gw.go
+++ b/proto/generated-go/v1/issue_service.pb.gw.go
@@ -32,10 +32,10 @@ var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
- filter_ReviewService_GetReview_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
+ filter_IssueService_GetReview_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
)
-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) {
+func request_IssueService_GetReview_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetReviewRequest
var metadata runtime.ServerMetadata
@@ -59,7 +59,7 @@ func request_ReviewService_GetReview_0(ctx context.Context, marshaler runtime.Ma
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_GetReview_0); err != nil {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_GetReview_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -68,7 +68,7 @@ func request_ReviewService_GetReview_0(ctx context.Context, marshaler runtime.Ma
}
-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) {
+func local_request_IssueService_GetReview_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetReviewRequest
var metadata runtime.ServerMetadata
@@ -92,7 +92,7 @@ func local_request_ReviewService_GetReview_0(ctx context.Context, marshaler runt
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_GetReview_0); err != nil {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_GetReview_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -101,7 +101,7 @@ func local_request_ReviewService_GetReview_0(ctx context.Context, marshaler runt
}
-func request_ReviewService_CreateReview_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func request_IssueService_CreateReview_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq CreateReviewRequest
var metadata runtime.ServerMetadata
@@ -135,7 +135,7 @@ func request_ReviewService_CreateReview_0(ctx context.Context, marshaler runtime
}
-func local_request_ReviewService_CreateReview_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func local_request_IssueService_CreateReview_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq CreateReviewRequest
var metadata runtime.ServerMetadata
@@ -170,10 +170,10 @@ func local_request_ReviewService_CreateReview_0(ctx context.Context, marshaler r
}
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}}
+ filter_IssueService_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) {
+func request_IssueService_ListReviews_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListReviewsRequest
var metadata runtime.ServerMetadata
@@ -197,7 +197,7 @@ func request_ReviewService_ListReviews_0(ctx context.Context, marshaler runtime.
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 {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_ListReviews_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -206,7 +206,7 @@ func request_ReviewService_ListReviews_0(ctx context.Context, marshaler runtime.
}
-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) {
+func local_request_IssueService_ListReviews_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListReviewsRequest
var metadata runtime.ServerMetadata
@@ -230,7 +230,7 @@ func local_request_ReviewService_ListReviews_0(ctx context.Context, marshaler ru
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 {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_ListReviews_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -240,10 +240,10 @@ func local_request_ReviewService_ListReviews_0(ctx context.Context, marshaler ru
}
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}}
+ filter_IssueService_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) {
+func request_IssueService_UpdateReview_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateReviewRequest
var metadata runtime.ServerMetadata
@@ -282,7 +282,7 @@ func request_ReviewService_UpdateReview_0(ctx context.Context, marshaler runtime
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 {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_UpdateReview_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -291,7 +291,7 @@ func request_ReviewService_UpdateReview_0(ctx context.Context, marshaler runtime
}
-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) {
+func local_request_IssueService_UpdateReview_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateReviewRequest
var metadata runtime.ServerMetadata
@@ -330,7 +330,7 @@ func local_request_ReviewService_UpdateReview_0(ctx context.Context, marshaler r
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 {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_UpdateReview_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -339,7 +339,7 @@ func local_request_ReviewService_UpdateReview_0(ctx context.Context, marshaler r
}
-func request_ReviewService_CreateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func request_IssueService_CreateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq CreateReviewCommentRequest
var metadata runtime.ServerMetadata
@@ -373,7 +373,7 @@ func request_ReviewService_CreateReviewComment_0(ctx context.Context, marshaler
}
-func local_request_ReviewService_CreateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func local_request_IssueService_CreateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq CreateReviewCommentRequest
var metadata runtime.ServerMetadata
@@ -408,10 +408,10 @@ func local_request_ReviewService_CreateReviewComment_0(ctx context.Context, mars
}
var (
- filter_ReviewService_UpdateReviewComment_0 = &utilities.DoubleArray{Encoding: map[string]int{"review_comment": 0, "reviewComment": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}}
+ filter_IssueService_UpdateReviewComment_0 = &utilities.DoubleArray{Encoding: map[string]int{"review_comment": 0, "reviewComment": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}}
)
-func request_ReviewService_UpdateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func request_IssueService_UpdateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateReviewCommentRequest
var metadata runtime.ServerMetadata
@@ -450,7 +450,7 @@ func request_ReviewService_UpdateReviewComment_0(ctx context.Context, marshaler
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_UpdateReviewComment_0); err != nil {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_UpdateReviewComment_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -459,7 +459,7 @@ func request_ReviewService_UpdateReviewComment_0(ctx context.Context, marshaler
}
-func local_request_ReviewService_UpdateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func local_request_IssueService_UpdateReviewComment_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateReviewCommentRequest
var metadata runtime.ServerMetadata
@@ -498,7 +498,7 @@ func local_request_ReviewService_UpdateReviewComment_0(ctx context.Context, mars
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ReviewService_UpdateReviewComment_0); err != nil {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_IssueService_UpdateReviewComment_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -507,7 +507,7 @@ func local_request_ReviewService_UpdateReviewComment_0(ctx context.Context, mars
}
-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) {
+func request_IssueService_BatchUpdateReviews_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq BatchUpdateReviewsRequest
var metadata runtime.ServerMetadata
@@ -541,7 +541,7 @@ func request_ReviewService_BatchUpdateReviews_0(ctx context.Context, marshaler r
}
-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) {
+func local_request_IssueService_BatchUpdateReviews_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq BatchUpdateReviewsRequest
var metadata runtime.ServerMetadata
@@ -575,7 +575,7 @@ func local_request_ReviewService_BatchUpdateReviews_0(ctx context.Context, marsh
}
-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) {
+func request_IssueService_ApproveReview_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ApproveReviewRequest
var metadata runtime.ServerMetadata
@@ -609,7 +609,7 @@ func request_ReviewService_ApproveReview_0(ctx context.Context, marshaler runtim
}
-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) {
+func local_request_IssueService_ApproveReview_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ApproveReviewRequest
var metadata runtime.ServerMetadata
@@ -643,7 +643,7 @@ func local_request_ReviewService_ApproveReview_0(ctx context.Context, marshaler
}
-func request_ReviewService_RejectReview_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func request_IssueService_RejectReview_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq RejectReviewRequest
var metadata runtime.ServerMetadata
@@ -677,7 +677,7 @@ func request_ReviewService_RejectReview_0(ctx context.Context, marshaler runtime
}
-func local_request_ReviewService_RejectReview_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func local_request_IssueService_RejectReview_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq RejectReviewRequest
var metadata runtime.ServerMetadata
@@ -711,7 +711,7 @@ func local_request_ReviewService_RejectReview_0(ctx context.Context, marshaler r
}
-func request_ReviewService_RequestReview_0(ctx context.Context, marshaler runtime.Marshaler, client ReviewServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func request_IssueService_RequestReview_0(ctx context.Context, marshaler runtime.Marshaler, client IssueServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq RequestReviewRequest
var metadata runtime.ServerMetadata
@@ -745,7 +745,7 @@ func request_ReviewService_RequestReview_0(ctx context.Context, marshaler runtim
}
-func local_request_ReviewService_RequestReview_0(ctx context.Context, marshaler runtime.Marshaler, server ReviewServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+func local_request_IssueService_RequestReview_0(ctx context.Context, marshaler runtime.Marshaler, server IssueServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq RequestReviewRequest
var metadata runtime.ServerMetadata
@@ -779,13 +779,13 @@ func local_request_ReviewService_RequestReview_0(ctx context.Context, marshaler
}
-// RegisterReviewServiceHandlerServer registers the http handlers for service ReviewService to "mux".
-// UnaryRPC :call ReviewServiceServer directly.
+// RegisterIssueServiceHandlerServer registers the http handlers for service IssueService to "mux".
+// UnaryRPC :call IssueServiceServer 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 {
+// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIssueServiceHandlerFromEndpoint instead.
+func RegisterIssueServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IssueServiceServer) error {
- mux.Handle("GET", pattern_ReviewService_GetReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("GET", pattern_IssueService_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
@@ -793,12 +793,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
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/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := local_request_IssueService_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 {
@@ -806,11 +806,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_CreateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_CreateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -818,12 +818,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/CreateReview", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/CreateReview", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := local_request_ReviewService_CreateReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ resp, md, err := local_request_IssueService_CreateReview_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 {
@@ -831,11 +831,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_CreateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_CreateReview_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) {
+ mux.Handle("GET", pattern_IssueService_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
@@ -843,12 +843,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
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"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := local_request_IssueService_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 {
@@ -856,11 +856,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_ListReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_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) {
+ mux.Handle("PATCH", pattern_IssueService_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
@@ -868,12 +868,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
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/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := local_request_IssueService_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 {
@@ -881,11 +881,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_CreateReviewComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_CreateReviewComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -893,12 +893,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/CreateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/CreateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := local_request_ReviewService_CreateReviewComment_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ resp, md, err := local_request_IssueService_CreateReviewComment_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 {
@@ -906,11 +906,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_CreateReviewComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_CreateReviewComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("PATCH", pattern_ReviewService_UpdateReviewComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("PATCH", pattern_IssueService_UpdateReviewComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -918,12 +918,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/UpdateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/UpdateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := local_request_ReviewService_UpdateReviewComment_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ resp, md, err := local_request_IssueService_UpdateReviewComment_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 {
@@ -931,11 +931,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_UpdateReviewComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_UpdateReviewComment_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) {
+ mux.Handle("POST", pattern_IssueService_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
@@ -943,12 +943,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
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"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := local_request_IssueService_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 {
@@ -956,11 +956,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_BatchUpdateReviews_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_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) {
+ mux.Handle("POST", pattern_IssueService_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
@@ -968,12 +968,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
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"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := local_request_IssueService_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 {
@@ -981,11 +981,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_ApproveReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_ApproveReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_RejectReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_RejectReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -993,12 +993,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/RejectReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:reject"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/RejectReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:reject"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := local_request_ReviewService_RejectReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ resp, md, err := local_request_IssueService_RejectReview_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 {
@@ -1006,11 +1006,11 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_RejectReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_RejectReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_RequestReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_RequestReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -1018,12 +1018,12 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ReviewService/RequestReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:request"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.IssueService/RequestReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:request"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := local_request_ReviewService_RequestReview_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ resp, md, err := local_request_IssueService_RequestReview_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 {
@@ -1031,16 +1031,16 @@ func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
return
}
- forward_ReviewService_RequestReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_RequestReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
-// RegisterReviewServiceHandlerFromEndpoint is same as RegisterReviewServiceHandler but
+// RegisterIssueServiceHandlerFromEndpoint is same as RegisterIssueServiceHandler 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) {
+func RegisterIssueServiceHandlerFromEndpoint(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
@@ -1060,239 +1060,239 @@ func RegisterReviewServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.
}()
}()
- return RegisterReviewServiceHandler(ctx, mux, conn)
+ return RegisterIssueServiceHandler(ctx, mux, conn)
}
-// RegisterReviewServiceHandler registers the http handlers for service ReviewService to "mux".
+// RegisterIssueServiceHandler registers the http handlers for service IssueService 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))
+func RegisterIssueServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
+ return RegisterIssueServiceHandlerClient(ctx, mux, NewIssueServiceClient(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"
+// RegisterIssueServiceHandlerClient registers the http handlers for service IssueService
+// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IssueServiceClient".
+// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IssueServiceClient"
// 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 {
+// "IssueServiceClient" to call the correct interceptors.
+func RegisterIssueServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IssueServiceClient) error {
- mux.Handle("GET", pattern_ReviewService_GetReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("GET", pattern_IssueService_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/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := request_IssueService_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()...)
+ forward_IssueService_GetReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_CreateReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_CreateReview_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/CreateReview", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/CreateReview", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/reviews"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := request_ReviewService_CreateReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ resp, md, err := request_IssueService_CreateReview_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_CreateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_CreateReview_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) {
+ mux.Handle("GET", pattern_IssueService_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"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := request_IssueService_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()...)
+ forward_IssueService_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) {
+ mux.Handle("PATCH", pattern_IssueService_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/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := request_IssueService_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()...)
+ forward_IssueService_UpdateReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_CreateReviewComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_CreateReviewComment_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/CreateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/CreateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := request_ReviewService_CreateReviewComment_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ resp, md, err := request_IssueService_CreateReviewComment_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_CreateReviewComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_CreateReviewComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("PATCH", pattern_ReviewService_UpdateReviewComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("PATCH", pattern_IssueService_UpdateReviewComment_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/UpdateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/UpdateReviewComment", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/reviews/*}:comment"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := request_ReviewService_UpdateReviewComment_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ resp, md, err := request_IssueService_UpdateReviewComment_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_UpdateReviewComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_UpdateReviewComment_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) {
+ mux.Handle("POST", pattern_IssueService_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"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := request_IssueService_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()...)
+ forward_IssueService_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) {
+ mux.Handle("POST", pattern_IssueService_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"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/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)
+ resp, md, err := request_IssueService_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()...)
+ forward_IssueService_ApproveReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_RejectReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_RejectReview_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/RejectReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:reject"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/RejectReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:reject"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := request_ReviewService_RejectReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ resp, md, err := request_IssueService_RejectReview_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_RejectReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_RejectReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
- mux.Handle("POST", pattern_ReviewService_RequestReview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_RequestReview_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/RequestReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:request"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.IssueService/RequestReview", runtime.WithHTTPPathPattern("/v1/{name=projects/*/reviews/*}:request"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := request_ReviewService_RequestReview_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ resp, md, err := request_IssueService_RequestReview_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_RequestReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_IssueService_RequestReview_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@@ -1300,45 +1300,45 @@ func RegisterReviewServiceHandlerClient(ctx context.Context, mux *runtime.ServeM
}
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_IssueService_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_CreateReview_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_IssueService_CreateReview_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_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_IssueService_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_IssueService_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_CreateReviewComment_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", "parent"}, "comment"))
+ pattern_IssueService_CreateReviewComment_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", "parent"}, "comment"))
- pattern_ReviewService_UpdateReviewComment_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", "parent"}, "comment"))
+ pattern_IssueService_UpdateReviewComment_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", "parent"}, "comment"))
- 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_IssueService_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"))
+ pattern_IssueService_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"))
- pattern_ReviewService_RejectReview_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"}, "reject"))
+ pattern_IssueService_RejectReview_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"}, "reject"))
- pattern_ReviewService_RequestReview_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"}, "request"))
+ pattern_IssueService_RequestReview_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"}, "request"))
)
var (
- forward_ReviewService_GetReview_0 = runtime.ForwardResponseMessage
+ forward_IssueService_GetReview_0 = runtime.ForwardResponseMessage
- forward_ReviewService_CreateReview_0 = runtime.ForwardResponseMessage
+ forward_IssueService_CreateReview_0 = runtime.ForwardResponseMessage
- forward_ReviewService_ListReviews_0 = runtime.ForwardResponseMessage
+ forward_IssueService_ListReviews_0 = runtime.ForwardResponseMessage
- forward_ReviewService_UpdateReview_0 = runtime.ForwardResponseMessage
+ forward_IssueService_UpdateReview_0 = runtime.ForwardResponseMessage
- forward_ReviewService_CreateReviewComment_0 = runtime.ForwardResponseMessage
+ forward_IssueService_CreateReviewComment_0 = runtime.ForwardResponseMessage
- forward_ReviewService_UpdateReviewComment_0 = runtime.ForwardResponseMessage
+ forward_IssueService_UpdateReviewComment_0 = runtime.ForwardResponseMessage
- forward_ReviewService_BatchUpdateReviews_0 = runtime.ForwardResponseMessage
+ forward_IssueService_BatchUpdateReviews_0 = runtime.ForwardResponseMessage
- forward_ReviewService_ApproveReview_0 = runtime.ForwardResponseMessage
+ forward_IssueService_ApproveReview_0 = runtime.ForwardResponseMessage
- forward_ReviewService_RejectReview_0 = runtime.ForwardResponseMessage
+ forward_IssueService_RejectReview_0 = runtime.ForwardResponseMessage
- forward_ReviewService_RequestReview_0 = runtime.ForwardResponseMessage
+ forward_IssueService_RequestReview_0 = runtime.ForwardResponseMessage
)
diff --git a/proto/generated-go/v1/issue_service_grpc.pb.go b/proto/generated-go/v1/issue_service_grpc.pb.go
index b483d8fcef..461c9efa26 100644
--- a/proto/generated-go/v1/issue_service_grpc.pb.go
+++ b/proto/generated-go/v1/issue_service_grpc.pb.go
@@ -19,22 +19,22 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
- ReviewService_GetReview_FullMethodName = "/bytebase.v1.ReviewService/GetReview"
- ReviewService_CreateReview_FullMethodName = "/bytebase.v1.ReviewService/CreateReview"
- ReviewService_ListReviews_FullMethodName = "/bytebase.v1.ReviewService/ListReviews"
- ReviewService_UpdateReview_FullMethodName = "/bytebase.v1.ReviewService/UpdateReview"
- ReviewService_CreateReviewComment_FullMethodName = "/bytebase.v1.ReviewService/CreateReviewComment"
- ReviewService_UpdateReviewComment_FullMethodName = "/bytebase.v1.ReviewService/UpdateReviewComment"
- ReviewService_BatchUpdateReviews_FullMethodName = "/bytebase.v1.ReviewService/BatchUpdateReviews"
- ReviewService_ApproveReview_FullMethodName = "/bytebase.v1.ReviewService/ApproveReview"
- ReviewService_RejectReview_FullMethodName = "/bytebase.v1.ReviewService/RejectReview"
- ReviewService_RequestReview_FullMethodName = "/bytebase.v1.ReviewService/RequestReview"
+ IssueService_GetReview_FullMethodName = "/bytebase.v1.IssueService/GetReview"
+ IssueService_CreateReview_FullMethodName = "/bytebase.v1.IssueService/CreateReview"
+ IssueService_ListReviews_FullMethodName = "/bytebase.v1.IssueService/ListReviews"
+ IssueService_UpdateReview_FullMethodName = "/bytebase.v1.IssueService/UpdateReview"
+ IssueService_CreateReviewComment_FullMethodName = "/bytebase.v1.IssueService/CreateReviewComment"
+ IssueService_UpdateReviewComment_FullMethodName = "/bytebase.v1.IssueService/UpdateReviewComment"
+ IssueService_BatchUpdateReviews_FullMethodName = "/bytebase.v1.IssueService/BatchUpdateReviews"
+ IssueService_ApproveReview_FullMethodName = "/bytebase.v1.IssueService/ApproveReview"
+ IssueService_RejectReview_FullMethodName = "/bytebase.v1.IssueService/RejectReview"
+ IssueService_RequestReview_FullMethodName = "/bytebase.v1.IssueService/RequestReview"
)
-// ReviewServiceClient is the client API for ReviewService service.
+// IssueServiceClient is the client API for IssueService 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 {
+type IssueServiceClient interface {
GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*Review, error)
CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*Review, error)
ListReviews(ctx context.Context, in *ListReviewsRequest, opts ...grpc.CallOption) (*ListReviewsResponse, error)
@@ -47,108 +47,108 @@ type ReviewServiceClient interface {
RequestReview(ctx context.Context, in *RequestReviewRequest, opts ...grpc.CallOption) (*Review, error)
}
-type reviewServiceClient struct {
+type issueServiceClient struct {
cc grpc.ClientConnInterface
}
-func NewReviewServiceClient(cc grpc.ClientConnInterface) ReviewServiceClient {
- return &reviewServiceClient{cc}
+func NewIssueServiceClient(cc grpc.ClientConnInterface) IssueServiceClient {
+ return &issueServiceClient{cc}
}
-func (c *reviewServiceClient) GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*Review, error) {
+func (c *issueServiceClient) 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...)
+ err := c.cc.Invoke(ctx, IssueService_GetReview_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
-func (c *reviewServiceClient) CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*Review, error) {
+func (c *issueServiceClient) CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*Review, error) {
out := new(Review)
- err := c.cc.Invoke(ctx, ReviewService_CreateReview_FullMethodName, in, out, opts...)
+ err := c.cc.Invoke(ctx, IssueService_CreateReview_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) {
+func (c *issueServiceClient) 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...)
+ err := c.cc.Invoke(ctx, IssueService_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) {
+func (c *issueServiceClient) 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...)
+ err := c.cc.Invoke(ctx, IssueService_UpdateReview_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
-func (c *reviewServiceClient) CreateReviewComment(ctx context.Context, in *CreateReviewCommentRequest, opts ...grpc.CallOption) (*ReviewComment, error) {
+func (c *issueServiceClient) CreateReviewComment(ctx context.Context, in *CreateReviewCommentRequest, opts ...grpc.CallOption) (*ReviewComment, error) {
out := new(ReviewComment)
- err := c.cc.Invoke(ctx, ReviewService_CreateReviewComment_FullMethodName, in, out, opts...)
+ err := c.cc.Invoke(ctx, IssueService_CreateReviewComment_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
-func (c *reviewServiceClient) UpdateReviewComment(ctx context.Context, in *UpdateReviewCommentRequest, opts ...grpc.CallOption) (*ReviewComment, error) {
+func (c *issueServiceClient) UpdateReviewComment(ctx context.Context, in *UpdateReviewCommentRequest, opts ...grpc.CallOption) (*ReviewComment, error) {
out := new(ReviewComment)
- err := c.cc.Invoke(ctx, ReviewService_UpdateReviewComment_FullMethodName, in, out, opts...)
+ err := c.cc.Invoke(ctx, IssueService_UpdateReviewComment_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) {
+func (c *issueServiceClient) 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...)
+ err := c.cc.Invoke(ctx, IssueService_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) {
+func (c *issueServiceClient) 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...)
+ err := c.cc.Invoke(ctx, IssueService_ApproveReview_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
-func (c *reviewServiceClient) RejectReview(ctx context.Context, in *RejectReviewRequest, opts ...grpc.CallOption) (*Review, error) {
+func (c *issueServiceClient) RejectReview(ctx context.Context, in *RejectReviewRequest, opts ...grpc.CallOption) (*Review, error) {
out := new(Review)
- err := c.cc.Invoke(ctx, ReviewService_RejectReview_FullMethodName, in, out, opts...)
+ err := c.cc.Invoke(ctx, IssueService_RejectReview_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
-func (c *reviewServiceClient) RequestReview(ctx context.Context, in *RequestReviewRequest, opts ...grpc.CallOption) (*Review, error) {
+func (c *issueServiceClient) RequestReview(ctx context.Context, in *RequestReviewRequest, opts ...grpc.CallOption) (*Review, error) {
out := new(Review)
- err := c.cc.Invoke(ctx, ReviewService_RequestReview_FullMethodName, in, out, opts...)
+ err := c.cc.Invoke(ctx, IssueService_RequestReview_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
+// IssueServiceServer is the server API for IssueService service.
+// All implementations must embed UnimplementedIssueServiceServer
// for forward compatibility
-type ReviewServiceServer interface {
+type IssueServiceServer interface {
GetReview(context.Context, *GetReviewRequest) (*Review, error)
CreateReview(context.Context, *CreateReviewRequest) (*Review, error)
ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error)
@@ -159,282 +159,282 @@ type ReviewServiceServer interface {
ApproveReview(context.Context, *ApproveReviewRequest) (*Review, error)
RejectReview(context.Context, *RejectReviewRequest) (*Review, error)
RequestReview(context.Context, *RequestReviewRequest) (*Review, error)
- mustEmbedUnimplementedReviewServiceServer()
+ mustEmbedUnimplementedIssueServiceServer()
}
-// UnimplementedReviewServiceServer must be embedded to have forward compatible implementations.
-type UnimplementedReviewServiceServer struct {
+// UnimplementedIssueServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedIssueServiceServer struct {
}
-func (UnimplementedReviewServiceServer) GetReview(context.Context, *GetReviewRequest) (*Review, error) {
+func (UnimplementedIssueServiceServer) GetReview(context.Context, *GetReviewRequest) (*Review, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetReview not implemented")
}
-func (UnimplementedReviewServiceServer) CreateReview(context.Context, *CreateReviewRequest) (*Review, error) {
+func (UnimplementedIssueServiceServer) CreateReview(context.Context, *CreateReviewRequest) (*Review, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateReview not implemented")
}
-func (UnimplementedReviewServiceServer) ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error) {
+func (UnimplementedIssueServiceServer) ListReviews(context.Context, *ListReviewsRequest) (*ListReviewsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListReviews not implemented")
}
-func (UnimplementedReviewServiceServer) UpdateReview(context.Context, *UpdateReviewRequest) (*Review, error) {
+func (UnimplementedIssueServiceServer) UpdateReview(context.Context, *UpdateReviewRequest) (*Review, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateReview not implemented")
}
-func (UnimplementedReviewServiceServer) CreateReviewComment(context.Context, *CreateReviewCommentRequest) (*ReviewComment, error) {
+func (UnimplementedIssueServiceServer) CreateReviewComment(context.Context, *CreateReviewCommentRequest) (*ReviewComment, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateReviewComment not implemented")
}
-func (UnimplementedReviewServiceServer) UpdateReviewComment(context.Context, *UpdateReviewCommentRequest) (*ReviewComment, error) {
+func (UnimplementedIssueServiceServer) UpdateReviewComment(context.Context, *UpdateReviewCommentRequest) (*ReviewComment, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateReviewComment not implemented")
}
-func (UnimplementedReviewServiceServer) BatchUpdateReviews(context.Context, *BatchUpdateReviewsRequest) (*BatchUpdateReviewsResponse, error) {
+func (UnimplementedIssueServiceServer) BatchUpdateReviews(context.Context, *BatchUpdateReviewsRequest) (*BatchUpdateReviewsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchUpdateReviews not implemented")
}
-func (UnimplementedReviewServiceServer) ApproveReview(context.Context, *ApproveReviewRequest) (*Review, error) {
+func (UnimplementedIssueServiceServer) ApproveReview(context.Context, *ApproveReviewRequest) (*Review, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApproveReview not implemented")
}
-func (UnimplementedReviewServiceServer) RejectReview(context.Context, *RejectReviewRequest) (*Review, error) {
+func (UnimplementedIssueServiceServer) RejectReview(context.Context, *RejectReviewRequest) (*Review, error) {
return nil, status.Errorf(codes.Unimplemented, "method RejectReview not implemented")
}
-func (UnimplementedReviewServiceServer) RequestReview(context.Context, *RequestReviewRequest) (*Review, error) {
+func (UnimplementedIssueServiceServer) RequestReview(context.Context, *RequestReviewRequest) (*Review, error) {
return nil, status.Errorf(codes.Unimplemented, "method RequestReview not implemented")
}
-func (UnimplementedReviewServiceServer) mustEmbedUnimplementedReviewServiceServer() {}
+func (UnimplementedIssueServiceServer) mustEmbedUnimplementedIssueServiceServer() {}
-// 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
+// UnsafeIssueServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to IssueServiceServer will
// result in compilation errors.
-type UnsafeReviewServiceServer interface {
- mustEmbedUnimplementedReviewServiceServer()
+type UnsafeIssueServiceServer interface {
+ mustEmbedUnimplementedIssueServiceServer()
}
-func RegisterReviewServiceServer(s grpc.ServiceRegistrar, srv ReviewServiceServer) {
- s.RegisterService(&ReviewService_ServiceDesc, srv)
+func RegisterIssueServiceServer(s grpc.ServiceRegistrar, srv IssueServiceServer) {
+ s.RegisterService(&IssueService_ServiceDesc, srv)
}
-func _ReviewService_GetReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_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)
+ return srv.(IssueServiceServer).GetReview(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_GetReview_FullMethodName,
+ FullMethod: IssueService_GetReview_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).GetReview(ctx, req.(*GetReviewRequest))
+ return srv.(IssueServiceServer).GetReview(ctx, req.(*GetReviewRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_CreateReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_CreateReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateReviewRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(ReviewServiceServer).CreateReview(ctx, in)
+ return srv.(IssueServiceServer).CreateReview(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_CreateReview_FullMethodName,
+ FullMethod: IssueService_CreateReview_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).CreateReview(ctx, req.(*CreateReviewRequest))
+ return srv.(IssueServiceServer).CreateReview(ctx, req.(*CreateReviewRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_ListReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_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)
+ return srv.(IssueServiceServer).ListReviews(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_ListReviews_FullMethodName,
+ FullMethod: IssueService_ListReviews_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).ListReviews(ctx, req.(*ListReviewsRequest))
+ return srv.(IssueServiceServer).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) {
+func _IssueService_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)
+ return srv.(IssueServiceServer).UpdateReview(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_UpdateReview_FullMethodName,
+ FullMethod: IssueService_UpdateReview_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).UpdateReview(ctx, req.(*UpdateReviewRequest))
+ return srv.(IssueServiceServer).UpdateReview(ctx, req.(*UpdateReviewRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_CreateReviewComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_CreateReviewComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateReviewCommentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(ReviewServiceServer).CreateReviewComment(ctx, in)
+ return srv.(IssueServiceServer).CreateReviewComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_CreateReviewComment_FullMethodName,
+ FullMethod: IssueService_CreateReviewComment_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).CreateReviewComment(ctx, req.(*CreateReviewCommentRequest))
+ return srv.(IssueServiceServer).CreateReviewComment(ctx, req.(*CreateReviewCommentRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_UpdateReviewComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_UpdateReviewComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateReviewCommentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(ReviewServiceServer).UpdateReviewComment(ctx, in)
+ return srv.(IssueServiceServer).UpdateReviewComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_UpdateReviewComment_FullMethodName,
+ FullMethod: IssueService_UpdateReviewComment_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).UpdateReviewComment(ctx, req.(*UpdateReviewCommentRequest))
+ return srv.(IssueServiceServer).UpdateReviewComment(ctx, req.(*UpdateReviewCommentRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_BatchUpdateReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_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)
+ return srv.(IssueServiceServer).BatchUpdateReviews(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_BatchUpdateReviews_FullMethodName,
+ FullMethod: IssueService_BatchUpdateReviews_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).BatchUpdateReviews(ctx, req.(*BatchUpdateReviewsRequest))
+ return srv.(IssueServiceServer).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) {
+func _IssueService_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)
+ return srv.(IssueServiceServer).ApproveReview(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_ApproveReview_FullMethodName,
+ FullMethod: IssueService_ApproveReview_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).ApproveReview(ctx, req.(*ApproveReviewRequest))
+ return srv.(IssueServiceServer).ApproveReview(ctx, req.(*ApproveReviewRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_RejectReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_RejectReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RejectReviewRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(ReviewServiceServer).RejectReview(ctx, in)
+ return srv.(IssueServiceServer).RejectReview(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_RejectReview_FullMethodName,
+ FullMethod: IssueService_RejectReview_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).RejectReview(ctx, req.(*RejectReviewRequest))
+ return srv.(IssueServiceServer).RejectReview(ctx, req.(*RejectReviewRequest))
}
return interceptor(ctx, in, info, handler)
}
-func _ReviewService_RequestReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _IssueService_RequestReview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RequestReviewRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(ReviewServiceServer).RequestReview(ctx, in)
+ return srv.(IssueServiceServer).RequestReview(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: ReviewService_RequestReview_FullMethodName,
+ FullMethod: IssueService_RequestReview_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReviewServiceServer).RequestReview(ctx, req.(*RequestReviewRequest))
+ return srv.(IssueServiceServer).RequestReview(ctx, req.(*RequestReviewRequest))
}
return interceptor(ctx, in, info, handler)
}
-// ReviewService_ServiceDesc is the grpc.ServiceDesc for ReviewService service.
+// IssueService_ServiceDesc is the grpc.ServiceDesc for IssueService 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),
+var IssueService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "bytebase.v1.IssueService",
+ HandlerType: (*IssueServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetReview",
- Handler: _ReviewService_GetReview_Handler,
+ Handler: _IssueService_GetReview_Handler,
},
{
MethodName: "CreateReview",
- Handler: _ReviewService_CreateReview_Handler,
+ Handler: _IssueService_CreateReview_Handler,
},
{
MethodName: "ListReviews",
- Handler: _ReviewService_ListReviews_Handler,
+ Handler: _IssueService_ListReviews_Handler,
},
{
MethodName: "UpdateReview",
- Handler: _ReviewService_UpdateReview_Handler,
+ Handler: _IssueService_UpdateReview_Handler,
},
{
MethodName: "CreateReviewComment",
- Handler: _ReviewService_CreateReviewComment_Handler,
+ Handler: _IssueService_CreateReviewComment_Handler,
},
{
MethodName: "UpdateReviewComment",
- Handler: _ReviewService_UpdateReviewComment_Handler,
+ Handler: _IssueService_UpdateReviewComment_Handler,
},
{
MethodName: "BatchUpdateReviews",
- Handler: _ReviewService_BatchUpdateReviews_Handler,
+ Handler: _IssueService_BatchUpdateReviews_Handler,
},
{
MethodName: "ApproveReview",
- Handler: _ReviewService_ApproveReview_Handler,
+ Handler: _IssueService_ApproveReview_Handler,
},
{
MethodName: "RejectReview",
- Handler: _ReviewService_RejectReview_Handler,
+ Handler: _IssueService_RejectReview_Handler,
},
{
MethodName: "RequestReview",
- Handler: _ReviewService_RequestReview_Handler,
+ Handler: _IssueService_RequestReview_Handler,
},
},
Streams: []grpc.StreamDesc{},
diff --git a/proto/v1/issue_service.proto b/proto/v1/issue_service.proto
index ee73296e75..f429a6292b 100644
--- a/proto/v1/issue_service.proto
+++ b/proto/v1/issue_service.proto
@@ -10,7 +10,7 @@ import "google/protobuf/timestamp.proto";
option go_package = "generated-go/v1";
-service ReviewService {
+service IssueService {
rpc GetReview(GetReviewRequest) returns (Review) {
option (google.api.http) = {get: "/v1/{name=projects/*/reviews/*}"};
option (google.api.method_signature) = "name";