Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update merge and rebase branch API (#9759)
Danny Xu46c70e1da475
diff --git a/backend/api/v1/branch_service.go b/backend/api/v1/branch_service.goindex 1245f06955..8d8569e107 100644--- a/backend/api/v1/branch_service.go+++ b/backend/api/v1/branch_service.go@@ -3,6 +3,7 @@ package v1import ("context""fmt"+ "log/slog""path""golang.org/x/exp/slices"@@ -12,6 +13,7 @@ import ("google.golang.org/protobuf/types/known/timestamppb""github.com/bytebase/bytebase/backend/common"+ "github.com/bytebase/bytebase/backend/common/log"enterprise "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/plugin/parser/base"@@ -303,7 +305,7 @@ func (s *BranchService) UpdateBranch(ctx context.Context, request *v1pb.UpdateBr}// MergeBranch merges a personal draft branch to the target branch.-func (s *BranchService) MergeBranch(ctx context.Context, request *v1pb.MergeBranchRequest) (*v1pb.Branch, error) {+func (s *BranchService) MergeBranch(ctx context.Context, request *v1pb.MergeBranchRequest) (*v1pb.MergeBranchResponse, error) {baseProjectID, baseBranchID, err := common.GetProjectAndBranchID(request.Name)if err != nil {return nil, status.Errorf(codes.InvalidArgument, err.Error())@@ -312,10 +314,10 @@ func (s *BranchService) MergeBranch(ctx context.Context, request *v1pb.MergeBranif err != nil {return nil, err}- if err := s.checkBranchPermission(ctx, baseProjectID); err != nil {+ if err := s.checkBranchPermission(ctx, baseProject.ResourceID); err != nil {return nil, err}- baseBranch, err := s.store.GetBranch(ctx, &store.FindBranchMessage{ProjectID: &baseProjectID, ResourceID: &baseBranchID, LoadFull: true})+ baseBranch, err := s.store.GetBranch(ctx, &store.FindBranchMessage{ProjectID: &baseProject.ResourceID, ResourceID: &baseBranchID, LoadFull: true})if err != nil {return nil, err}@@ -361,9 +363,11 @@ func (s *BranchService) MergeBranch(ctx context.Context, request *v1pb.MergeBran// Maybe we can support auto-merging in the future.mergedMetadata, err = tryMerge(headBranch.Base.Metadata, headBranch.Head.Metadata, baseBranch.Head.Metadata)if err != nil {- return nil, status.Errorf(codes.Aborted, "cannot auto merge branch due to conflict: %v", err)+ slog.Info("cannot merge branches", log.BBError(err))+ return &v1pb.MergeBranchResponse{Result: &v1pb.MergeBranchResponse_ConflictSchema{ConflictSchema: "TBD"}}, nil}if mergedMetadata == nil {+ // TODO(zp): bug, this should not be no change.return nil, status.Errorf(codes.FailedPrecondition, "failed to merge branch: no change")}mergedSchema, err = getDesignSchema(storepb.Engine(baseBranch.Engine), string(headBranch.Head.Schema), mergedMetadata)@@ -378,7 +382,7 @@ func (s *BranchService) MergeBranch(ctx context.Context, request *v1pb.MergeBranreturn nil, status.Errorf(codes.Internal, "principal ID not found")}if err := s.store.UpdateBranch(ctx, &store.UpdateBranchMessage{- ProjectID: baseProjectID,+ ProjectID: baseProject.ResourceID,ResourceID: baseBranchID,UpdaterID: principalID,Head: &storepb.BranchSnapshot{@@ -388,16 +392,19 @@ func (s *BranchService) MergeBranch(ctx context.Context, request *v1pb.MergeBran}}); err != nil {return nil, status.Errorf(codes.Internal, "failed update branch, error %v", err)}-+ baseBranch, err = s.store.GetBranch(ctx, &store.FindBranchMessage{ProjectID: &baseProject.ResourceID, ResourceID: &baseBranchID})+ if err != nil {+ return nil, err+ }v1Branch, err := s.convertBranchToBranch(ctx, baseProject, baseBranch, v1pb.BranchView_BRANCH_VIEW_FULL)if err != nil {return nil, err}- return v1Branch, nil+ return &v1pb.MergeBranchResponse{Result: &v1pb.MergeBranchResponse_Branch{Branch: v1Branch}}, nil}// RebaseBranch rebases a branch to the target branch.-func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBranchRequest) (*v1pb.Branch, error) {+func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBranchRequest) (*v1pb.RebaseBranchResponse, error) {baseProjectID, baseBranchID, err := common.GetProjectAndBranchID(request.Name)if err != nil {return nil, status.Errorf(codes.InvalidArgument, err.Error())@@ -406,10 +413,10 @@ func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBrif err != nil {return nil, err}- if err := s.checkBranchPermission(ctx, baseProjectID); err != nil {+ if err := s.checkBranchPermission(ctx, baseProject.ResourceID); err != nil {return nil, err}- baseBranch, err := s.store.GetBranch(ctx, &store.FindBranchMessage{ProjectID: &baseProjectID, ResourceID: &baseBranchID, LoadFull: true})+ baseBranch, err := s.store.GetBranch(ctx, &store.FindBranchMessage{ProjectID: &baseProject.ResourceID, ResourceID: &baseBranchID, LoadFull: true})if err != nil {return nil, err}@@ -440,9 +447,11 @@ func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBr}mergedTarget, err := tryMerge(baseBranch.Base.Metadata, baseBranch.Head.Metadata, upstreamMetadata)if err != nil {- return nil, status.Errorf(codes.Aborted, "cannot auto rebase branch due to conflict: %v", err)+ slog.Info("cannot rebase branches", log.BBError(err))+ return &v1pb.RebaseBranchResponse{Result: &v1pb.RebaseBranchResponse_ConflictSchema{ConflictSchema: "TBD"}}, nil}if mergedTarget == nil {+ // TODO(zp): bug, this should not be no change.return nil, status.Errorf(codes.FailedPrecondition, "failed to rebase branch: no change")}newHeadSchema, err = getDesignSchema(storepb.Engine(baseBranch.Engine), string(baseBranch.Head.Schema), mergedTarget)@@ -465,7 +474,7 @@ func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBrreturn nil, status.Errorf(codes.Internal, "principal ID not found")}if err := s.store.UpdateBranch(ctx, &store.UpdateBranchMessage{- ProjectID: baseProjectID,+ ProjectID: baseProject.ResourceID,ResourceID: baseBranchID,UpdaterID: principalID,Base: &storepb.BranchSnapshot{@@ -480,12 +489,15 @@ func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBr}}); err != nil {return nil, status.Errorf(codes.Internal, "failed update branch, error %v", err)}-+ baseBranch, err = s.store.GetBranch(ctx, &store.FindBranchMessage{ProjectID: &baseProject.ResourceID, ResourceID: &baseBranchID})+ if err != nil {+ return nil, err+ }v1Branch, err := s.convertBranchToBranch(ctx, baseProject, baseBranch, v1pb.BranchView_BRANCH_VIEW_FULL)if err != nil {return nil, err}- return v1Branch, nil+ return &v1pb.RebaseBranchResponse{Result: &v1pb.RebaseBranchResponse_Branch{Branch: v1Branch}}, nil}func (s *BranchService) getNewBaseFromRebaseRequest(ctx context.Context, request *v1pb.RebaseBranchRequest) (string, error) {diff --git a/frontend/src/components/Branch/MergeBranchPanel.vue b/frontend/src/components/Branch/MergeBranchPanel.vueindex 5b67dbfad3..b7786f1c7f 100644--- a/frontend/src/components/Branch/MergeBranchPanel.vue+++ b/frontend/src/components/Branch/MergeBranchPanel.vue@@ -164,8 +164,10 @@ const handleMergeBranch = async () => {headBranch: sourceBranch.value.name,mergedSchema: "",etag: "",+ validateOnly: false,});} catch (error: any) {+ // TODO(Jim): this needs to be updated.// If there is conflict, we need to show the conflict and let user resolve it.if (error.code === Status.ABORTED) {dialog.create({diff --git a/frontend/src/store/modules/branch.ts b/frontend/src/store/modules/branch.tsindex d6ebe9a354..b8e86d78ba 100644--- a/frontend/src/store/modules/branch.ts+++ b/frontend/src/store/modules/branch.ts@@ -46,10 +46,12 @@ export const useBranchStore = defineStore("schema_design", () => {};const mergeBranch = async (request: MergeBranchRequest) => {- const updatedBranch = await branchServiceClient.mergeBranch(request, {+ const resp = await branchServiceClient.mergeBranch(request, {silent: true,});- branchMapByName.set(updatedBranch.name, updatedBranch);+ if (resp.branch) {+ branchMapByName.set(resp.branch.name, resp.branch);+ }};const fetchBranchByName = async (diff --git a/frontend/src/types/proto/v1/branch_service.ts b/frontend/src/types/proto/v1/branch_service.tsindex 60d482387c..65f5b11518 100644--- a/frontend/src/types/proto/v1/branch_service.ts+++ b/frontend/src/types/proto/v1/branch_service.ts@@ -212,6 +212,23 @@ export interface MergeBranchRequest {* The etag should be specified for using merged_schema. The etag should be the etag from named branch.*/etag: string;+ /** validate_only determines if the merge can occur seamlessly without any conflicts. */+ validateOnly: boolean;+}++export interface MergeBranchResponse {+ /** The merged branch when merge occurs seamlessly. */+ branch?:+ | Branch+ | undefined;+ /**+ * The conflict schema when merge has conflicts.+ * The conflict section is enclosed by the following.+ * <<<<< HEAD+ * ====+ * >>>>> main+ */+ conflictSchema?: string | undefined;}export interface RebaseBranchRequest {@@ -244,6 +261,23 @@ export interface RebaseBranchRequest {* The etag should be specified for using merged_schema. The etag should be the etag from named branch.*/etag: string;+ /** validate_only determines if the rebase can occur seamlessly without any conflicts. */+ validateOnly: boolean;+}++export interface RebaseBranchResponse {+ /** The rebased branch when rebase occurs seamlessly. */+ branch?:+ | Branch+ | undefined;+ /**+ * The conflict schema when rebase has conflicts.+ * The conflict section is enclosed by the following.+ * <<<<< HEAD+ * ====+ * >>>>> main+ */+ conflictSchema?: string | undefined;}export interface DeleteBranchRequest {@@ -981,7 +1015,7 @@ export const UpdateBranchRequest = {};function createBaseMergeBranchRequest(): MergeBranchRequest {- return { name: "", headBranch: "", mergedSchema: "", etag: "" };+ return { name: "", headBranch: "", mergedSchema: "", etag: "", validateOnly: false };}export const MergeBranchRequest = {@@ -998,6 +1032,9 @@ export const MergeBranchRequest = {if (message.etag !== "") {writer.uint32(34).string(message.etag);}+ if (message.validateOnly === true) {+ writer.uint32(40).bool(message.validateOnly);+ }return writer;},@@ -1036,6 +1073,13 @@ export const MergeBranchRequest = {message.etag = reader.string();continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.validateOnly = reader.bool();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1051,6 +1095,7 @@ export const MergeBranchRequest = {headBranch: isSet(object.headBranch) ? globalThis.String(object.headBranch) : "",mergedSchema: isSet(object.mergedSchema) ? globalThis.String(object.mergedSchema) : "",etag: isSet(object.etag) ? globalThis.String(object.etag) : "",+ validateOnly: isSet(object.validateOnly) ? globalThis.Boolean(object.validateOnly) : false,};},@@ -1068,6 +1113,9 @@ export const MergeBranchRequest = {if (message.etag !== "") {obj.etag = message.etag;}+ if (message.validateOnly === true) {+ obj.validateOnly = message.validateOnly;+ }return obj;},@@ -1080,12 +1128,89 @@ export const MergeBranchRequest = {message.headBranch = object.headBranch ?? "";message.mergedSchema = object.mergedSchema ?? "";message.etag = object.etag ?? "";+ message.validateOnly = object.validateOnly ?? false;+ return message;+ },+};++function createBaseMergeBranchResponse(): MergeBranchResponse {+ return { branch: undefined, conflictSchema: undefined };+}++export const MergeBranchResponse = {+ encode(message: MergeBranchResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.branch !== undefined) {+ Branch.encode(message.branch, writer.uint32(10).fork()).ldelim();+ }+ if (message.conflictSchema !== undefined) {+ writer.uint32(18).string(message.conflictSchema);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): MergeBranchResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseMergeBranchResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.branch = Branch.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.conflictSchema = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): MergeBranchResponse {+ return {+ branch: isSet(object.branch) ? Branch.fromJSON(object.branch) : undefined,+ conflictSchema: isSet(object.conflictSchema) ? globalThis.String(object.conflictSchema) : undefined,+ };+ },++ toJSON(message: MergeBranchResponse): unknown {+ const obj: any = {};+ if (message.branch !== undefined) {+ obj.branch = Branch.toJSON(message.branch);+ }+ if (message.conflictSchema !== undefined) {+ obj.conflictSchema = message.conflictSchema;+ }+ return obj;+ },++ create(base?: DeepPartial<MergeBranchResponse>): MergeBranchResponse {+ return MergeBranchResponse.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<MergeBranchResponse>): MergeBranchResponse {+ const message = createBaseMergeBranchResponse();+ message.branch = (object.branch !== undefined && object.branch !== null)+ ? Branch.fromPartial(object.branch)+ : undefined;+ message.conflictSchema = object.conflictSchema ?? undefined;return message;},};function createBaseRebaseBranchRequest(): RebaseBranchRequest {- return { name: "", sourceDatabase: "", sourceBranch: "", mergedSchema: "", etag: "" };+ return { name: "", sourceDatabase: "", sourceBranch: "", mergedSchema: "", etag: "", validateOnly: false };}export const RebaseBranchRequest = {@@ -1105,6 +1230,9 @@ export const RebaseBranchRequest = {if (message.etag !== "") {writer.uint32(42).string(message.etag);}+ if (message.validateOnly === true) {+ writer.uint32(48).bool(message.validateOnly);+ }return writer;},@@ -1150,6 +1278,13 @@ export const RebaseBranchRequest = {message.etag = reader.string();continue;+ case 6:+ if (tag !== 48) {+ break;+ }++ message.validateOnly = reader.bool();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1166,6 +1301,7 @@ export const RebaseBranchRequest = {sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",mergedSchema: isSet(object.mergedSchema) ? globalThis.String(object.mergedSchema) : "",etag: isSet(object.etag) ? globalThis.String(object.etag) : "",+ validateOnly: isSet(object.validateOnly) ? globalThis.Boolean(object.validateOnly) : false,};},@@ -1186,6 +1322,9 @@ export const RebaseBranchRequest = {if (message.etag !== "") {obj.etag = message.etag;}+ if (message.validateOnly === true) {+ obj.validateOnly = message.validateOnly;+ }return obj;},@@ -1199,6 +1338,83 @@ export const RebaseBranchRequest = {message.sourceBranch = object.sourceBranch ?? "";message.mergedSchema = object.mergedSchema ?? "";message.etag = object.etag ?? "";+ message.validateOnly = object.validateOnly ?? false;+ return message;+ },+};++function createBaseRebaseBranchResponse(): RebaseBranchResponse {+ return { branch: undefined, conflictSchema: undefined };+}++export const RebaseBranchResponse = {+ encode(message: RebaseBranchResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.branch !== undefined) {+ Branch.encode(message.branch, writer.uint32(10).fork()).ldelim();+ }+ if (message.conflictSchema !== undefined) {+ writer.uint32(18).string(message.conflictSchema);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): RebaseBranchResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseRebaseBranchResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.branch = Branch.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.conflictSchema = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): RebaseBranchResponse {+ return {+ branch: isSet(object.branch) ? Branch.fromJSON(object.branch) : undefined,+ conflictSchema: isSet(object.conflictSchema) ? globalThis.String(object.conflictSchema) : undefined,+ };+ },++ toJSON(message: RebaseBranchResponse): unknown {+ const obj: any = {};+ if (message.branch !== undefined) {+ obj.branch = Branch.toJSON(message.branch);+ }+ if (message.conflictSchema !== undefined) {+ obj.conflictSchema = message.conflictSchema;+ }+ return obj;+ },++ create(base?: DeepPartial<RebaseBranchResponse>): RebaseBranchResponse {+ return RebaseBranchResponse.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<RebaseBranchResponse>): RebaseBranchResponse {+ const message = createBaseRebaseBranchResponse();+ message.branch = (object.branch !== undefined && object.branch !== null)+ ? Branch.fromPartial(object.branch)+ : undefined;+ message.conflictSchema = object.conflictSchema ?? undefined;return message;},};@@ -1646,7 +1862,7 @@ export const BranchServiceDefinition = {name: "MergeBranch",requestType: MergeBranchRequest,requestStream: false,- responseType: Branch,+ responseType: MergeBranchResponse,responseStream: false,options: {_unknownFields: {@@ -1703,7 +1919,7 @@ export const BranchServiceDefinition = {name: "RebaseBranch",requestType: RebaseBranchRequest,requestStream: false,- responseType: Branch,+ responseType: RebaseBranchResponse,responseStream: false,options: {_unknownFields: {diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 48b3349586..e7713ddcde 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -193,7 +193,9 @@- [ListBranchesRequest](#bytebase-v1-ListBranchesRequest)- [ListBranchesResponse](#bytebase-v1-ListBranchesResponse)- [MergeBranchRequest](#bytebase-v1-MergeBranchRequest)+ - [MergeBranchResponse](#bytebase-v1-MergeBranchResponse)- [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest)+ - [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse)- [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest)- [BranchView](#bytebase-v1-BranchView)@@ -3569,6 +3571,23 @@ When paginating, all other parameters provided to `ListBranches` must match the| head_branch | [string](#string) | | The head branch to merge from. Format: projects/{project}/branches/{branch} || merged_schema | [string](#string) | | For failed merge, we will pass in this addition merged schema and use it for head. || etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be specified for using merged_schema. The etag should be the etag from named branch. |+| validate_only | [bool](#bool) | | validate_only determines if the merge can occur seamlessly without any conflicts. |+++++++<a name="bytebase-v1-MergeBranchResponse"></a>++### MergeBranchResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| branch | [Branch](#bytebase-v1-Branch) | | The merged branch when merge occurs seamlessly. |+| conflict_schema | [string](#string) | | The conflict schema when merge has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |@@ -3588,6 +3607,23 @@ When paginating, all other parameters provided to `ListBranches` must match the| source_branch | [string](#string) | | The branch (remote upstream) used to rebase. We use its head as baseline. We use its head schema as baseline and reapply the difference between base and head of the named branch. Format: projects/{project}/branches/{branch} || merged_schema | [string](#string) | | For failed merge, we will pass in this addition merged schema and use it for head. This has to be set together with source_database or source_branch. || etag | [string](#string) | | The current etag of the branch. If an etag is provided and does not match the current etag of the branch, the call will be blocked and an ABORTED error will be returned. The etag should be specified for using merged_schema. The etag should be the etag from named branch. |+| validate_only | [bool](#bool) | | validate_only determines if the rebase can occur seamlessly without any conflicts. |+++++++<a name="bytebase-v1-RebaseBranchResponse"></a>++### RebaseBranchResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| branch | [Branch](#bytebase-v1-Branch) | | The rebased branch when rebase occurs seamlessly. |+| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |@@ -3643,8 +3679,8 @@ The branch's `name` field is used to identify the branch to update. Format:| ListBranches | [ListBranchesRequest](#bytebase-v1-ListBranchesRequest) | [ListBranchesResponse](#bytebase-v1-ListBranchesResponse) | || CreateBranch | [CreateBranchRequest](#bytebase-v1-CreateBranchRequest) | [Branch](#bytebase-v1-Branch) | || UpdateBranch | [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| MergeBranch | [MergeBranchRequest](#bytebase-v1-MergeBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| RebaseBranch | [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| MergeBranch | [MergeBranchRequest](#bytebase-v1-MergeBranchRequest) | [MergeBranchResponse](#bytebase-v1-MergeBranchResponse) | |+| RebaseBranch | [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest) | [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse) | || DeleteBranch | [DeleteBranchRequest](#bytebase-v1-DeleteBranchRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | || DiffMetadata | [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest) | [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse) | |diff --git a/proto/generated-go/v1/branch_service.pb.go b/proto/generated-go/v1/branch_service.pb.goindex 9160052c6a..e8ce47a134 100644--- a/proto/generated-go/v1/branch_service.pb.go+++ b/proto/generated-go/v1/branch_service.pb.go@@ -605,6 +605,8 @@ type MergeBranchRequest struct {// the call will be blocked and an ABORTED error will be returned.// The etag should be specified for using merged_schema. The etag should be the etag from named branch.Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`+ // validate_only determines if the merge can occur seamlessly without any conflicts.+ ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`}func (x *MergeBranchRequest) Reset() {@@ -667,6 +669,100 @@ func (x *MergeBranchRequest) GetEtag() string {return ""}+func (x *MergeBranchRequest) GetValidateOnly() bool {+ if x != nil {+ return x.ValidateOnly+ }+ return false+}++type MergeBranchResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Types that are assignable to Result:+ //+ // *MergeBranchResponse_Branch+ // *MergeBranchResponse_ConflictSchema+ Result isMergeBranchResponse_Result `protobuf_oneof:"result"`+}++func (x *MergeBranchResponse) Reset() {+ *x = MergeBranchResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_branch_service_proto_msgTypes[7]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *MergeBranchResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*MergeBranchResponse) ProtoMessage() {}++func (x *MergeBranchResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_branch_service_proto_msgTypes[7]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use MergeBranchResponse.ProtoReflect.Descriptor instead.+func (*MergeBranchResponse) Descriptor() ([]byte, []int) {+ return file_v1_branch_service_proto_rawDescGZIP(), []int{7}+}++func (m *MergeBranchResponse) GetResult() isMergeBranchResponse_Result {+ if m != nil {+ return m.Result+ }+ return nil+}++func (x *MergeBranchResponse) GetBranch() *Branch {+ if x, ok := x.GetResult().(*MergeBranchResponse_Branch); ok {+ return x.Branch+ }+ return nil+}++func (x *MergeBranchResponse) GetConflictSchema() string {+ if x, ok := x.GetResult().(*MergeBranchResponse_ConflictSchema); ok {+ return x.ConflictSchema+ }+ return ""+}++type isMergeBranchResponse_Result interface {+ isMergeBranchResponse_Result()+}++type MergeBranchResponse_Branch struct {+ // The merged branch when merge occurs seamlessly.+ Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3,oneof"`+}++type MergeBranchResponse_ConflictSchema struct {+ // The conflict schema when merge has conflicts.+ // The conflict section is enclosed by the following.+ // <<<<< HEAD+ // ====+ // >>>>> main+ ConflictSchema string `protobuf:"bytes,2,opt,name=conflict_schema,json=conflictSchema,proto3,oneof"`+}++func (*MergeBranchResponse_Branch) isMergeBranchResponse_Result() {}++func (*MergeBranchResponse_ConflictSchema) isMergeBranchResponse_Result() {}+type RebaseBranchRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -691,12 +787,14 @@ type RebaseBranchRequest struct {// the call will be blocked and an ABORTED error will be returned.// The etag should be specified for using merged_schema. The etag should be the etag from named branch.Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"`+ // validate_only determines if the rebase can occur seamlessly without any conflicts.+ ValidateOnly bool `protobuf:"varint,6,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`}func (x *RebaseBranchRequest) Reset() {*x = RebaseBranchRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_branch_service_proto_msgTypes[7]+ mi := &file_v1_branch_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -709,7 +807,7 @@ func (x *RebaseBranchRequest) String() string {func (*RebaseBranchRequest) ProtoMessage() {}func (x *RebaseBranchRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_branch_service_proto_msgTypes[7]+ mi := &file_v1_branch_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -722,7 +820,7 @@ func (x *RebaseBranchRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use RebaseBranchRequest.ProtoReflect.Descriptor instead.func (*RebaseBranchRequest) Descriptor() ([]byte, []int) {- return file_v1_branch_service_proto_rawDescGZIP(), []int{7}+ return file_v1_branch_service_proto_rawDescGZIP(), []int{8}}func (x *RebaseBranchRequest) GetName() string {@@ -760,6 +858,100 @@ func (x *RebaseBranchRequest) GetEtag() string {return ""}+func (x *RebaseBranchRequest) GetValidateOnly() bool {+ if x != nil {+ return x.ValidateOnly+ }+ return false+}++type RebaseBranchResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Types that are assignable to Result:+ //+ // *RebaseBranchResponse_Branch+ // *RebaseBranchResponse_ConflictSchema+ Result isRebaseBranchResponse_Result `protobuf_oneof:"result"`+}++func (x *RebaseBranchResponse) Reset() {+ *x = RebaseBranchResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_branch_service_proto_msgTypes[9]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *RebaseBranchResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*RebaseBranchResponse) ProtoMessage() {}++func (x *RebaseBranchResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_branch_service_proto_msgTypes[9]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use RebaseBranchResponse.ProtoReflect.Descriptor instead.+func (*RebaseBranchResponse) Descriptor() ([]byte, []int) {+ return file_v1_branch_service_proto_rawDescGZIP(), []int{9}+}++func (m *RebaseBranchResponse) GetResult() isRebaseBranchResponse_Result {+ if m != nil {+ return m.Result+ }+ return nil+}++func (x *RebaseBranchResponse) GetBranch() *Branch {+ if x, ok := x.GetResult().(*RebaseBranchResponse_Branch); ok {+ return x.Branch+ }+ return nil+}++func (x *RebaseBranchResponse) GetConflictSchema() string {+ if x, ok := x.GetResult().(*RebaseBranchResponse_ConflictSchema); ok {+ return x.ConflictSchema+ }+ return ""+}++type isRebaseBranchResponse_Result interface {+ isRebaseBranchResponse_Result()+}++type RebaseBranchResponse_Branch struct {+ // The rebased branch when rebase occurs seamlessly.+ Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3,oneof"`+}++type RebaseBranchResponse_ConflictSchema struct {+ // The conflict schema when rebase has conflicts.+ // The conflict section is enclosed by the following.+ // <<<<< HEAD+ // ====+ // >>>>> main+ ConflictSchema string `protobuf:"bytes,2,opt,name=conflict_schema,json=conflictSchema,proto3,oneof"`+}++func (*RebaseBranchResponse_Branch) isRebaseBranchResponse_Result() {}++func (*RebaseBranchResponse_ConflictSchema) isRebaseBranchResponse_Result() {}+type DeleteBranchRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -773,7 +965,7 @@ type DeleteBranchRequest struct {func (x *DeleteBranchRequest) Reset() {*x = DeleteBranchRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_branch_service_proto_msgTypes[8]+ mi := &file_v1_branch_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -786,7 +978,7 @@ func (x *DeleteBranchRequest) String() string {func (*DeleteBranchRequest) ProtoMessage() {}func (x *DeleteBranchRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_branch_service_proto_msgTypes[8]+ mi := &file_v1_branch_service_proto_msgTypes[10]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -799,7 +991,7 @@ func (x *DeleteBranchRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DeleteBranchRequest.ProtoReflect.Descriptor instead.func (*DeleteBranchRequest) Descriptor() ([]byte, []int) {- return file_v1_branch_service_proto_rawDescGZIP(), []int{8}+ return file_v1_branch_service_proto_rawDescGZIP(), []int{10}}func (x *DeleteBranchRequest) GetName() string {@@ -825,7 +1017,7 @@ type DiffMetadataRequest struct {func (x *DiffMetadataRequest) Reset() {*x = DiffMetadataRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_branch_service_proto_msgTypes[9]+ mi := &file_v1_branch_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -838,7 +1030,7 @@ func (x *DiffMetadataRequest) String() string {func (*DiffMetadataRequest) ProtoMessage() {}func (x *DiffMetadataRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_branch_service_proto_msgTypes[9]+ mi := &file_v1_branch_service_proto_msgTypes[11]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -851,7 +1043,7 @@ func (x *DiffMetadataRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DiffMetadataRequest.ProtoReflect.Descriptor instead.func (*DiffMetadataRequest) Descriptor() ([]byte, []int) {- return file_v1_branch_service_proto_rawDescGZIP(), []int{9}+ return file_v1_branch_service_proto_rawDescGZIP(), []int{11}}func (x *DiffMetadataRequest) GetSourceMetadata() *DatabaseMetadata {@@ -887,7 +1079,7 @@ type DiffMetadataResponse struct {func (x *DiffMetadataResponse) Reset() {*x = DiffMetadataResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_branch_service_proto_msgTypes[10]+ mi := &file_v1_branch_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -900,7 +1092,7 @@ func (x *DiffMetadataResponse) String() string {func (*DiffMetadataResponse) ProtoMessage() {}func (x *DiffMetadataResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_branch_service_proto_msgTypes[10]+ mi := &file_v1_branch_service_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -913,7 +1105,7 @@ func (x *DiffMetadataResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use DiffMetadataResponse.ProtoReflect.Descriptor instead.func (*DiffMetadataResponse) Descriptor() ([]byte, []int) {- return file_v1_branch_service_proto_rawDescGZIP(), []int{10}+ return file_v1_branch_service_proto_rawDescGZIP(), []int{12}}func (x *DiffMetadataResponse) GetDiff() string {@@ -1021,7 +1213,7 @@ var file_v1_branch_service_proto_rawDesc = []byte{0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a,0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74,- 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0x8c,+ 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0xb1,0x01, 0x0a, 0x12, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65,0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f,@@ -1030,7 +1222,17 @@ var file_v1_branch_service_proto_rawDesc = []byte{0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x53, 0x63,0x68, 0x65, 0x6d, 0x61, 0x12, 0x17, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0xb5, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x23, 0x0a,+ 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e,+ 0x6c, 0x79, 0x22, 0x79, 0x0a, 0x13, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63,+ 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x62, 0x72, 0x61,+ 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x00,+ 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66,+ 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xda, 0x01,0x0a, 0x13, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65,0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27,@@ -1042,99 +1244,111 @@ var file_v1_branch_service_proto_rawDesc = []byte{0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20,0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d,0x61, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42,- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xdc, 0x01, 0x0a, 0x13, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65,- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a,- 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74,- 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4b, 0x0a, 0x0f, 0x74, 0x61,- 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,- 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d,- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e,- 0x67, 0x69, 0x6e, 0x65, 0x22, 0x2a, 0x0a, 0x14, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61,- 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,- 0x64, 0x69, 0x66, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x66, 0x66,- 0x2a, 0x56, 0x0a, 0x0a, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1b,- 0x0a, 0x17, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x42,- 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43,- 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45,- 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0x97, 0x08, 0x0a, 0x0d, 0x42, 0x72, 0x61,- 0x6e, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x09, 0x47, 0x65,- 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x2f, 0xda, 0x41, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x80, 0x01, 0x0a,- 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x20, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,- 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,- 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12,- 0x85, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,- 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,- 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x3e, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x2c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a,- 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x93, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61,- 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22,- 0x4c, 0xda, 0x41, 0x12, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x06, 0x62, 0x72,- 0x61, 0x6e, 0x63, 0x68, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x62, 0x72, 0x61, 0x6e, 0x63,- 0x68, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a,- 0x0b, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1f, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65,- 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e,- 0x63, 0x68, 0x22, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x28, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x12, 0x7d, 0x0a, 0x0c, 0x52, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72,+ 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,+ 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61,+ 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x7a, 0x0a, 0x14, 0x52, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x00, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63,+ 0x68, 0x12, 0x29, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x5f, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6f,+ 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x08, 0x0a, 0x06,+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xdc, 0x01, 0x0a, 0x13, 0x44, 0x69, 0x66, 0x66, 0x4d,+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b,+ 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65,+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x73, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4b, 0x0a, 0x0f, 0x74,+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,+ 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69,+ 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65,+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x2a, 0x0a, 0x14, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74,+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,+ 0x04, 0x64, 0x69, 0x66, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x66,+ 0x66, 0x2a, 0x56, 0x0a, 0x0a, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x56, 0x69, 0x65, 0x77, 0x12,+ 0x1b, 0x0a, 0x17, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11,+ 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49,+ 0x43, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x56, 0x49,+ 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0xb4, 0x08, 0x0a, 0x0d, 0x42, 0x72,+ 0x61, 0x6e, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x09, 0x47,+ 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x2f, 0xda, 0x41,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x80, 0x01,+ 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, 0x20,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,+ 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,+ 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73,+ 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63,+ 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x3e, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x2c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28,+ 0x3a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x93, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72,0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,- 0x22, 0x36, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22,- 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x22, 0x4c, 0xda, 0x41, 0x12, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2c, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x06, 0x62,+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x62, 0x72, 0x61, 0x6e,+ 0x63, 0x68, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x87,+ 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72,+ 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65,+ 0x72, 0x67, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0x35, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28,+ 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65, 0x42, 0x72,+ 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36,+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x27, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,+ 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63,+ 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,+ 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a,+ 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x3a, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x61,- 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,- 0x74, 0x79, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0x7d, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64,- 0x61, 0x74, 0x61, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x7d, 0x12, 0x7d, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,- 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,- 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,- 0x74, 0x61, 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,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01,+ 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,+ 0x69, 0x67, 0x6e, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,+ 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 (@@ -1150,7 +1364,7 @@ func file_v1_branch_service_proto_rawDescGZIP() []byte {}var file_v1_branch_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)+var file_v1_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13)var file_v1_branch_service_proto_goTypes = []interface{}{(BranchView)(0), // 0: bytebase.v1.BranchView(*Branch)(nil), // 1: bytebase.v1.Branch@@ -1160,51 +1374,55 @@ var file_v1_branch_service_proto_goTypes = []interface{}{(*CreateBranchRequest)(nil), // 5: bytebase.v1.CreateBranchRequest(*UpdateBranchRequest)(nil), // 6: bytebase.v1.UpdateBranchRequest(*MergeBranchRequest)(nil), // 7: bytebase.v1.MergeBranchRequest- (*RebaseBranchRequest)(nil), // 8: bytebase.v1.RebaseBranchRequest- (*DeleteBranchRequest)(nil), // 9: bytebase.v1.DeleteBranchRequest- (*DiffMetadataRequest)(nil), // 10: bytebase.v1.DiffMetadataRequest- (*DiffMetadataResponse)(nil), // 11: bytebase.v1.DiffMetadataResponse- (*DatabaseMetadata)(nil), // 12: bytebase.v1.DatabaseMetadata- (Engine)(0), // 13: bytebase.v1.Engine- (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp- (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask- (*emptypb.Empty)(nil), // 16: google.protobuf.Empty+ (*MergeBranchResponse)(nil), // 8: bytebase.v1.MergeBranchResponse+ (*RebaseBranchRequest)(nil), // 9: bytebase.v1.RebaseBranchRequest+ (*RebaseBranchResponse)(nil), // 10: bytebase.v1.RebaseBranchResponse+ (*DeleteBranchRequest)(nil), // 11: bytebase.v1.DeleteBranchRequest+ (*DiffMetadataRequest)(nil), // 12: bytebase.v1.DiffMetadataRequest+ (*DiffMetadataResponse)(nil), // 13: bytebase.v1.DiffMetadataResponse+ (*DatabaseMetadata)(nil), // 14: bytebase.v1.DatabaseMetadata+ (Engine)(0), // 15: bytebase.v1.Engine+ (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp+ (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask+ (*emptypb.Empty)(nil), // 18: google.protobuf.Empty}var file_v1_branch_service_proto_depIdxs = []int32{- 12, // 0: bytebase.v1.Branch.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 12, // 1: bytebase.v1.Branch.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 13, // 2: bytebase.v1.Branch.engine:type_name -> bytebase.v1.Engine- 14, // 3: bytebase.v1.Branch.create_time:type_name -> google.protobuf.Timestamp- 14, // 4: bytebase.v1.Branch.update_time:type_name -> google.protobuf.Timestamp+ 14, // 0: bytebase.v1.Branch.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 14, // 1: bytebase.v1.Branch.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 15, // 2: bytebase.v1.Branch.engine:type_name -> bytebase.v1.Engine+ 16, // 3: bytebase.v1.Branch.create_time:type_name -> google.protobuf.Timestamp+ 16, // 4: bytebase.v1.Branch.update_time:type_name -> google.protobuf.Timestamp0, // 5: bytebase.v1.ListBranchesRequest.view:type_name -> bytebase.v1.BranchView1, // 6: bytebase.v1.ListBranchesResponse.branches:type_name -> bytebase.v1.Branch1, // 7: bytebase.v1.CreateBranchRequest.branch:type_name -> bytebase.v1.Branch1, // 8: bytebase.v1.UpdateBranchRequest.branch:type_name -> bytebase.v1.Branch- 15, // 9: bytebase.v1.UpdateBranchRequest.update_mask:type_name -> google.protobuf.FieldMask- 12, // 10: bytebase.v1.DiffMetadataRequest.source_metadata:type_name -> bytebase.v1.DatabaseMetadata- 12, // 11: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata- 13, // 12: bytebase.v1.DiffMetadataRequest.engine:type_name -> bytebase.v1.Engine- 2, // 13: bytebase.v1.BranchService.GetBranch:input_type -> bytebase.v1.GetBranchRequest- 3, // 14: bytebase.v1.BranchService.ListBranches:input_type -> bytebase.v1.ListBranchesRequest- 5, // 15: bytebase.v1.BranchService.CreateBranch:input_type -> bytebase.v1.CreateBranchRequest- 6, // 16: bytebase.v1.BranchService.UpdateBranch:input_type -> bytebase.v1.UpdateBranchRequest- 7, // 17: bytebase.v1.BranchService.MergeBranch:input_type -> bytebase.v1.MergeBranchRequest- 8, // 18: bytebase.v1.BranchService.RebaseBranch:input_type -> bytebase.v1.RebaseBranchRequest- 9, // 19: bytebase.v1.BranchService.DeleteBranch:input_type -> bytebase.v1.DeleteBranchRequest- 10, // 20: bytebase.v1.BranchService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest- 1, // 21: bytebase.v1.BranchService.GetBranch:output_type -> bytebase.v1.Branch- 4, // 22: bytebase.v1.BranchService.ListBranches:output_type -> bytebase.v1.ListBranchesResponse- 1, // 23: bytebase.v1.BranchService.CreateBranch:output_type -> bytebase.v1.Branch- 1, // 24: bytebase.v1.BranchService.UpdateBranch:output_type -> bytebase.v1.Branch- 1, // 25: bytebase.v1.BranchService.MergeBranch:output_type -> bytebase.v1.Branch- 1, // 26: bytebase.v1.BranchService.RebaseBranch:output_type -> bytebase.v1.Branch- 16, // 27: bytebase.v1.BranchService.DeleteBranch:output_type -> google.protobuf.Empty- 11, // 28: bytebase.v1.BranchService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse- 21, // [21:29] is the sub-list for method output_type- 13, // [13:21] is the sub-list for method input_type- 13, // [13:13] is the sub-list for extension type_name- 13, // [13:13] is the sub-list for extension extendee- 0, // [0:13] is the sub-list for field type_name+ 17, // 9: bytebase.v1.UpdateBranchRequest.update_mask:type_name -> google.protobuf.FieldMask+ 1, // 10: bytebase.v1.MergeBranchResponse.branch:type_name -> bytebase.v1.Branch+ 1, // 11: bytebase.v1.RebaseBranchResponse.branch:type_name -> bytebase.v1.Branch+ 14, // 12: bytebase.v1.DiffMetadataRequest.source_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 14, // 13: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 15, // 14: bytebase.v1.DiffMetadataRequest.engine:type_name -> bytebase.v1.Engine+ 2, // 15: bytebase.v1.BranchService.GetBranch:input_type -> bytebase.v1.GetBranchRequest+ 3, // 16: bytebase.v1.BranchService.ListBranches:input_type -> bytebase.v1.ListBranchesRequest+ 5, // 17: bytebase.v1.BranchService.CreateBranch:input_type -> bytebase.v1.CreateBranchRequest+ 6, // 18: bytebase.v1.BranchService.UpdateBranch:input_type -> bytebase.v1.UpdateBranchRequest+ 7, // 19: bytebase.v1.BranchService.MergeBranch:input_type -> bytebase.v1.MergeBranchRequest+ 9, // 20: bytebase.v1.BranchService.RebaseBranch:input_type -> bytebase.v1.RebaseBranchRequest+ 11, // 21: bytebase.v1.BranchService.DeleteBranch:input_type -> bytebase.v1.DeleteBranchRequest+ 12, // 22: bytebase.v1.BranchService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest+ 1, // 23: bytebase.v1.BranchService.GetBranch:output_type -> bytebase.v1.Branch+ 4, // 24: bytebase.v1.BranchService.ListBranches:output_type -> bytebase.v1.ListBranchesResponse+ 1, // 25: bytebase.v1.BranchService.CreateBranch:output_type -> bytebase.v1.Branch+ 1, // 26: bytebase.v1.BranchService.UpdateBranch:output_type -> bytebase.v1.Branch+ 8, // 27: bytebase.v1.BranchService.MergeBranch:output_type -> bytebase.v1.MergeBranchResponse+ 10, // 28: bytebase.v1.BranchService.RebaseBranch:output_type -> bytebase.v1.RebaseBranchResponse+ 18, // 29: bytebase.v1.BranchService.DeleteBranch:output_type -> google.protobuf.Empty+ 13, // 30: bytebase.v1.BranchService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse+ 23, // [23:31] is the sub-list for method output_type+ 15, // [15:23] is the sub-list for method input_type+ 15, // [15:15] is the sub-list for extension type_name+ 15, // [15:15] is the sub-list for extension extendee+ 0, // [0:15] is the sub-list for field type_name}func init() { file_v1_branch_service_proto_init() }@@ -1300,7 +1518,7 @@ func file_v1_branch_service_proto_init() {}}file_v1_branch_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*RebaseBranchRequest); i {+ switch v := v.(*MergeBranchResponse); i {case 0:return &v.statecase 1:@@ -1312,7 +1530,7 @@ func file_v1_branch_service_proto_init() {}}file_v1_branch_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DeleteBranchRequest); i {+ switch v := v.(*RebaseBranchRequest); i {case 0:return &v.statecase 1:@@ -1324,7 +1542,7 @@ func file_v1_branch_service_proto_init() {}}file_v1_branch_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DiffMetadataRequest); i {+ switch v := v.(*RebaseBranchResponse); i {case 0:return &v.statecase 1:@@ -1336,6 +1554,30 @@ func file_v1_branch_service_proto_init() {}}file_v1_branch_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DeleteBranchRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_branch_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DiffMetadataRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_branch_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DiffMetadataResponse); i {case 0:return &v.state@@ -1348,13 +1590,21 @@ func file_v1_branch_service_proto_init() {}}}+ file_v1_branch_service_proto_msgTypes[7].OneofWrappers = []interface{}{+ (*MergeBranchResponse_Branch)(nil),+ (*MergeBranchResponse_ConflictSchema)(nil),+ }+ file_v1_branch_service_proto_msgTypes[9].OneofWrappers = []interface{}{+ (*RebaseBranchResponse_Branch)(nil),+ (*RebaseBranchResponse_ConflictSchema)(nil),+ }type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_branch_service_proto_rawDesc,NumEnums: 1,- NumMessages: 11,+ NumMessages: 13,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/branch_service_grpc.pb.go b/proto/generated-go/v1/branch_service_grpc.pb.goindex 2b2de1aa12..b7776a61eb 100644--- a/proto/generated-go/v1/branch_service_grpc.pb.go+++ b/proto/generated-go/v1/branch_service_grpc.pb.go@@ -38,8 +38,8 @@ type BranchServiceClient interface {ListBranches(ctx context.Context, in *ListBranchesRequest, opts ...grpc.CallOption) (*ListBranchesResponse, error)CreateBranch(ctx context.Context, in *CreateBranchRequest, opts ...grpc.CallOption) (*Branch, error)UpdateBranch(ctx context.Context, in *UpdateBranchRequest, opts ...grpc.CallOption) (*Branch, error)- MergeBranch(ctx context.Context, in *MergeBranchRequest, opts ...grpc.CallOption) (*Branch, error)- RebaseBranch(ctx context.Context, in *RebaseBranchRequest, opts ...grpc.CallOption) (*Branch, error)+ MergeBranch(ctx context.Context, in *MergeBranchRequest, opts ...grpc.CallOption) (*MergeBranchResponse, error)+ RebaseBranch(ctx context.Context, in *RebaseBranchRequest, opts ...grpc.CallOption) (*RebaseBranchResponse, error)DeleteBranch(ctx context.Context, in *DeleteBranchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)DiffMetadata(ctx context.Context, in *DiffMetadataRequest, opts ...grpc.CallOption) (*DiffMetadataResponse, error)}@@ -88,8 +88,8 @@ func (c *branchServiceClient) UpdateBranch(ctx context.Context, in *UpdateBranchreturn out, nil}-func (c *branchServiceClient) MergeBranch(ctx context.Context, in *MergeBranchRequest, opts ...grpc.CallOption) (*Branch, error) {- out := new(Branch)+func (c *branchServiceClient) MergeBranch(ctx context.Context, in *MergeBranchRequest, opts ...grpc.CallOption) (*MergeBranchResponse, error) {+ out := new(MergeBranchResponse)err := c.cc.Invoke(ctx, BranchService_MergeBranch_FullMethodName, in, out, opts...)if err != nil {return nil, err@@ -97,8 +97,8 @@ func (c *branchServiceClient) MergeBranch(ctx context.Context, in *MergeBranchRereturn out, nil}-func (c *branchServiceClient) RebaseBranch(ctx context.Context, in *RebaseBranchRequest, opts ...grpc.CallOption) (*Branch, error) {- out := new(Branch)+func (c *branchServiceClient) RebaseBranch(ctx context.Context, in *RebaseBranchRequest, opts ...grpc.CallOption) (*RebaseBranchResponse, error) {+ out := new(RebaseBranchResponse)err := c.cc.Invoke(ctx, BranchService_RebaseBranch_FullMethodName, in, out, opts...)if err != nil {return nil, err@@ -132,8 +132,8 @@ type BranchServiceServer interface {ListBranches(context.Context, *ListBranchesRequest) (*ListBranchesResponse, error)CreateBranch(context.Context, *CreateBranchRequest) (*Branch, error)UpdateBranch(context.Context, *UpdateBranchRequest) (*Branch, error)- MergeBranch(context.Context, *MergeBranchRequest) (*Branch, error)- RebaseBranch(context.Context, *RebaseBranchRequest) (*Branch, error)+ MergeBranch(context.Context, *MergeBranchRequest) (*MergeBranchResponse, error)+ RebaseBranch(context.Context, *RebaseBranchRequest) (*RebaseBranchResponse, error)DeleteBranch(context.Context, *DeleteBranchRequest) (*emptypb.Empty, error)DiffMetadata(context.Context, *DiffMetadataRequest) (*DiffMetadataResponse, error)mustEmbedUnimplementedBranchServiceServer()@@ -155,10 +155,10 @@ func (UnimplementedBranchServiceServer) CreateBranch(context.Context, *CreateBrafunc (UnimplementedBranchServiceServer) UpdateBranch(context.Context, *UpdateBranchRequest) (*Branch, error) {return nil, status.Errorf(codes.Unimplemented, "method UpdateBranch not implemented")}-func (UnimplementedBranchServiceServer) MergeBranch(context.Context, *MergeBranchRequest) (*Branch, error) {+func (UnimplementedBranchServiceServer) MergeBranch(context.Context, *MergeBranchRequest) (*MergeBranchResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method MergeBranch not implemented")}-func (UnimplementedBranchServiceServer) RebaseBranch(context.Context, *RebaseBranchRequest) (*Branch, error) {+func (UnimplementedBranchServiceServer) RebaseBranch(context.Context, *RebaseBranchRequest) (*RebaseBranchResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method RebaseBranch not implemented")}func (UnimplementedBranchServiceServer) DeleteBranch(context.Context, *DeleteBranchRequest) (*emptypb.Empty, error) {diff --git a/proto/v1/branch_service.proto b/proto/v1/branch_service.protoindex 3bb7c8e8b6..744d47e4c6 100644--- a/proto/v1/branch_service.proto+++ b/proto/v1/branch_service.proto@@ -40,12 +40,12 @@ service BranchService {option (google.api.method_signature) = "branch,update_mask";}- rpc MergeBranch(MergeBranchRequest) returns (Branch) {+ rpc MergeBranch(MergeBranchRequest) returns (MergeBranchResponse) {option (google.api.http) = {post: "/v1/{name=projects/*/branches/*}:merge"};option (google.api.method_signature) = "name";}- rpc RebaseBranch(RebaseBranchRequest) returns (Branch) {+ rpc RebaseBranch(RebaseBranchRequest) returns (RebaseBranchResponse) {option (google.api.http) = {post: "/v1/{name=projects/*/branches/*}:rebase"};option (google.api.method_signature) = "name";}@@ -211,6 +211,22 @@ message MergeBranchRequest {// the call will be blocked and an ABORTED error will be returned.// The etag should be specified for using merged_schema. The etag should be the etag from named branch.string etag = 4 [(google.api.field_behavior) = OPTIONAL];++ // validate_only determines if the merge can occur seamlessly without any conflicts.+ bool validate_only = 5;+}++message MergeBranchResponse {+ oneof result {+ // The merged branch when merge occurs seamlessly.+ Branch branch = 1;+ // The conflict schema when merge has conflicts.+ // The conflict section is enclosed by the following.+ // <<<<< HEAD+ // ====+ // >>>>> main+ string conflict_schema = 2;+ }}message RebaseBranchRequest {@@ -237,6 +253,22 @@ message RebaseBranchRequest {// the call will be blocked and an ABORTED error will be returned.// The etag should be specified for using merged_schema. The etag should be the etag from named branch.string etag = 5;++ // validate_only determines if the rebase can occur seamlessly without any conflicts.+ bool validate_only = 6;+}++message RebaseBranchResponse {+ oneof result {+ // The rebased branch when rebase occurs seamlessly.+ Branch branch = 1;+ // The conflict schema when rebase has conflicts.+ // The conflict section is enclosed by the following.+ // <<<<< HEAD+ // ====+ // >>>>> main+ string conflict_schema = 2;+ }}message DeleteBranchRequest {