mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-10 18:10:49 +09:00
map fix
This commit is contained in:
parent
8174c939a7
commit
5b3df8d364
3 changed files with 77 additions and 344 deletions
|
@ -131,11 +131,9 @@
|
|||
- [Event.Account.Show](#anytype.Event.Account.Show)
|
||||
- [Event.Block](#anytype.Event.Block)
|
||||
- [Event.Block.Add](#anytype.Event.Block.Add)
|
||||
- [Event.Block.Add.BlocksEntry](#anytype.Event.Block.Add.BlocksEntry)
|
||||
- [Event.Block.Create](#anytype.Event.Block.Create)
|
||||
- [Event.Block.FilesUpload](#anytype.Event.Block.FilesUpload)
|
||||
- [Event.Block.ShowFullscreen](#anytype.Event.Block.ShowFullscreen)
|
||||
- [Event.Block.ShowFullscreen.BlocksEntry](#anytype.Event.Block.ShowFullscreen.BlocksEntry)
|
||||
- [Event.Block.Update](#anytype.Event.Block.Update)
|
||||
- [Event.User](#anytype.Event.User)
|
||||
- [Event.User.Block](#anytype.Event.User.Block)
|
||||
|
@ -1836,23 +1834,7 @@ Event to show internal blocks on a client
|
|||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| blocks | [Event.Block.Add.BlocksEntry](#anytype.Event.Block.Add.BlocksEntry) | repeated | id -> block |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="anytype.Event.Block.Add.BlocksEntry"></a>
|
||||
|
||||
### Event.Block.Add.BlocksEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Model.Block](#anytype.Model.Block) | | |
|
||||
| blocks | [Model.Block](#anytype.Model.Block) | repeated | id -> block |
|
||||
|
||||
|
||||
|
||||
|
@ -1905,23 +1887,7 @@ Dashboard opened, click on a page, Rpc.Block.open, Block.ShowFullscreen(PageBloc
|
|||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| rootId | [string](#string) | | Root block id |
|
||||
| blocks | [Event.Block.ShowFullscreen.BlocksEntry](#anytype.Event.Block.ShowFullscreen.BlocksEntry) | repeated | children of the root block |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="anytype.Event.Block.ShowFullscreen.BlocksEntry"></a>
|
||||
|
||||
### Event.Block.ShowFullscreen.BlocksEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Model.Block](#anytype.Model.Block) | | |
|
||||
| blocks | [Model.Block](#anytype.Model.Block) | repeated | children of the root block |
|
||||
|
||||
|
||||
|
||||
|
|
379
pb/events.pb.go
379
pb/events.pb.go
|
@ -342,7 +342,7 @@ var xxx_messageInfo_EventBlock proto.InternalMessageInfo
|
|||
//
|
||||
// Event to show internal blocks on a client
|
||||
type EventBlockAdd struct {
|
||||
Blocks map[string]*ModelBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Blocks []*ModelBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
}
|
||||
|
||||
func (m *EventBlockAdd) Reset() { *m = EventBlockAdd{} }
|
||||
|
@ -378,7 +378,7 @@ func (m *EventBlockAdd) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_EventBlockAdd proto.InternalMessageInfo
|
||||
|
||||
func (m *EventBlockAdd) GetBlocks() map[string]*ModelBlock {
|
||||
func (m *EventBlockAdd) GetBlocks() []*ModelBlock {
|
||||
if m != nil {
|
||||
return m.Blocks
|
||||
}
|
||||
|
@ -389,8 +389,8 @@ func (m *EventBlockAdd) GetBlocks() map[string]*ModelBlock {
|
|||
// Works with a smart blocks: Page, Dashboard
|
||||
// Dashboard opened, click on a page, Rpc.Block.open, Block.ShowFullscreen(PageBlock)
|
||||
type EventBlockShowFullscreen struct {
|
||||
RootId string `protobuf:"bytes,1,opt,name=rootId,proto3" json:"rootId,omitempty"`
|
||||
Blocks map[string]*ModelBlock `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
RootId string `protobuf:"bytes,1,opt,name=rootId,proto3" json:"rootId,omitempty"`
|
||||
Blocks []*ModelBlock `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
}
|
||||
|
||||
func (m *EventBlockShowFullscreen) Reset() { *m = EventBlockShowFullscreen{} }
|
||||
|
@ -433,7 +433,7 @@ func (m *EventBlockShowFullscreen) GetRootId() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *EventBlockShowFullscreen) GetBlocks() map[string]*ModelBlock {
|
||||
func (m *EventBlockShowFullscreen) GetBlocks() []*ModelBlock {
|
||||
if m != nil {
|
||||
return m.Blocks
|
||||
}
|
||||
|
@ -891,9 +891,7 @@ func init() {
|
|||
proto.RegisterType((*EventAccountShow)(nil), "anytype.Event.Account.Show")
|
||||
proto.RegisterType((*EventBlock)(nil), "anytype.Event.Block")
|
||||
proto.RegisterType((*EventBlockAdd)(nil), "anytype.Event.Block.Add")
|
||||
proto.RegisterMapType((map[string]*ModelBlock)(nil), "anytype.Event.Block.Add.BlocksEntry")
|
||||
proto.RegisterType((*EventBlockShowFullscreen)(nil), "anytype.Event.Block.ShowFullscreen")
|
||||
proto.RegisterMapType((map[string]*ModelBlock)(nil), "anytype.Event.Block.ShowFullscreen.BlocksEntry")
|
||||
proto.RegisterType((*EventBlockUpdate)(nil), "anytype.Event.Block.Update")
|
||||
proto.RegisterType((*EventBlockCreate)(nil), "anytype.Event.Block.Create")
|
||||
proto.RegisterType((*EventBlockFilesUpload)(nil), "anytype.Event.Block.FilesUpload")
|
||||
|
@ -908,51 +906,48 @@ func init() {
|
|||
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
|
||||
|
||||
var fileDescriptor_8f22242cb04491f9 = []byte{
|
||||
// 703 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
|
||||
0x10, 0xb5, 0xf3, 0xe5, 0x7a, 0xdc, 0x20, 0xb4, 0x54, 0x95, 0xb5, 0x20, 0xab, 0x82, 0x22, 0x55,
|
||||
0x3d, 0x18, 0x54, 0x10, 0xaa, 0x10, 0x08, 0xa5, 0xa5, 0x6d, 0x8a, 0x5a, 0x40, 0x5b, 0x22, 0x04,
|
||||
0x9c, 0xdc, 0x78, 0xdb, 0x46, 0x75, 0xed, 0xc8, 0xde, 0x94, 0xe6, 0xcc, 0x1f, 0xe0, 0xc0, 0x7f,
|
||||
0xe0, 0x7f, 0x70, 0xe2, 0xd8, 0x23, 0x47, 0xd4, 0x5e, 0xe0, 0xc8, 0x3f, 0x40, 0x3b, 0xde, 0x38,
|
||||
0x4e, 0xe4, 0x00, 0xb9, 0x70, 0xdb, 0x9d, 0xbc, 0xf7, 0x76, 0xc6, 0xfb, 0xde, 0x06, 0x66, 0xf9,
|
||||
0x29, 0x0f, 0x45, 0xe2, 0x76, 0xe3, 0x48, 0x44, 0xc4, 0xf0, 0xc2, 0xbe, 0xe8, 0x77, 0x39, 0x9d,
|
||||
0x3d, 0x89, 0x7c, 0x1e, 0xa8, 0x32, 0xad, 0xb7, 0x8f, 0xbc, 0xf0, 0x90, 0xab, 0xed, 0xcd, 0x9f,
|
||||
0x75, 0xa8, 0x6e, 0x48, 0x1a, 0x79, 0x02, 0x96, 0xd7, 0x6e, 0x47, 0xbd, 0x50, 0xec, 0x1d, 0x45,
|
||||
0xef, 0x6d, 0x7d, 0x41, 0x5f, 0xb2, 0x56, 0xae, 0xbb, 0x4a, 0xc5, 0x45, 0x90, 0xdb, 0x48, 0x11,
|
||||
0xae, 0x84, 0x34, 0x35, 0x96, 0x67, 0x90, 0x07, 0x30, 0xb3, 0x1f, 0x44, 0xed, 0xe3, 0x86, 0xef,
|
||||
0xdb, 0x25, 0x64, 0xdb, 0x63, 0xec, 0x35, 0xf9, 0xb3, 0xdb, 0xf0, 0xfd, 0xa6, 0xc6, 0x32, 0x2c,
|
||||
0x79, 0x0d, 0xd7, 0x70, 0x2d, 0x45, 0x36, 0x7b, 0x41, 0x90, 0xb4, 0x63, 0xce, 0x43, 0xbb, 0x8c,
|
||||
0x12, 0xb7, 0x0a, 0x25, 0x46, 0xa1, 0x4d, 0x8d, 0x15, 0x29, 0xc8, 0x89, 0xb0, 0xdc, 0xea, 0xfa,
|
||||
0x9e, 0xe0, 0x76, 0xa5, 0x70, 0xa2, 0x54, 0x30, 0x85, 0xc8, 0x89, 0x72, 0x8c, 0x4c, 0x60, 0x3d,
|
||||
0xe6, 0x52, 0xa0, 0xfa, 0x07, 0x81, 0x14, 0x92, 0x09, 0xa4, 0x5b, 0xd2, 0x02, 0xd2, 0x4b, 0x78,
|
||||
0x8c, 0x90, 0x57, 0xfc, 0x4c, 0x30, 0xf9, 0xe9, 0xed, 0x5a, 0xe1, 0x64, 0xad, 0x84, 0xc7, 0x4a,
|
||||
0x2c, 0x83, 0x36, 0x35, 0x56, 0x20, 0x40, 0x36, 0xa1, 0x9e, 0x55, 0x9f, 0x45, 0x9d, 0xd0, 0x36,
|
||||
0x50, 0xd1, 0x99, 0xac, 0x28, 0x51, 0x4d, 0x8d, 0x8d, 0xd2, 0x46, 0x74, 0x76, 0xf8, 0x81, 0xb0,
|
||||
0x67, 0xfe, 0xa6, 0x23, 0x51, 0x23, 0x3a, 0xb2, 0x40, 0xde, 0xc1, 0x5c, 0x56, 0xd8, 0xe3, 0x01,
|
||||
0x6f, 0xab, 0x41, 0x4d, 0x94, 0xbb, 0x3d, 0x59, 0x2e, 0x07, 0x6e, 0x6a, 0xac, 0x50, 0x84, 0x3c,
|
||||
0x05, 0xeb, 0xa0, 0x13, 0xf0, 0xa4, 0xd5, 0x0d, 0x22, 0xcf, 0xb7, 0x01, 0x35, 0x17, 0x0a, 0x2f,
|
||||
0x61, 0x73, 0x88, 0x93, 0x37, 0x91, 0xa3, 0xd1, 0x37, 0x60, 0x28, 0xef, 0xd2, 0xe7, 0x50, 0x41,
|
||||
0xbf, 0xce, 0x41, 0xb5, 0x13, 0xfa, 0xfc, 0x0c, 0xad, 0x5e, 0x66, 0xe9, 0x86, 0xdc, 0x05, 0x43,
|
||||
0x99, 0x5a, 0x99, 0x78, 0x3e, 0x3b, 0x6a, 0x57, 0xe6, 0x68, 0x10, 0x01, 0x36, 0x80, 0xd1, 0xcf,
|
||||
0x15, 0xa8, 0xe2, 0xf9, 0xf4, 0x93, 0x0e, 0x65, 0xe9, 0xe8, 0x47, 0x50, 0x43, 0x17, 0x24, 0xb6,
|
||||
0xbe, 0x50, 0x5e, 0xb2, 0x56, 0x16, 0x27, 0xe5, 0x20, 0x5d, 0x25, 0x1b, 0xa1, 0x88, 0xfb, 0x4c,
|
||||
0x71, 0xe8, 0x0b, 0xb0, 0x72, 0x65, 0x72, 0x15, 0xca, 0xc7, 0xbc, 0x8f, 0x4d, 0x9a, 0x4c, 0x2e,
|
||||
0xc9, 0x32, 0x54, 0x4f, 0xbd, 0xa0, 0xc7, 0x55, 0x83, 0x73, 0x63, 0x0d, 0x22, 0x99, 0xa5, 0x90,
|
||||
0x87, 0xa5, 0x55, 0x9d, 0x7e, 0xd1, 0xe1, 0xca, 0x58, 0x34, 0xe6, 0xa1, 0x16, 0x47, 0x91, 0xd8,
|
||||
0xf6, 0x95, 0xae, 0xda, 0x91, 0xad, 0xac, 0xf3, 0x12, 0x76, 0x7e, 0xe7, 0x1f, 0xe2, 0xf7, 0x7f,
|
||||
0x86, 0xd8, 0x82, 0x9a, 0x4a, 0xe5, 0x63, 0x30, 0xd4, 0x1b, 0xa6, 0x1e, 0xa9, 0x61, 0x92, 0xd6,
|
||||
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, 0x1f, 0xe2,
|
||||
0xbd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x04, 0xc7, 0x9e, 0x70, 0x46, 0x07, 0x00, 0x00,
|
||||
// 646 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xcf, 0x4f, 0xd4, 0x40,
|
||||
0x14, 0xc7, 0xdb, 0xfd, 0xd1, 0xd2, 0x57, 0xf0, 0x30, 0x12, 0xd2, 0x8c, 0xa6, 0x21, 0xfe, 0x48,
|
||||
0x88, 0x31, 0x8d, 0x01, 0x63, 0xb8, 0x18, 0xb3, 0xa0, 0x58, 0x0c, 0x18, 0x33, 0xb8, 0x1a, 0xf5,
|
||||
0x54, 0xda, 0x01, 0x36, 0x96, 0xb6, 0x69, 0xbb, 0x0a, 0x67, 0xff, 0x01, 0xcf, 0xfe, 0x45, 0x1e,
|
||||
0x39, 0x72, 0x34, 0xec, 0xc5, 0xab, 0xff, 0x81, 0x99, 0xd7, 0xd9, 0x6e, 0xbb, 0xe9, 0xa2, 0x7b,
|
||||
0xe3, 0x3d, 0xbe, 0xef, 0x33, 0x7d, 0xf3, 0xbe, 0x6f, 0x16, 0x16, 0xf9, 0x17, 0x1e, 0xe5, 0x99,
|
||||
0x93, 0xa4, 0x71, 0x1e, 0x13, 0xdd, 0x8b, 0xce, 0xf3, 0xf3, 0x84, 0xd3, 0xc5, 0xd3, 0x38, 0xe0,
|
||||
0xa1, 0x4c, 0xd3, 0x25, 0xff, 0xc4, 0x8b, 0x8e, 0xb9, 0x0c, 0xef, 0xfc, 0x58, 0x84, 0xee, 0x0b,
|
||||
0x51, 0x46, 0x9e, 0x81, 0xe9, 0xf9, 0x7e, 0x3c, 0x8c, 0xf2, 0x83, 0x93, 0xf8, 0xab, 0xa5, 0xae,
|
||||
0xaa, 0x6b, 0xe6, 0xfa, 0x2d, 0x47, 0x52, 0x1c, 0x14, 0x39, 0xbd, 0x42, 0xe1, 0x08, 0x89, 0xab,
|
||||
0xb0, 0x6a, 0x05, 0x79, 0x02, 0x0b, 0x87, 0x61, 0xec, 0x7f, 0xee, 0x05, 0x81, 0xd5, 0xc2, 0x6a,
|
||||
0x6b, 0xaa, 0x7a, 0x4b, 0xfc, 0xdb, 0xe9, 0x05, 0x81, 0xab, 0xb0, 0x52, 0x4b, 0xde, 0xc3, 0x4d,
|
||||
0xfc, 0x5b, 0x40, 0x76, 0x86, 0x61, 0x98, 0xf9, 0x29, 0xe7, 0x91, 0xd5, 0x46, 0xc4, 0xdd, 0x46,
|
||||
0x44, 0x5d, 0xea, 0x2a, 0xac, 0x89, 0x20, 0x3a, 0xc2, 0x74, 0x3f, 0x09, 0xbc, 0x9c, 0x5b, 0x9d,
|
||||
0xc6, 0x8e, 0x0a, 0x60, 0x21, 0x11, 0x1d, 0x55, 0x2a, 0x4a, 0xc0, 0x76, 0xca, 0x05, 0xa0, 0x7b,
|
||||
0x0d, 0xa0, 0x90, 0x94, 0x80, 0x22, 0x24, 0x7d, 0x20, 0xc3, 0x8c, 0xa7, 0x28, 0x79, 0xcb, 0xcf,
|
||||
0x72, 0x26, 0xae, 0xde, 0xd2, 0x1a, 0x3b, 0xeb, 0x67, 0x3c, 0x95, 0xb0, 0x52, 0xea, 0x2a, 0xac,
|
||||
0x01, 0x40, 0x76, 0x60, 0xa9, 0xcc, 0xbe, 0x8a, 0x07, 0x91, 0xa5, 0x23, 0xd1, 0x9e, 0x4d, 0x14,
|
||||
0x2a, 0x57, 0x61, 0xf5, 0xb2, 0x1a, 0x67, 0x8f, 0x1f, 0xe5, 0xd6, 0xc2, 0xbf, 0x38, 0x42, 0x55,
|
||||
0xe3, 0x88, 0x04, 0xf9, 0x04, 0xcb, 0x65, 0xe2, 0x80, 0x87, 0xdc, 0x97, 0x8d, 0x1a, 0x88, 0xbb,
|
||||
0x3f, 0x1b, 0x57, 0x11, 0xbb, 0x0a, 0x6b, 0x84, 0x90,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0x8c, 0x89, 0x05, 0x3a, 0xd6, 0xec, 0x16, 0xef, 0x86,
|
||||
0xc1, 0xc6, 0x21, 0xfd, 0xd3, 0x82, 0x8e, 0xb0, 0x0b, 0xfd, 0x5d, 0xde, 0xf1, 0x26, 0x74, 0xd0,
|
||||
0xbb, 0x95, 0x39, 0xa9, 0x53, 0x73, 0xaa, 0x3d, 0x55, 0x93, 0x39, 0x6d, 0x42, 0x07, 0xdd, 0x3a,
|
||||
0x7f, 0xe5, 0x37, 0x15, 0x8c, 0xc9, 0xf6, 0xcd, 0x5d, 0x3f, 0xbb, 0x41, 0x71, 0xa3, 0x29, 0xae,
|
||||
0x4a, 0xf1, 0xda, 0x4d, 0xdf, 0x28, 0x1e, 0xc8, 0x0a, 0x09, 0xe5, 0x60, 0x56, 0xf7, 0x62, 0xfe,
|
||||
0xcf, 0xb8, 0x07, 0x4b, 0xf2, 0xdc, 0xac, 0x97, 0xa6, 0xde, 0x39, 0xda, 0xc8, 0x60, 0xf5, 0xe4,
|
||||
0x96, 0x01, 0xfa, 0x29, 0xcf, 0x32, 0xef, 0x98, 0x6f, 0xdd, 0xfe, 0x79, 0x65, 0xab, 0x17, 0x57,
|
||||
0xb6, 0xfa, 0xeb, 0xca, 0x56, 0xbf, 0x8f, 0x6c, 0xe5, 0x62, 0x64, 0x2b, 0x97, 0x23, 0x5b, 0xf9,
|
||||
0xd8, 0x4a, 0x0e, 0x0f, 0x35, 0xfc, 0x05, 0xd9, 0xf8, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x1e, 0xbc,
|
||||
0xa7, 0x60, 0x77, 0x06, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *Event) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -1304,27 +1299,15 @@ func (m *EventBlockAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
if len(m.Blocks) > 0 {
|
||||
for k := range m.Blocks {
|
||||
v := m.Blocks[k]
|
||||
baseI := i
|
||||
if v != nil {
|
||||
{
|
||||
size, err := v.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintEvents(dAtA, i, uint64(size))
|
||||
for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
|
||||
{
|
||||
size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
i -= size
|
||||
i = encodeVarintEvents(dAtA, i, uint64(size))
|
||||
}
|
||||
i -= len(k)
|
||||
copy(dAtA[i:], k)
|
||||
i = encodeVarintEvents(dAtA, i, uint64(len(k)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
i = encodeVarintEvents(dAtA, i, uint64(baseI-i))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
|
@ -1353,27 +1336,15 @@ func (m *EventBlockShowFullscreen) MarshalToSizedBuffer(dAtA []byte) (int, error
|
|||
var l int
|
||||
_ = l
|
||||
if len(m.Blocks) > 0 {
|
||||
for k := range m.Blocks {
|
||||
v := m.Blocks[k]
|
||||
baseI := i
|
||||
if v != nil {
|
||||
{
|
||||
size, err := v.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintEvents(dAtA, i, uint64(size))
|
||||
for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
|
||||
{
|
||||
size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
i -= size
|
||||
i = encodeVarintEvents(dAtA, i, uint64(size))
|
||||
}
|
||||
i -= len(k)
|
||||
copy(dAtA[i:], k)
|
||||
i = encodeVarintEvents(dAtA, i, uint64(len(k)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
i = encodeVarintEvents(dAtA, i, uint64(baseI-i))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
|
@ -1897,16 +1868,9 @@ func (m *EventBlockAdd) Size() (n int) {
|
|||
var l int
|
||||
_ = l
|
||||
if len(m.Blocks) > 0 {
|
||||
for k, v := range m.Blocks {
|
||||
_ = k
|
||||
_ = v
|
||||
l = 0
|
||||
if v != nil {
|
||||
l = v.Size()
|
||||
l += 1 + sovEvents(uint64(l))
|
||||
}
|
||||
mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + l
|
||||
n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize))
|
||||
for _, e := range m.Blocks {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovEvents(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -1923,16 +1887,9 @@ func (m *EventBlockShowFullscreen) Size() (n int) {
|
|||
n += 1 + l + sovEvents(uint64(l))
|
||||
}
|
||||
if len(m.Blocks) > 0 {
|
||||
for k, v := range m.Blocks {
|
||||
_ = k
|
||||
_ = v
|
||||
l = 0
|
||||
if v != nil {
|
||||
l = v.Size()
|
||||
l += 1 + sovEvents(uint64(l))
|
||||
}
|
||||
mapEntrySize := 1 + len(k) + sovEvents(uint64(len(k))) + l
|
||||
n += mapEntrySize + 1 + sovEvents(uint64(mapEntrySize))
|
||||
for _, e := range m.Blocks {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovEvents(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
|
@ -2750,105 +2707,10 @@ func (m *EventBlockAdd) Unmarshal(dAtA []byte) error {
|
|||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Blocks == nil {
|
||||
m.Blocks = make(map[string]*ModelBlock)
|
||||
m.Blocks = append(m.Blocks, &ModelBlock{})
|
||||
if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
var mapkey string
|
||||
var mapvalue *ModelBlock
|
||||
for iNdEx < postIndex {
|
||||
entryPreIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowEvents
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
if fieldNum == 1 {
|
||||
var stringLenmapkey uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowEvents
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLenmapkey := int(stringLenmapkey)
|
||||
if intStringLenmapkey < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
||||
iNdEx = postStringIndexmapkey
|
||||
} else if fieldNum == 2 {
|
||||
var mapmsglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowEvents
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
mapmsglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if mapmsglen < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
postmsgIndex := iNdEx + mapmsglen
|
||||
if postmsgIndex < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
if postmsgIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
mapvalue = &ModelBlock{}
|
||||
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postmsgIndex
|
||||
} else {
|
||||
iNdEx = entryPreIndex
|
||||
skippy, err := skipEvents(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
if (iNdEx + skippy) > postIndex {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
m.Blocks[mapkey] = mapvalue
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
|
@ -2964,105 +2826,10 @@ func (m *EventBlockShowFullscreen) Unmarshal(dAtA []byte) error {
|
|||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Blocks == nil {
|
||||
m.Blocks = make(map[string]*ModelBlock)
|
||||
m.Blocks = append(m.Blocks, &ModelBlock{})
|
||||
if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
var mapkey string
|
||||
var mapvalue *ModelBlock
|
||||
for iNdEx < postIndex {
|
||||
entryPreIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowEvents
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
if fieldNum == 1 {
|
||||
var stringLenmapkey uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowEvents
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLenmapkey |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLenmapkey := int(stringLenmapkey)
|
||||
if intStringLenmapkey < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
||||
if postStringIndexmapkey < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
if postStringIndexmapkey > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
||||
iNdEx = postStringIndexmapkey
|
||||
} else if fieldNum == 2 {
|
||||
var mapmsglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowEvents
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
mapmsglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if mapmsglen < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
postmsgIndex := iNdEx + mapmsglen
|
||||
if postmsgIndex < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
if postmsgIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
mapvalue = &ModelBlock{}
|
||||
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postmsgIndex
|
||||
} else {
|
||||
iNdEx = entryPreIndex
|
||||
skippy, err := skipEvents(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthEvents
|
||||
}
|
||||
if (iNdEx + skippy) > postIndex {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
m.Blocks[mapkey] = mapvalue
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
|
|
|
@ -38,7 +38,7 @@ message Event {
|
|||
* Event to show internal blocks on a client
|
||||
*/
|
||||
message Add {
|
||||
map<string, Model.Block> blocks = 1; // id -> block
|
||||
repeated Model.Block blocks = 1; // id -> block
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -47,7 +47,7 @@ message Event {
|
|||
*/
|
||||
message ShowFullscreen {
|
||||
string rootId = 1; // Root block id
|
||||
map<string, Model.Block> blocks = 2; // children of the root block
|
||||
repeated Model.Block blocks = 2; // children of the root block
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue