Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: impl batch create sheet (#14366)
p0ny202c7f9b7ddf
diff --git a/backend/api/v1/sheet_service.go b/backend/api/v1/sheet_service.goindex dc926f8411..1e78b01f19 100644--- a/backend/api/v1/sheet_service.go+++ b/backend/api/v1/sheet_service.go@@ -112,6 +112,92 @@ func (s *SheetService) CreateSheet(ctx context.Context, request *v1pb.CreateSheereturn v1pbSheet, nil}+func (s *SheetService) BatchCreateSheet(ctx context.Context, request *v1pb.BatchCreateSheetRequest) (*v1pb.BatchCreateSheetResponse, error) {+ if len(request.Requests) == 0 {+ return nil, status.Errorf(codes.InvalidArgument, "requests must be set")+ }+ user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)+ if !ok {+ return nil, status.Errorf(codes.Internal, "user not found")+ }++ projectResourceID, err := common.GetProjectID(request.Parent)+ if err != nil {+ return nil, status.Error(codes.InvalidArgument, err.Error())+ }+ project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{+ ResourceID: &projectResourceID,+ })+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get project with resource id %q, err: %v", projectResourceID, err)+ }+ if project == nil {+ return nil, status.Errorf(codes.NotFound, "project with resource id %q not found", projectResourceID)+ }+ if project.Deleted {+ return nil, status.Errorf(codes.NotFound, "project with resource id %q had deleted", projectResourceID)+ }++ var sheetCreates []*store.SheetMessage+ for _, r := range request.Requests {+ if r.Parent != "" && r.Parent != request.Parent {+ return nil, status.Errorf(codes.InvalidArgument, "Sheet Parent %q does not match BatchCreateSheetRequest.Parent %q", r.Parent, request.Parent)+ }++ var databaseUID *int+ if r.Sheet.Database != "" {+ instanceResourceID, databaseName, err := common.GetInstanceDatabaseID(r.Sheet.Database)+ if err != nil {+ return nil, status.Error(codes.InvalidArgument, err.Error())+ }+ instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{+ ResourceID: &instanceResourceID,+ })+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get instance with resource id %q, err: %v", instanceResourceID, err)+ }+ if instance == nil {+ return nil, status.Errorf(codes.NotFound, "instance with resource id %q not found", instanceResourceID)+ }++ find := &store.FindDatabaseMessage{+ ProjectID: &projectResourceID,+ InstanceID: &instanceResourceID,+ DatabaseName: &databaseName,+ IgnoreCaseSensitive: store.IgnoreDatabaseAndTableCaseSensitive(instance),+ }+ database, err := s.store.GetDatabaseV2(ctx, find)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get database with name %q, err: %s", databaseName, err)+ }+ if database == nil {+ return nil, status.Errorf(codes.NotFound, "database with name %q not found in project %q instance %q", databaseName, projectResourceID, instanceResourceID)+ }+ databaseUID = &database.UID+ }+ storeSheetCreate, err := convertToStoreSheetMessage(ctx, project.UID, databaseUID, user.ID, r.Sheet)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, "failed to convert sheet: %v", err)+ }++ sheetCreates = append(sheetCreates, storeSheetCreate)+ }++ sheets, err := s.sheetManager.BatchCreateSheet(ctx, sheetCreates, project.UID, user.ID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to create sheet: %v", err)+ }+ response := &v1pb.BatchCreateSheetResponse{}+ for _, sheet := range sheets {+ v1pbSheet, err := s.convertToAPISheetMessage(ctx, sheet)+ if err != nil {+ return nil, err+ }+ response.Sheets = append(response.Sheets, v1pbSheet)+ }+ return response, nil+}+// GetSheet returns the requested sheet, cutoff the content if the content is too long and the `raw` flag in request is false.func (s *SheetService) GetSheet(ctx context.Context, request *v1pb.GetSheetRequest) (*v1pb.Sheet, error) {projectResourceID, sheetUID, err := common.GetProjectResourceIDSheetUID(request.Name)diff --git a/backend/component/sheet/sheet.go b/backend/component/sheet/sheet.goindex 6a99e10c71..5be412fa37 100644--- a/backend/component/sheet/sheet.go+++ b/backend/component/sheet/sheet.go@@ -12,6 +12,7 @@ import ("time"lru "github.com/hashicorp/golang-lru/v2/expirable"+ "github.com/pkg/errors""github.com/zeebo/xxh3"tidbparser "github.com/pingcap/tidb/pkg/parser"@@ -71,6 +72,21 @@ func (sm *Manager) CreateSheet(ctx context.Context, sheet *store.SheetMessage) (return sm.store.CreateSheet(ctx, sheet)}+func (sm *Manager) BatchCreateSheet(ctx context.Context, sheets []*store.SheetMessage, projectUID int, creatorUID int) ([]*store.SheetMessage, error) {+ for _, sheet := range sheets {+ if sheet.Payload == nil {+ sheet.Payload = &storepb.SheetPayload{}+ }+ sheet.Payload.Commands = getSheetCommands(sheet.Payload.Engine, sheet.Statement)+ }++ sheets, err := sm.store.BatchCreateSheet(ctx, projectUID, sheets, creatorUID)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to batch create sheets")+ }+ return sheets, nil+}+func getSheetCommands(engine storepb.Engine, statement string) []*storepb.SheetCommand {// Burnout for large SQL. This could cause issue for Oracle and MSSQL that requires sending one command at a time.// But we do what we can do.diff --git a/backend/store/sheet.go b/backend/store/sheet.goindex e16ae5edc2..9b13e94ba5 100644--- a/backend/store/sheet.go+++ b/backend/store/sheet.go@@ -277,6 +277,90 @@ func (s *Store) CreateSheet(ctx context.Context, create *SheetMessage) (*SheetMereturn create, nil}+// BatchCreateSheet creates a new sheet.+// You should not use this function directly to create sheets.+// Use BatchCreateSheet in component/sheet instead.+func (s *Store) BatchCreateSheet(ctx context.Context, projectUID int, creates []*SheetMessage, creatorUID int) ([]*SheetMessage, error) {+ var databaseIDs []*int+ var names []string+ var statements []string+ var payloads [][]byte++ for _, c := range creates {+ databaseIDs = append(databaseIDs, c.DatabaseUID)+ names = append(names, c.Title)+ statements = append(statements, c.Statement)+ if c.Payload == nil {+ c.Payload = &storepb.SheetPayload{}+ }+ payload, err := protojson.Marshal(c.Payload)+ if err != nil {+ return nil, err+ }+ payloads = append(payloads, payload)+ }++ query := `+ INSERT INTO sheet (+ creator_id,+ updater_id,+ project_id,+ database_id,+ name,+ statement,+ payload+ ) SELECT+ $1,+ $2,+ $3,+ unnest(CAST($4 AS INTEGER[])),+ unnest(CAST($5 AS TEXT[])),+ unnest(CAST($6 AS TEXT[])),+ unnest(CAST($7 AS JSONB[]))+ RETURNING id, created_ts, updated_ts, OCTET_LENGTH(statement), encode(sha256(convert_to(sheet.statement, 'UTF8')), 'hex')+ `++ tx, err := s.db.BeginTx(ctx, nil)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to begin tx")+ }+ defer tx.Rollback()++ rows, err := tx.QueryContext(ctx, query, creatorUID, creatorUID, projectUID, databaseIDs, names, statements, payloads)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to query")+ }+ defer rows.Close()++ for i := 0; rows.Next(); i++ {+ creates[i].UpdaterID = creatorUID+ creates[i].CreatorID = creatorUID++ if err := rows.Scan(+ &creates[i].UID,+ &creates[i].createdTs,+ &creates[i].updatedTs,+ &creates[i].Size,+ &creates[i].Sha256,+ ); err != nil {+ return nil, errors.Wrapf(err, "failed to scan")+ }++ creates[i].CreatedTime = time.Unix(creates[i].createdTs, 0)+ creates[i].UpdatedTime = time.Unix(creates[i].updatedTs, 0)+ }++ if err := rows.Err(); err != nil {+ return nil, errors.Wrapf(err, "rows err")+ }++ if err := tx.Commit(); err != nil {+ return nil, errors.Wrapf(err, "failed to commit tx")+ }++ return creates, nil+}+// PatchSheet updates a sheet.func (s *Store) PatchSheet(ctx context.Context, patch *PatchSheetMessage) (*SheetMessage, error) {tx, err := s.db.BeginTx(ctx, nil)diff --git a/frontend/src/types/proto/v1/sheet_service.ts b/frontend/src/types/proto/v1/sheet_service.tsindex ab116dda3f..42246c02c3 100644--- a/frontend/src/types/proto/v1/sheet_service.ts+++ b/frontend/src/types/proto/v1/sheet_service.ts@@ -24,6 +24,19 @@ export interface CreateSheetRequest {sheet: Sheet | undefined;}+export interface BatchCreateSheetRequest {+ /**+ * The parent resource where all sheets will be created.+ * Format: projects/{project}+ */+ parent: string;+ requests: CreateSheetRequest[];+}++export interface BatchCreateSheetResponse {+ sheets: Sheet[];+}+export interface GetSheetRequest {/*** The name of the sheet to retrieve.@@ -237,6 +250,139 @@ export const CreateSheetRequest: MessageFns<CreateSheetRequest> = {},};+function createBaseBatchCreateSheetRequest(): BatchCreateSheetRequest {+ return { parent: "", requests: [] };+}++export const BatchCreateSheetRequest: MessageFns<BatchCreateSheetRequest> = {+ encode(message: BatchCreateSheetRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ for (const v of message.requests) {+ CreateSheetRequest.encode(v!, writer.uint32(18).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): BatchCreateSheetRequest {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseBatchCreateSheetRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.parent = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.requests.push(CreateSheetRequest.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): BatchCreateSheetRequest {+ return {+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ requests: globalThis.Array.isArray(object?.requests)+ ? object.requests.map((e: any) => CreateSheetRequest.fromJSON(e))+ : [],+ };+ },++ toJSON(message: BatchCreateSheetRequest): unknown {+ const obj: any = {};+ if (message.parent !== "") {+ obj.parent = message.parent;+ }+ if (message.requests?.length) {+ obj.requests = message.requests.map((e) => CreateSheetRequest.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<BatchCreateSheetRequest>): BatchCreateSheetRequest {+ return BatchCreateSheetRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<BatchCreateSheetRequest>): BatchCreateSheetRequest {+ const message = createBaseBatchCreateSheetRequest();+ message.parent = object.parent ?? "";+ message.requests = object.requests?.map((e) => CreateSheetRequest.fromPartial(e)) || [];+ return message;+ },+};++function createBaseBatchCreateSheetResponse(): BatchCreateSheetResponse {+ return { sheets: [] };+}++export const BatchCreateSheetResponse: MessageFns<BatchCreateSheetResponse> = {+ encode(message: BatchCreateSheetResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ for (const v of message.sheets) {+ Sheet.encode(v!, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): BatchCreateSheetResponse {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseBatchCreateSheetResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.sheets.push(Sheet.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): BatchCreateSheetResponse {+ return { sheets: globalThis.Array.isArray(object?.sheets) ? object.sheets.map((e: any) => Sheet.fromJSON(e)) : [] };+ },++ toJSON(message: BatchCreateSheetResponse): unknown {+ const obj: any = {};+ if (message.sheets?.length) {+ obj.sheets = message.sheets.map((e) => Sheet.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<BatchCreateSheetResponse>): BatchCreateSheetResponse {+ return BatchCreateSheetResponse.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<BatchCreateSheetResponse>): BatchCreateSheetResponse {+ const message = createBaseBatchCreateSheetResponse();+ message.sheets = object.sheets?.map((e) => Sheet.fromPartial(e)) || [];+ return message;+ },+};+function createBaseGetSheetRequest(): GetSheetRequest {return { name: "", raw: false };}@@ -853,6 +999,71 @@ export const SheetServiceDefinition = {},},},+ batchCreateSheet: {+ name: "BatchCreateSheet",+ requestType: BatchCreateSheetRequest,+ requestStream: false,+ responseType: BatchCreateSheetResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 800010: [new Uint8Array([16, 98, 98, 46, 115, 104, 101, 101, 116, 115, 46, 99, 114, 101, 97, 116, 101])],+ 800016: [new Uint8Array([1])],+ 578365826: [+ new Uint8Array([+ 47,+ 58,+ 1,+ 42,+ 34,+ 42,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 125,+ 47,+ 115,+ 104,+ 101,+ 101,+ 116,+ 115,+ 58,+ 98,+ 97,+ 116,+ 99,+ 104,+ 67,+ 114,+ 101,+ 97,+ 116,+ 101,+ ]),+ ],+ },+ },+ },getSheet: {name: "GetSheet",requestType: GetSheetRequest,diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex a29885e5a2..823a75c541 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -6454,6 +6454,37 @@ paths:application/json:schema:$ref: '#/components/schemas/Status'+ /v1/projects/{project}/sheets:batchCreate:+ post:+ tags:+ - SheetService+ operationId: SheetService_BatchCreateSheet+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchCreateSheetRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchCreateSheetResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'/v1/projects/{project}/slowQueries:get:tags:@@ -9049,6 +9080,28 @@ components:BatchCancelTaskRunsResponse:type: objectproperties: {}+ BatchCreateSheetRequest:+ required:+ - parent+ - requests+ type: object+ properties:+ parent:+ type: string+ description: |-+ The parent resource where all sheets will be created.+ Format: projects/{project}+ requests:+ type: array+ items:+ $ref: '#/components/schemas/CreateSheetRequest'+ BatchCreateSheetResponse:+ type: object+ properties:+ sheets:+ type: array+ items:+ $ref: '#/components/schemas/Sheet'BatchDeparseRequest:type: objectproperties:@@ -9691,6 +9744,21 @@ components:- $ref: '#/components/schemas/GenerationMetadata'description: The generation is the generation of a column.description: ColumnMetadata is the metadata for columns.+ CreateSheetRequest:+ required:+ - parent+ - sheet+ type: object+ properties:+ parent:+ type: string+ description: |-+ The parent resource where this sheet will be created.+ Format: projects/{project}+ sheet:+ allOf:+ - $ref: '#/components/schemas/Sheet'+ description: The sheet to create.DataClassificationConfig_DataClassification:type: objectproperties:diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 22485b4738..31e042a95f 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -659,6 +659,8 @@- [RolloutService](#bytebase-v1-RolloutService)- [v1/sheet_service.proto](#v1_sheet_service-proto)+ - [BatchCreateSheetRequest](#bytebase-v1-BatchCreateSheetRequest)+ - [BatchCreateSheetResponse](#bytebase-v1-BatchCreateSheetResponse)- [CreateSheetRequest](#bytebase-v1-CreateSheetRequest)- [GetSheetRequest](#bytebase-v1-GetSheetRequest)- [Sheet](#bytebase-v1-Sheet)@@ -10605,6 +10607,37 @@ Read from `pg_stat_activity`+<a name="bytebase-v1-BatchCreateSheetRequest"></a>++### BatchCreateSheetRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent resource where all sheets will be created. Format: projects/{project} |+| requests | [CreateSheetRequest](#bytebase-v1-CreateSheetRequest) | repeated | |+++++++<a name="bytebase-v1-BatchCreateSheetResponse"></a>++### BatchCreateSheetResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| sheets | [Sheet](#bytebase-v1-Sheet) | repeated | |++++++<a name="bytebase-v1-CreateSheetRequest"></a>### CreateSheetRequest@@ -10739,6 +10772,7 @@ Type of the SheetPayload.| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|| CreateSheet | [CreateSheetRequest](#bytebase-v1-CreateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |+| BatchCreateSheet | [BatchCreateSheetRequest](#bytebase-v1-BatchCreateSheetRequest) | [BatchCreateSheetResponse](#bytebase-v1-BatchCreateSheetResponse) | || GetSheet | [GetSheetRequest](#bytebase-v1-GetSheetRequest) | [Sheet](#bytebase-v1-Sheet) | || UpdateSheet | [UpdateSheetRequest](#bytebase-v1-UpdateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 099ea0d60f..7e23f6008c 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -2694,6 +2694,14 @@<a href="#v1%2fsheet_service.proto">v1/sheet_service.proto</a><ul>+ <li>+ <a href="#bytebase.v1.BatchCreateSheetRequest"><span class="badge">M</span>BatchCreateSheetRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.BatchCreateSheetResponse"><span class="badge">M</span>BatchCreateSheetResponse</a>+ </li>+<li><a href="#bytebase.v1.CreateSheetRequest"><span class="badge">M</span>CreateSheetRequest</a></li>@@ -29144,6 +29152,62 @@ The access is the same as BatchRunTasks().</p></td><p></p>+ <h3 id="bytebase.v1.BatchCreateSheetRequest">BatchCreateSheetRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where all sheets will be created.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>requests</td>+ <td><a href="#bytebase.v1.CreateSheetRequest">CreateSheetRequest</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchCreateSheetResponse">BatchCreateSheetResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>sheets</td>+ <td><a href="#bytebase.v1.Sheet">Sheet</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.v1.CreateSheetRequest">CreateSheetRequest</h3><p></p>@@ -29461,6 +29525,13 @@ Only support update the following fields for now:<td><p></p></td></tr>+ <tr>+ <td>BatchCreateSheet</td>+ <td><a href="#bytebase.v1.BatchCreateSheetRequest">BatchCreateSheetRequest</a></td>+ <td><a href="#bytebase.v1.BatchCreateSheetResponse">BatchCreateSheetResponse</a></td>+ <td><p></p></td>+ </tr>+<tr><td>GetSheet</td><td><a href="#bytebase.v1.GetSheetRequest">GetSheetRequest</a></td>@@ -29505,6 +29576,16 @@ Only support update the following fields for now:+ <tr>+ <td>BatchCreateSheet</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/sheets:batchCreate</td>+ <td>*</td>+ </tr>++++<tr><td>GetSheet</td><td>GET</td>diff --git a/proto/generated-go/v1/sheet_service.pb.go b/proto/generated-go/v1/sheet_service.pb.goindex a06d564dfb..033a5d6ee7 100644--- a/proto/generated-go/v1/sheet_service.pb.go+++ b/proto/generated-go/v1/sheet_service.pb.go@@ -67,7 +67,7 @@ func (x SheetPayload_Type) Number() protoreflect.EnumNumber {// Deprecated: Use SheetPayload_Type.Descriptor instead.func (SheetPayload_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{4, 0}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{6, 0}}type CreateSheetRequest struct {@@ -126,6 +126,106 @@ func (x *CreateSheetRequest) GetSheet() *Sheet {return nil}+type BatchCreateSheetRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent resource where all sheets will be created.+ // Format: projects/{project}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ Requests []*CreateSheetRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`+}++func (x *BatchCreateSheetRequest) Reset() {+ *x = BatchCreateSheetRequest{}+ mi := &file_v1_sheet_service_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *BatchCreateSheetRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*BatchCreateSheetRequest) ProtoMessage() {}++func (x *BatchCreateSheetRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_sheet_service_proto_msgTypes[1]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use BatchCreateSheetRequest.ProtoReflect.Descriptor instead.+func (*BatchCreateSheetRequest) Descriptor() ([]byte, []int) {+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{1}+}++func (x *BatchCreateSheetRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *BatchCreateSheetRequest) GetRequests() []*CreateSheetRequest {+ if x != nil {+ return x.Requests+ }+ return nil+}++type BatchCreateSheetResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Sheets []*Sheet `protobuf:"bytes,1,rep,name=sheets,proto3" json:"sheets,omitempty"`+}++func (x *BatchCreateSheetResponse) Reset() {+ *x = BatchCreateSheetResponse{}+ mi := &file_v1_sheet_service_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *BatchCreateSheetResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*BatchCreateSheetResponse) ProtoMessage() {}++func (x *BatchCreateSheetResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_sheet_service_proto_msgTypes[2]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use BatchCreateSheetResponse.ProtoReflect.Descriptor instead.+func (*BatchCreateSheetResponse) Descriptor() ([]byte, []int) {+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{2}+}++func (x *BatchCreateSheetResponse) GetSheets() []*Sheet {+ if x != nil {+ return x.Sheets+ }+ return nil+}+type GetSheetRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -140,7 +240,7 @@ type GetSheetRequest struct {func (x *GetSheetRequest) Reset() {*x = GetSheetRequest{}- mi := &file_v1_sheet_service_proto_msgTypes[1]+ mi := &file_v1_sheet_service_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -152,7 +252,7 @@ func (x *GetSheetRequest) String() string {func (*GetSheetRequest) ProtoMessage() {}func (x *GetSheetRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[1]+ mi := &file_v1_sheet_service_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -165,7 +265,7 @@ func (x *GetSheetRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetSheetRequest.ProtoReflect.Descriptor instead.func (*GetSheetRequest) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{1}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{3}}func (x *GetSheetRequest) GetName() string {@@ -203,7 +303,7 @@ type UpdateSheetRequest struct {func (x *UpdateSheetRequest) Reset() {*x = UpdateSheetRequest{}- mi := &file_v1_sheet_service_proto_msgTypes[2]+ mi := &file_v1_sheet_service_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -215,7 +315,7 @@ func (x *UpdateSheetRequest) String() string {func (*UpdateSheetRequest) ProtoMessage() {}func (x *UpdateSheetRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[2]+ mi := &file_v1_sheet_service_proto_msgTypes[4]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -228,7 +328,7 @@ func (x *UpdateSheetRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use UpdateSheetRequest.ProtoReflect.Descriptor instead.func (*UpdateSheetRequest) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{2}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{4}}func (x *UpdateSheetRequest) GetSheet() *Sheet {@@ -280,7 +380,7 @@ type Sheet struct {func (x *Sheet) Reset() {*x = Sheet{}- mi := &file_v1_sheet_service_proto_msgTypes[3]+ mi := &file_v1_sheet_service_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -292,7 +392,7 @@ func (x *Sheet) String() string {func (*Sheet) ProtoMessage() {}func (x *Sheet) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[3]+ mi := &file_v1_sheet_service_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -305,7 +405,7 @@ func (x *Sheet) ProtoReflect() protoreflect.Message {// Deprecated: Use Sheet.ProtoReflect.Descriptor instead.func (*Sheet) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{3}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{5}}func (x *Sheet) GetName() string {@@ -394,7 +494,7 @@ type SheetPayload struct {func (x *SheetPayload) Reset() {*x = SheetPayload{}- mi := &file_v1_sheet_service_proto_msgTypes[4]+ mi := &file_v1_sheet_service_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -406,7 +506,7 @@ func (x *SheetPayload) String() string {func (*SheetPayload) ProtoMessage() {}func (x *SheetPayload) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[4]+ mi := &file_v1_sheet_service_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -419,7 +519,7 @@ func (x *SheetPayload) ProtoReflect() protoreflect.Message {// Deprecated: Use SheetPayload.ProtoReflect.Descriptor instead.func (*SheetPayload) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{4}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{6}}func (x *SheetPayload) GetType() SheetPayload_Type {@@ -461,7 +561,7 @@ type SheetCommand struct {func (x *SheetCommand) Reset() {*x = SheetCommand{}- mi := &file_v1_sheet_service_proto_msgTypes[5]+ mi := &file_v1_sheet_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -473,7 +573,7 @@ func (x *SheetCommand) String() string {func (*SheetCommand) ProtoMessage() {}func (x *SheetCommand) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[5]+ mi := &file_v1_sheet_service_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -486,7 +586,7 @@ func (x *SheetCommand) ProtoReflect() protoreflect.Message {// Deprecated: Use SheetCommand.ProtoReflect.Descriptor instead.func (*SheetCommand) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{5}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{7}}func (x *SheetCommand) GetStart() int32 {@@ -531,107 +631,132 @@ var file_v1_sheet_service_proto_rawDesc = []byte{0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x68, 0x65,0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x42, 0x04, 0xe2, 0x41,- 0x01, 0x02, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x54, 0x0a, 0x0f, 0x47, 0x65, 0x74,- 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b, 0xe2, 0x41, 0x01, 0x02,- 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f,- 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a,- 0x03, 0x72, 0x61, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x72, 0x61, 0x77, 0x22,- 0x81, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,- 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,- 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,- 0x61, 0x73, 0x6b, 0x22, 0xed, 0x03, 0x0a, 0x05, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0xe2, 0x41, 0x02,- 0x02, 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,- 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,- 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,- 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,- 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54,- 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,- 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,- 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x63,- 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,- 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x42, 0x04, 0xe2, 0x41,- 0x01, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12,- 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,- 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79,- 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0e,- 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, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,- 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x3a, 0x3a, 0xea, 0x41, 0x37, 0x0a, 0x12, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74,- 0x12, 0x21, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x73, 0x68, 0x65,- 0x65, 0x74, 0x7d, 0x22, 0xc7, 0x02, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79,- 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x79,- 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55,- 0x0a, 0x18, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x16, 0x62,- 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,- 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x61,- 0x6e, 0x64, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x2f, 0x0a, 0x04,- 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x43,- 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x22, 0x36, 0x0a,- 0x0c, 0x53, 0x68, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x0a,- 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74,- 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,- 0x52, 0x03, 0x65, 0x6e, 0x64, 0x32, 0xd2, 0x03, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65, 0x74, 0x53,- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x54, 0xda, 0x41, 0x0c,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x68, 0x65, 0x65, 0x74, 0x8a, 0xea, 0x30, 0x10,- 0x62, 0x62, 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x05, 0x73, 0x68, 0x65, 0x65,- 0x74, 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, 0x73, 0x68, 0x65, 0x65, 0x74,- 0x73, 0x12, 0x80, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1c,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,- 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74,- 0x22, 0x42, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0d, 0x62, 0x62, 0x2e,- 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa3, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,+ 0x01, 0x02, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x93, 0x01, 0x0a, 0x17, 0x42, 0x61,+ 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x08,+ 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22,+ 0x46, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68,+ 0x65, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73,+ 0x68, 0x65, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52,+ 0x06, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x22, 0x54, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x68,+ 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41,+ 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,+ 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x72,+ 0x61, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x72, 0x61, 0x77, 0x22, 0x81, 0x01,+ 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x05, 0x73,+ 0x68, 0x65, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,+ 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c,+ 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,+ 0x6b, 0x22, 0xed, 0x03, 0x0a, 0x05, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0xe2, 0x41, 0x02, 0x02, 0x05,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1e,+ 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41,+ 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,+ 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,+ 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,+ 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,+ 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,+ 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x33, 0x0a,+ 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65,+ 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,+ 0x61, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0e, 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, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x65,+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x3a, 0x3a, 0xea, 0x41, 0x37, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x21,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x7d, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x65, 0x74,+ 0x7d, 0x22, 0xc7, 0x02, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f,+ 0x61, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x79, 0x70, 0x65,+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x18,+ 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x16, 0x62, 0x61, 0x73,+ 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18,+ 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,+ 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x2f, 0x0a, 0x04, 0x54, 0x79,+ 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x43, 0x48, 0x45,+ 0x4d, 0x41, 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x22, 0x36, 0x0a, 0x0c, 0x53,+ 0x68, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73,+ 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72,+ 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,+ 0x65, 0x6e, 0x64, 0x32, 0x83, 0x05, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65, 0x74, 0x53, 0x65, 0x72,+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,0x68, 0x65, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65,+ 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65,0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x5f, 0xda, 0x41, 0x11, 0x73, 0x68,- 0x65, 0x65, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a,- 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x05, 0x73,- 0x68, 0x65, 0x65, 0x74, 0x32, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x65, 0x74,- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,- 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65,- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x54, 0xda, 0x41, 0x0c, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x68, 0x65, 0x65, 0x74, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62,+ 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea,+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 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, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12,+ 0xae, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,+ 0x68, 0x65, 0x65, 0x74, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68,+ 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72,+ 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0x4d, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,+ 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x2f, 0x3a, 0x01, 0x2a, 0x22, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x12, 0x80, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1c, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53,+ 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22,+ 0x42, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x0d, 0x62, 0x62, 0x2e, 0x73,+ 0x68, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,+ 0x2f, 0x2a, 0x7d, 0x12, 0xa3, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68,+ 0x65, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x5f, 0xda, 0x41, 0x11, 0x73, 0x68, 0x65,+ 0x65, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea,+ 0x30, 0x10, 0x62, 0x62, 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x05, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x32, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2e,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,}var (@@ -647,43 +772,49 @@ func file_v1_sheet_service_proto_rawDescGZIP() []byte {}var file_v1_sheet_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_sheet_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)+var file_v1_sheet_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)var file_v1_sheet_service_proto_goTypes = []any{- (SheetPayload_Type)(0), // 0: bytebase.v1.SheetPayload.Type- (*CreateSheetRequest)(nil), // 1: bytebase.v1.CreateSheetRequest- (*GetSheetRequest)(nil), // 2: bytebase.v1.GetSheetRequest- (*UpdateSheetRequest)(nil), // 3: bytebase.v1.UpdateSheetRequest- (*Sheet)(nil), // 4: bytebase.v1.Sheet- (*SheetPayload)(nil), // 5: bytebase.v1.SheetPayload- (*SheetCommand)(nil), // 6: bytebase.v1.SheetCommand- (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp- (Engine)(0), // 9: bytebase.v1.Engine- (*DatabaseConfig)(nil), // 10: bytebase.v1.DatabaseConfig+ (SheetPayload_Type)(0), // 0: bytebase.v1.SheetPayload.Type+ (*CreateSheetRequest)(nil), // 1: bytebase.v1.CreateSheetRequest+ (*BatchCreateSheetRequest)(nil), // 2: bytebase.v1.BatchCreateSheetRequest+ (*BatchCreateSheetResponse)(nil), // 3: bytebase.v1.BatchCreateSheetResponse+ (*GetSheetRequest)(nil), // 4: bytebase.v1.GetSheetRequest+ (*UpdateSheetRequest)(nil), // 5: bytebase.v1.UpdateSheetRequest+ (*Sheet)(nil), // 6: bytebase.v1.Sheet+ (*SheetPayload)(nil), // 7: bytebase.v1.SheetPayload+ (*SheetCommand)(nil), // 8: bytebase.v1.SheetCommand+ (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp+ (Engine)(0), // 11: bytebase.v1.Engine+ (*DatabaseConfig)(nil), // 12: bytebase.v1.DatabaseConfig}var file_v1_sheet_service_proto_depIdxs = []int32{- 4, // 0: bytebase.v1.CreateSheetRequest.sheet:type_name -> bytebase.v1.Sheet- 4, // 1: bytebase.v1.UpdateSheetRequest.sheet:type_name -> bytebase.v1.Sheet- 7, // 2: bytebase.v1.UpdateSheetRequest.update_mask:type_name -> google.protobuf.FieldMask- 8, // 3: bytebase.v1.Sheet.create_time:type_name -> google.protobuf.Timestamp- 8, // 4: bytebase.v1.Sheet.update_time:type_name -> google.protobuf.Timestamp- 5, // 5: bytebase.v1.Sheet.payload:type_name -> bytebase.v1.SheetPayload- 9, // 6: bytebase.v1.Sheet.engine:type_name -> bytebase.v1.Engine- 0, // 7: bytebase.v1.SheetPayload.type:type_name -> bytebase.v1.SheetPayload.Type- 10, // 8: bytebase.v1.SheetPayload.database_config:type_name -> bytebase.v1.DatabaseConfig- 10, // 9: bytebase.v1.SheetPayload.baseline_database_config:type_name -> bytebase.v1.DatabaseConfig- 6, // 10: bytebase.v1.SheetPayload.commands:type_name -> bytebase.v1.SheetCommand- 1, // 11: bytebase.v1.SheetService.CreateSheet:input_type -> bytebase.v1.CreateSheetRequest- 2, // 12: bytebase.v1.SheetService.GetSheet:input_type -> bytebase.v1.GetSheetRequest- 3, // 13: bytebase.v1.SheetService.UpdateSheet:input_type -> bytebase.v1.UpdateSheetRequest- 4, // 14: bytebase.v1.SheetService.CreateSheet:output_type -> bytebase.v1.Sheet- 4, // 15: bytebase.v1.SheetService.GetSheet:output_type -> bytebase.v1.Sheet- 4, // 16: bytebase.v1.SheetService.UpdateSheet:output_type -> bytebase.v1.Sheet- 14, // [14:17] is the sub-list for method output_type- 11, // [11:14] is the sub-list for method input_type- 11, // [11:11] is the sub-list for extension type_name- 11, // [11:11] is the sub-list for extension extendee- 0, // [0:11] is the sub-list for field type_name+ 6, // 0: bytebase.v1.CreateSheetRequest.sheet:type_name -> bytebase.v1.Sheet+ 1, // 1: bytebase.v1.BatchCreateSheetRequest.requests:type_name -> bytebase.v1.CreateSheetRequest+ 6, // 2: bytebase.v1.BatchCreateSheetResponse.sheets:type_name -> bytebase.v1.Sheet+ 6, // 3: bytebase.v1.UpdateSheetRequest.sheet:type_name -> bytebase.v1.Sheet+ 9, // 4: bytebase.v1.UpdateSheetRequest.update_mask:type_name -> google.protobuf.FieldMask+ 10, // 5: bytebase.v1.Sheet.create_time:type_name -> google.protobuf.Timestamp+ 10, // 6: bytebase.v1.Sheet.update_time:type_name -> google.protobuf.Timestamp+ 7, // 7: bytebase.v1.Sheet.payload:type_name -> bytebase.v1.SheetPayload+ 11, // 8: bytebase.v1.Sheet.engine:type_name -> bytebase.v1.Engine+ 0, // 9: bytebase.v1.SheetPayload.type:type_name -> bytebase.v1.SheetPayload.Type+ 12, // 10: bytebase.v1.SheetPayload.database_config:type_name -> bytebase.v1.DatabaseConfig+ 12, // 11: bytebase.v1.SheetPayload.baseline_database_config:type_name -> bytebase.v1.DatabaseConfig+ 8, // 12: bytebase.v1.SheetPayload.commands:type_name -> bytebase.v1.SheetCommand+ 1, // 13: bytebase.v1.SheetService.CreateSheet:input_type -> bytebase.v1.CreateSheetRequest+ 2, // 14: bytebase.v1.SheetService.BatchCreateSheet:input_type -> bytebase.v1.BatchCreateSheetRequest+ 4, // 15: bytebase.v1.SheetService.GetSheet:input_type -> bytebase.v1.GetSheetRequest+ 5, // 16: bytebase.v1.SheetService.UpdateSheet:input_type -> bytebase.v1.UpdateSheetRequest+ 6, // 17: bytebase.v1.SheetService.CreateSheet:output_type -> bytebase.v1.Sheet+ 3, // 18: bytebase.v1.SheetService.BatchCreateSheet:output_type -> bytebase.v1.BatchCreateSheetResponse+ 6, // 19: bytebase.v1.SheetService.GetSheet:output_type -> bytebase.v1.Sheet+ 6, // 20: bytebase.v1.SheetService.UpdateSheet:output_type -> bytebase.v1.Sheet+ 17, // [17:21] is the sub-list for method output_type+ 13, // [13:17] 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}func init() { file_v1_sheet_service_proto_init() }@@ -700,7 +831,7 @@ func file_v1_sheet_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_sheet_service_proto_rawDesc,NumEnums: 1,- NumMessages: 6,+ NumMessages: 8,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/sheet_service.pb.gw.go b/proto/generated-go/v1/sheet_service.pb.gw.goindex 52e49824ed..ee6c67e238 100644--- a/proto/generated-go/v1/sheet_service.pb.gw.go+++ b/proto/generated-go/v1/sheet_service.pb.gw.go@@ -91,6 +91,66 @@ func local_request_SheetService_CreateSheet_0(ctx context.Context, marshaler run}+func request_SheetService_BatchCreateSheet_0(ctx context.Context, marshaler runtime.Marshaler, client SheetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq BatchCreateSheetRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ msg, err := client.BatchCreateSheet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_SheetService_BatchCreateSheet_0(ctx context.Context, marshaler runtime.Marshaler, server SheetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq BatchCreateSheetRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ msg, err := server.BatchCreateSheet(ctx, &protoReq)+ return msg, metadata, err++}+var (filter_SheetService_GetSheet_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}})@@ -293,6 +353,31 @@ func RegisterSheetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu})+ mux.Handle("POST", pattern_SheetService_BatchCreateSheet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.SheetService/BatchCreateSheet", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/sheets:batchCreate"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_SheetService_BatchCreateSheet_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_SheetService_BatchCreateSheet_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+mux.Handle("GET", pattern_SheetService_GetSheet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -406,6 +491,28 @@ func RegisterSheetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu})+ mux.Handle("POST", pattern_SheetService_BatchCreateSheet_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.SheetService/BatchCreateSheet", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/sheets:batchCreate"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_SheetService_BatchCreateSheet_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_SheetService_BatchCreateSheet_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+mux.Handle("GET", pattern_SheetService_GetSheet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -456,6 +563,8 @@ func RegisterSheetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMuvar (pattern_SheetService_CreateSheet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "sheets"}, ""))+ pattern_SheetService_BatchCreateSheet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "sheets"}, "batchCreate"))+pattern_SheetService_GetSheet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "sheets", "name"}, ""))pattern_SheetService_UpdateSheet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "sheets", "sheet.name"}, ""))@@ -464,6 +573,8 @@ var (var (forward_SheetService_CreateSheet_0 = runtime.ForwardResponseMessage+ forward_SheetService_BatchCreateSheet_0 = runtime.ForwardResponseMessage+forward_SheetService_GetSheet_0 = runtime.ForwardResponseMessageforward_SheetService_UpdateSheet_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/sheet_service_grpc.pb.go b/proto/generated-go/v1/sheet_service_grpc.pb.goindex 917b530e42..aa5870634f 100644--- a/proto/generated-go/v1/sheet_service_grpc.pb.go+++ b/proto/generated-go/v1/sheet_service_grpc.pb.go@@ -19,9 +19,10 @@ import (const _ = grpc.SupportPackageIsVersion9const (- SheetService_CreateSheet_FullMethodName = "/bytebase.v1.SheetService/CreateSheet"- SheetService_GetSheet_FullMethodName = "/bytebase.v1.SheetService/GetSheet"- SheetService_UpdateSheet_FullMethodName = "/bytebase.v1.SheetService/UpdateSheet"+ SheetService_CreateSheet_FullMethodName = "/bytebase.v1.SheetService/CreateSheet"+ SheetService_BatchCreateSheet_FullMethodName = "/bytebase.v1.SheetService/BatchCreateSheet"+ SheetService_GetSheet_FullMethodName = "/bytebase.v1.SheetService/GetSheet"+ SheetService_UpdateSheet_FullMethodName = "/bytebase.v1.SheetService/UpdateSheet")// SheetServiceClient is the client API for SheetService service.@@ -29,6 +30,7 @@ const (// 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 SheetServiceClient interface {CreateSheet(ctx context.Context, in *CreateSheetRequest, opts ...grpc.CallOption) (*Sheet, error)+ BatchCreateSheet(ctx context.Context, in *BatchCreateSheetRequest, opts ...grpc.CallOption) (*BatchCreateSheetResponse, error)GetSheet(ctx context.Context, in *GetSheetRequest, opts ...grpc.CallOption) (*Sheet, error)UpdateSheet(ctx context.Context, in *UpdateSheetRequest, opts ...grpc.CallOption) (*Sheet, error)}@@ -51,6 +53,16 @@ func (c *sheetServiceClient) CreateSheet(ctx context.Context, in *CreateSheetReqreturn out, nil}+func (c *sheetServiceClient) BatchCreateSheet(ctx context.Context, in *BatchCreateSheetRequest, opts ...grpc.CallOption) (*BatchCreateSheetResponse, error) {+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)+ out := new(BatchCreateSheetResponse)+ err := c.cc.Invoke(ctx, SheetService_BatchCreateSheet_FullMethodName, in, out, cOpts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}+func (c *sheetServiceClient) GetSheet(ctx context.Context, in *GetSheetRequest, opts ...grpc.CallOption) (*Sheet, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(Sheet)@@ -76,6 +88,7 @@ func (c *sheetServiceClient) UpdateSheet(ctx context.Context, in *UpdateSheetReq// for forward compatibility.type SheetServiceServer interface {CreateSheet(context.Context, *CreateSheetRequest) (*Sheet, error)+ BatchCreateSheet(context.Context, *BatchCreateSheetRequest) (*BatchCreateSheetResponse, error)GetSheet(context.Context, *GetSheetRequest) (*Sheet, error)UpdateSheet(context.Context, *UpdateSheetRequest) (*Sheet, error)mustEmbedUnimplementedSheetServiceServer()@@ -91,6 +104,9 @@ type UnimplementedSheetServiceServer struct{}func (UnimplementedSheetServiceServer) CreateSheet(context.Context, *CreateSheetRequest) (*Sheet, error) {return nil, status.Errorf(codes.Unimplemented, "method CreateSheet not implemented")}+func (UnimplementedSheetServiceServer) BatchCreateSheet(context.Context, *BatchCreateSheetRequest) (*BatchCreateSheetResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method BatchCreateSheet not implemented")+}func (UnimplementedSheetServiceServer) GetSheet(context.Context, *GetSheetRequest) (*Sheet, error) {return nil, status.Errorf(codes.Unimplemented, "method GetSheet not implemented")}@@ -136,6 +152,24 @@ func _SheetService_CreateSheet_Handler(srv interface{}, ctx context.Context, decreturn interceptor(ctx, in, info, handler)}+func _SheetService_BatchCreateSheet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(BatchCreateSheetRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(SheetServiceServer).BatchCreateSheet(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: SheetService_BatchCreateSheet_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(SheetServiceServer).BatchCreateSheet(ctx, req.(*BatchCreateSheetRequest))+ }+ return interceptor(ctx, in, info, handler)+}+func _SheetService_GetSheet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(GetSheetRequest)if err := dec(in); err != nil {@@ -183,6 +217,10 @@ var SheetService_ServiceDesc = grpc.ServiceDesc{MethodName: "CreateSheet",Handler: _SheetService_CreateSheet_Handler,},+ {+ MethodName: "BatchCreateSheet",+ Handler: _SheetService_BatchCreateSheet_Handler,+ },{MethodName: "GetSheet",Handler: _SheetService_GetSheet_Handler,diff --git a/proto/v1/sheet_service.proto b/proto/v1/sheet_service.protoindex 72fe2e8c23..ef5fb62ad4 100644--- a/proto/v1/sheet_service.proto+++ b/proto/v1/sheet_service.proto@@ -25,6 +25,15 @@ service SheetService {option (bytebase.v1.auth_method) = IAM;}+ rpc BatchCreateSheet(BatchCreateSheetRequest) returns (BatchCreateSheetResponse) {+ option (google.api.http) = {+ post: "/v1/{parent=projects/*}/sheets:batchCreate"+ body: "*"+ };+ option (bytebase.v1.permission) = "bb.sheets.create";+ option (bytebase.v1.auth_method) = IAM;+ }+rpc GetSheet(GetSheetRequest) returns (Sheet) {option (google.api.http) = {get: "/v1/{name=projects/*/sheets/*}"};option (google.api.method_signature) = "name";@@ -55,6 +64,21 @@ message CreateSheetRequest {Sheet sheet = 2 [(google.api.field_behavior) = REQUIRED];}+message BatchCreateSheetRequest {+ // The parent resource where all sheets will be created.+ // Format: projects/{project}+ string parent = 1 [+ (google.api.field_behavior) = REQUIRED,+ (google.api.resource_reference) = {type: "bytebase.com/Project"}+ ];++ repeated CreateSheetRequest requests = 2 [(google.api.field_behavior) = REQUIRED];+}++message BatchCreateSheetResponse {+ repeated Sheet sheets = 1;+}+message GetSheetRequest {// The name of the sheet to retrieve.// Format: projects/{project}/sheets/{sheet}