From f412f75ec8b7ccb3a98138ea9d78a2eacfbe4d16 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 02:02:22 +0100 Subject: [PATCH 01/24] account.proto comments for docs --- pb/protos/account.proto | 200 ++++++++++++++++++++++++---------------- 1 file changed, 121 insertions(+), 79 deletions(-) diff --git a/pb/protos/account.proto b/pb/protos/account.proto index 007eeb00d..af325e034 100644 --- a/pb/protos/account.proto +++ b/pb/protos/account.proto @@ -4,172 +4,214 @@ option go_package = "pb"; import "file.proto"; +/** + * Avatar of a user's acount. It could be image or color +*/ message Avatar { oneof avatar { - Image image = 1; - string color = 2; + Image image = 1; // Image of an avatar. Contains hash and size + string color = 2; // Color of an avatar, if no image } } +/** + * Account contains basic information about user's account. +*/ message Account { - string id = 1; - string name = 2; - Avatar avatar = 3; + string id = 1; // User's thread id + string name = 2; // User name, that asociated with this account + Avatar avatar = 3; // Avator of user's account } +/** + * Front end to middleware request for create a new wallet +*/ message WalletCreateRequest { - string rootPath = 1; + string rootPath = 1; // TODO: what is that? } +/** + * Middleware to front end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error +*/ message WalletCreateResponse { - Error error = 1; - string mnemonic = 2; + Error error = 1; // Error on a middleware, that happened while trying to create a wallet + string mnemonic = 2; // Mnemonic of a new account (sequence of a words, divided by spaces) message Error { - Code code = 1; - string description = 2; + Code code = 1; // One of an error codes, presented below // One of an error codes, presented below + string description = 2; // Description of an error, error message // Description of an error, error message enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; + NULL = 0; // No error; mnemonic should be non-empty + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Rootpath is wrong - FAILED_TO_CREATE_LOCAL_REPO = 101; + FAILED_TO_CREATE_LOCAL_REPO = 101; // TODO: decompose it. Why failed? // ... } } } +/** + * Front end to middleware request for recover a wallet with this mnemonic and a rootPath +*/ message WalletRecoverRequest { - string rootPath = 1; - string mnemonic = 2; + string rootPath = 1; // TODO: what is that? + string mnemonic = 2; // Mnemonic of a wallet to recover } +/** + * Middleware to front end response, that can contain a NULL error or a non-NULL error +*/ message WalletRecoverResponse { - Error error = 1; + Error error = 1; // Error on a middleware, that happened while trying to recover a wallet message Error { - Code code = 1; - string description = 2; + Code code = 1; // One of an error codes, presented below + string description = 2; // Description of an error, error message enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; + NULL = 0; // No error; wallet successfully recovered + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Rootpath or mnemonic is wrong - FAILED_TO_CREATE_LOCAL_REPO = 101; + FAILED_TO_CREATE_LOCAL_REPO = 101; // Failed to create a local repo } } } +/** + * Front end to middleware request for create an account +*/ message AccountCreateRequest { - string name = 1; + string name = 1; // Name of an account (username) oneof avatar { - string avatarLocalPath = 2; - string avatarColor = 3; + string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account + string avatarColor = 3; // You can set a color of an avatar, if you don't want to use an image } } +/** + * Middleware to front end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account +*/ message AccountCreateResponse { - Error error = 1; - Account account = 2; + Error error = 1; // Error on a middleware, that happened while trying to create an account + Account account = 2; // Newly created account; If error is non-NULL, account be a structure with an empty fields message Error { - Code code = 1; - string description = 2; + Code code = 1; // One of an error codes, presented below + string description = 2; // Description of an error, error message enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; + NULL = 0; // No error; + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Avatar or name is not correct - ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101; - ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102; - ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103; + ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101; // Account created but failed to start a node + ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102; // Account created but failed to set a name + ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103; // Account created but failed to set an avatar } } } -// Start accounts search for recovered mnemonic +/** + * Front end to middleware request to start search of an accounts for a recovered mnemonic. + * Each of an account that would be found will come with an AccountAdd event +*/ message AccountRecoverRequest {} -// Found accounts will come in event AccountAdd +/** + * Middleware to front end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account +*/ message AccountRecoverResponse { - Error error = 1; + Error error = 1; // Error on a middleware, that happened while trying to create a wallet message Error { - Code code = 1; - string description = 2; + Code code = 1; // One of an error codes, presented below + string description = 2; // Description of an error, error message enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - NO_ACCOUNTS_FOUND = 101; - NEED_TO_RECOVER_WALLET_FIRST = 102; - FAILED_TO_CREATE_LOCAL_REPO = 103; - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; - FAILED_TO_RUN_NODE = 105; + NULL = 0; // No error; + UNKNOWN_ERROR = 1; // Any other errors + + NO_ACCOUNTS_FOUND = 101; // No accounts found in a searching period + NEED_TO_RECOVER_WALLET_FIRST = 102; // Wallet is not recovered yet + FAILED_TO_CREATE_LOCAL_REPO = 103; // Failed to create a local repo + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; // Local repo corrupted + FAILED_TO_RUN_NODE = 105; // Failed to run a node } } } +/** + * Front end to middleware request to select an account with this id and a rootpath + * User can select an account from those, that came with an AccountAdd events +*/ message AccountSelectRequest { - string id = 1; - // optional, set if this is the first request - string rootPath = 2; + string id = 1; // id of a selected account + string rootPath = 2; // rootPath is optional, set if this is a first request } +/** + * Middleware to front end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account +*/ message AccountSelectResponse { - Error error = 1; - Account account = 2; + Error error = 1; // Error on a middleware, that happened while trying to select an account + Account account = 2; // Selected account message Error { - Code code = 1; - string description = 2; + Code code = 1; // One of an error codes, presented below + string description = 2; // Description of an error, error message enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... + NULL = 0; // No error; + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Id or rootpath is wrong - FAILED_TO_CREATE_LOCAL_REPO = 101; - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; - FAILED_TO_RUN_NODE = 103; - FAILED_TO_FIND_ACCOUNT_INFO = 104; - LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105; + FAILED_TO_CREATE_LOCAL_REPO = 101; // Failed to create a local repo + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; // Local repo exists but corrupted + FAILED_TO_RUN_NODE = 103; // Failed to run a node + FAILED_TO_FIND_ACCOUNT_INFO = 104; // Failed to find an account info + LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105; // Local repo not exists but mnemonic was not set } } } +/** + * Front end to middleware request to start use an account with this id +*/ message AccountStartRequest { string id = 1; } +/** + * Middleware to front end response to an account start request, that can contain a NULL error and selected account or a non-NULL error and an empty account +*/ message AccountStartResponse { - Error error = 1; - Account account = 2; + Error error = 1; // Error on a middleware, that happened while trying to start an account + Account account = 2; // Selected account to start message Error { - Code code = 1; - string description = 2; + Code code = 1; // One of an error codes, presented below + string description = 2; // Description of an error, error message enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; + NULL = 0; // No error; + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Account id is not correct // ... - LOCAL_REPO_DOESNT_EXIST = 101; - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; - FAILED_TO_RUN_NODE = 103; - FAILED_TO_FIND_ACCOUNT_INFO = 104; + LOCAL_REPO_DOESNT_EXIST = 101; // Local repo doesnt exist + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; // Local repo exists but corrupted + FAILED_TO_RUN_NODE = 103; // Failed to run node + FAILED_TO_FIND_ACCOUNT_INFO = 104; // Failed to find account info } } } +/** + * Message, that will be sent to the front on each account found after an AccountRecoverRequest +*/ message AccountShow { - int64 index = 1; - Account account = 2; + int64 index = 1; // Number of an account in an all found accounts list + Account account = 2; // Account, that have been found } From aecc70b27364cc55837f06a2c939a1ec49d991be Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 16:42:43 +0100 Subject: [PATCH 02/24] grammarly/spell checker fixes --- .gitignore | 1 + pb/protos/account.proto | 121 +++++++++++++++------------------------- 2 files changed, 45 insertions(+), 77 deletions(-) diff --git a/.gitignore b/.gitignore index 507fa6387..195f502cc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules package-lock.json /jsaddon/build +.vscode \ No newline at end of file diff --git a/pb/protos/account.proto b/pb/protos/account.proto index af325e034..168cc73dc 100644 --- a/pb/protos/account.proto +++ b/pb/protos/account.proto @@ -5,29 +5,29 @@ option go_package = "pb"; import "file.proto"; /** - * Avatar of a user's acount. It could be image or color + * Avatar of a user's account. It could be an image or color */ message Avatar { oneof avatar { - Image image = 1; // Image of an avatar. Contains hash and size - string color = 2; // Color of an avatar, if no image + Image image = 1; // Image of the avatar. Contains hash and size + string color = 2; // Color of the avatar, if no image } } /** - * Account contains basic information about user's account. + * The Account message contains basic information about a user's account */ message Account { string id = 1; // User's thread id - string name = 2; // User name, that asociated with this account - Avatar avatar = 3; // Avator of user's account + string name = 2; // User name, that associated with this account + Avatar avatar = 3; // Avatar of a user's account } /** - * Front end to middleware request for create a new wallet + * Front end to middleware request to create a new wallet */ message WalletCreateRequest { - string rootPath = 1; // TODO: what is that? + string rootPath = 1; // } /** @@ -35,25 +35,25 @@ message WalletCreateRequest { */ message WalletCreateResponse { Error error = 1; // Error on a middleware, that happened while trying to create a wallet - string mnemonic = 2; // Mnemonic of a new account (sequence of a words, divided by spaces) + string mnemonic = 2; // Mnemonic of a new account (sequence of words, divided by spaces) message Error { - Code code = 1; // One of an error codes, presented below // One of an error codes, presented below - string description = 2; // Description of an error, error message // Description of an error, error message + Code code = 1; + string description = 2; enum Code { NULL = 0; // No error; mnemonic should be non-empty UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Rootpath is wrong + BAD_INPUT = 2; // Root path is wrong - FAILED_TO_CREATE_LOCAL_REPO = 101; // TODO: decompose it. Why failed? + FAILED_TO_CREATE_LOCAL_REPO = 101; // ... } } } /** - * Front end to middleware request for recover a wallet with this mnemonic and a rootPath + * Front end to middleware request to recover a wallet with this mnemonic and a rootPath */ message WalletRecoverRequest { string rootPath = 1; // TODO: what is that? @@ -66,27 +66,27 @@ message WalletRecoverRequest { message WalletRecoverResponse { Error error = 1; // Error on a middleware, that happened while trying to recover a wallet message Error { - Code code = 1; // One of an error codes, presented below - string description = 2; // Description of an error, error message + Code code = 1; + string description = 2; enum Code { NULL = 0; // No error; wallet successfully recovered UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Rootpath or mnemonic is wrong + BAD_INPUT = 2; // Root path or mnemonic is wrong - FAILED_TO_CREATE_LOCAL_REPO = 101; // Failed to create a local repo + FAILED_TO_CREATE_LOCAL_REPO = 101; } } } /** - * Front end to middleware request for create an account + * Front end to middleware request to create an account */ message AccountCreateRequest { string name = 1; // Name of an account (username) oneof avatar { string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account - string avatarColor = 3; // You can set a color of an avatar, if you don't want to use an image + string avatarColor = 3; // You can set a color of an avatar if you don't want to use an image } } @@ -95,20 +95,20 @@ message AccountCreateRequest { */ message AccountCreateResponse { Error error = 1; // Error on a middleware, that happened while trying to create an account - Account account = 2; // Newly created account; If error is non-NULL, account be a structure with an empty fields + Account account = 2; // Newly created account; If the error is non-NULL, account be a structure with an empty fields message Error { - Code code = 1; // One of an error codes, presented below - string description = 2; // Description of an error, error message + Code code = 1; + string description = 2; enum Code { - NULL = 0; // No error; + NULL = 0; // No error; Account should be non-empty UNKNOWN_ERROR = 1; // Any other errors BAD_INPUT = 2; // Avatar or name is not correct - ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101; // Account created but failed to start a node - ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102; // Account created but failed to set a name - ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103; // Account created but failed to set an avatar + ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101; + ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102; + ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103; } } } @@ -125,24 +125,24 @@ message AccountRecoverRequest {} message AccountRecoverResponse { Error error = 1; // Error on a middleware, that happened while trying to create a wallet message Error { - Code code = 1; // One of an error codes, presented below - string description = 2; // Description of an error, error message + Code code = 1; + string description = 2; enum Code { NULL = 0; // No error; UNKNOWN_ERROR = 1; // Any other errors - NO_ACCOUNTS_FOUND = 101; // No accounts found in a searching period - NEED_TO_RECOVER_WALLET_FIRST = 102; // Wallet is not recovered yet - FAILED_TO_CREATE_LOCAL_REPO = 103; // Failed to create a local repo - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; // Local repo corrupted - FAILED_TO_RUN_NODE = 105; // Failed to run a node + NO_ACCOUNTS_FOUND = 101; + NEED_TO_RECOVER_WALLET_FIRST = 102; + FAILED_TO_CREATE_LOCAL_REPO = 103; + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; + FAILED_TO_RUN_NODE = 105; } } } /** - * Front end to middleware request to select an account with this id and a rootpath + * Front end to middleware request to select an account with this id and a root path * User can select an account from those, that came with an AccountAdd events */ message AccountSelectRequest { @@ -158,52 +158,19 @@ message AccountSelectResponse { Account account = 2; // Selected account message Error { - Code code = 1; // One of an error codes, presented below - string description = 2; // Description of an error, error message + Code code = 1; + string description = 2; enum Code { NULL = 0; // No error; UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Id or rootpath is wrong + BAD_INPUT = 2; // Id or root path is wrong - FAILED_TO_CREATE_LOCAL_REPO = 101; // Failed to create a local repo - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; // Local repo exists but corrupted - FAILED_TO_RUN_NODE = 103; // Failed to run a node - FAILED_TO_FIND_ACCOUNT_INFO = 104; // Failed to find an account info - LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105; // Local repo not exists but mnemonic was not set - - } - } -} - -/** - * Front end to middleware request to start use an account with this id -*/ -message AccountStartRequest { - string id = 1; -} - -/** - * Middleware to front end response to an account start request, that can contain a NULL error and selected account or a non-NULL error and an empty account -*/ -message AccountStartResponse { - Error error = 1; // Error on a middleware, that happened while trying to start an account - Account account = 2; // Selected account to start - - message Error { - Code code = 1; // One of an error codes, presented below - string description = 2; // Description of an error, error message - - enum Code { - NULL = 0; // No error; - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Account id is not correct - // ... - - LOCAL_REPO_DOESNT_EXIST = 101; // Local repo doesnt exist - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; // Local repo exists but corrupted - FAILED_TO_RUN_NODE = 103; // Failed to run node - FAILED_TO_FIND_ACCOUNT_INFO = 104; // Failed to find account info + FAILED_TO_CREATE_LOCAL_REPO = 101; + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; + FAILED_TO_RUN_NODE = 103; + FAILED_TO_FIND_ACCOUNT_INFO = 104; + LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105; } } } @@ -213,5 +180,5 @@ message AccountStartResponse { */ message AccountShow { int64 index = 1; // Number of an account in an all found accounts list - Account account = 2; // Account, that have been found + Account account = 2; // An Account, that has been found for the mnemonic } From 0337d32824f53fc2039c177f6b2ffbcebb869fd5 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 17:28:16 +0100 Subject: [PATCH 03/24] AccountRecoverResponse error code fix; rebuild --- core/account.go | 4 +- pb/account.pb.go | 823 +++++----------------------------------- pb/protos/account.proto | 2 + 3 files changed, 96 insertions(+), 733 deletions(-) diff --git a/core/account.go b/core/account.go index e787c86a2..f2f350939 100644 --- a/core/account.go +++ b/core/account.go @@ -136,7 +136,7 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec // now let's start the first account to perform cafe contacts search queries account, err := core.WalletAccountAt(mw.mnemonic, 0, "") if err != nil { - return response(pb.AccountRecoverResponse_Error_BAD_INPUT, err) + return response(pb.AccountRecoverResponse_Error_WALLET_RECOVER_NOT_PERFORMED, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) @@ -190,7 +190,7 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec // todo: add goroutine to query multiple accounts at once account, err := core.WalletAccountAt(mw.mnemonic, index, "") if err != nil { - return response(pb.AccountRecoverResponse_Error_BAD_INPUT, err) + return response(pb.AccountRecoverResponse_Error_WALLET_RECOVER_NOT_PERFORMED, err) } var ctx context.Context diff --git a/pb/account.pb.go b/pb/account.pb.go index 8df88674f..621e4effa 100644 --- a/pb/account.pb.go +++ b/pb/account.pb.go @@ -124,15 +124,15 @@ func (AccountCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { type AccountRecoverResponse_Error_Code int32 const ( - AccountRecoverResponse_Error_NULL AccountRecoverResponse_Error_Code = 0 - AccountRecoverResponse_Error_UNKNOWN_ERROR AccountRecoverResponse_Error_Code = 1 - AccountRecoverResponse_Error_BAD_INPUT AccountRecoverResponse_Error_Code = 2 - // ... + AccountRecoverResponse_Error_NULL AccountRecoverResponse_Error_Code = 0 + AccountRecoverResponse_Error_UNKNOWN_ERROR AccountRecoverResponse_Error_Code = 1 + AccountRecoverResponse_Error_BAD_INPUT AccountRecoverResponse_Error_Code = 2 AccountRecoverResponse_Error_NO_ACCOUNTS_FOUND AccountRecoverResponse_Error_Code = 101 AccountRecoverResponse_Error_NEED_TO_RECOVER_WALLET_FIRST AccountRecoverResponse_Error_Code = 102 AccountRecoverResponse_Error_FAILED_TO_CREATE_LOCAL_REPO AccountRecoverResponse_Error_Code = 103 AccountRecoverResponse_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED AccountRecoverResponse_Error_Code = 104 AccountRecoverResponse_Error_FAILED_TO_RUN_NODE AccountRecoverResponse_Error_Code = 105 + AccountRecoverResponse_Error_WALLET_RECOVER_NOT_PERFORMED AccountRecoverResponse_Error_Code = 106 ) var AccountRecoverResponse_Error_Code_name = map[int32]string{ @@ -144,6 +144,7 @@ var AccountRecoverResponse_Error_Code_name = map[int32]string{ 103: "FAILED_TO_CREATE_LOCAL_REPO", 104: "LOCAL_REPO_EXISTS_BUT_CORRUPTED", 105: "FAILED_TO_RUN_NODE", + 106: "WALLET_RECOVER_NOT_PERFORMED", } var AccountRecoverResponse_Error_Code_value = map[string]int32{ @@ -155,6 +156,7 @@ var AccountRecoverResponse_Error_Code_value = map[string]int32{ "FAILED_TO_CREATE_LOCAL_REPO": 103, "LOCAL_REPO_EXISTS_BUT_CORRUPTED": 104, "FAILED_TO_RUN_NODE": 105, + "WALLET_RECOVER_NOT_PERFORMED": 106, } func (x AccountRecoverResponse_Error_Code) String() string { @@ -208,46 +210,8 @@ func (AccountSelectResponse_Error_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8e28828dcb8d24f0, []int{11, 0, 0} } -type AccountStartResponse_Error_Code int32 - -const ( - AccountStartResponse_Error_NULL AccountStartResponse_Error_Code = 0 - AccountStartResponse_Error_UNKNOWN_ERROR AccountStartResponse_Error_Code = 1 - AccountStartResponse_Error_BAD_INPUT AccountStartResponse_Error_Code = 2 - AccountStartResponse_Error_LOCAL_REPO_DOESNT_EXIST AccountStartResponse_Error_Code = 101 - AccountStartResponse_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED AccountStartResponse_Error_Code = 102 - AccountStartResponse_Error_FAILED_TO_RUN_NODE AccountStartResponse_Error_Code = 103 - AccountStartResponse_Error_FAILED_TO_FIND_ACCOUNT_INFO AccountStartResponse_Error_Code = 104 -) - -var AccountStartResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "LOCAL_REPO_DOESNT_EXIST", - 102: "LOCAL_REPO_EXISTS_BUT_CORRUPTED", - 103: "FAILED_TO_RUN_NODE", - 104: "FAILED_TO_FIND_ACCOUNT_INFO", -} - -var AccountStartResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "LOCAL_REPO_DOESNT_EXIST": 101, - "LOCAL_REPO_EXISTS_BUT_CORRUPTED": 102, - "FAILED_TO_RUN_NODE": 103, - "FAILED_TO_FIND_ACCOUNT_INFO": 104, -} - -func (x AccountStartResponse_Error_Code) String() string { - return proto.EnumName(AccountStartResponse_Error_Code_name, int32(x)) -} - -func (AccountStartResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{13, 0, 0} -} - +//* +// Avatar of a user's account. It could be an image or color type Avatar struct { // Types that are valid to be assigned to Avatar: // *Avatar_Image @@ -333,6 +297,8 @@ func (*Avatar) XXX_OneofWrappers() []interface{} { } } +//* +// The Account message contains basic information about a user's account type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` @@ -393,6 +359,8 @@ func (m *Account) GetAvatar() *Avatar { return nil } +//* +// Front end to middleware request to create a new wallet type WalletCreateRequest struct { RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` } @@ -437,6 +405,8 @@ func (m *WalletCreateRequest) GetRootPath() string { return "" } +//* +// Middleware to front end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error type WalletCreateResponse struct { Error *WalletCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` @@ -541,6 +511,8 @@ func (m *WalletCreateResponse_Error) GetDescription() string { return "" } +//* +// Front end to middleware request to recover a wallet with this mnemonic and a rootPath type WalletRecoverRequest struct { RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` @@ -593,6 +565,8 @@ func (m *WalletRecoverRequest) GetMnemonic() string { return "" } +//* +// Middleware to front end response, that can contain a NULL error or a non-NULL error type WalletRecoverResponse struct { Error *WalletRecoverResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -689,6 +663,8 @@ func (m *WalletRecoverResponse_Error) GetDescription() string { return "" } +//* +// Front end to middleware request to create an account type AccountCreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Avatar: @@ -782,6 +758,8 @@ func (*AccountCreateRequest) XXX_OneofWrappers() []interface{} { } } +//* +// Middleware to front end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account type AccountCreateResponse struct { Error *AccountCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` @@ -886,7 +864,9 @@ func (m *AccountCreateResponse_Error) GetDescription() string { return "" } -// Start accounts search for recovered mnemonic +//* +// Front end to middleware request to start search of an accounts for a recovered mnemonic. +// Each of an account that would be found will come with an AccountAdd event type AccountRecoverRequest struct { } @@ -923,7 +903,8 @@ func (m *AccountRecoverRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AccountRecoverRequest proto.InternalMessageInfo -// Found accounts will come in event AccountAdd +//* +// Middleware to front end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account type AccountRecoverResponse struct { Error *AccountRecoverResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -1020,9 +1001,11 @@ func (m *AccountRecoverResponse_Error) GetDescription() string { return "" } +//* +// Front end to middleware request to select an account with this id and a root path +// User can select an account from those, that came with an AccountAdd events type AccountSelectRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // optional, set if this is the first request + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RootPath string `protobuf:"bytes,2,opt,name=rootPath,proto3" json:"rootPath,omitempty"` } @@ -1073,6 +1056,8 @@ func (m *AccountSelectRequest) GetRootPath() string { return "" } +//* +// Middleware to front end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account type AccountSelectResponse struct { Error *AccountSelectResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` @@ -1177,154 +1162,8 @@ func (m *AccountSelectResponse_Error) GetDescription() string { return "" } -type AccountStartRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *AccountStartRequest) Reset() { *m = AccountStartRequest{} } -func (m *AccountStartRequest) String() string { return proto.CompactTextString(m) } -func (*AccountStartRequest) ProtoMessage() {} -func (*AccountStartRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{12} -} -func (m *AccountStartRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountStartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountStartRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountStartRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountStartRequest.Merge(m, src) -} -func (m *AccountStartRequest) XXX_Size() int { - return m.Size() -} -func (m *AccountStartRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AccountStartRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountStartRequest proto.InternalMessageInfo - -func (m *AccountStartRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type AccountStartResponse struct { - Error *AccountStartResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *AccountStartResponse) Reset() { *m = AccountStartResponse{} } -func (m *AccountStartResponse) String() string { return proto.CompactTextString(m) } -func (*AccountStartResponse) ProtoMessage() {} -func (*AccountStartResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{13} -} -func (m *AccountStartResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountStartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountStartResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountStartResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountStartResponse.Merge(m, src) -} -func (m *AccountStartResponse) XXX_Size() int { - return m.Size() -} -func (m *AccountStartResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AccountStartResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountStartResponse proto.InternalMessageInfo - -func (m *AccountStartResponse) GetError() *AccountStartResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *AccountStartResponse) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -type AccountStartResponse_Error struct { - Code AccountStartResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.AccountStartResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *AccountStartResponse_Error) Reset() { *m = AccountStartResponse_Error{} } -func (m *AccountStartResponse_Error) String() string { return proto.CompactTextString(m) } -func (*AccountStartResponse_Error) ProtoMessage() {} -func (*AccountStartResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{13, 0} -} -func (m *AccountStartResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountStartResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountStartResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountStartResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountStartResponse_Error.Merge(m, src) -} -func (m *AccountStartResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *AccountStartResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_AccountStartResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountStartResponse_Error proto.InternalMessageInfo - -func (m *AccountStartResponse_Error) GetCode() AccountStartResponse_Error_Code { - if m != nil { - return m.Code - } - return AccountStartResponse_Error_NULL -} - -func (m *AccountStartResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - +//* +// Message, that will be sent to the front on each account found after an AccountRecoverRequest type AccountShow struct { Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` @@ -1334,7 +1173,7 @@ func (m *AccountShow) Reset() { *m = AccountShow{} } func (m *AccountShow) String() string { return proto.CompactTextString(m) } func (*AccountShow) ProtoMessage() {} func (*AccountShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{14} + return fileDescriptor_8e28828dcb8d24f0, []int{12} } func (m *AccountShow) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1383,7 +1222,6 @@ func init() { proto.RegisterEnum("anytype.AccountCreateResponse_Error_Code", AccountCreateResponse_Error_Code_name, AccountCreateResponse_Error_Code_value) proto.RegisterEnum("anytype.AccountRecoverResponse_Error_Code", AccountRecoverResponse_Error_Code_name, AccountRecoverResponse_Error_Code_value) proto.RegisterEnum("anytype.AccountSelectResponse_Error_Code", AccountSelectResponse_Error_Code_name, AccountSelectResponse_Error_Code_value) - proto.RegisterEnum("anytype.AccountStartResponse_Error_Code", AccountStartResponse_Error_Code_name, AccountStartResponse_Error_Code_value) proto.RegisterType((*Avatar)(nil), "anytype.Avatar") proto.RegisterType((*Account)(nil), "anytype.Account") proto.RegisterType((*WalletCreateRequest)(nil), "anytype.WalletCreateRequest") @@ -1401,73 +1239,68 @@ func init() { proto.RegisterType((*AccountSelectRequest)(nil), "anytype.AccountSelectRequest") proto.RegisterType((*AccountSelectResponse)(nil), "anytype.AccountSelectResponse") proto.RegisterType((*AccountSelectResponse_Error)(nil), "anytype.AccountSelectResponse.Error") - proto.RegisterType((*AccountStartRequest)(nil), "anytype.AccountStartRequest") - proto.RegisterType((*AccountStartResponse)(nil), "anytype.AccountStartResponse") - proto.RegisterType((*AccountStartResponse_Error)(nil), "anytype.AccountStartResponse.Error") proto.RegisterType((*AccountShow)(nil), "anytype.AccountShow") } func init() { proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) } var fileDescriptor_8e28828dcb8d24f0 = []byte{ - // 903 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcd, 0x6f, 0xe3, 0x44, - 0x18, 0xc6, 0x63, 0xa7, 0xe9, 0xc7, 0x1b, 0xb5, 0xeb, 0x9d, 0x6d, 0xbb, 0x55, 0x76, 0x95, 0xad, - 0xbc, 0xec, 0x52, 0x2a, 0x14, 0x89, 0x72, 0xe2, 0x53, 0x72, 0xec, 0x89, 0x88, 0x48, 0xc7, 0xd5, - 0x78, 0xd2, 0x22, 0x2e, 0x23, 0xaf, 0x33, 0x6d, 0x2d, 0xa5, 0x99, 0xe0, 0x7a, 0x17, 0xf6, 0xce, - 0x15, 0x09, 0x89, 0xc3, 0xfe, 0x05, 0x88, 0x0b, 0x1c, 0xb9, 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0xf5, 0xfc, 0xd4, 0x5f, 0xa8, 0x93, 0x3e, 0x5d, 0xae, 0x9f, 0x37, 0x1b, 0xf4, 0x9f, 0xe6, - 0x81, 0x7e, 0x0f, 0xee, 0x8e, 0xb9, 0x6e, 0xd9, 0xd8, 0x21, 0x89, 0xf1, 0xaf, 0x1a, 0xb8, 0x6e, - 0x43, 0x39, 0x7d, 0xf4, 0x53, 0xf9, 0x25, 0x5a, 0x87, 0x92, 0xdf, 0xeb, 0x88, 0xaf, 0x22, 0x7f, - 0x8a, 0x34, 0x5e, 0xcc, 0x62, 0x75, 0xfd, 0xfe, 0xef, 0x17, 0x55, 0xe5, 0xe5, 0x45, 0x55, 0xf9, - 0xe7, 0xa2, 0xaa, 0x7c, 0x7b, 0x59, 0x2d, 0xbc, 0xbc, 0xac, 0x16, 0xfe, 0xbe, 0xac, 0x16, 0x3e, - 0x57, 0xfb, 0x4f, 0x9e, 0x2c, 0x46, 0x5f, 0xe6, 0xef, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x6b, - 0x01, 0x78, 0x28, 0xbf, 0x0b, 0x00, 0x00, + // 865 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x6f, 0xe3, 0x44, + 0x18, 0x8e, 0x9d, 0xa6, 0x1f, 0x6f, 0xd4, 0xae, 0x77, 0x68, 0x4b, 0x15, 0x56, 0xd9, 0xca, 0x0b, + 0x4b, 0xa9, 0x50, 0x24, 0xca, 0x89, 0x4f, 0xc9, 0xb1, 0x27, 0x22, 0x22, 0x9d, 0x89, 0x26, 0x93, + 0x16, 0x71, 0x19, 0x79, 0x9d, 0x69, 0x6b, 0x94, 0x66, 0x82, 0xeb, 0x5d, 0xd8, 0x3b, 0x3f, 0x00, + 0x89, 0xdf, 0x80, 0xb8, 0x20, 0x71, 0x47, 0x70, 0xe7, 0x80, 0x50, 0x6f, 0x70, 0x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 0xa3, 0x81, 0xfc, 0x32, 0x16, 0xb5, 0xcc, 0x92, 0xc3, 0x3c, 0xfe, 0x34, + 0x1f, 0xfc, 0x72, 0x51, 0xd7, 0xce, 0x2f, 0xea, 0xda, 0x9f, 0x17, 0x75, 0xed, 0xeb, 0xcb, 0x7a, + 0xe9, 0xfc, 0xb2, 0x5e, 0xfa, 0xe3, 0xb2, 0x5e, 0xfa, 0x54, 0x1f, 0x3f, 0x79, 0xb2, 0x18, 0xff, + 0xf5, 0x7b, 0xfb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, 0x4a, 0x46, 0xa3, 0x20, 0x0a, 0x00, + 0x00, } func (m *Avatar) Marshal() (dAtA []byte, err error) { @@ -2161,118 +1994,6 @@ func (m *AccountSelectResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *AccountStartRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountStartRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountStartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountStartResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountStartResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountStartResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountStartResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountStartResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountStartResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func (m *AccountShow) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2628,52 +2349,6 @@ func (m *AccountSelectResponse_Error) Size() (n int) { return n } -func (m *AccountStartRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountStartResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovAccount(uint64(l)) - } - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountStartResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovAccount(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - func (m *AccountShow) Size() (n int) { if m == nil { return 0 @@ -4559,320 +4234,6 @@ func (m *AccountSelectResponse_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *AccountStartRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountStartRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountStartRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountStartResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountStartResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountStartResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &AccountStartResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountStartResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= AccountStartResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *AccountShow) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pb/protos/account.proto b/pb/protos/account.proto index 168cc73dc..e8ff56dbe 100644 --- a/pb/protos/account.proto +++ b/pb/protos/account.proto @@ -131,12 +131,14 @@ message AccountRecoverResponse { enum Code { NULL = 0; // No error; UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; NO_ACCOUNTS_FOUND = 101; NEED_TO_RECOVER_WALLET_FIRST = 102; FAILED_TO_CREATE_LOCAL_REPO = 103; LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; FAILED_TO_RUN_NODE = 105; + WALLET_RECOVER_NOT_PERFORMED = 106; } } } From bc1b7a37d644f8a6a8b0fe1810483c7bc3de9370 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 20:33:38 +0100 Subject: [PATCH 04/24] block types: row, column added; page/dashboard structures refactored --- pb/block.pb.go | 1283 +++++++++++++++++++---------------------- pb/protos/block.proto | 31 +- 2 files changed, 617 insertions(+), 697 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index 5ef5a3c80..b15b2bb18 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -32,6 +32,8 @@ const ( BlockType_FILE BlockType = 4 BlockType_PICTURE BlockType = 5 BlockType_VIDEO BlockType = 6 + BlockType_ROW BlockType = 7 + BlockType_COLUMN BlockType = 8 ) var BlockType_name = map[int32]string{ @@ -42,6 +44,8 @@ var BlockType_name = map[int32]string{ 4: "FILE", 5: "PICTURE", 6: "VIDEO", + 7: "ROW", + 8: "COLUMN", } var BlockType_value = map[string]int32{ @@ -52,6 +56,8 @@ var BlockType_value = map[string]int32{ "FILE": 4, "PICTURE": 5, "VIDEO": 6, + "ROW": 7, + "COLUMN": 8, } func (x BlockType) String() string { @@ -174,7 +180,7 @@ func (x BlockContentPage_Style) String() string { } func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 0} + return fileDescriptor_8e550b1f5926e92d, []int{20, 0} } type BlockContentDashboard_Style int32 @@ -1062,7 +1068,7 @@ type BlockContentPageChange_Style struct { Style BlockContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentPage_Style,oneof" json:"style,omitempty"` } type BlockContentPageChange_Structure struct { - Structure *BlockConnectionsList `protobuf:"bytes,2,opt,name=structure,proto3,oneof" json:"structure,omitempty"` + Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3,oneof" json:"structure,omitempty"` } type BlockContentPageChange_Blocks struct { Blocks *BlocksList `protobuf:"bytes,3,opt,name=blocks,proto3,oneof" json:"blocks,omitempty"` @@ -1086,7 +1092,7 @@ func (m *BlockContentPageChange) GetStyle() BlockContentPage_Style { return BlockContentPage_EMPTY } -func (m *BlockContentPageChange) GetStructure() *BlockConnectionsList { +func (m *BlockContentPageChange) GetStructure() *BlockStructure { if x, ok := m.GetChange().(*BlockContentPageChange_Structure); ok { return x.Structure } @@ -1284,7 +1290,7 @@ type BlockContentDashboardChange_Style struct { Style BlockContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentDashboard_Style,oneof" json:"style,omitempty"` } type BlockContentDashboardChange_Structure struct { - Structure *BlockConnectionsList `protobuf:"bytes,2,opt,name=structure,proto3,oneof" json:"structure,omitempty"` + Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3,oneof" json:"structure,omitempty"` } type BlockContentDashboardChange_Headers struct { Headers *BlockHeadersList `protobuf:"bytes,3,opt,name=headers,proto3,oneof" json:"headers,omitempty"` @@ -1308,7 +1314,7 @@ func (m *BlockContentDashboardChange) GetStyle() BlockContentDashboard_Style { return BlockContentDashboard_MAIN_SCREEN } -func (m *BlockContentDashboardChange) GetStructure() *BlockConnectionsList { +func (m *BlockContentDashboardChange) GetStructure() *BlockStructure { if x, ok := m.GetChange().(*BlockContentDashboardChange_Structure); ok { return x.Structure } @@ -1770,126 +1776,6 @@ func (m *BlockPermissions) GetDropOn() bool { return false } -type BlockConnections struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Next string `protobuf:"bytes,2,opt,name=next,proto3" json:"next,omitempty"` - ColumnBottom string `protobuf:"bytes,3,opt,name=columnBottom,proto3" json:"columnBottom,omitempty"` - RowRight string `protobuf:"bytes,4,opt,name=rowRight,proto3" json:"rowRight,omitempty"` - Inner string `protobuf:"bytes,5,opt,name=inner,proto3" json:"inner,omitempty"` -} - -func (m *BlockConnections) Reset() { *m = BlockConnections{} } -func (m *BlockConnections) String() string { return proto.CompactTextString(m) } -func (*BlockConnections) ProtoMessage() {} -func (*BlockConnections) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} -} -func (m *BlockConnections) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockConnections) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockConnections.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockConnections) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockConnections.Merge(m, src) -} -func (m *BlockConnections) XXX_Size() int { - return m.Size() -} -func (m *BlockConnections) XXX_DiscardUnknown() { - xxx_messageInfo_BlockConnections.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockConnections proto.InternalMessageInfo - -func (m *BlockConnections) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *BlockConnections) GetNext() string { - if m != nil { - return m.Next - } - return "" -} - -func (m *BlockConnections) GetColumnBottom() string { - if m != nil { - return m.ColumnBottom - } - return "" -} - -func (m *BlockConnections) GetRowRight() string { - if m != nil { - return m.RowRight - } - return "" -} - -func (m *BlockConnections) GetInner() string { - if m != nil { - return m.Inner - } - return "" -} - -type BlockConnectionsList struct { - Structure []*BlockConnections `protobuf:"bytes,1,rep,name=structure,proto3" json:"structure,omitempty"` -} - -func (m *BlockConnectionsList) Reset() { *m = BlockConnectionsList{} } -func (m *BlockConnectionsList) String() string { return proto.CompactTextString(m) } -func (*BlockConnectionsList) ProtoMessage() {} -func (*BlockConnectionsList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} -} -func (m *BlockConnectionsList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockConnectionsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockConnectionsList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockConnectionsList) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockConnectionsList.Merge(m, src) -} -func (m *BlockConnectionsList) XXX_Size() int { - return m.Size() -} -func (m *BlockConnectionsList) XXX_DiscardUnknown() { - xxx_messageInfo_BlockConnectionsList.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockConnectionsList proto.InternalMessageInfo - -func (m *BlockConnectionsList) GetStructure() []*BlockConnections { - if m != nil { - return m.Structure - } - return nil -} - type BlockHeadersList struct { Headers []*BlockHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` } @@ -1898,7 +1784,7 @@ func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } func (*BlockHeadersList) ProtoMessage() {} func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} + return fileDescriptor_8e550b1f5926e92d, []int{18} } func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1942,7 +1828,7 @@ func (m *BlocksList) Reset() { *m = BlocksList{} } func (m *BlocksList) String() string { return proto.CompactTextString(m) } func (*BlocksList) ProtoMessage() {} func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} + return fileDescriptor_8e550b1f5926e92d, []int{19} } func (m *BlocksList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1980,7 +1866,7 @@ func (m *BlocksList) GetBlocks() []*Block { type BlockContentPage struct { Style BlockContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentPage_Style" json:"style,omitempty"` - Structure *BlockConnectionsList `protobuf:"bytes,2,opt,name=structure,proto3" json:"structure,omitempty"` + Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3" json:"structure,omitempty"` Blocks *BlocksList `protobuf:"bytes,3,opt,name=blocks,proto3" json:"blocks,omitempty"` } @@ -1988,7 +1874,7 @@ func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } func (*BlockContentPage) ProtoMessage() {} func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} + return fileDescriptor_8e550b1f5926e92d, []int{20} } func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2024,7 +1910,7 @@ func (m *BlockContentPage) GetStyle() BlockContentPage_Style { return BlockContentPage_EMPTY } -func (m *BlockContentPage) GetStructure() *BlockConnectionsList { +func (m *BlockContentPage) GetStructure() *BlockStructure { if m != nil { return m.Structure } @@ -2038,9 +1924,97 @@ func (m *BlockContentPage) GetBlocks() *BlocksList { return nil } +type BlockStructure struct { + Children map[string]*BlockChildren `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *BlockStructure) Reset() { *m = BlockStructure{} } +func (m *BlockStructure) String() string { return proto.CompactTextString(m) } +func (*BlockStructure) ProtoMessage() {} +func (*BlockStructure) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{21} +} +func (m *BlockStructure) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockStructure.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockStructure) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockStructure.Merge(m, src) +} +func (m *BlockStructure) XXX_Size() int { + return m.Size() +} +func (m *BlockStructure) XXX_DiscardUnknown() { + xxx_messageInfo_BlockStructure.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockStructure proto.InternalMessageInfo + +func (m *BlockStructure) GetChildren() map[string]*BlockChildren { + if m != nil { + return m.Children + } + return nil +} + +type BlockChildren struct { + Children []string `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` +} + +func (m *BlockChildren) Reset() { *m = BlockChildren{} } +func (m *BlockChildren) String() string { return proto.CompactTextString(m) } +func (*BlockChildren) ProtoMessage() {} +func (*BlockChildren) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{22} +} +func (m *BlockChildren) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockChildren) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockChildren.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockChildren) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockChildren.Merge(m, src) +} +func (m *BlockChildren) XXX_Size() int { + return m.Size() +} +func (m *BlockChildren) XXX_DiscardUnknown() { + xxx_messageInfo_BlockChildren.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockChildren proto.InternalMessageInfo + +func (m *BlockChildren) GetChildren() []string { + if m != nil { + return m.Children + } + return nil +} + type BlockContentDashboard struct { Style BlockContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentDashboard_Style" json:"style,omitempty"` - Structure *BlockConnectionsList `protobuf:"bytes,2,opt,name=structure,proto3" json:"structure,omitempty"` + Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3" json:"structure,omitempty"` Headers *BlockHeadersList `protobuf:"bytes,3,opt,name=headers,proto3" json:"headers,omitempty"` } @@ -2084,7 +2058,7 @@ func (m *BlockContentDashboard) GetStyle() BlockContentDashboard_Style { return BlockContentDashboard_MAIN_SCREEN } -func (m *BlockContentDashboard) GetStructure() *BlockConnectionsList { +func (m *BlockContentDashboard) GetStructure() *BlockStructure { if m != nil { return m.Structure } @@ -2457,11 +2431,12 @@ func init() { proto.RegisterType((*Block)(nil), "anytype.Block") proto.RegisterType((*BlockHeader)(nil), "anytype.BlockHeader") proto.RegisterType((*BlockPermissions)(nil), "anytype.BlockPermissions") - proto.RegisterType((*BlockConnections)(nil), "anytype.BlockConnections") - proto.RegisterType((*BlockConnectionsList)(nil), "anytype.BlockConnectionsList") proto.RegisterType((*BlockHeadersList)(nil), "anytype.BlockHeadersList") proto.RegisterType((*BlocksList)(nil), "anytype.BlocksList") proto.RegisterType((*BlockContentPage)(nil), "anytype.BlockContentPage") + proto.RegisterType((*BlockStructure)(nil), "anytype.BlockStructure") + proto.RegisterMapType((map[string]*BlockChildren)(nil), "anytype.BlockStructure.ChildrenEntry") + proto.RegisterType((*BlockChildren)(nil), "anytype.BlockChildren") proto.RegisterType((*BlockContentDashboard)(nil), "anytype.BlockContentDashboard") proto.RegisterType((*BlockContentDataview)(nil), "anytype.BlockContentDataview") proto.RegisterType((*BlockContentText)(nil), "anytype.BlockContentText") @@ -2474,110 +2449,110 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1633 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0x13, 0xd7, - 0x16, 0xf7, 0x4c, 0x3c, 0x8e, 0x7d, 0x9c, 0x84, 0xe1, 0x12, 0x90, 0xf1, 0xe3, 0xf9, 0x45, 0xf3, - 0x28, 0xa0, 0xd2, 0x1a, 0x91, 0x3f, 0x50, 0x1a, 0x40, 0xb2, 0xe3, 0x01, 0x5b, 0x49, 0xec, 0xe8, - 0xda, 0x81, 0xd2, 0x45, 0xd1, 0xc4, 0x73, 0x49, 0x46, 0xb1, 0x67, 0xcc, 0x78, 0x02, 0x64, 0xd3, - 0x4f, 0xd0, 0x45, 0x97, 0x55, 0x17, 0x95, 0xba, 0xe6, 0x6b, 0xb0, 0x68, 0x77, 0x48, 0xdd, 0x54, - 0xea, 0xa2, 0x15, 0x6c, 0xba, 0xe8, 0x87, 0xa8, 0xee, 0x9f, 0x99, 0xb9, 0x93, 0x18, 0x27, 0x41, - 0xb0, 0xca, 0xdc, 0x7b, 0xcf, 0xb9, 0xe7, 0x9c, 0xdf, 0x3d, 0xe7, 0x77, 0x8e, 0x03, 0xf9, 0xad, - 0x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87, 0x10, 0xf4, 0x3a, 0x7a, - 0x20, 0x12, 0x32, 0xe8, 0xae, 0x1c, 0x4d, 0x9e, 0x29, 0x94, 0xc6, 0x47, 0x93, 0x88, 0x03, 0x5d, - 0x13, 0x20, 0x4e, 0x8d, 0xca, 0x0f, 0x09, 0xc4, 0x08, 0xbe, 0x65, 0xc8, 0xda, 0x56, 0x60, 0x3d, - 0x73, 0xc8, 0xf3, 0xc2, 0xf4, 0x3b, 0x32, 0x92, 0xdb, 0xe3, 0x42, 0xf5, 0x14, 0x8e, 0x14, 0xa8, - 0x35, 0x96, 0x29, 0x33, 0x63, 0xac, 0xd1, 0x4c, 0x89, 0x72, 0x64, 0x1e, 0xb4, 0x3e, 0xb1, 0x1d, - 0xab, 0x70, 0x6a, 0x54, 0x76, 0x08, 0x8d, 0x75, 0x2a, 0xc1, 0x58, 0x9d, 0x7e, 0x54, 0x73, 0x30, - 0xd9, 0xe5, 0x07, 0xc6, 0x4b, 0x45, 0x74, 0x2e, 0x91, 0x32, 0x07, 0x33, 0xf7, 0xd2, 0x51, 0xe4, - 0x22, 0xa8, 0xe5, 0x32, 0x64, 0x9e, 0x38, 0xa4, 0x67, 0x87, 0x75, 0x74, 0x2a, 0x92, 0x6c, 0xb3, - 0x62, 0xc3, 0xe2, 0x18, 0x2d, 0x27, 0x79, 0x25, 0x7d, 0x04, 0xaf, 0x24, 0x58, 0xc5, 0xf8, 0x56, - 0x4c, 0xe0, 0x92, 0x00, 0x42, 0x90, 0xf6, 0x89, 0xc5, 0x7d, 0xce, 0x62, 0xf6, 0x4d, 0xf7, 0x88, - 0xed, 0xf0, 0x7a, 0xcb, 0x62, 0xf6, 0x8d, 0xce, 0x41, 0xc6, 0x27, 0x7d, 0xef, 0x19, 0xa7, 0xbf, - 0x2c, 0x16, 0x2b, 0x2a, 0x6b, 0xfb, 0xd6, 0x36, 0x6f, 0x6e, 0x98, 0x7d, 0x53, 0x59, 0xdb, 0xf7, - 0x06, 0x2d, 0x97, 0xa5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xca, 0x07, 0x8d, 0x9a, 0xd9, 0xd2, 0x33, 0xd5, - 0x0b, 0xbf, 0xbc, 0x29, 0x29, 0xaf, 0xdf, 0x94, 0x94, 0xbf, 0xde, 0x94, 0x94, 0xef, 0xdf, 0x96, - 0x52, 0xaf, 0xdf, 0x96, 0x52, 0xbf, 0xbf, 0x2d, 0xa5, 0xbe, 0x56, 0x07, 0x5b, 0x5b, 0x19, 0xf6, - 0x9f, 0xac, 0x85, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x79, 0x56, 0x82, 0xe1, 0xef, 0x12, 0x00, - 0x00, + // 1643 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0x13, 0xd7, + 0x17, 0x9f, 0x99, 0x78, 0xfc, 0x38, 0x4e, 0xc2, 0x70, 0x09, 0xf9, 0x1b, 0xff, 0xa9, 0x1b, 0x4d, + 0x79, 0xa9, 0x50, 0x23, 0xf2, 0xe0, 0x0d, 0x92, 0x1d, 0x0f, 0xd8, 0x8a, 0x63, 0x47, 0xd7, 0x0e, + 0x94, 0x6e, 0xd0, 0xc4, 0x73, 0x49, 0xac, 0xd8, 0x33, 0x66, 0x3c, 0x01, 0xb2, 0xe9, 0x67, 0xe8, + 0xb2, 0xea, 0xa2, 0x52, 0x77, 0x95, 0xf8, 0x18, 0x65, 0xd1, 0x25, 0x52, 0x55, 0xa9, 0xdd, 0x55, + 0x61, 0xdb, 0x0f, 0x51, 0xdd, 0xc7, 0xbc, 0x1c, 0xe3, 0x04, 0x5a, 0x56, 0x99, 0x99, 0xfb, 0x3b, + 0xf7, 0x9c, 0xf3, 0xbb, 0xe7, 0xfe, 0xce, 0x71, 0x20, 0xbb, 0xd5, 0x73, 0x3a, 0xbb, 0xc5, 0x81, + 0xeb, 0x78, 0x0e, 0x4a, 0x99, 0xf6, 0xbe, 0xb7, 0x3f, 0x20, 0x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, 0x26, 0x96, 0x07, 0xba, 0x2a, 0x48, 0x9c, 0x1e, 0x57, 0x1f, 0x11, + 0x12, 0x03, 0xfa, 0xee, 0x40, 0xda, 0x32, 0x3d, 0xf3, 0x45, 0x97, 0xbc, 0xcc, 0xcd, 0x30, 0xa3, + 0xcf, 0xde, 0xe3, 0x8f, 0x83, 0xaa, 0x12, 0x0e, 0x0c, 0xa8, 0x37, 0x56, 0x29, 0xb3, 0x13, 0xbc, + 0xd1, 0x4a, 0x09, 0x6a, 0x64, 0x11, 0xd4, 0x3e, 0xb1, 0xba, 0x66, 0xee, 0xc4, 0xb8, 0xea, 0x10, + 0x16, 0xeb, 0x14, 0xc1, 0x94, 0x9c, 0x3e, 0x94, 0x33, 0x90, 0xea, 0xf0, 0x05, 0xfd, 0xb5, 0x2c, + 0xba, 0x95, 0x28, 0x99, 0xd1, 0xca, 0xbd, 0x70, 0x94, 0xac, 0x08, 0x51, 0xb9, 0x08, 0xc9, 0x67, + 0x5d, 0xd2, 0xb3, 0xfc, 0x7b, 0x74, 0x22, 0x40, 0xf2, 0x9b, 0x87, 0xc5, 0x32, 0xba, 0x13, 0x57, + 0x94, 0xc4, 0x11, 0x8a, 0x12, 0xd3, 0x13, 0xfd, 0x5b, 0x31, 0x75, 0x47, 0x00, 0x08, 0x41, 0xc2, + 0x25, 0x26, 0x8f, 0x39, 0x8d, 0xd9, 0x33, 0xfd, 0x46, 0xac, 0x2e, 0xbf, 0x6f, 0x69, 0xcc, 0x9e, + 0xd1, 0x3c, 0x24, 0x5d, 0xd2, 0x77, 0x5e, 0x70, 0xe1, 0x4b, 0x63, 0xf1, 0x46, 0xb1, 0x96, 0x6b, + 0x6e, 0xf3, 0x86, 0x86, 0xd9, 0x33, 0xc5, 0x5a, 0xae, 0x33, 0x68, 0xda, 0xac, 0xfc, 0xd3, 0x58, + 0xbc, 0xe9, 0x65, 0xe1, 0x3f, 0x22, 0x0b, 0xa8, 0x18, 0x4a, 0x08, 0xaf, 0xe6, 0x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x70, 0xe2, 0xe6, 0x63, 0x2d, + 0x45, 0x53, 0x59, 0x6d, 0xd6, 0x37, 0xd7, 0x1b, 0x5a, 0xba, 0x7c, 0xf6, 0xd7, 0x83, 0x82, 0xfc, + 0xf6, 0xa0, 0x20, 0xff, 0x75, 0x50, 0x90, 0xbf, 0x7b, 0x57, 0x90, 0xde, 0xbe, 0x2b, 0x48, 0x7f, + 0xbc, 0x2b, 0x48, 0xdf, 0x28, 0x83, 0xad, 0xad, 0x24, 0xfb, 0xf7, 0xd5, 0xd2, 0x3f, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x95, 0xfd, 0x30, 0x59, 0xe4, 0x12, 0x00, 0x00, } func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { @@ -3862,101 +3837,6 @@ func (m *BlockPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BlockConnections) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockConnections) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockConnections) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Inner) > 0 { - i -= len(m.Inner) - copy(dAtA[i:], m.Inner) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Inner))) - i-- - dAtA[i] = 0x2a - } - if len(m.RowRight) > 0 { - i -= len(m.RowRight) - copy(dAtA[i:], m.RowRight) - i = encodeVarintBlock(dAtA, i, uint64(len(m.RowRight))) - i-- - dAtA[i] = 0x22 - } - if len(m.ColumnBottom) > 0 { - i -= len(m.ColumnBottom) - copy(dAtA[i:], m.ColumnBottom) - i = encodeVarintBlock(dAtA, i, uint64(len(m.ColumnBottom))) - i-- - dAtA[i] = 0x1a - } - if len(m.Next) > 0 { - i -= len(m.Next) - copy(dAtA[i:], m.Next) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Next))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockConnectionsList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockConnectionsList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockConnectionsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Structure) > 0 { - for iNdEx := len(m.Structure) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Structure[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - func (m *BlockHeadersList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4083,6 +3963,87 @@ func (m *BlockContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *BlockStructure) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockStructure) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockStructure) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Children) > 0 { + for k := range m.Children { + v := m.Children[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintBlock(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintBlock(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BlockChildren) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockChildren) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Children[iNdEx]) + copy(dAtA[i:], m.Children[iNdEx]) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Children[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *BlockContentDashboard) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5001,50 +4962,6 @@ func (m *BlockPermissions) Size() (n int) { return n } -func (m *BlockConnections) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.Next) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.ColumnBottom) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.RowRight) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockConnectionsList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Structure) > 0 { - for _, e := range m.Structure { - l = e.Size() - n += 1 + l + sovBlock(uint64(l)) - } - } - return n -} - func (m *BlockHeadersList) Size() (n int) { if m == nil { return 0 @@ -5095,6 +5012,43 @@ func (m *BlockContentPage) Size() (n int) { return n } +func (m *BlockStructure) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Children) > 0 { + for k, v := range m.Children { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovBlock(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovBlock(uint64(len(k))) + l + n += mapEntrySize + 1 + sovBlock(uint64(mapEntrySize)) + } + } + return n +} + +func (m *BlockChildren) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Children) > 0 { + for _, s := range m.Children { + l = len(s) + n += 1 + l + sovBlock(uint64(l)) + } + } + return n +} + func (m *BlockContentDashboard) Size() (n int) { if m == nil { return 0 @@ -6654,7 +6608,7 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockConnectionsList{} + v := &BlockStructure{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7001,7 +6955,7 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockConnectionsList{} + v := &BlockStructure{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7971,306 +7925,6 @@ func (m *BlockPermissions) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockConnections) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockConnections: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockConnections: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Next", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Next = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ColumnBottom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ColumnBottom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowRight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RowRight = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Inner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockConnectionsList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockConnectionsList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockConnectionsList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Structure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Structure = append(m.Structure, &BlockConnections{}) - if err := m.Structure[len(m.Structure)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *BlockHeadersList) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8523,7 +8177,7 @@ func (m *BlockContentPage) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Structure == nil { - m.Structure = &BlockConnectionsList{} + m.Structure = &BlockStructure{} } if err := m.Structure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8589,6 +8243,273 @@ func (m *BlockContentPage) Unmarshal(dAtA []byte) error { } return nil } +func (m *BlockStructure) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockStructure: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockStructure: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Children == nil { + m.Children = make(map[string]*BlockChildren) + } + var mapkey string + var mapvalue *BlockChildren + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + 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 ErrIntOverflowBlock + } + 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 ErrInvalidLengthBlock + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthBlock + } + 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 ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthBlock + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthBlock + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &BlockChildren{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Children[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockChildren) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockChildren: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockChildren: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BlockContentDashboard) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8667,7 +8588,7 @@ func (m *BlockContentDashboard) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Structure == nil { - m.Structure = &BlockConnectionsList{} + m.Structure = &BlockStructure{} } if err := m.Structure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/pb/protos/block.proto b/pb/protos/block.proto index 4b6542ee1..0c59ea05f 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -101,7 +101,7 @@ message BlockContentTextChange { message BlockContentPageChange { oneof change { BlockContentPage.Style style = 1; - BlockConnectionsList structure = 2; + BlockStructure structure = 2; BlocksList blocks = 3; } } @@ -120,7 +120,7 @@ message BlockHeaderChange { message BlockContentDashboardChange { oneof change { BlockContentDashboard.Style style = 1; - BlockConnectionsList structure = 2; + BlockStructure structure = 2; BlockHeadersList headers = 3; } } @@ -179,18 +179,9 @@ enum BlockType { FILE = 4; PICTURE = 5; VIDEO = 6; -} -message BlockConnections { - string id = 1; - string next = 2; - string columnBottom = 3; - string rowRight = 4; - string inner = 5; -} - -message BlockConnectionsList { - repeated BlockConnections structure = 1; + ROW = 7; + COLUMN = 8; } message BlockHeadersList { @@ -211,10 +202,18 @@ message BlockContentPage { } Style style = 1; - BlockConnectionsList structure = 2; + BlockStructure structure = 2; BlocksList blocks = 3; } +message BlockStructure { + map children = 1; +} + +message BlockChildren { + repeated string children = 1; +} + message BlockContentDashboard { enum Style { MAIN_SCREEN = 0; @@ -222,7 +221,7 @@ message BlockContentDashboard { } Style style = 1; - BlockConnectionsList structure = 2; + BlockStructure structure = 2; BlockHeadersList headers = 3; } @@ -298,7 +297,7 @@ message DataviewScheme { message PageScheme { BlockHeader header = 1; - BlockConnectionsList structure = 2; + BlockChildrenList structure = 2; BlockHeadersList headers = 3; } From 6e5889ca80ba11653cca027ba850d489f0689e29 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 22:07:03 +0100 Subject: [PATCH 05/24] atomic changes for page/dashboard --- pb/block.pb.go | 729 +++++++++++++++++++++++++++++------------- pb/protos/block.proto | 18 +- 2 files changed, 520 insertions(+), 227 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index b15b2bb18..60a2b5c19 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -180,7 +180,7 @@ func (x BlockContentPage_Style) String() string { } func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20, 0} + return fileDescriptor_8e550b1f5926e92d, []int{21, 0} } type BlockContentDashboard_Style int32 @@ -202,7 +202,7 @@ func (x BlockContentDashboard_Style) String() string { } func (BlockContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23, 0} + return fileDescriptor_8e550b1f5926e92d, []int{24, 0} } type BlockContentText_Style int32 @@ -239,7 +239,7 @@ func (x BlockContentText_Style) String() string { } func (BlockContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25, 0} + return fileDescriptor_8e550b1f5926e92d, []int{26, 0} } type BlockContentText_MarkerType int32 @@ -267,7 +267,7 @@ func (x BlockContentText_MarkerType) String() string { } func (BlockContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25, 1} + return fileDescriptor_8e550b1f5926e92d, []int{26, 1} } type BlockContentText_Mark_Type int32 @@ -301,7 +301,7 @@ func (x BlockContentText_Mark_Type) String() string { } func (BlockContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25, 1, 0} + return fileDescriptor_8e550b1f5926e92d, []int{26, 1, 0} } // commands @@ -455,7 +455,8 @@ func (m *BlockOpenResponse_Error) GetDescription() string { } type BlockCreateRequest struct { - Type BlockType `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.BlockType" json:"type,omitempty"` + Type BlockType `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.BlockType" json:"type,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` } func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } @@ -498,6 +499,13 @@ func (m *BlockCreateRequest) GetType() BlockType { return BlockType_DASHBOARD } +func (m *BlockCreateRequest) GetContextBlockId() string { + if m != nil { + return m.ContextBlockId + } + return "" +} + type BlockCreateResponse struct { Error *BlockCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -867,6 +875,58 @@ func (m *BlockCreate) GetBlock() *Block { return nil } +type BlockStructureChange struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Children *BlockChildren `protobuf:"bytes,2,opt,name=children,proto3" json:"children,omitempty"` +} + +func (m *BlockStructureChange) Reset() { *m = BlockStructureChange{} } +func (m *BlockStructureChange) String() string { return proto.CompactTextString(m) } +func (*BlockStructureChange) ProtoMessage() {} +func (*BlockStructureChange) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{9} +} +func (m *BlockStructureChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockStructureChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockStructureChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockStructureChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockStructureChange.Merge(m, src) +} +func (m *BlockStructureChange) XXX_Size() int { + return m.Size() +} +func (m *BlockStructureChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockStructureChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockStructureChange proto.InternalMessageInfo + +func (m *BlockStructureChange) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *BlockStructureChange) GetChildren() *BlockChildren { + if m != nil { + return m.Children + } + return nil +} + type BlockContentTextChange struct { // Types that are valid to be assigned to Change: // *BlockContentTextChange_Text @@ -883,7 +943,7 @@ func (m *BlockContentTextChange) Reset() { *m = BlockContentTextChange{} func (m *BlockContentTextChange) String() string { return proto.CompactTextString(m) } func (*BlockContentTextChange) ProtoMessage() {} func (*BlockContentTextChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{9} + return fileDescriptor_8e550b1f5926e92d, []int{10} } func (m *BlockContentTextChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1020,8 +1080,8 @@ func (*BlockContentTextChange) XXX_OneofWrappers() []interface{} { type BlockContentPageChange struct { // Types that are valid to be assigned to Change: // *BlockContentPageChange_Style - // *BlockContentPageChange_Structure - // *BlockContentPageChange_Blocks + // *BlockContentPageChange_StructureChange + // *BlockContentPageChange_Block Change isBlockContentPageChange_Change `protobuf_oneof:"change"` } @@ -1029,7 +1089,7 @@ func (m *BlockContentPageChange) Reset() { *m = BlockContentPageChange{} func (m *BlockContentPageChange) String() string { return proto.CompactTextString(m) } func (*BlockContentPageChange) ProtoMessage() {} func (*BlockContentPageChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{10} + return fileDescriptor_8e550b1f5926e92d, []int{11} } func (m *BlockContentPageChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1067,16 +1127,16 @@ type isBlockContentPageChange_Change interface { type BlockContentPageChange_Style struct { Style BlockContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentPage_Style,oneof" json:"style,omitempty"` } -type BlockContentPageChange_Structure struct { - Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3,oneof" json:"structure,omitempty"` +type BlockContentPageChange_StructureChange struct { + StructureChange *BlockStructureChange `protobuf:"bytes,2,opt,name=structureChange,proto3,oneof" json:"structureChange,omitempty"` } -type BlockContentPageChange_Blocks struct { - Blocks *BlocksList `protobuf:"bytes,3,opt,name=blocks,proto3,oneof" json:"blocks,omitempty"` +type BlockContentPageChange_Block struct { + Block *Block `protobuf:"bytes,3,opt,name=block,proto3,oneof" json:"block,omitempty"` } -func (*BlockContentPageChange_Style) isBlockContentPageChange_Change() {} -func (*BlockContentPageChange_Structure) isBlockContentPageChange_Change() {} -func (*BlockContentPageChange_Blocks) isBlockContentPageChange_Change() {} +func (*BlockContentPageChange_Style) isBlockContentPageChange_Change() {} +func (*BlockContentPageChange_StructureChange) isBlockContentPageChange_Change() {} +func (*BlockContentPageChange_Block) isBlockContentPageChange_Change() {} func (m *BlockContentPageChange) GetChange() isBlockContentPageChange_Change { if m != nil { @@ -1092,16 +1152,16 @@ func (m *BlockContentPageChange) GetStyle() BlockContentPage_Style { return BlockContentPage_EMPTY } -func (m *BlockContentPageChange) GetStructure() *BlockStructure { - if x, ok := m.GetChange().(*BlockContentPageChange_Structure); ok { - return x.Structure +func (m *BlockContentPageChange) GetStructureChange() *BlockStructureChange { + if x, ok := m.GetChange().(*BlockContentPageChange_StructureChange); ok { + return x.StructureChange } return nil } -func (m *BlockContentPageChange) GetBlocks() *BlocksList { - if x, ok := m.GetChange().(*BlockContentPageChange_Blocks); ok { - return x.Blocks +func (m *BlockContentPageChange) GetBlock() *Block { + if x, ok := m.GetChange().(*BlockContentPageChange_Block); ok { + return x.Block } return nil } @@ -1110,8 +1170,8 @@ func (m *BlockContentPageChange) GetBlocks() *BlocksList { func (*BlockContentPageChange) XXX_OneofWrappers() []interface{} { return []interface{}{ (*BlockContentPageChange_Style)(nil), - (*BlockContentPageChange_Structure)(nil), - (*BlockContentPageChange_Blocks)(nil), + (*BlockContentPageChange_StructureChange)(nil), + (*BlockContentPageChange_Block)(nil), } } @@ -1129,7 +1189,7 @@ func (m *BlockHeaderChange) Reset() { *m = BlockHeaderChange{} } func (m *BlockHeaderChange) String() string { return proto.CompactTextString(m) } func (*BlockHeaderChange) ProtoMessage() {} func (*BlockHeaderChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{11} + return fileDescriptor_8e550b1f5926e92d, []int{12} } func (m *BlockHeaderChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1242,8 +1302,8 @@ func (*BlockHeaderChange) XXX_OneofWrappers() []interface{} { type BlockContentDashboardChange struct { // Types that are valid to be assigned to Change: // *BlockContentDashboardChange_Style - // *BlockContentDashboardChange_Structure - // *BlockContentDashboardChange_Headers + // *BlockContentDashboardChange_StructureChange + // *BlockContentDashboardChange_Header Change isBlockContentDashboardChange_Change `protobuf_oneof:"change"` } @@ -1251,7 +1311,7 @@ func (m *BlockContentDashboardChange) Reset() { *m = BlockContentDashboa func (m *BlockContentDashboardChange) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboardChange) ProtoMessage() {} func (*BlockContentDashboardChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{12} + return fileDescriptor_8e550b1f5926e92d, []int{13} } func (m *BlockContentDashboardChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1289,16 +1349,16 @@ type isBlockContentDashboardChange_Change interface { type BlockContentDashboardChange_Style struct { Style BlockContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentDashboard_Style,oneof" json:"style,omitempty"` } -type BlockContentDashboardChange_Structure struct { - Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3,oneof" json:"structure,omitempty"` +type BlockContentDashboardChange_StructureChange struct { + StructureChange *BlockStructureChange `protobuf:"bytes,2,opt,name=structureChange,proto3,oneof" json:"structureChange,omitempty"` } -type BlockContentDashboardChange_Headers struct { - Headers *BlockHeadersList `protobuf:"bytes,3,opt,name=headers,proto3,oneof" json:"headers,omitempty"` +type BlockContentDashboardChange_Header struct { + Header *BlockHeader `protobuf:"bytes,3,opt,name=header,proto3,oneof" json:"header,omitempty"` } -func (*BlockContentDashboardChange_Style) isBlockContentDashboardChange_Change() {} -func (*BlockContentDashboardChange_Structure) isBlockContentDashboardChange_Change() {} -func (*BlockContentDashboardChange_Headers) isBlockContentDashboardChange_Change() {} +func (*BlockContentDashboardChange_Style) isBlockContentDashboardChange_Change() {} +func (*BlockContentDashboardChange_StructureChange) isBlockContentDashboardChange_Change() {} +func (*BlockContentDashboardChange_Header) isBlockContentDashboardChange_Change() {} func (m *BlockContentDashboardChange) GetChange() isBlockContentDashboardChange_Change { if m != nil { @@ -1314,16 +1374,16 @@ func (m *BlockContentDashboardChange) GetStyle() BlockContentDashboard_Style { return BlockContentDashboard_MAIN_SCREEN } -func (m *BlockContentDashboardChange) GetStructure() *BlockStructure { - if x, ok := m.GetChange().(*BlockContentDashboardChange_Structure); ok { - return x.Structure +func (m *BlockContentDashboardChange) GetStructureChange() *BlockStructureChange { + if x, ok := m.GetChange().(*BlockContentDashboardChange_StructureChange); ok { + return x.StructureChange } return nil } -func (m *BlockContentDashboardChange) GetHeaders() *BlockHeadersList { - if x, ok := m.GetChange().(*BlockContentDashboardChange_Headers); ok { - return x.Headers +func (m *BlockContentDashboardChange) GetHeader() *BlockHeader { + if x, ok := m.GetChange().(*BlockContentDashboardChange_Header); ok { + return x.Header } return nil } @@ -1332,8 +1392,8 @@ func (m *BlockContentDashboardChange) GetHeaders() *BlockHeadersList { func (*BlockContentDashboardChange) XXX_OneofWrappers() []interface{} { return []interface{}{ (*BlockContentDashboardChange_Style)(nil), - (*BlockContentDashboardChange_Structure)(nil), - (*BlockContentDashboardChange_Headers)(nil), + (*BlockContentDashboardChange_StructureChange)(nil), + (*BlockContentDashboardChange_Header)(nil), } } @@ -1351,7 +1411,7 @@ func (m *BlockAtomicChange) Reset() { *m = BlockAtomicChange{} } func (m *BlockAtomicChange) String() string { return proto.CompactTextString(m) } func (*BlockAtomicChange) ProtoMessage() {} func (*BlockAtomicChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{13} + return fileDescriptor_8e550b1f5926e92d, []int{14} } func (m *BlockAtomicChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1464,7 +1524,7 @@ func (m *BlockChanges) Reset() { *m = BlockChanges{} } func (m *BlockChanges) String() string { return proto.CompactTextString(m) } func (*BlockChanges) ProtoMessage() {} func (*BlockChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{14} + return fileDescriptor_8e550b1f5926e92d, []int{15} } func (m *BlockChanges) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1515,7 +1575,7 @@ func (m *Block) Reset() { *m = Block{} } func (m *Block) String() string { return proto.CompactTextString(m) } func (*Block) ProtoMessage() {} func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{15} + return fileDescriptor_8e550b1f5926e92d, []int{16} } func (m *Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1643,7 +1703,7 @@ func (m *BlockHeader) Reset() { *m = BlockHeader{} } func (m *BlockHeader) String() string { return proto.CompactTextString(m) } func (*BlockHeader) ProtoMessage() {} func (*BlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{16} + return fileDescriptor_8e550b1f5926e92d, []int{17} } func (m *BlockHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1712,7 +1772,7 @@ func (m *BlockPermissions) Reset() { *m = BlockPermissions{} } func (m *BlockPermissions) String() string { return proto.CompactTextString(m) } func (*BlockPermissions) ProtoMessage() {} func (*BlockPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{17} + return fileDescriptor_8e550b1f5926e92d, []int{18} } func (m *BlockPermissions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1784,7 +1844,7 @@ func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } func (*BlockHeadersList) ProtoMessage() {} func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} + return fileDescriptor_8e550b1f5926e92d, []int{19} } func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1828,7 +1888,7 @@ func (m *BlocksList) Reset() { *m = BlocksList{} } func (m *BlocksList) String() string { return proto.CompactTextString(m) } func (*BlocksList) ProtoMessage() {} func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} + return fileDescriptor_8e550b1f5926e92d, []int{20} } func (m *BlocksList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1874,7 +1934,7 @@ func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } func (*BlockContentPage) ProtoMessage() {} func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} + return fileDescriptor_8e550b1f5926e92d, []int{21} } func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1925,14 +1985,14 @@ func (m *BlockContentPage) GetBlocks() *BlocksList { } type BlockStructure struct { - Children map[string]*BlockChildren `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + BlockIdToBlockChildren map[string]*BlockChildren `protobuf:"bytes,1,rep,name=blockIdToBlockChildren,proto3" json:"blockIdToBlockChildren,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *BlockStructure) Reset() { *m = BlockStructure{} } func (m *BlockStructure) String() string { return proto.CompactTextString(m) } func (*BlockStructure) ProtoMessage() {} func (*BlockStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} + return fileDescriptor_8e550b1f5926e92d, []int{22} } func (m *BlockStructure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1961,22 +2021,22 @@ func (m *BlockStructure) XXX_DiscardUnknown() { var xxx_messageInfo_BlockStructure proto.InternalMessageInfo -func (m *BlockStructure) GetChildren() map[string]*BlockChildren { +func (m *BlockStructure) GetBlockIdToBlockChildren() map[string]*BlockChildren { if m != nil { - return m.Children + return m.BlockIdToBlockChildren } return nil } type BlockChildren struct { - Children []string `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` + Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` } func (m *BlockChildren) Reset() { *m = BlockChildren{} } func (m *BlockChildren) String() string { return proto.CompactTextString(m) } func (*BlockChildren) ProtoMessage() {} func (*BlockChildren) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} + return fileDescriptor_8e550b1f5926e92d, []int{23} } func (m *BlockChildren) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2022,7 +2082,7 @@ func (m *BlockContentDashboard) Reset() { *m = BlockContentDashboard{} } func (m *BlockContentDashboard) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboard) ProtoMessage() {} func (*BlockContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} + return fileDescriptor_8e550b1f5926e92d, []int{24} } func (m *BlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2079,7 +2139,7 @@ func (m *BlockContentDataview) Reset() { *m = BlockContentDataview{} } func (m *BlockContentDataview) String() string { return proto.CompactTextString(m) } func (*BlockContentDataview) ProtoMessage() {} func (*BlockContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24} + return fileDescriptor_8e550b1f5926e92d, []int{25} } func (m *BlockContentDataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2122,7 +2182,7 @@ func (m *BlockContentText) Reset() { *m = BlockContentText{} } func (m *BlockContentText) String() string { return proto.CompactTextString(m) } func (*BlockContentText) ProtoMessage() {} func (*BlockContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25} + return fileDescriptor_8e550b1f5926e92d, []int{26} } func (m *BlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2208,7 +2268,7 @@ func (m *BlockContentText_Marks) Reset() { *m = BlockContentText_Marks{} func (m *BlockContentText_Marks) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Marks) ProtoMessage() {} func (*BlockContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25, 0} + return fileDescriptor_8e550b1f5926e92d, []int{26, 0} } func (m *BlockContentText_Marks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2254,7 +2314,7 @@ func (m *BlockContentText_Mark) Reset() { *m = BlockContentText_Mark{} } func (m *BlockContentText_Mark) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Mark) ProtoMessage() {} func (*BlockContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25, 1} + return fileDescriptor_8e550b1f5926e92d, []int{26, 1} } func (m *BlockContentText_Mark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2312,7 +2372,7 @@ func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } func (*BlockContentMedia) ProtoMessage() {} func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26} + return fileDescriptor_8e550b1f5926e92d, []int{27} } func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2357,7 +2417,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27} + return fileDescriptor_8e550b1f5926e92d, []int{28} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2422,6 +2482,7 @@ func init() { proto.RegisterType((*BlockShow)(nil), "anytype.BlockShow") proto.RegisterType((*BlockUpdate)(nil), "anytype.BlockUpdate") proto.RegisterType((*BlockCreate)(nil), "anytype.BlockCreate") + proto.RegisterType((*BlockStructureChange)(nil), "anytype.BlockStructureChange") proto.RegisterType((*BlockContentTextChange)(nil), "anytype.BlockContentTextChange") proto.RegisterType((*BlockContentPageChange)(nil), "anytype.BlockContentPageChange") proto.RegisterType((*BlockHeaderChange)(nil), "anytype.BlockHeaderChange") @@ -2435,7 +2496,7 @@ func init() { proto.RegisterType((*BlocksList)(nil), "anytype.BlocksList") proto.RegisterType((*BlockContentPage)(nil), "anytype.BlockContentPage") proto.RegisterType((*BlockStructure)(nil), "anytype.BlockStructure") - proto.RegisterMapType((map[string]*BlockChildren)(nil), "anytype.BlockStructure.ChildrenEntry") + proto.RegisterMapType((map[string]*BlockChildren)(nil), "anytype.BlockStructure.BlockIdToBlockChildrenEntry") proto.RegisterType((*BlockChildren)(nil), "anytype.BlockChildren") proto.RegisterType((*BlockContentDashboard)(nil), "anytype.BlockContentDashboard") proto.RegisterType((*BlockContentDataview)(nil), "anytype.BlockContentDataview") @@ -2449,110 +2510,113 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1643 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0x13, 0xd7, - 0x17, 0x9f, 0x99, 0x78, 0xfc, 0x38, 0x4e, 0xc2, 0x70, 0x09, 0xf9, 0x1b, 0xff, 0xa9, 0x1b, 0x4d, - 0x79, 0xa9, 0x50, 0x23, 0xf2, 0xe0, 0x0d, 0x92, 0x1d, 0x0f, 0xd8, 0x8a, 0x63, 0x47, 0xd7, 0x0e, - 0x94, 0x6e, 0xd0, 0xc4, 0x73, 0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0x80, 0xac, 0x45, 0x86, 0x1d, - 0xb7, 0x3b, 0xf0, 0xba, 0x8e, 0xcd, 0x9c, 0x67, 0x70, 0xf4, 0x93, 0xbe, 0x08, 0x09, 0x8a, 0x47, - 0x69, 0x48, 0x34, 0x36, 0xeb, 0x75, 0x4d, 0x42, 0x27, 0x61, 0x66, 0xb3, 0xb1, 0xd6, 0x68, 0x3e, - 0x6e, 0x3c, 0x35, 0x30, 0x6e, 0x62, 0x4d, 0x46, 0x33, 0x90, 0x29, 0x97, 0x2a, 0x4f, 0x6b, 0x8d, - 0x8d, 0xcd, 0xb6, 0xa6, 0xe8, 0x77, 0x01, 0x31, 0xdf, 0xab, 0x2e, 0x31, 0x3d, 0xe2, 0xd3, 0x78, - 0x01, 0x12, 0x34, 0x2c, 0x11, 0x26, 0x8a, 0x87, 0xd9, 0xde, 0x1f, 0x10, 0xcc, 0xd6, 0xf5, 0xbf, - 0x65, 0x38, 0x15, 0x33, 0x17, 0x04, 0xdf, 0x8c, 0x13, 0xac, 0xc7, 0x37, 0x88, 0x83, 0x63, 0x14, - 0xe7, 0x7f, 0x08, 0xa8, 0xba, 0x13, 0xa3, 0xea, 0xe2, 0xd1, 0x5b, 0x7c, 0x7a, 0xb2, 0x0c, 0x41, - 0xd6, 0xe6, 0xc0, 0x8a, 0x90, 0x75, 0x15, 0x52, 0x9d, 0x1d, 0xd3, 0xde, 0x26, 0x43, 0x91, 0xee, - 0xe9, 0x91, 0x58, 0xf9, 0x22, 0xf6, 0x51, 0x21, 0x6b, 0xfe, 0x3e, 0xc7, 0x62, 0x2d, 0x0e, 0xfe, - 0x28, 0xd6, 0xc6, 0x6d, 0xf1, 0xe9, 0x59, 0xbb, 0x06, 0x19, 0xe6, 0xbd, 0xb5, 0xe3, 0xbc, 0x44, - 0xe7, 0x40, 0x65, 0x37, 0x43, 0xe4, 0x38, 0x1b, 0x0f, 0x10, 0xf3, 0x45, 0xfd, 0x3e, 0x64, 0x23, - 0x01, 0x7f, 0x38, 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, 0xc0, - 0xdc, 0xe6, 0x77, 0x35, 0x3b, 0xa1, 0xca, 0x43, 0xb7, 0x14, 0x8e, 0x2a, 0x90, 0xb1, 0x7c, 0xa6, - 0xc5, 0x91, 0x1f, 0x71, 0x1e, 0xc1, 0x06, 0xa1, 0x61, 0x84, 0xa3, 0x0a, 0x4c, 0x47, 0x95, 0x12, - 0x2d, 0x47, 0x15, 0x75, 0xea, 0x70, 0x4a, 0x51, 0x2a, 0x43, 0x59, 0xfd, 0x4d, 0x01, 0x95, 0x2d, - 0xa3, 0x2b, 0x90, 0xe4, 0x07, 0x21, 0x24, 0x75, 0xfc, 0x10, 0x24, 0x30, 0xe8, 0x7e, 0x34, 0x9b, - 0x2c, 0x33, 0x28, 0x4c, 0xce, 0x26, 0x96, 0x07, 0xba, 0x2a, 0x48, 0x9c, 0x1e, 0x57, 0x1f, 0x11, - 0x12, 0x03, 0xfa, 0xee, 0x40, 0xda, 0x32, 0x3d, 0xf3, 0x45, 0x97, 0xbc, 0xcc, 0xcd, 0x30, 0xa3, - 0xcf, 0xde, 0xe3, 0x8f, 0x83, 0xaa, 0x12, 0x0e, 0x0c, 0xa8, 0x37, 0x56, 0x29, 0xb3, 0x13, 0xbc, - 0xd1, 0x4a, 0x09, 0x6a, 0x64, 0x11, 0xd4, 0x3e, 0xb1, 0xba, 0x66, 0xee, 0xc4, 0xb8, 0xea, 0x10, - 0x16, 0xeb, 0x14, 0xc1, 0x94, 0x9c, 0x3e, 0x94, 0x33, 0x90, 0xea, 0xf0, 0x05, 0xfd, 0xb5, 0x2c, - 0xba, 0x95, 0x28, 0x99, 0xd1, 0xca, 0xbd, 0x70, 0x94, 0xac, 0x08, 0x51, 0xb9, 0x08, 0xc9, 0x67, - 0x5d, 0xd2, 0xb3, 0xfc, 0x7b, 0x74, 0x22, 0x40, 0xf2, 0x9b, 0x87, 0xc5, 0x32, 0xba, 0x13, 0x57, - 0x94, 0xc4, 0x11, 0x8a, 0x12, 0xd3, 0x13, 0xfd,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0x9e, 0xc3, 0x68, 0x54, 0xb1, 0xe2, 0x39, 0x5f, 0x0e, 0xc5, - 0x8f, 0x4f, 0x16, 0xc4, 0x0c, 0x64, 0x2a, 0xa5, 0x56, 0x95, 0x27, 0xcf, 0xc4, 0x70, 0xa3, 0xf4, - 0xd0, 0xe0, 0x62, 0x58, 0x29, 0xb5, 0x4b, 0x8f, 0x6a, 0xc6, 0x63, 0x4e, 0x44, 0xdb, 0xf8, 0xba, - 0xcd, 0x89, 0x78, 0x50, 0xab, 0x1b, 0x5a, 0x02, 0x65, 0x21, 0xb5, 0x51, 0x5b, 0x6d, 0x6f, 0x62, - 0x43, 0x53, 0x69, 0x96, 0x8f, 0x6a, 0x15, 0xa3, 0xa9, 0x25, 0xa9, 0x70, 0xe2, 0xe6, 0x63, 0x2d, - 0x45, 0x53, 0x59, 0x6d, 0xd6, 0x37, 0xd7, 0x1b, 0x5a, 0xba, 0x7c, 0xf6, 0xd7, 0x83, 0x82, 0xfc, - 0xf6, 0xa0, 0x20, 0xff, 0x75, 0x50, 0x90, 0xbf, 0x7b, 0x57, 0x90, 0xde, 0xbe, 0x2b, 0x48, 0x7f, - 0xbc, 0x2b, 0x48, 0xdf, 0x28, 0x83, 0xad, 0xad, 0x24, 0xfb, 0xf7, 0xd5, 0xd2, 0x3f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x95, 0xfd, 0x30, 0x59, 0xe4, 0x12, 0x00, 0x00, + // 1696 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcb, 0x73, 0xd3, 0xda, + 0x19, 0x97, 0x64, 0xcb, 0x8f, 0xcf, 0x79, 0x88, 0x43, 0x48, 0x5d, 0x97, 0xba, 0x19, 0x95, 0x86, + 0x4c, 0x61, 0xcc, 0xe0, 0x24, 0x3c, 0x0b, 0x33, 0x76, 0x2c, 0xb0, 0x27, 0x8e, 0x9d, 0x39, 0x71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x88, 0x89, 0xff, 0x0e, 0xb6, 0x8f, 0x8a, 0xef, 0x0c, 0xfb, 0xbd, + 0x73, 0xfa, 0xc4, 0xa6, 0x28, 0x6c, 0xe5, 0x82, 0x42, 0x0c, 0x35, 0xe4, 0x95, 0xff, 0x38, 0xbe, + 0x8c, 0x70, 0xdd, 0x0a, 0xd3, 0x74, 0x0b, 0x19, 0xa3, 0x0c, 0x54, 0xec, 0xc8, 0x3c, 0xe0, 0x15, + 0x9c, 0x9b, 0x91, 0xfb, 0x63, 0xb1, 0x14, 0x8e, 0x6a, 0x90, 0xb5, 0x02, 0xa7, 0x8b, 0xe8, 0x5f, + 0x10, 0x9a, 0xf0, 0x82, 0x31, 0x63, 0xc4, 0x47, 0x35, 0x98, 0x8b, 0xf6, 0x66, 0xb4, 0x11, 0xed, + 0xe1, 0x89, 0xb3, 0x26, 0x45, 0x5d, 0x39, 0x6e, 0xe4, 0xff, 0x53, 0x40, 0x65, 0x64, 0x74, 0x33, + 0x8c, 0x96, 0x3c, 0x63, 0x3d, 0x13, 0x18, 0xf4, 0x38, 0x6a, 0x4d, 0x8e, 0x31, 0x14, 0x67, 0x5b, + 0x13, 0xb3, 0x03, 0xdd, 0x12, 0x4e, 0x9c, 0x9b, 0x56, 0x06, 0x11, 0x27, 0x86, 0xee, 0x7b, 0x08, + 0x19, 0xcb, 0xf4, 0xcd, 0xb7, 0x7d, 0xf2, 0x2e, 0x3f, 0x3f, 0x2d, 0x21, 0x43, 0x79, 0x1c, 0x54, + 0x97, 0x70, 0xc8, 0x40, 0xa5, 0xb1, 0x4c, 0x59, 0x98, 0x21, 0x8d, 0x66, 0x4a, 0x98, 0x23, 0x65, + 0x50, 0x87, 0xc4, 0xea, 0x9b, 0xf9, 0xc5, 0x69, 0xd9, 0x21, 0x38, 0x76, 0x28, 0x82, 0xf5, 0x77, + 0xfa, 0x50, 0xcd, 0x42, 0xba, 0xc7, 0x09, 0xfa, 0x07, 0x59, 0xcc, 0x47, 0x91, 0x32, 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ff, 0x12, 0x00, 0x00, 0xff, 0xff, 0x89, 0xcc, 0x54, 0x94, 0xb6, 0x13, 0x00, 0x00, } func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { @@ -2687,6 +2751,13 @@ func (m *BlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.ContextBlockId) > 0 { + i -= len(m.ContextBlockId) + copy(dAtA[i:], m.ContextBlockId) + i = encodeVarintBlock(dAtA, i, uint64(len(m.ContextBlockId))) + i-- + dAtA[i] = 0x12 + } if m.Type != 0 { i = encodeVarintBlock(dAtA, i, uint64(m.Type)) i-- @@ -2975,6 +3046,48 @@ func (m *BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *BlockStructureChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockStructureChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockStructureChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Children != nil { + { + size, err := m.Children.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *BlockContentTextChange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3161,16 +3274,16 @@ func (m *BlockContentPageChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, e dAtA[i] = 0x8 return len(dAtA) - i, nil } -func (m *BlockContentPageChange_Structure) MarshalTo(dAtA []byte) (int, error) { +func (m *BlockContentPageChange_StructureChange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentPageChange_Structure) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlockContentPageChange_StructureChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.Structure != nil { + if m.StructureChange != nil { { - size, err := m.Structure.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.StructureChange.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3182,16 +3295,16 @@ func (m *BlockContentPageChange_Structure) MarshalToSizedBuffer(dAtA []byte) (in } return len(dAtA) - i, nil } -func (m *BlockContentPageChange_Blocks) MarshalTo(dAtA []byte) (int, error) { +func (m *BlockContentPageChange_Block) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentPageChange_Blocks) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlockContentPageChange_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.Blocks != nil { + if m.Block != nil { { - size, err := m.Blocks.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3354,16 +3467,16 @@ func (m *BlockContentDashboardChange_Style) MarshalToSizedBuffer(dAtA []byte) (i dAtA[i] = 0x8 return len(dAtA) - i, nil } -func (m *BlockContentDashboardChange_Structure) MarshalTo(dAtA []byte) (int, error) { +func (m *BlockContentDashboardChange_StructureChange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentDashboardChange_Structure) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlockContentDashboardChange_StructureChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.Structure != nil { + if m.StructureChange != nil { { - size, err := m.Structure.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.StructureChange.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3375,16 +3488,16 @@ func (m *BlockContentDashboardChange_Structure) MarshalToSizedBuffer(dAtA []byte } return len(dAtA) - i, nil } -func (m *BlockContentDashboardChange_Headers) MarshalTo(dAtA []byte) (int, error) { +func (m *BlockContentDashboardChange_Header) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentDashboardChange_Headers) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlockContentDashboardChange_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.Headers != nil { + if m.Header != nil { { - size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3983,9 +4096,9 @@ func (m *BlockStructure) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Children) > 0 { - for k := range m.Children { - v := m.Children[k] + if len(m.BlockIdToBlockChildren) > 0 { + for k := range m.BlockIdToBlockChildren { + v := m.BlockIdToBlockChildren[k] baseI := i if v != nil { { @@ -4038,7 +4151,7 @@ func (m *BlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Children[iNdEx]) i = encodeVarintBlock(dAtA, i, uint64(len(m.Children[iNdEx]))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } } return len(dAtA) - i, nil @@ -4414,6 +4527,10 @@ func (m *BlockCreateRequest) Size() (n int) { if m.Type != 0 { n += 1 + sovBlock(uint64(m.Type)) } + l = len(m.ContextBlockId) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } return n } @@ -4527,6 +4644,23 @@ func (m *BlockCreate) Size() (n int) { return n } +func (m *BlockStructureChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + if m.Children != nil { + l = m.Children.Size() + n += 1 + l + sovBlock(uint64(l)) + } + return n +} + func (m *BlockContentTextChange) Size() (n int) { if m == nil { return 0 @@ -4627,26 +4761,26 @@ func (m *BlockContentPageChange_Style) Size() (n int) { n += 1 + sovBlock(uint64(m.Style)) return n } -func (m *BlockContentPageChange_Structure) Size() (n int) { +func (m *BlockContentPageChange_StructureChange) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Structure != nil { - l = m.Structure.Size() + if m.StructureChange != nil { + l = m.StructureChange.Size() n += 1 + l + sovBlock(uint64(l)) } return n } -func (m *BlockContentPageChange_Blocks) Size() (n int) { +func (m *BlockContentPageChange_Block) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Blocks != nil { - l = m.Blocks.Size() + if m.Block != nil { + l = m.Block.Size() n += 1 + l + sovBlock(uint64(l)) } return n @@ -4735,26 +4869,26 @@ func (m *BlockContentDashboardChange_Style) Size() (n int) { n += 1 + sovBlock(uint64(m.Style)) return n } -func (m *BlockContentDashboardChange_Structure) Size() (n int) { +func (m *BlockContentDashboardChange_StructureChange) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Structure != nil { - l = m.Structure.Size() + if m.StructureChange != nil { + l = m.StructureChange.Size() n += 1 + l + sovBlock(uint64(l)) } return n } -func (m *BlockContentDashboardChange_Headers) Size() (n int) { +func (m *BlockContentDashboardChange_Header) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Headers != nil { - l = m.Headers.Size() + if m.Header != nil { + l = m.Header.Size() n += 1 + l + sovBlock(uint64(l)) } return n @@ -5018,8 +5152,8 @@ func (m *BlockStructure) Size() (n int) { } var l int _ = l - if len(m.Children) > 0 { - for k, v := range m.Children { + if len(m.BlockIdToBlockChildren) > 0 { + for k, v := range m.BlockIdToBlockChildren { _ = k _ = v l = 0 @@ -5541,6 +5675,38 @@ func (m *BlockCreateRequest) Unmarshal(dAtA []byte) error { break } } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContextBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBlock(dAtA[iNdEx:]) @@ -6307,6 +6473,127 @@ func (m *BlockCreate) Unmarshal(dAtA []byte) error { } return nil } +func (m *BlockStructureChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockStructureChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockStructureChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Children == nil { + m.Children = &BlockChildren{} + } + if err := m.Children.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -6581,7 +6868,7 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { m.Change = &BlockContentPageChange_Style{v} case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Structure", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StructureChange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6608,15 +6895,15 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockStructure{} + v := &BlockStructureChange{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlockContentPageChange_Structure{v} + m.Change = &BlockContentPageChange_StructureChange{v} iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6643,11 +6930,11 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlocksList{} + v := &Block{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlockContentPageChange_Blocks{v} + m.Change = &BlockContentPageChange_Block{v} iNdEx = postIndex default: iNdEx = preIndex @@ -6928,7 +7215,7 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { m.Change = &BlockContentDashboardChange_Style{v} case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Structure", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StructureChange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6955,15 +7242,15 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockStructure{} + v := &BlockStructureChange{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlockContentDashboardChange_Structure{v} + m.Change = &BlockContentDashboardChange_StructureChange{v} iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6990,11 +7277,11 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockHeadersList{} + v := &BlockHeader{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlockContentDashboardChange_Headers{v} + m.Change = &BlockContentDashboardChange_Header{v} iNdEx = postIndex default: iNdEx = preIndex @@ -8274,7 +8561,7 @@ func (m *BlockStructure) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockIdToBlockChildren", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8301,8 +8588,8 @@ func (m *BlockStructure) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Children == nil { - m.Children = make(map[string]*BlockChildren) + if m.BlockIdToBlockChildren == nil { + m.BlockIdToBlockChildren = make(map[string]*BlockChildren) } var mapkey string var mapvalue *BlockChildren @@ -8399,7 +8686,7 @@ func (m *BlockStructure) Unmarshal(dAtA []byte) error { iNdEx += skippy } } - m.Children[mapkey] = mapvalue + m.BlockIdToBlockChildren[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -8454,7 +8741,7 @@ func (m *BlockChildren) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: BlockChildren: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) } diff --git a/pb/protos/block.proto b/pb/protos/block.proto index 0c59ea05f..e3c122c5b 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -30,6 +30,7 @@ message BlockOpenResponse { message BlockCreateRequest { BlockType type = 1; + string contextBlockId = 2; } message BlockCreateResponse { @@ -84,6 +85,11 @@ message BlockCreate { Block block = 1; } +message BlockStructureChange { + string id = 1; + BlockChildren children = 2; +} + message BlockContentTextChange { oneof change { string text = 1; @@ -101,8 +107,8 @@ message BlockContentTextChange { message BlockContentPageChange { oneof change { BlockContentPage.Style style = 1; - BlockStructure structure = 2; - BlocksList blocks = 3; + BlockStructureChange structureChange = 2; + Block block = 3; } } @@ -120,8 +126,8 @@ message BlockHeaderChange { message BlockContentDashboardChange { oneof change { BlockContentDashboard.Style style = 1; - BlockStructure structure = 2; - BlockHeadersList headers = 3; + BlockStructureChange structureChange = 2; + BlockHeader header = 3; } } @@ -207,11 +213,11 @@ message BlockContentPage { } message BlockStructure { - map children = 1; + map blockIdToBlockChildren = 1; } message BlockChildren { - repeated string children = 1; + repeated string children = 2; } message BlockContentDashboard { From 1c9571d154bc0c7e179fa3f5242fa85cdb1b1514 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 22:12:50 +0100 Subject: [PATCH 06/24] BlockLayout added --- pb/block.pb.go | 509 +++++++++++++++++++++++++++++++----------- pb/protos/block.proto | 6 + 2 files changed, 390 insertions(+), 125 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index 60a2b5c19..9a803f781 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -180,7 +180,7 @@ func (x BlockContentPage_Style) String() string { } func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21, 0} + return fileDescriptor_8e550b1f5926e92d, []int{22, 0} } type BlockContentDashboard_Style int32 @@ -202,7 +202,7 @@ func (x BlockContentDashboard_Style) String() string { } func (BlockContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24, 0} + return fileDescriptor_8e550b1f5926e92d, []int{25, 0} } type BlockContentText_Style int32 @@ -239,7 +239,7 @@ func (x BlockContentText_Style) String() string { } func (BlockContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26, 0} + return fileDescriptor_8e550b1f5926e92d, []int{27, 0} } type BlockContentText_MarkerType int32 @@ -267,7 +267,7 @@ func (x BlockContentText_MarkerType) String() string { } func (BlockContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26, 1} + return fileDescriptor_8e550b1f5926e92d, []int{27, 1} } type BlockContentText_Mark_Type int32 @@ -301,7 +301,7 @@ func (x BlockContentText_Mark_Type) String() string { } func (BlockContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26, 1, 0} + return fileDescriptor_8e550b1f5926e92d, []int{27, 1, 0} } // commands @@ -1568,6 +1568,7 @@ type Block struct { // *Block_Dataview // *Block_Text // *Block_Media + // *Block_Layout Content isBlock_Content `protobuf_oneof:"content"` } @@ -1625,12 +1626,16 @@ type Block_Text struct { type Block_Media struct { Media *BlockContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` } +type Block_Layout struct { + Layout *BlockLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` +} func (*Block_Dashboard) isBlock_Content() {} func (*Block_Page) isBlock_Content() {} func (*Block_Dataview) isBlock_Content() {} func (*Block_Text) isBlock_Content() {} func (*Block_Media) isBlock_Content() {} +func (*Block_Layout) isBlock_Content() {} func (m *Block) GetContent() isBlock_Content { if m != nil { @@ -1681,6 +1686,13 @@ func (m *Block) GetMedia() *BlockContentMedia { return nil } +func (m *Block) GetLayout() *BlockLayout { + if x, ok := m.GetContent().(*Block_Layout); ok { + return x.Layout + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*Block) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -1689,6 +1701,7 @@ func (*Block) XXX_OneofWrappers() []interface{} { (*Block_Dataview)(nil), (*Block_Text)(nil), (*Block_Media)(nil), + (*Block_Layout)(nil), } } @@ -1760,6 +1773,51 @@ func (m *BlockHeader) GetPermissions() *BlockPermissions { return nil } +// row/column type specified in the header +type BlockLayout struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *BlockLayout) Reset() { *m = BlockLayout{} } +func (m *BlockLayout) String() string { return proto.CompactTextString(m) } +func (*BlockLayout) ProtoMessage() {} +func (*BlockLayout) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{18} +} +func (m *BlockLayout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockLayout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockLayout.Merge(m, src) +} +func (m *BlockLayout) XXX_Size() int { + return m.Size() +} +func (m *BlockLayout) XXX_DiscardUnknown() { + xxx_messageInfo_BlockLayout.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockLayout proto.InternalMessageInfo + +func (m *BlockLayout) GetId() string { + if m != nil { + return m.Id + } + return "" +} + type BlockPermissions struct { Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` Edit bool `protobuf:"varint,2,opt,name=edit,proto3" json:"edit,omitempty"` @@ -1772,7 +1830,7 @@ func (m *BlockPermissions) Reset() { *m = BlockPermissions{} } func (m *BlockPermissions) String() string { return proto.CompactTextString(m) } func (*BlockPermissions) ProtoMessage() {} func (*BlockPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} + return fileDescriptor_8e550b1f5926e92d, []int{19} } func (m *BlockPermissions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1844,7 +1902,7 @@ func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } func (*BlockHeadersList) ProtoMessage() {} func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} + return fileDescriptor_8e550b1f5926e92d, []int{20} } func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1888,7 +1946,7 @@ func (m *BlocksList) Reset() { *m = BlocksList{} } func (m *BlocksList) String() string { return proto.CompactTextString(m) } func (*BlocksList) ProtoMessage() {} func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} + return fileDescriptor_8e550b1f5926e92d, []int{21} } func (m *BlocksList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1934,7 +1992,7 @@ func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } func (*BlockContentPage) ProtoMessage() {} func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} + return fileDescriptor_8e550b1f5926e92d, []int{22} } func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1992,7 +2050,7 @@ func (m *BlockStructure) Reset() { *m = BlockStructure{} } func (m *BlockStructure) String() string { return proto.CompactTextString(m) } func (*BlockStructure) ProtoMessage() {} func (*BlockStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} + return fileDescriptor_8e550b1f5926e92d, []int{23} } func (m *BlockStructure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2036,7 +2094,7 @@ func (m *BlockChildren) Reset() { *m = BlockChildren{} } func (m *BlockChildren) String() string { return proto.CompactTextString(m) } func (*BlockChildren) ProtoMessage() {} func (*BlockChildren) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} + return fileDescriptor_8e550b1f5926e92d, []int{24} } func (m *BlockChildren) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2082,7 +2140,7 @@ func (m *BlockContentDashboard) Reset() { *m = BlockContentDashboard{} } func (m *BlockContentDashboard) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboard) ProtoMessage() {} func (*BlockContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24} + return fileDescriptor_8e550b1f5926e92d, []int{25} } func (m *BlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2139,7 +2197,7 @@ func (m *BlockContentDataview) Reset() { *m = BlockContentDataview{} } func (m *BlockContentDataview) String() string { return proto.CompactTextString(m) } func (*BlockContentDataview) ProtoMessage() {} func (*BlockContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25} + return fileDescriptor_8e550b1f5926e92d, []int{26} } func (m *BlockContentDataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2182,7 +2240,7 @@ func (m *BlockContentText) Reset() { *m = BlockContentText{} } func (m *BlockContentText) String() string { return proto.CompactTextString(m) } func (*BlockContentText) ProtoMessage() {} func (*BlockContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26} + return fileDescriptor_8e550b1f5926e92d, []int{27} } func (m *BlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2268,7 +2326,7 @@ func (m *BlockContentText_Marks) Reset() { *m = BlockContentText_Marks{} func (m *BlockContentText_Marks) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Marks) ProtoMessage() {} func (*BlockContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26, 0} + return fileDescriptor_8e550b1f5926e92d, []int{27, 0} } func (m *BlockContentText_Marks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2314,7 +2372,7 @@ func (m *BlockContentText_Mark) Reset() { *m = BlockContentText_Mark{} } func (m *BlockContentText_Mark) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Mark) ProtoMessage() {} func (*BlockContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26, 1} + return fileDescriptor_8e550b1f5926e92d, []int{27, 1} } func (m *BlockContentText_Mark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2372,7 +2430,7 @@ func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } func (*BlockContentMedia) ProtoMessage() {} func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27} + return fileDescriptor_8e550b1f5926e92d, []int{28} } func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2417,7 +2475,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{28} + return fileDescriptor_8e550b1f5926e92d, []int{29} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2491,6 +2549,7 @@ func init() { proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") proto.RegisterType((*Block)(nil), "anytype.Block") proto.RegisterType((*BlockHeader)(nil), "anytype.BlockHeader") + proto.RegisterType((*BlockLayout)(nil), "anytype.BlockLayout") proto.RegisterType((*BlockPermissions)(nil), "anytype.BlockPermissions") proto.RegisterType((*BlockHeadersList)(nil), "anytype.BlockHeadersList") proto.RegisterType((*BlocksList)(nil), "anytype.BlocksList") @@ -2510,113 +2569,115 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1696 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcb, 0x73, 0xd3, 0xda, - 0x19, 0x97, 0x64, 0xcb, 0x8f, 0xcf, 0x79, 0x88, 0x43, 0x48, 0x5d, 0x97, 0xba, 0x19, 0x95, 0x86, - 0x4c, 0x61, 0xcc, 0xe0, 0x24, 0x3c, 0x0b, 0x33, 0x76, 0x2c, 0xb0, 0x27, 0x8e, 0x9d, 0x39, 0x71, - 0xa0, 0xb0, 0x61, 0x64, 0xeb, 0x90, 0x78,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ef, 0x0c, 0xfb, 0xbd, - 0x73, 0xfa, 0xc4, 0xa6, 0x28, 0x6c, 0xe5, 0x82, 0x42, 0x0c, 0x35, 0xe4, 0x95, 0xff, 0x38, 0xbe, - 0x8c, 0x70, 0xdd, 0x0a, 0xd3, 0x74, 0x0b, 0x19, 0xa3, 0x0c, 0x54, 0xec, 0xc8, 0x3c, 0xe0, 0x15, - 0x9c, 0x9b, 0x91, 0xfb, 0x63, 0xb1, 0x14, 0x8e, 0x6a, 0x90, 0xb5, 0x02, 0xa7, 0x8b, 0xe8, 0x5f, - 0x10, 0x9a, 0xf0, 0x82, 0x31, 0x63, 0xc4, 0x47, 0x35, 0x98, 0x8b, 0xf6, 0x66, 0xb4, 0x11, 0xed, - 0xe1, 0x89, 0xb3, 0x26, 0x45, 0x5d, 0x39, 0x6e, 0xe4, 0xff, 0x53, 0x40, 0x65, 0x64, 0x74, 0x33, - 0x8c, 0x96, 0x3c, 0x63, 0x3d, 0x13, 0x18, 0xf4, 0x38, 0x6a, 0x4d, 0x8e, 0x31, 0x14, 0x67, 0x5b, - 0x13, 0xb3, 0x03, 0xdd, 0x12, 0x4e, 0x9c, 0x9b, 0x56, 0x06, 0x11, 0x27, 0x86, 0xee, 0x7b, 0x08, - 0x19, 0xcb, 0xf4, 0xcd, 0xb7, 0x7d, 0xf2, 0x2e, 0x3f, 0x3f, 0x2d, 0x21, 0x43, 0x79, 0x1c, 0x54, - 0x97, 0x70, 0xc8, 0x40, 0xa5, 0xb1, 0x4c, 0x59, 0x98, 0x21, 0x8d, 0x66, 0x4a, 0x98, 0x23, 0x65, - 0x50, 0x87, 0xc4, 0xea, 0x9b, 0xf9, 0xc5, 0x69, 0xd9, 0x21, 0x38, 0x76, 0x28, 0x82, 0xf5, 0x77, - 0xfa, 0x50, 0xcd, 0x42, 0xba, 0xc7, 0x09, 0xfa, 0x07, 0x59, 0xcc, 0x47, 0x91, 0x32, 0x93, 0x99, - 0xbb, 0x7a, 0x51, 0x87, 0x11, 0x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x54, 0x94, 0xb6, 0x13, 0x00, 0x00, + // 1725 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0xdb, 0xca, + 0x15, 0x26, 0x29, 0x51, 0x8f, 0x23, 0x3f, 0x98, 0xb9, 0xbe, 0xae, 0xaa, 0xde, 0xab, 0x1a, 0x6c, + 0xea, 0x18, 0x4d, 0xa0, 0x20, 0xb2, 0x9d, 0x67, 0x13, 0x40, 0xb2, 0x98, 0x48, 0xb0, 0x2c, 0x19, + 0x63, 0x39, 0x69, 0xb2, 0x09, 0x28, 0x71, 0x62, 0x0b, 0x96, 0x48, 0x85, 0xa4, 0x92, 0x78, 0xd3, + 0x4d, 0xff, 0x40, 0x97, 0x45, 0x17, 0x05, 0xba, 0xce, 0xdf, 0xc8, 0xa2, 0xab, 0x22, 0xcb, 0x76, + 0x17, 0x38, 0xdb, 0xfe, 0x88, 0x62, 0x1e, 0xa4, 0x48, 0x59, 0x96, 0x93, 0x5c, 0x64, 0x25, 0x72, + 0xce, 0x77, 0xe6, 0x3c, 0xe7, 0x9b, 0x43, 0x41, 0xae, 0x3b, 0x70, 0x7a, 0x27, 0xa5, 0x91, 0xeb, + 0xf8, 0x0e, 0x4a, 0x9b, 0xf6, 0xa9, 0x7f, 0x3a, 0x22, 0x85, 0x05, 0xcf, 0x77, 0xc7, 0x3d, 0x9f, + 0x2f, 0xeb, 0x3a, 0x68, 0x55, 0x8a, 0x6a, 0x8f, 0x88, 0x8d, 0xc9, 0xeb, 0x31, 0xf1, 0x7c, 0xb4, + 0x04, 0x4a, 0xdf, 0xca, 0xcb, 0x6b, 0xf2, 0x46, 0x16, 0x2b, 0x7d, 0x4b, 0xff, 0x87, 0x02, 0x57, + 0x22, 0x20, 0x6f, 0xe4, 0xd8, 0x1e, 0x41, 0xb7, 0x41, 0x25, 0xae, 0xeb, 0xb8, 0x0c, 0x98, 0x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0x89, 0x78, 0xdc, 0x68, 0x1a, 0x5a, 0x12, 0xe5, 0x20, 0xbd, 0xdf, 0xd8, 0xe9, + 0x1c, 0x62, 0x43, 0x53, 0x69, 0x94, 0x4f, 0x1b, 0x35, 0xa3, 0xad, 0xa5, 0x28, 0xe1, 0xe2, 0xf6, + 0x33, 0x2d, 0x4d, 0x43, 0xd9, 0x69, 0x37, 0x0f, 0xf7, 0x5a, 0x5a, 0xa6, 0xfa, 0xd3, 0xbf, 0xce, + 0x8a, 0xf2, 0xc7, 0xb3, 0xa2, 0xfc, 0xe9, 0xac, 0x28, 0xff, 0xf5, 0x73, 0x51, 0xfa, 0xf8, 0xb9, + 0x28, 0xfd, 0xe7, 0x73, 0x51, 0x7a, 0xa1, 0x8c, 0xba, 0xdd, 0x14, 0xfb, 0x7f, 0x6f, 0xf3, 0xff, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xdb, 0xe1, 0xba, 0x05, 0x14, 0x00, 0x00, } func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { @@ -3818,6 +3879,29 @@ func (m *Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } +func (m *Block_Layout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Layout != nil { + { + size, err := m.Layout.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + return len(dAtA) - i, nil +} func (m *BlockHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3877,6 +3961,36 @@ func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *BlockLayout) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockLayout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *BlockPermissions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5048,6 +5162,18 @@ func (m *Block_Media) Size() (n int) { } return n } +func (m *Block_Layout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Layout != nil { + l = m.Layout.Size() + n += 2 + l + sovBlock(uint64(l)) + } + return n +} func (m *BlockHeader) Size() (n int) { if m == nil { return 0 @@ -5072,6 +5198,19 @@ func (m *BlockHeader) Size() (n int) { return n } +func (m *BlockLayout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + return n +} + func (m *BlockPermissions) Size() (n int) { if m == nil { return 0 @@ -7859,6 +7998,41 @@ func (m *Block) Unmarshal(dAtA []byte) error { } m.Content = &Block_Media{v} iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockLayout{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Layout{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBlock(dAtA[iNdEx:]) @@ -8059,6 +8233,91 @@ func (m *BlockHeader) Unmarshal(dAtA []byte) error { } return nil } +func (m *BlockLayout) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockLayout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockLayout: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BlockPermissions) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pb/protos/block.proto b/pb/protos/block.proto index e3c122c5b..893176be8 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -158,6 +158,7 @@ message Block { BlockContentText text = 14; BlockContentMedia media = 15; + BlockLayout layout = 16; } } @@ -168,6 +169,11 @@ message BlockHeader { BlockPermissions permissions = 4; } +// row/column type specified in the header +message BlockLayout { + string id = 1; +} + message BlockPermissions { bool read = 1; bool edit = 2; From 0eb30a89148762a0b6fae0c02412ae4828499041 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 29 Oct 2019 22:35:29 +0100 Subject: [PATCH 07/24] BlockHistoryMove added --- core/history.go | 20 + lib/service.pb.go | 62 +- pb/block.pb.go | 999 +++++++++++++++++++++++++++----- pb/protos/block.proto | 25 + pb/protos/service/service.proto | 1 + 5 files changed, 929 insertions(+), 178 deletions(-) create mode 100644 core/history.go diff --git a/core/history.go b/core/history.go new file mode 100644 index 000000000..10ef66fdb --- /dev/null +++ b/core/history.go @@ -0,0 +1,20 @@ +package core + +import ( + "github.com/anytypeio/go-anytype-middleware/pb" +) + +func (mw *Middleware) BlockHistoryMove(req *pb.BlockHistoryMoveRequest) *pb.BlockHistoryMoveResponse { + response := func(code pb.BlockHistoryMoveResponse_Error_Code, err error) *pb.BlockHistoryMoveResponse { + m := &pb.BlockHistoryMoveResponse{Error: &pb.BlockHistoryMoveResponse_Error{Code: code}} + if err != nil { + m.Error.Description = err.Error() + } + + return m + } + + // TODO + + return response(pb.BlockHistoryMoveResponse_Error_NULL, nil) +} diff --git a/lib/service.pb.go b/lib/service.pb.go index 0f96e5418..ed5abb165 100644 --- a/lib/service.pb.go +++ b/lib/service.pb.go @@ -24,30 +24,31 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) } var fileDescriptor_a0b84a42fa06f626 = []byte{ - // 353 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcd, 0x4a, 0xf3, 0x40, - 0x14, 0x86, 0x29, 0x1f, 0xb4, 0x7c, 0xd3, 0x1f, 0x70, 0x36, 0x6a, 0xda, 0xc6, 0x3b, 0xe8, 0x42, - 0xb7, 0x6e, 0x4c, 0x91, 0x2a, 0x15, 0xc5, 0x16, 0x15, 0xdc, 0x25, 0xd3, 0x63, 0x09, 0x4e, 0x66, - 0x62, 0x66, 0x5a, 0xe8, 0x1d, 0x8a, 0x2b, 0x2f, 0x41, 0x7a, 0x25, 0x62, 0xe7, 0x4c, 0xda, 0xfc, - 0xcc, 0x6e, 0xf2, 0x3e, 0xe7, 0x3c, 0xc9, 0xe1, 0x64, 0x48, 0x57, 0x41, 0xb6, 0x8e, 0x19, 0x8c, - 0xd2, 0x4c, 0x6a, 0x49, 0x5b, 0xa1, 0xd8, 0xe8, 0x4d, 0x0a, 0x5e, 0x37, 0x64, 0x4c, 0xae, 0x84, - 0x36, 0xb9, 0x47, 0xde, 0x62, 0x0e, 0xf6, 0x9c, 0xc4, 0x8a, 0xe1, 0xb9, 0x1d, 0x71, 0xc9, 0xde, - 0xcd, 0xc3, 0xf9, 0x57, 0x93, 0xf4, 0xc6, 0x3c, 0x06, 0xa1, 0xc7, 0x32, 0x49, 0x42, 0xb1, 0x50, - 0x74, 0x4a, 0x3a, 0x2f, 0x21, 0xe7, 0xa0, 0xc7, 0x19, 0x84, 0x1a, 0xe8, 0x60, 0x84, 0x2f, 0x18, - 0x1d, 0xc6, 0x33, 0xf8, 0x58, 0x81, 0xd2, 0xde, 0xd0, 0x41, 0x55, 0x2a, 0x85, 0x02, 0x7a, 0x4f, - 0xba, 0x26, 0x9f, 0x01, 0x93, 0x6b, 0xc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9b, 0x7b, 0xb4, 0x03, 0x00, - 0x00, + // 381 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcd, 0x4e, 0xea, 0x40, + 0x14, 0xc7, 0x43, 0x6e, 0x72, 0xc9, 0x1d, 0x3e, 0x72, 0xef, 0x6c, 0xae, 0x16, 0xa8, 0xfa, 0x02, + 0x2c, 0x74, 0xeb, 0xc6, 0x12, 0x03, 0x06, 0x3f, 0x22, 0x44, 0x49, 0xdc, 0xb5, 0xe5, 0x48, 0x26, + 0x4e, 0x67, 0x6a, 0x67, 0x20, 0xe1, 0x79, 0x7c, 0x19, 0x97, 0x3e, 0x82, 0xe1, 0x49, 0x8c, 0xcc, + 0x99, 0xd2, 0xd2, 0xd6, 0xdd, 0xf0, 0xff, 0xfd, 0xcf, 0x8f, 0x4e, 0x4e, 0x4b, 0x5a, 0x0a, 0x92, + 0x15, 0x0b, 0xa1, 0x1f, 0x27, 0x52, 0x4b, 0x5a, 0xf7, 0xc5, 0x5a, 0xaf, 0x63, 0x70, 0x5a, 0x7e, + 0x18, 0xca, 0xa5, 0xd0, 0x26, 0x77, 0xc8, 0x33, 0xe3, 0x60, 0xcf, 0x11, 0x53, 0x21, 0x9e, 0x1b, + 0x01, 0x97, 0xe1, 0x8b, 0xf9, 0x71, 0xfa, 0x56, 0x27, 0xed, 0x01, 0x67, 0x20, 0xf4, 0x40, 0x46, + 0x91, 0x2f, 0xe6, 0x8a, 0x8e, 0x49, 0x73, 0xe6, 0x73, 0x0e, 0x7a, 0x90, 0x80, 0xaf, 0x81, 0x76, + 0xfb, 0xf8, 0x07, 0xfd, 0x6c, 0x3c, 0x81, 0xd7, 0x25, 0x28, 0xed, 0xf4, 0x2a, 0xa8, 0x8a, 0xa5, + 0x50, 0x40, 0x6f, 0x49, 0xcb, 0xe4, 0x13, 0x08, 0xe5, 0x0a, 0x12, 0xba, 0xdf, 0xc7, 0xdc, 0xea, + 0xdc, 0x2a, 0x8c, 0xbe, 0x7b, 0xd2, 0xbe, 0x30, 0xb7, 0xb4, 0xc2, 0xdd, 0x44, 0x1e, 0x58, 0xe3, + 0x51, 0x25, 0xdf, 0x3d, 0x22, 0x12, 0xbc, 0x70, 0x6f, 0x7f, 0x22, 0x7f, 0x63, 0xb7, 0x0a, 0x17, + 0x7c, 0x53, 0xe0, 0x10, 0xea, 0xa2, 0xcf, 0xe4, 0x95, 0x3e, 0x8b, 0xd1, 0x37, 0x26, 0xcd, 0xab, + 0xc8, 0x5f, 0xc0, 0x10, 0xb4, 0xc7, 0x65, 0x90, 0xd9, 0x47, 0x36, 0x2e, 0xee, 0x23, 0x4f, 0x51, + 0x76, 0x49, 0xc8, 0x23, 0x24, 0x8a, 0x49, 0x31, 0x04, 0x4d, 0x9d, 0xb4, 0xbc, 0x0b, 0xad, 0xa8, + 0x53, 0xca, 0x50, 0x73, 0x4e, 0xea, 0xd7, 0x72, 0x31, 0x05, 0x31, 0xa7, 0xff, 0xd3, 0x1e, 0x26, + 0x56, 0x70, 0x50, 0x04, 0x38, 0xed, 0x91, 0x3f, 0xde, 0xf7, 0x3b, 0x78, 0x17, 0x83, 0xa0, 0x87, + 0x69, 0x2d, 0xcd, 0xac, 0xc1, 0x29, 0x43, 0xe8, 0x18, 0x91, 0xc6, 0x36, 0xc4, 0x9d, 0x75, 0xf2, + 0xd5, 0xfc, 0xc6, 0xba, 0xe5, 0x70, 0xcf, 0xf4, 0x10, 0xcf, 0x4b, 0x4c, 0x26, 0xad, 0x30, 0x59, + 0x88, 0xa6, 0x19, 0xf9, 0xbb, 0x8d, 0x47, 0x4c, 0x69, 0x99, 0xac, 0x6f, 0xe4, 0x0a, 0xe8, 0x71, + 0x7e, 0x22, 0x83, 0xac, 0xf3, 0xe4, 0x87, 0x86, 0x11, 0x7b, 0xff, 0xde, 0x37, 0x6e, 0xed, 0x63, + 0xe3, 0xd6, 0x3e, 0x37, 0x6e, 0xed, 0xe9, 0x17, 0x67, 0x41, 0xf0, 0x7b, 0xfb, 0xfd, 0x9e, 0x7d, + 0x05, 0x00, 0x00, 0xff, 0xff, 0xba, 0xe0, 0x71, 0x8c, 0x0d, 0x04, 0x00, 0x00, } // This is a compile-time assertion to ensure that this generated file @@ -68,6 +69,7 @@ type ClientCommandsHandler interface { BlockOpen(*pb.BlockOpenRequest) *pb.BlockOpenResponse BlockCreate(*pb.BlockCreateRequest) *pb.BlockCreateResponse BlockUpdate(*pb.BlockUpdateRequest) *pb.BlockUpdateResponse + BlockHistoryMove(*pb.BlockHistoryMoveRequest) *pb.BlockHistoryMoveResponse } func registerClientCommandsHandler(srv ClientCommandsHandler) { @@ -184,6 +186,16 @@ func BlockUpdate(b []byte) []byte { return resp } +func BlockHistoryMove(b []byte) []byte { + in := new(pb.BlockHistoryMoveRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ := (&pb.BlockHistoryMoveResponse{Error: &pb.BlockHistoryMoveResponse_Error{Code: pb.BlockHistoryMoveResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + resp, _ := clientCommandsHandler.BlockHistoryMove(in).Marshal() + return resp +} + func CommandAsync(cmd string, data []byte, callback func(data []byte)) { go func() { var cd []byte @@ -210,6 +222,8 @@ func CommandAsync(cmd string, data []byte, callback func(data []byte)) { cd = BlockCreate(data) case "BlockUpdate": cd = BlockUpdate(data) + case "BlockHistoryMove": + cd = BlockHistoryMove(data) default: log.Errorf("unknown command type: %s\n", cmd) } diff --git a/pb/block.pb.go b/pb/block.pb.go index 9a803f781..00338f953 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -68,6 +68,37 @@ func (BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8e550b1f5926e92d, []int{0} } +type BlockHistoryMoveResponse_Error_Code int32 + +const ( + BlockHistoryMoveResponse_Error_NULL BlockHistoryMoveResponse_Error_Code = 0 + BlockHistoryMoveResponse_Error_UNKNOWN_ERROR BlockHistoryMoveResponse_Error_Code = 1 + BlockHistoryMoveResponse_Error_BAD_INPUT BlockHistoryMoveResponse_Error_Code = 2 + BlockHistoryMoveResponse_Error_CAN_NOT_MOVE BlockHistoryMoveResponse_Error_Code = 3 +) + +var BlockHistoryMoveResponse_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "CAN_NOT_MOVE", +} + +var BlockHistoryMoveResponse_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "CAN_NOT_MOVE": 3, +} + +func (x BlockHistoryMoveResponse_Error_Code) String() string { + return proto.EnumName(BlockHistoryMoveResponse_Error_Code_name, int32(x)) +} + +func (BlockHistoryMoveResponse_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{1, 0, 0} +} + type BlockOpenResponse_Error_Code int32 const ( @@ -93,7 +124,7 @@ func (x BlockOpenResponse_Error_Code) String() string { } func (BlockOpenResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1, 0, 0} + return fileDescriptor_8e550b1f5926e92d, []int{3, 0, 0} } type BlockCreateResponse_Error_Code int32 @@ -121,7 +152,7 @@ func (x BlockCreateResponse_Error_Code) String() string { } func (BlockCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3, 0, 0} + return fileDescriptor_8e550b1f5926e92d, []int{5, 0, 0} } type BlockUpdateResponse_Error_Code int32 @@ -149,7 +180,7 @@ func (x BlockUpdateResponse_Error_Code) String() string { } func (BlockUpdateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5, 0, 0} + return fileDescriptor_8e550b1f5926e92d, []int{7, 0, 0} } type BlockContentPage_Style int32 @@ -180,7 +211,7 @@ func (x BlockContentPage_Style) String() string { } func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 0} + return fileDescriptor_8e550b1f5926e92d, []int{24, 0} } type BlockContentDashboard_Style int32 @@ -202,7 +233,7 @@ func (x BlockContentDashboard_Style) String() string { } func (BlockContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25, 0} + return fileDescriptor_8e550b1f5926e92d, []int{27, 0} } type BlockContentText_Style int32 @@ -239,7 +270,7 @@ func (x BlockContentText_Style) String() string { } func (BlockContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27, 0} + return fileDescriptor_8e550b1f5926e92d, []int{29, 0} } type BlockContentText_MarkerType int32 @@ -267,7 +298,7 @@ func (x BlockContentText_MarkerType) String() string { } func (BlockContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27, 1} + return fileDescriptor_8e550b1f5926e92d, []int{29, 1} } type BlockContentText_Mark_Type int32 @@ -301,11 +332,165 @@ func (x BlockContentText_Mark_Type) String() string { } func (BlockContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27, 1, 0} + return fileDescriptor_8e550b1f5926e92d, []int{29, 1, 0} +} + +type BlockHistoryMoveRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` + MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` +} + +func (m *BlockHistoryMoveRequest) Reset() { *m = BlockHistoryMoveRequest{} } +func (m *BlockHistoryMoveRequest) String() string { return proto.CompactTextString(m) } +func (*BlockHistoryMoveRequest) ProtoMessage() {} +func (*BlockHistoryMoveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{0} +} +func (m *BlockHistoryMoveRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHistoryMoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHistoryMoveRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHistoryMoveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHistoryMoveRequest.Merge(m, src) +} +func (m *BlockHistoryMoveRequest) XXX_Size() int { + return m.Size() +} +func (m *BlockHistoryMoveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHistoryMoveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHistoryMoveRequest proto.InternalMessageInfo + +func (m *BlockHistoryMoveRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *BlockHistoryMoveRequest) GetContextBlockId() string { + if m != nil { + return m.ContextBlockId + } + return "" +} + +func (m *BlockHistoryMoveRequest) GetMoveForward() bool { + if m != nil { + return m.MoveForward + } + return false +} + +type BlockHistoryMoveResponse struct { + Error *BlockHistoryMoveResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *BlockHistoryMoveResponse) Reset() { *m = BlockHistoryMoveResponse{} } +func (m *BlockHistoryMoveResponse) String() string { return proto.CompactTextString(m) } +func (*BlockHistoryMoveResponse) ProtoMessage() {} +func (*BlockHistoryMoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{1} +} +func (m *BlockHistoryMoveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHistoryMoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHistoryMoveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHistoryMoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHistoryMoveResponse.Merge(m, src) +} +func (m *BlockHistoryMoveResponse) XXX_Size() int { + return m.Size() +} +func (m *BlockHistoryMoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHistoryMoveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHistoryMoveResponse proto.InternalMessageInfo + +func (m *BlockHistoryMoveResponse) GetError() *BlockHistoryMoveResponse_Error { + if m != nil { + return m.Error + } + return nil +} + +type BlockHistoryMoveResponse_Error struct { + Code BlockHistoryMoveResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockHistoryMoveResponse_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *BlockHistoryMoveResponse_Error) Reset() { *m = BlockHistoryMoveResponse_Error{} } +func (m *BlockHistoryMoveResponse_Error) String() string { return proto.CompactTextString(m) } +func (*BlockHistoryMoveResponse_Error) ProtoMessage() {} +func (*BlockHistoryMoveResponse_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{1, 0} +} +func (m *BlockHistoryMoveResponse_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHistoryMoveResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHistoryMoveResponse_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHistoryMoveResponse_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHistoryMoveResponse_Error.Merge(m, src) +} +func (m *BlockHistoryMoveResponse_Error) XXX_Size() int { + return m.Size() +} +func (m *BlockHistoryMoveResponse_Error) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHistoryMoveResponse_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHistoryMoveResponse_Error proto.InternalMessageInfo + +func (m *BlockHistoryMoveResponse_Error) GetCode() BlockHistoryMoveResponse_Error_Code { + if m != nil { + return m.Code + } + return BlockHistoryMoveResponse_Error_NULL +} + +func (m *BlockHistoryMoveResponse_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" } -// commands -// type BlockOpenRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } @@ -314,7 +499,7 @@ func (m *BlockOpenRequest) Reset() { *m = BlockOpenRequest{} } func (m *BlockOpenRequest) String() string { return proto.CompactTextString(m) } func (*BlockOpenRequest) ProtoMessage() {} func (*BlockOpenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{0} + return fileDescriptor_8e550b1f5926e92d, []int{2} } func (m *BlockOpenRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -359,7 +544,7 @@ func (m *BlockOpenResponse) Reset() { *m = BlockOpenResponse{} } func (m *BlockOpenResponse) String() string { return proto.CompactTextString(m) } func (*BlockOpenResponse) ProtoMessage() {} func (*BlockOpenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1} + return fileDescriptor_8e550b1f5926e92d, []int{3} } func (m *BlockOpenResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -411,7 +596,7 @@ func (m *BlockOpenResponse_Error) Reset() { *m = BlockOpenResponse_Error func (m *BlockOpenResponse_Error) String() string { return proto.CompactTextString(m) } func (*BlockOpenResponse_Error) ProtoMessage() {} func (*BlockOpenResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1, 0} + return fileDescriptor_8e550b1f5926e92d, []int{3, 0} } func (m *BlockOpenResponse_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -463,7 +648,7 @@ func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } func (m *BlockCreateRequest) String() string { return proto.CompactTextString(m) } func (*BlockCreateRequest) ProtoMessage() {} func (*BlockCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{2} + return fileDescriptor_8e550b1f5926e92d, []int{4} } func (m *BlockCreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -514,7 +699,7 @@ func (m *BlockCreateResponse) Reset() { *m = BlockCreateResponse{} } func (m *BlockCreateResponse) String() string { return proto.CompactTextString(m) } func (*BlockCreateResponse) ProtoMessage() {} func (*BlockCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3} + return fileDescriptor_8e550b1f5926e92d, []int{5} } func (m *BlockCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -559,7 +744,7 @@ func (m *BlockCreateResponse_Error) Reset() { *m = BlockCreateResponse_E func (m *BlockCreateResponse_Error) String() string { return proto.CompactTextString(m) } func (*BlockCreateResponse_Error) ProtoMessage() {} func (*BlockCreateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3, 0} + return fileDescriptor_8e550b1f5926e92d, []int{5, 0} } func (m *BlockCreateResponse_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -610,7 +795,7 @@ func (m *BlockUpdateRequest) Reset() { *m = BlockUpdateRequest{} } func (m *BlockUpdateRequest) String() string { return proto.CompactTextString(m) } func (*BlockUpdateRequest) ProtoMessage() {} func (*BlockUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{4} + return fileDescriptor_8e550b1f5926e92d, []int{6} } func (m *BlockUpdateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -654,7 +839,7 @@ func (m *BlockUpdateResponse) Reset() { *m = BlockUpdateResponse{} } func (m *BlockUpdateResponse) String() string { return proto.CompactTextString(m) } func (*BlockUpdateResponse) ProtoMessage() {} func (*BlockUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5} + return fileDescriptor_8e550b1f5926e92d, []int{7} } func (m *BlockUpdateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -699,7 +884,7 @@ func (m *BlockUpdateResponse_Error) Reset() { *m = BlockUpdateResponse_E func (m *BlockUpdateResponse_Error) String() string { return proto.CompactTextString(m) } func (*BlockUpdateResponse_Error) ProtoMessage() {} func (*BlockUpdateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5, 0} + return fileDescriptor_8e550b1f5926e92d, []int{7, 0} } func (m *BlockUpdateResponse_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -751,7 +936,7 @@ func (m *BlockShow) Reset() { *m = BlockShow{} } func (m *BlockShow) String() string { return proto.CompactTextString(m) } func (*BlockShow) ProtoMessage() {} func (*BlockShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{6} + return fileDescriptor_8e550b1f5926e92d, []int{8} } func (m *BlockShow) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -795,7 +980,7 @@ func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } func (*BlockUpdate) ProtoMessage() {} func (*BlockUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{7} + return fileDescriptor_8e550b1f5926e92d, []int{9} } func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -839,7 +1024,7 @@ func (m *BlockCreate) Reset() { *m = BlockCreate{} } func (m *BlockCreate) String() string { return proto.CompactTextString(m) } func (*BlockCreate) ProtoMessage() {} func (*BlockCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{8} + return fileDescriptor_8e550b1f5926e92d, []int{10} } func (m *BlockCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -884,7 +1069,7 @@ func (m *BlockStructureChange) Reset() { *m = BlockStructureChange{} } func (m *BlockStructureChange) String() string { return proto.CompactTextString(m) } func (*BlockStructureChange) ProtoMessage() {} func (*BlockStructureChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{9} + return fileDescriptor_8e550b1f5926e92d, []int{11} } func (m *BlockStructureChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -943,7 +1128,7 @@ func (m *BlockContentTextChange) Reset() { *m = BlockContentTextChange{} func (m *BlockContentTextChange) String() string { return proto.CompactTextString(m) } func (*BlockContentTextChange) ProtoMessage() {} func (*BlockContentTextChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{10} + return fileDescriptor_8e550b1f5926e92d, []int{12} } func (m *BlockContentTextChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1089,7 +1274,7 @@ func (m *BlockContentPageChange) Reset() { *m = BlockContentPageChange{} func (m *BlockContentPageChange) String() string { return proto.CompactTextString(m) } func (*BlockContentPageChange) ProtoMessage() {} func (*BlockContentPageChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{11} + return fileDescriptor_8e550b1f5926e92d, []int{13} } func (m *BlockContentPageChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1189,7 +1374,7 @@ func (m *BlockHeaderChange) Reset() { *m = BlockHeaderChange{} } func (m *BlockHeaderChange) String() string { return proto.CompactTextString(m) } func (*BlockHeaderChange) ProtoMessage() {} func (*BlockHeaderChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{12} + return fileDescriptor_8e550b1f5926e92d, []int{14} } func (m *BlockHeaderChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1311,7 +1496,7 @@ func (m *BlockContentDashboardChange) Reset() { *m = BlockContentDashboa func (m *BlockContentDashboardChange) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboardChange) ProtoMessage() {} func (*BlockContentDashboardChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{13} + return fileDescriptor_8e550b1f5926e92d, []int{15} } func (m *BlockContentDashboardChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1411,7 +1596,7 @@ func (m *BlockAtomicChange) Reset() { *m = BlockAtomicChange{} } func (m *BlockAtomicChange) String() string { return proto.CompactTextString(m) } func (*BlockAtomicChange) ProtoMessage() {} func (*BlockAtomicChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{14} + return fileDescriptor_8e550b1f5926e92d, []int{16} } func (m *BlockAtomicChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1524,7 +1709,7 @@ func (m *BlockChanges) Reset() { *m = BlockChanges{} } func (m *BlockChanges) String() string { return proto.CompactTextString(m) } func (*BlockChanges) ProtoMessage() {} func (*BlockChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{15} + return fileDescriptor_8e550b1f5926e92d, []int{17} } func (m *BlockChanges) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1576,7 +1761,7 @@ func (m *Block) Reset() { *m = Block{} } func (m *Block) String() string { return proto.CompactTextString(m) } func (*Block) ProtoMessage() {} func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{16} + return fileDescriptor_8e550b1f5926e92d, []int{18} } func (m *Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1716,7 +1901,7 @@ func (m *BlockHeader) Reset() { *m = BlockHeader{} } func (m *BlockHeader) String() string { return proto.CompactTextString(m) } func (*BlockHeader) ProtoMessage() {} func (*BlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{17} + return fileDescriptor_8e550b1f5926e92d, []int{19} } func (m *BlockHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1782,7 +1967,7 @@ func (m *BlockLayout) Reset() { *m = BlockLayout{} } func (m *BlockLayout) String() string { return proto.CompactTextString(m) } func (*BlockLayout) ProtoMessage() {} func (*BlockLayout) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} + return fileDescriptor_8e550b1f5926e92d, []int{20} } func (m *BlockLayout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1830,7 +2015,7 @@ func (m *BlockPermissions) Reset() { *m = BlockPermissions{} } func (m *BlockPermissions) String() string { return proto.CompactTextString(m) } func (*BlockPermissions) ProtoMessage() {} func (*BlockPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} + return fileDescriptor_8e550b1f5926e92d, []int{21} } func (m *BlockPermissions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1902,7 +2087,7 @@ func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } func (*BlockHeadersList) ProtoMessage() {} func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} + return fileDescriptor_8e550b1f5926e92d, []int{22} } func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1946,7 +2131,7 @@ func (m *BlocksList) Reset() { *m = BlocksList{} } func (m *BlocksList) String() string { return proto.CompactTextString(m) } func (*BlocksList) ProtoMessage() {} func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} + return fileDescriptor_8e550b1f5926e92d, []int{23} } func (m *BlocksList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1992,7 +2177,7 @@ func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } func (*BlockContentPage) ProtoMessage() {} func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} + return fileDescriptor_8e550b1f5926e92d, []int{24} } func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2050,7 +2235,7 @@ func (m *BlockStructure) Reset() { *m = BlockStructure{} } func (m *BlockStructure) String() string { return proto.CompactTextString(m) } func (*BlockStructure) ProtoMessage() {} func (*BlockStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} + return fileDescriptor_8e550b1f5926e92d, []int{25} } func (m *BlockStructure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2094,7 +2279,7 @@ func (m *BlockChildren) Reset() { *m = BlockChildren{} } func (m *BlockChildren) String() string { return proto.CompactTextString(m) } func (*BlockChildren) ProtoMessage() {} func (*BlockChildren) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24} + return fileDescriptor_8e550b1f5926e92d, []int{26} } func (m *BlockChildren) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2140,7 +2325,7 @@ func (m *BlockContentDashboard) Reset() { *m = BlockContentDashboard{} } func (m *BlockContentDashboard) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboard) ProtoMessage() {} func (*BlockContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25} + return fileDescriptor_8e550b1f5926e92d, []int{27} } func (m *BlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2197,7 +2382,7 @@ func (m *BlockContentDataview) Reset() { *m = BlockContentDataview{} } func (m *BlockContentDataview) String() string { return proto.CompactTextString(m) } func (*BlockContentDataview) ProtoMessage() {} func (*BlockContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26} + return fileDescriptor_8e550b1f5926e92d, []int{28} } func (m *BlockContentDataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2240,7 +2425,7 @@ func (m *BlockContentText) Reset() { *m = BlockContentText{} } func (m *BlockContentText) String() string { return proto.CompactTextString(m) } func (*BlockContentText) ProtoMessage() {} func (*BlockContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27} + return fileDescriptor_8e550b1f5926e92d, []int{29} } func (m *BlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2326,7 +2511,7 @@ func (m *BlockContentText_Marks) Reset() { *m = BlockContentText_Marks{} func (m *BlockContentText_Marks) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Marks) ProtoMessage() {} func (*BlockContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27, 0} + return fileDescriptor_8e550b1f5926e92d, []int{29, 0} } func (m *BlockContentText_Marks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2372,7 +2557,7 @@ func (m *BlockContentText_Mark) Reset() { *m = BlockContentText_Mark{} } func (m *BlockContentText_Mark) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Mark) ProtoMessage() {} func (*BlockContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27, 1} + return fileDescriptor_8e550b1f5926e92d, []int{29, 1} } func (m *BlockContentText_Mark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2430,7 +2615,7 @@ func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } func (*BlockContentMedia) ProtoMessage() {} func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{28} + return fileDescriptor_8e550b1f5926e92d, []int{30} } func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2475,7 +2660,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29} + return fileDescriptor_8e550b1f5926e92d, []int{31} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2520,6 +2705,7 @@ func (m *Range) GetTo() int32 { func init() { proto.RegisterEnum("anytype.BlockType", BlockType_name, BlockType_value) + proto.RegisterEnum("anytype.BlockHistoryMoveResponse_Error_Code", BlockHistoryMoveResponse_Error_Code_name, BlockHistoryMoveResponse_Error_Code_value) proto.RegisterEnum("anytype.BlockOpenResponse_Error_Code", BlockOpenResponse_Error_Code_name, BlockOpenResponse_Error_Code_value) proto.RegisterEnum("anytype.BlockCreateResponse_Error_Code", BlockCreateResponse_Error_Code_name, BlockCreateResponse_Error_Code_value) proto.RegisterEnum("anytype.BlockUpdateResponse_Error_Code", BlockUpdateResponse_Error_Code_name, BlockUpdateResponse_Error_Code_value) @@ -2528,6 +2714,9 @@ func init() { proto.RegisterEnum("anytype.BlockContentText_Style", BlockContentText_Style_name, BlockContentText_Style_value) proto.RegisterEnum("anytype.BlockContentText_MarkerType", BlockContentText_MarkerType_name, BlockContentText_MarkerType_value) proto.RegisterEnum("anytype.BlockContentText_Mark_Type", BlockContentText_Mark_Type_name, BlockContentText_Mark_Type_value) + proto.RegisterType((*BlockHistoryMoveRequest)(nil), "anytype.BlockHistoryMoveRequest") + proto.RegisterType((*BlockHistoryMoveResponse)(nil), "anytype.BlockHistoryMoveResponse") + proto.RegisterType((*BlockHistoryMoveResponse_Error)(nil), "anytype.BlockHistoryMoveResponse.Error") proto.RegisterType((*BlockOpenRequest)(nil), "anytype.BlockOpenRequest") proto.RegisterType((*BlockOpenResponse)(nil), "anytype.BlockOpenResponse") proto.RegisterType((*BlockOpenResponse_Error)(nil), "anytype.BlockOpenResponse.Error") @@ -2569,115 +2758,238 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1725 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0xdb, 0xca, - 0x15, 0x26, 0x29, 0x51, 0x8f, 0x23, 0x3f, 0x98, 0xb9, 0xbe, 0xae, 0xaa, 0xde, 0xab, 0x1a, 0x6c, - 0xea, 0x18, 0x4d, 0xa0, 0x20, 0xb2, 0x9d, 0x67, 0x13, 0x40, 0xb2, 0x98, 0x48, 0xb0, 0x2c, 0x19, - 0x63, 0x39, 0x69, 0xb2, 0x09, 0x28, 0x71, 0x62, 0x0b, 0x96, 0x48, 0x85, 0xa4, 0x92, 0x78, 0xd3, - 0x4d, 0xff, 0x40, 0x97, 0x45, 0x17, 0x05, 0xba, 0xce, 0xdf, 0xc8, 0xa2, 0xab, 0x22, 0xcb, 0x76, - 0x17, 0x38, 0xdb, 0xfe, 0x88, 0x62, 0x1e, 0xa4, 0x48, 0x59, 0x96, 0x93, 0x5c, 0x64, 0x25, 0x72, - 0xce, 0x77, 0xe6, 0x3c, 0xe7, 0x9b, 0x43, 0x41, 0xae, 0x3b, 0x70, 0x7a, 0x27, 0xa5, 0x91, 0xeb, - 0xf8, 0x0e, 0x4a, 0x9b, 0xf6, 0xa9, 0x7f, 0x3a, 0x22, 0x85, 0x05, 0xcf, 0x77, 0xc7, 0x3d, 0x9f, - 0x2f, 0xeb, 0x3a, 0x68, 0x55, 0x8a, 0x6a, 0x8f, 0x88, 0x8d, 0xc9, 0xeb, 0x31, 0xf1, 0x7c, 0xb4, - 0x04, 0x4a, 0xdf, 0xca, 0xcb, 0x6b, 0xf2, 0x46, 0x16, 0x2b, 0x7d, 0x4b, 0xff, 0x87, 0x02, 0x57, - 0x22, 0x20, 0x6f, 0xe4, 0xd8, 0x1e, 0x41, 0xb7, 0x41, 0x25, 0xae, 0xeb, 0xb8, 0x0c, 0x98, 0x2b, - 0xaf, 0x95, 0x84, 0x81, 0xd2, 0x39, 0x68, 0xc9, 0xa0, 0x38, 0xcc, 0xe1, 0xe8, 0xb6, 0xf0, 0xab, - 0x4e, 0x4c, 0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f, 0x1b, 0x35, 0xa3, 0xad, 0xa5, 0x28, 0xe1, 0xe2, 0xf6, - 0x33, 0x2d, 0x4d, 0x43, 0xd9, 0x69, 0x37, 0x0f, 0xf7, 0x5a, 0x5a, 0xa6, 0xfa, 0xd3, 0xbf, 0xce, - 0x8a, 0xf2, 0xc7, 0xb3, 0xa2, 0xfc, 0xe9, 0xac, 0x28, 0xff, 0xf5, 0x73, 0x51, 0xfa, 0xf8, 0xb9, - 0x28, 0xfd, 0xe7, 0x73, 0x51, 0x7a, 0xa1, 0x8c, 0xba, 0xdd, 0x14, 0xfb, 0x7f, 0x6f, 0xf3, 0xff, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xdb, 0xe1, 0xba, 0x05, 0x14, 0x00, 0x00, + // 1819 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x73, 0xdb, 0xc6, + 0x15, 0x07, 0x40, 0x82, 0x22, 0x1f, 0x25, 0x79, 0xbd, 0x51, 0x14, 0x96, 0x4d, 0x58, 0x0d, 0x9a, + 0xda, 0x9e, 0xda, 0xc3, 0x4c, 0x28, 0x3b, 0xff, 0x5c, 0x7b, 0x4a, 0x8a, 0xb0, 0xc9, 0x11, 0x45, + 0x6a, 0x56, 0x94, 0xdd, 0xe4, 0xa2, 0x81, 0x88, 0x8d, 0x84, 0x11, 0x09, 0x30, 0x00, 0x64, 0x87, + 0x97, 0x5e, 0x7a, 0xee, 0x4c, 0x8f, 0x9d, 0x1e, 0x3a, 0xd3, 0x73, 0x4e, 0xfd, 0x0e, 0x39, 0xf4, + 0xd4, 0xf1, 0xb1, 0xbd, 0x65, 0xec, 0x6b, 0x3f, 0x44, 0x67, 0xff, 0x00, 0x04, 0x28, 0x92, 0x92, + 0x9c, 0xf1, 0x89, 0x8b, 0xdd, 0xf7, 0xf6, 0xbd, 0xf7, 0xdb, 0xdf, 0xbe, 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, 0xac, 0x2f, 0xb1, 0xc6, 0x98, + 0x12, 0x73, 0xa4, 0x06, 0xfa, 0x88, 0xda, 0x8e, 0x55, 0xba, 0x31, 0x8f, 0x1d, 0x52, 0x63, 0x8f, + 0x49, 0xf0, 0xfc, 0xce, 0x06, 0x8c, 0xee, 0x43, 0x6b, 0xe2, 0x9d, 0x87, 0x25, 0x34, 0x0f, 0xc0, + 0x0e, 0x5f, 0x63, 0x74, 0x17, 0x52, 0x8d, 0x02, 0xac, 0x0c, 0xc4, 0x46, 0xc6, 0x0f, 0xaa, 0xac, + 0xa7, 0x92, 0x62, 0x17, 0xdf, 0x42, 0x97, 0x64, 0x24, 0x99, 0x8f, 0x6e, 0x43, 0xee, 0x5b, 0x87, + 0x0e, 0xed, 0xa8, 0x38, 0xdd, 0x88, 0x25, 0xc5, 0x75, 0x25, 0x72, 0x19, 0x3f, 0x4c, 0x27, 0xa3, + 0xec, 0x25, 0xc9, 0x28, 0x95, 0x8a, 0x8c, 0x8f, 0xa4, 0xb3, 0x22, 0xa2, 0x0b, 0x4f, 0x87, 0x3f, + 0xca, 0xe7, 0x45, 0x42, 0x1f, 0x63, 0xc8, 0xfa, 0xd4, 0x12, 0x52, 0x79, 0xc2, 0xc7, 0x6c, 0x8e, + 0xda, 0x8e, 0xb8, 0xbe, 0x79, 0xc2, 0xc7, 0x78, 0x13, 0x72, 0x3e, 0x65, 0x6f, 0x37, 0xf9, 0x8e, + 0x93, 0x5f, 0x4c, 0xd6, 0xf6, 0xad, 0x13, 0x51, 0x35, 0x09, 0x1f, 0x33, 0x59, 0xdb, 0xf7, 0xc6, + 0x3d, 0x97, 0xdf, 0xa6, 0x3c, 0x91, 0x5f, 0x46, 0x43, 0xda, 0x17, 0x58, 0x06, 0x1d, 0x27, 0x08, + 0x71, 0x15, 0x56, 0x04, 0x71, 0xa3, 0xcb, 0x31, 0x9f, 0xdd, 0x91, 0x90, 0x71, 0x1f, 0x80, 0xcf, + 0x0b, 0xed, 0x5b, 0x90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2c, 0xca, 0x67, 0xed, 0xa6, 0xd9, 0x43, 0x39, 0x96, 0x70, 0x49, 0xef, 0x39, 0x5a, + 0x61, 0xa1, 0xec, 0xf4, 0x3a, 0x87, 0x7b, 0x5d, 0x94, 0x6f, 0x7c, 0xf8, 0xaf, 0xd7, 0x15, 0xf5, + 0xd5, 0xeb, 0x8a, 0xfa, 0xd3, 0xeb, 0x8a, 0xfa, 0x97, 0x37, 0x15, 0xe5, 0xd5, 0x9b, 0x8a, 0xf2, + 0x9f, 0x37, 0x15, 0xe5, 0x1b, 0x6d, 0x7c, 0x7c, 0x9c, 0xe3, 0x7f, 0xb2, 0x6e, 0xff, 0x3f, 0x00, + 0x00, 0xff, 0xff, 0xe5, 0xe7, 0x9a, 0x8a, 0x8a, 0x15, 0x00, 0x00, +} + +func (m *BlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHistoryMoveRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHistoryMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MoveForward { + i-- + if m.MoveForward { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.ContextBlockId) > 0 { + i -= len(m.ContextBlockId) + copy(dAtA[i:], m.ContextBlockId) + i = encodeVarintBlock(dAtA, i, uint64(len(m.ContextBlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockHistoryMoveResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHistoryMoveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHistoryMoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockHistoryMoveResponse_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHistoryMoveResponse_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHistoryMoveResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintBlock(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { @@ -4586,6 +4898,55 @@ func encodeVarintBlock(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *BlockHistoryMoveRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + l = len(m.ContextBlockId) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + if m.MoveForward { + n += 2 + } + return n +} + +func (m *BlockHistoryMoveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovBlock(uint64(l)) + } + return n +} + +func (m *BlockHistoryMoveResponse_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovBlock(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + return n +} + func (m *BlockOpenRequest) Size() (n int) { if m == nil { return 0 @@ -5452,6 +5813,336 @@ func sovBlock(x uint64) (n int) { func sozBlock(x uint64) (n int) { return sovBlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *BlockHistoryMoveRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHistoryMoveRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHistoryMoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContextBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MoveForward", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MoveForward = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHistoryMoveResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHistoryMoveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHistoryMoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &BlockHistoryMoveResponse_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHistoryMoveResponse_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= BlockHistoryMoveResponse_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BlockOpenRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pb/protos/block.proto b/pb/protos/block.proto index 893176be8..ea0154eda 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -7,6 +7,30 @@ import "struct.proto"; // commands // + +message BlockHistoryMoveRequest { + string id = 1; + string contextBlockId = 2; + bool moveForward = 3; +} + +message BlockHistoryMoveResponse { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + CAN_NOT_MOVE = 3; + // ... + } + } +} + message BlockOpenRequest { string id = 1; } @@ -295,6 +319,7 @@ message Range { int32 from = 1; int32 to = 2; } + /* message Scheme { oneof scheme { diff --git a/pb/protos/service/service.proto b/pb/protos/service/service.proto index b3bf3d78a..a4b584217 100644 --- a/pb/protos/service/service.proto +++ b/pb/protos/service/service.proto @@ -22,4 +22,5 @@ service ClientCommands { rpc BlockOpen (BlockOpenRequest) returns (BlockOpenResponse); rpc BlockCreate (BlockCreateRequest) returns (BlockCreateResponse); rpc BlockUpdate (BlockUpdateRequest) returns (BlockUpdateResponse); + rpc BlockHistoryMove (BlockHistoryMoveRequest) returns (BlockHistoryMoveResponse); } From f2237610c704463a4c0e2878ee5c2037a6b583ae Mon Sep 17 00:00:00 2001 From: Kirill Date: Wed, 30 Oct 2019 00:56:28 +0100 Subject: [PATCH 08/24] Proto: comments, events fix, block commands -> sep. file --- lib/service.pb.go | 48 +- pb/block-changes.pb.go | 33 + pb/block-commands.pb.go | 2734 +++++++++++++++++++++++++++++ pb/block.pb.go | 2838 ++----------------------------- pb/edit.pb.go | 924 ++++------ pb/event.pb.go | 368 +++- pb/protos/block-commands.proto | 90 + pb/protos/block.proto | 92 - pb/protos/edit.proto | 51 +- pb/protos/event.proto | 16 +- pb/protos/service/service.proto | 3 +- 11 files changed, 3754 insertions(+), 3443 deletions(-) create mode 100644 pb/block-changes.pb.go create mode 100644 pb/block-commands.pb.go create mode 100644 pb/protos/block-commands.proto diff --git a/lib/service.pb.go b/lib/service.pb.go index ed5abb165..c39d7af23 100644 --- a/lib/service.pb.go +++ b/lib/service.pb.go @@ -25,30 +25,30 @@ func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f62 var fileDescriptor_a0b84a42fa06f626 = []byte{ // 381 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcd, 0x4e, 0xea, 0x40, - 0x14, 0xc7, 0x43, 0x6e, 0x72, 0xc9, 0x1d, 0x3e, 0x72, 0xef, 0x6c, 0xae, 0x16, 0xa8, 0xfa, 0x02, - 0x2c, 0x74, 0xeb, 0xc6, 0x12, 0x03, 0x06, 0x3f, 0x22, 0x44, 0x49, 0xdc, 0xb5, 0xe5, 0x48, 0x26, - 0x4e, 0x67, 0x6a, 0x67, 0x20, 0xe1, 0x79, 0x7c, 0x19, 0x97, 0x3e, 0x82, 0xe1, 0x49, 0x8c, 0xcc, - 0x99, 0xd2, 0xd2, 0xd6, 0xdd, 0xf0, 0xff, 0xfd, 0xcf, 0x8f, 0x4e, 0x4e, 0x4b, 0x5a, 0x0a, 0x92, - 0x15, 0x0b, 0xa1, 0x1f, 0x27, 0x52, 0x4b, 0x5a, 0xf7, 0xc5, 0x5a, 0xaf, 0x63, 0x70, 0x5a, 0x7e, - 0x18, 0xca, 0xa5, 0xd0, 0x26, 0x77, 0xc8, 0x33, 0xe3, 0x60, 0xcf, 0x11, 0x53, 0x21, 0x9e, 0x1b, - 0x01, 0x97, 0xe1, 0x8b, 0xf9, 0x71, 0xfa, 0x56, 0x27, 0xed, 0x01, 0x67, 0x20, 0xf4, 0x40, 0x46, - 0x91, 0x2f, 0xe6, 0x8a, 0x8e, 0x49, 0x73, 0xe6, 0x73, 0x0e, 0x7a, 0x90, 0x80, 0xaf, 0x81, 0x76, - 0xfb, 0xf8, 0x07, 0xfd, 0x6c, 0x3c, 0x81, 0xd7, 0x25, 0x28, 0xed, 0xf4, 0x2a, 0xa8, 0x8a, 0xa5, - 0x50, 0x40, 0x6f, 0x49, 0xcb, 0xe4, 0x13, 0x08, 0xe5, 0x0a, 0x12, 0xba, 0xdf, 0xc7, 0xdc, 0xea, - 0xdc, 0x2a, 0x8c, 0xbe, 0x7b, 0xd2, 0xbe, 0x30, 0xb7, 0xb4, 0xc2, 0xdd, 0x44, 0x1e, 0x58, 0xe3, - 0x51, 0x25, 0xdf, 0x3d, 0x22, 0x12, 0xbc, 0x70, 0x6f, 0x7f, 0x22, 0x7f, 0x63, 0xb7, 0x0a, 0x17, - 0x7c, 0x53, 0xe0, 0x10, 0xea, 0xa2, 0xcf, 0xe4, 0x95, 0x3e, 0x8b, 0xd1, 0x37, 0x26, 0xcd, 0xab, - 0xc8, 0x5f, 0xc0, 0x10, 0xb4, 0xc7, 0x65, 0x90, 0xd9, 0x47, 0x36, 0x2e, 0xee, 0x23, 0x4f, 0x51, - 0x76, 0x49, 0xc8, 0x23, 0x24, 0x8a, 0x49, 0x31, 0x04, 0x4d, 0x9d, 0xb4, 0xbc, 0x0b, 0xad, 0xa8, - 0x53, 0xca, 0x50, 0x73, 0x4e, 0xea, 0xd7, 0x72, 0x31, 0x05, 0x31, 0xa7, 0xff, 0xd3, 0x1e, 0x26, - 0x56, 0x70, 0x50, 0x04, 0x38, 0xed, 0x91, 0x3f, 0xde, 0xf7, 0x3b, 0x78, 0x17, 0x83, 0xa0, 0x87, - 0x69, 0x2d, 0xcd, 0xac, 0xc1, 0x29, 0x43, 0xe8, 0x18, 0x91, 0xc6, 0x36, 0xc4, 0x9d, 0x75, 0xf2, - 0xd5, 0xfc, 0xc6, 0xba, 0xe5, 0x70, 0xcf, 0xf4, 0x10, 0xcf, 0x4b, 0x4c, 0x26, 0xad, 0x30, 0x59, - 0x88, 0xa6, 0x19, 0xf9, 0xbb, 0x8d, 0x47, 0x4c, 0x69, 0x99, 0xac, 0x6f, 0xe4, 0x0a, 0xe8, 0x71, - 0x7e, 0x22, 0x83, 0xac, 0xf3, 0xe4, 0x87, 0x86, 0x11, 0x7b, 0xff, 0xde, 0x37, 0x6e, 0xed, 0x63, - 0xe3, 0xd6, 0x3e, 0x37, 0x6e, 0xed, 0xe9, 0x17, 0x67, 0x41, 0xf0, 0x7b, 0xfb, 0xfd, 0x9e, 0x7d, - 0x05, 0x00, 0x00, 0xff, 0xff, 0xba, 0xe0, 0x71, 0x8c, 0x0d, 0x04, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xdf, 0x4e, 0xc2, 0x30, + 0x14, 0xc6, 0x43, 0x4c, 0x24, 0x56, 0x20, 0xda, 0x98, 0xa8, 0x03, 0xa6, 0x3e, 0x80, 0x5c, 0xe8, + 0xad, 0x37, 0x8e, 0x18, 0x30, 0xf8, 0x27, 0x42, 0x94, 0xc4, 0xbb, 0xad, 0x1c, 0xc9, 0x62, 0xd7, + 0xce, 0xb5, 0x90, 0xf0, 0x3c, 0xbe, 0x8c, 0x97, 0x3e, 0x82, 0xe1, 0x49, 0x8c, 0xec, 0x74, 0x6c, + 0x6c, 0xf3, 0xae, 0xf9, 0x7e, 0xdf, 0xf9, 0x6d, 0xcd, 0xd9, 0x48, 0x5d, 0x41, 0x34, 0xf7, 0x19, + 0x74, 0xc2, 0x48, 0x6a, 0x49, 0xab, 0xae, 0x58, 0xe8, 0x45, 0x08, 0x56, 0xdd, 0x65, 0x4c, 0xce, + 0x84, 0x8e, 0x73, 0x8b, 0xbc, 0xf9, 0x1c, 0xcc, 0x39, 0xf0, 0x15, 0xc3, 0xf3, 0x81, 0xc7, 0x25, + 0x7b, 0x3f, 0x67, 0x32, 0x08, 0x5c, 0x31, 0x51, 0x71, 0x7a, 0xf1, 0x59, 0x25, 0x8d, 0x2e, 0xf7, + 0x41, 0xe8, 0x2e, 0x02, 0x3a, 0x20, 0xb5, 0xb1, 0xcb, 0x39, 0xe8, 0x6e, 0x04, 0xae, 0x06, 0xda, + 0xea, 0xe0, 0x93, 0x3a, 0xe9, 0x78, 0x08, 0x1f, 0x33, 0x50, 0xda, 0x6a, 0x97, 0x50, 0x15, 0x4a, + 0xa1, 0x80, 0x3e, 0x90, 0x7a, 0x9c, 0x0f, 0x81, 0xc9, 0x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0x4b, 0xbb, 0xf2, 0xb3, 0xb4, 0x2b, 0xaf, 0x5b, 0xdc, 0xf7, 0xbc, 0xed, 0xd5, 0xff, 0x7b, 0xf9, + 0x1b, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xc9, 0xee, 0x7b, 0x16, 0x04, 0x00, 0x00, } // This is a compile-time assertion to ensure that this generated file diff --git a/pb/block-changes.pb.go b/pb/block-changes.pb.go new file mode 100644 index 000000000..bbe386a94 --- /dev/null +++ b/pb/block-changes.pb.go @@ -0,0 +1,33 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: block-changes.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +func init() { proto.RegisterFile("block-changes.proto", fileDescriptor_789b3a42aa974be8) } + +var fileDescriptor_789b3a42aa974be8 = []byte{ + // 96 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xca, 0xc9, 0x4f, + 0xce, 0xd6, 0x4d, 0xce, 0x48, 0xcc, 0x4b, 0x4f, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0xe2, 0x06, 0xcb, 0x42, 0x44, 0x9d, 0x64, + 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, + 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x8a, 0xa9, 0x20, 0x29, 0x89, 0x0d, + 0xac, 0xc8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x16, 0x64, 0xa9, 0x0f, 0x51, 0x00, 0x00, 0x00, +} diff --git a/pb/block-commands.pb.go b/pb/block-commands.pb.go new file mode 100644 index 000000000..f09e90552 --- /dev/null +++ b/pb/block-commands.pb.go @@ -0,0 +1,2734 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: block-commands.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type BlockHistoryMoveResponse_Error_Code int32 + +const ( + BlockHistoryMoveResponse_Error_NULL BlockHistoryMoveResponse_Error_Code = 0 + BlockHistoryMoveResponse_Error_UNKNOWN_ERROR BlockHistoryMoveResponse_Error_Code = 1 + BlockHistoryMoveResponse_Error_BAD_INPUT BlockHistoryMoveResponse_Error_Code = 2 + BlockHistoryMoveResponse_Error_CAN_NOT_MOVE BlockHistoryMoveResponse_Error_Code = 3 +) + +var BlockHistoryMoveResponse_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "CAN_NOT_MOVE", +} + +var BlockHistoryMoveResponse_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "CAN_NOT_MOVE": 3, +} + +func (x BlockHistoryMoveResponse_Error_Code) String() string { + return proto.EnumName(BlockHistoryMoveResponse_Error_Code_name, int32(x)) +} + +func (BlockHistoryMoveResponse_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{1, 0, 0} +} + +type BlockOpenResponse_Error_Code int32 + +const ( + BlockOpenResponse_Error_NULL BlockOpenResponse_Error_Code = 0 + BlockOpenResponse_Error_UNKNOWN_ERROR BlockOpenResponse_Error_Code = 1 + BlockOpenResponse_Error_BAD_INPUT BlockOpenResponse_Error_Code = 2 +) + +var BlockOpenResponse_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var BlockOpenResponse_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x BlockOpenResponse_Error_Code) String() string { + return proto.EnumName(BlockOpenResponse_Error_Code_name, int32(x)) +} + +func (BlockOpenResponse_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{3, 0, 0} +} + +type BlockCreateResponse_Error_Code int32 + +const ( + BlockCreateResponse_Error_NULL BlockCreateResponse_Error_Code = 0 + BlockCreateResponse_Error_UNKNOWN_ERROR BlockCreateResponse_Error_Code = 1 + BlockCreateResponse_Error_BAD_INPUT BlockCreateResponse_Error_Code = 2 +) + +var BlockCreateResponse_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var BlockCreateResponse_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x BlockCreateResponse_Error_Code) String() string { + return proto.EnumName(BlockCreateResponse_Error_Code_name, int32(x)) +} + +func (BlockCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{5, 0, 0} +} + +type BlockUpdateResponse_Error_Code int32 + +const ( + BlockUpdateResponse_Error_NULL BlockUpdateResponse_Error_Code = 0 + BlockUpdateResponse_Error_UNKNOWN_ERROR BlockUpdateResponse_Error_Code = 1 + BlockUpdateResponse_Error_BAD_INPUT BlockUpdateResponse_Error_Code = 2 +) + +var BlockUpdateResponse_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var BlockUpdateResponse_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x BlockUpdateResponse_Error_Code) String() string { + return proto.EnumName(BlockUpdateResponse_Error_Code_name, int32(x)) +} + +func (BlockUpdateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{7, 0, 0} +} + +type BlockHistoryMoveRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` + MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` +} + +func (m *BlockHistoryMoveRequest) Reset() { *m = BlockHistoryMoveRequest{} } +func (m *BlockHistoryMoveRequest) String() string { return proto.CompactTextString(m) } +func (*BlockHistoryMoveRequest) ProtoMessage() {} +func (*BlockHistoryMoveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{0} +} +func (m *BlockHistoryMoveRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHistoryMoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHistoryMoveRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHistoryMoveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHistoryMoveRequest.Merge(m, src) +} +func (m *BlockHistoryMoveRequest) XXX_Size() int { + return m.Size() +} +func (m *BlockHistoryMoveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHistoryMoveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHistoryMoveRequest proto.InternalMessageInfo + +func (m *BlockHistoryMoveRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *BlockHistoryMoveRequest) GetContextBlockId() string { + if m != nil { + return m.ContextBlockId + } + return "" +} + +func (m *BlockHistoryMoveRequest) GetMoveForward() bool { + if m != nil { + return m.MoveForward + } + return false +} + +type BlockHistoryMoveResponse struct { + Error *BlockHistoryMoveResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *BlockHistoryMoveResponse) Reset() { *m = BlockHistoryMoveResponse{} } +func (m *BlockHistoryMoveResponse) String() string { return proto.CompactTextString(m) } +func (*BlockHistoryMoveResponse) ProtoMessage() {} +func (*BlockHistoryMoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{1} +} +func (m *BlockHistoryMoveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHistoryMoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHistoryMoveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHistoryMoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHistoryMoveResponse.Merge(m, src) +} +func (m *BlockHistoryMoveResponse) XXX_Size() int { + return m.Size() +} +func (m *BlockHistoryMoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHistoryMoveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHistoryMoveResponse proto.InternalMessageInfo + +func (m *BlockHistoryMoveResponse) GetError() *BlockHistoryMoveResponse_Error { + if m != nil { + return m.Error + } + return nil +} + +type BlockHistoryMoveResponse_Error struct { + Code BlockHistoryMoveResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockHistoryMoveResponse_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *BlockHistoryMoveResponse_Error) Reset() { *m = BlockHistoryMoveResponse_Error{} } +func (m *BlockHistoryMoveResponse_Error) String() string { return proto.CompactTextString(m) } +func (*BlockHistoryMoveResponse_Error) ProtoMessage() {} +func (*BlockHistoryMoveResponse_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{1, 0} +} +func (m *BlockHistoryMoveResponse_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHistoryMoveResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHistoryMoveResponse_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHistoryMoveResponse_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHistoryMoveResponse_Error.Merge(m, src) +} +func (m *BlockHistoryMoveResponse_Error) XXX_Size() int { + return m.Size() +} +func (m *BlockHistoryMoveResponse_Error) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHistoryMoveResponse_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHistoryMoveResponse_Error proto.InternalMessageInfo + +func (m *BlockHistoryMoveResponse_Error) GetCode() BlockHistoryMoveResponse_Error_Code { + if m != nil { + return m.Code + } + return BlockHistoryMoveResponse_Error_NULL +} + +func (m *BlockHistoryMoveResponse_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type BlockOpenRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *BlockOpenRequest) Reset() { *m = BlockOpenRequest{} } +func (m *BlockOpenRequest) String() string { return proto.CompactTextString(m) } +func (*BlockOpenRequest) ProtoMessage() {} +func (*BlockOpenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{2} +} +func (m *BlockOpenRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockOpenRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockOpenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockOpenRequest.Merge(m, src) +} +func (m *BlockOpenRequest) XXX_Size() int { + return m.Size() +} +func (m *BlockOpenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BlockOpenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockOpenRequest proto.InternalMessageInfo + +func (m *BlockOpenRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type BlockOpenResponse struct { + Error *BlockOpenResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockHeader *BlockHeader `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` +} + +func (m *BlockOpenResponse) Reset() { *m = BlockOpenResponse{} } +func (m *BlockOpenResponse) String() string { return proto.CompactTextString(m) } +func (*BlockOpenResponse) ProtoMessage() {} +func (*BlockOpenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{3} +} +func (m *BlockOpenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockOpenResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockOpenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockOpenResponse.Merge(m, src) +} +func (m *BlockOpenResponse) XXX_Size() int { + return m.Size() +} +func (m *BlockOpenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BlockOpenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockOpenResponse proto.InternalMessageInfo + +func (m *BlockOpenResponse) GetError() *BlockOpenResponse_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *BlockOpenResponse) GetBlockHeader() *BlockHeader { + if m != nil { + return m.BlockHeader + } + return nil +} + +type BlockOpenResponse_Error struct { + Code BlockOpenResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockOpenResponse_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *BlockOpenResponse_Error) Reset() { *m = BlockOpenResponse_Error{} } +func (m *BlockOpenResponse_Error) String() string { return proto.CompactTextString(m) } +func (*BlockOpenResponse_Error) ProtoMessage() {} +func (*BlockOpenResponse_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{3, 0} +} +func (m *BlockOpenResponse_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockOpenResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockOpenResponse_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockOpenResponse_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockOpenResponse_Error.Merge(m, src) +} +func (m *BlockOpenResponse_Error) XXX_Size() int { + return m.Size() +} +func (m *BlockOpenResponse_Error) XXX_DiscardUnknown() { + xxx_messageInfo_BlockOpenResponse_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockOpenResponse_Error proto.InternalMessageInfo + +func (m *BlockOpenResponse_Error) GetCode() BlockOpenResponse_Error_Code { + if m != nil { + return m.Code + } + return BlockOpenResponse_Error_NULL +} + +func (m *BlockOpenResponse_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type BlockCreateRequest struct { + Type BlockType `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.BlockType" json:"type,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` +} + +func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } +func (m *BlockCreateRequest) String() string { return proto.CompactTextString(m) } +func (*BlockCreateRequest) ProtoMessage() {} +func (*BlockCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{4} +} +func (m *BlockCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockCreateRequest.Merge(m, src) +} +func (m *BlockCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *BlockCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BlockCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockCreateRequest proto.InternalMessageInfo + +func (m *BlockCreateRequest) GetType() BlockType { + if m != nil { + return m.Type + } + return BlockType_DASHBOARD +} + +func (m *BlockCreateRequest) GetContextBlockId() string { + if m != nil { + return m.ContextBlockId + } + return "" +} + +type BlockCreateResponse struct { + Error *BlockCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *BlockCreateResponse) Reset() { *m = BlockCreateResponse{} } +func (m *BlockCreateResponse) String() string { return proto.CompactTextString(m) } +func (*BlockCreateResponse) ProtoMessage() {} +func (*BlockCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{5} +} +func (m *BlockCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockCreateResponse.Merge(m, src) +} +func (m *BlockCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *BlockCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BlockCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockCreateResponse proto.InternalMessageInfo + +func (m *BlockCreateResponse) GetError() *BlockCreateResponse_Error { + if m != nil { + return m.Error + } + return nil +} + +type BlockCreateResponse_Error struct { + Code BlockCreateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockCreateResponse_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *BlockCreateResponse_Error) Reset() { *m = BlockCreateResponse_Error{} } +func (m *BlockCreateResponse_Error) String() string { return proto.CompactTextString(m) } +func (*BlockCreateResponse_Error) ProtoMessage() {} +func (*BlockCreateResponse_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{5, 0} +} +func (m *BlockCreateResponse_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockCreateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockCreateResponse_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockCreateResponse_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockCreateResponse_Error.Merge(m, src) +} +func (m *BlockCreateResponse_Error) XXX_Size() int { + return m.Size() +} +func (m *BlockCreateResponse_Error) XXX_DiscardUnknown() { + xxx_messageInfo_BlockCreateResponse_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockCreateResponse_Error proto.InternalMessageInfo + +func (m *BlockCreateResponse_Error) GetCode() BlockCreateResponse_Error_Code { + if m != nil { + return m.Code + } + return BlockCreateResponse_Error_NULL +} + +func (m *BlockCreateResponse_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type BlockUpdateRequest struct { + Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` +} + +func (m *BlockUpdateRequest) Reset() { *m = BlockUpdateRequest{} } +func (m *BlockUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*BlockUpdateRequest) ProtoMessage() {} +func (*BlockUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{6} +} +func (m *BlockUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockUpdateRequest.Merge(m, src) +} +func (m *BlockUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *BlockUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BlockUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockUpdateRequest proto.InternalMessageInfo + +func (m *BlockUpdateRequest) GetChanges() *BlockChanges { + if m != nil { + return m.Changes + } + return nil +} + +type BlockUpdateResponse struct { + Error *BlockUpdateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *BlockUpdateResponse) Reset() { *m = BlockUpdateResponse{} } +func (m *BlockUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*BlockUpdateResponse) ProtoMessage() {} +func (*BlockUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{7} +} +func (m *BlockUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockUpdateResponse.Merge(m, src) +} +func (m *BlockUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *BlockUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BlockUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockUpdateResponse proto.InternalMessageInfo + +func (m *BlockUpdateResponse) GetError() *BlockUpdateResponse_Error { + if m != nil { + return m.Error + } + return nil +} + +type BlockUpdateResponse_Error struct { + Code BlockUpdateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockUpdateResponse_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *BlockUpdateResponse_Error) Reset() { *m = BlockUpdateResponse_Error{} } +func (m *BlockUpdateResponse_Error) String() string { return proto.CompactTextString(m) } +func (*BlockUpdateResponse_Error) ProtoMessage() {} +func (*BlockUpdateResponse_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_45d3ea291059030c, []int{7, 0} +} +func (m *BlockUpdateResponse_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockUpdateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockUpdateResponse_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockUpdateResponse_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockUpdateResponse_Error.Merge(m, src) +} +func (m *BlockUpdateResponse_Error) XXX_Size() int { + return m.Size() +} +func (m *BlockUpdateResponse_Error) XXX_DiscardUnknown() { + xxx_messageInfo_BlockUpdateResponse_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockUpdateResponse_Error proto.InternalMessageInfo + +func (m *BlockUpdateResponse_Error) GetCode() BlockUpdateResponse_Error_Code { + if m != nil { + return m.Code + } + return BlockUpdateResponse_Error_NULL +} + +func (m *BlockUpdateResponse_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func init() { + proto.RegisterEnum("anytype.BlockHistoryMoveResponse_Error_Code", BlockHistoryMoveResponse_Error_Code_name, BlockHistoryMoveResponse_Error_Code_value) + proto.RegisterEnum("anytype.BlockOpenResponse_Error_Code", BlockOpenResponse_Error_Code_name, BlockOpenResponse_Error_Code_value) + proto.RegisterEnum("anytype.BlockCreateResponse_Error_Code", BlockCreateResponse_Error_Code_name, BlockCreateResponse_Error_Code_value) + proto.RegisterEnum("anytype.BlockUpdateResponse_Error_Code", BlockUpdateResponse_Error_Code_name, BlockUpdateResponse_Error_Code_value) + proto.RegisterType((*BlockHistoryMoveRequest)(nil), "anytype.BlockHistoryMoveRequest") + proto.RegisterType((*BlockHistoryMoveResponse)(nil), "anytype.BlockHistoryMoveResponse") + proto.RegisterType((*BlockHistoryMoveResponse_Error)(nil), "anytype.BlockHistoryMoveResponse.Error") + proto.RegisterType((*BlockOpenRequest)(nil), "anytype.BlockOpenRequest") + proto.RegisterType((*BlockOpenResponse)(nil), "anytype.BlockOpenResponse") + proto.RegisterType((*BlockOpenResponse_Error)(nil), "anytype.BlockOpenResponse.Error") + proto.RegisterType((*BlockCreateRequest)(nil), "anytype.BlockCreateRequest") + proto.RegisterType((*BlockCreateResponse)(nil), "anytype.BlockCreateResponse") + proto.RegisterType((*BlockCreateResponse_Error)(nil), "anytype.BlockCreateResponse.Error") + proto.RegisterType((*BlockUpdateRequest)(nil), "anytype.BlockUpdateRequest") + proto.RegisterType((*BlockUpdateResponse)(nil), "anytype.BlockUpdateResponse") + proto.RegisterType((*BlockUpdateResponse_Error)(nil), "anytype.BlockUpdateResponse.Error") +} + +func init() { proto.RegisterFile("block-commands.proto", fileDescriptor_45d3ea291059030c) } + +var fileDescriptor_45d3ea291059030c = []byte{ + // 522 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x41, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0x33, 0xdb, 0xd4, 0xb6, 0x2f, 0x36, 0x6c, 0xc7, 0x8a, 0x21, 0xc8, 0x12, 0x06, 0x6c, + 0x7b, 0xd0, 0x15, 0x22, 0x14, 0x45, 0x04, 0x9b, 0x34, 0xd2, 0x62, 0xbb, 0x2b, 0x43, 0xa2, 0xe0, + 0x25, 0x6c, 0x76, 0x06, 0x5d, 0x34, 0x3b, 0xeb, 0xec, 0x5a, 0xcd, 0x87, 0x10, 0x3c, 0x8a, 0x07, + 0xbf, 0x83, 0xdf, 0xc2, 0x63, 0x8f, 0x1e, 0x25, 0xb9, 0xfa, 0x21, 0x64, 0x67, 0xb7, 0x71, 0x27, + 0x5a, 0x9a, 0x16, 0x7a, 0xdc, 0xf7, 0xfe, 0xef, 0xbd, 0xff, 0xfb, 0xcd, 0x63, 0x61, 0x7d, 0xf0, + 0x56, 0xf8, 0x6f, 0xee, 0xf8, 0x62, 0x38, 0xf4, 0x42, 0x16, 0xdb, 0x91, 0x14, 0x89, 0xc0, 0x4b, + 0x5e, 0x38, 0x4a, 0x46, 0x11, 0xaf, 0x57, 0x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, 0x5b, 0xe8, 0xd7, 0xd8, 0x42, 0x9f, 0x27, 0x56, 0xe9, 0x78, 0x62, 0x95, 0x7e, + 0x4e, 0xac, 0xd2, 0x4b, 0x23, 0x1a, 0x0c, 0xae, 0xa8, 0x3f, 0xef, 0xbd, 0x3f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x7c, 0x2e, 0x08, 0xca, 0xa7, 0x05, 0x00, 0x00, +} + +func (m *BlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHistoryMoveRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHistoryMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MoveForward { + i-- + if m.MoveForward { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.ContextBlockId) > 0 { + i -= len(m.ContextBlockId) + copy(dAtA[i:], m.ContextBlockId) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.ContextBlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockHistoryMoveResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHistoryMoveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHistoryMoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockHistoryMoveResponse_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHistoryMoveResponse_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHistoryMoveResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockOpenRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockOpenResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockOpenResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeader != nil { + { + size, err := m.BlockHeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockOpenResponse_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockOpenResponse_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockOpenResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BlockCreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockCreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContextBlockId) > 0 { + i -= len(m.ContextBlockId) + copy(dAtA[i:], m.ContextBlockId) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.ContextBlockId))) + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarintBlockCommands(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BlockCreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockCreateResponse_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockCreateResponse_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockCreateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BlockUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Changes != nil { + { + size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockUpdateResponse_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockUpdateResponse_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockUpdateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintBlockCommands(dAtA []byte, offset int, v uint64) int { + offset -= sovBlockCommands(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *BlockHistoryMoveRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + l = len(m.ContextBlockId) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + if m.MoveForward { + n += 2 + } + return n +} + +func (m *BlockHistoryMoveResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockHistoryMoveResponse_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovBlockCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockOpenRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockOpenResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovBlockCommands(uint64(l)) + } + if m.BlockHeader != nil { + l = m.BlockHeader.Size() + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockOpenResponse_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovBlockCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockCreateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sovBlockCommands(uint64(m.Type)) + } + l = len(m.ContextBlockId) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockCreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockCreateResponse_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovBlockCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Changes != nil { + l = m.Changes.Size() + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockUpdateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func (m *BlockUpdateResponse_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovBlockCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovBlockCommands(uint64(l)) + } + return n +} + +func sovBlockCommands(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBlockCommands(x uint64) (n int) { + return sovBlockCommands(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *BlockHistoryMoveRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHistoryMoveRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHistoryMoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContextBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MoveForward", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MoveForward = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHistoryMoveResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHistoryMoveResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHistoryMoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &BlockHistoryMoveResponse_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHistoryMoveResponse_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= BlockHistoryMoveResponse_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockOpenRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockOpenRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockOpenRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockOpenResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockOpenResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockOpenResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &BlockOpenResponse_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeader", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BlockHeader == nil { + m.BlockHeader = &BlockHeader{} + } + if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockOpenResponse_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= BlockOpenResponse_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockCreateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockCreateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= BlockType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContextBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockCreateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &BlockCreateResponse_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockCreateResponse_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= BlockCreateResponse_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockUpdateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockUpdateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Changes == nil { + m.Changes = &BlockChanges{} + } + if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockUpdateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockUpdateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &BlockUpdateResponse_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockUpdateResponse_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= BlockUpdateResponse_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBlockCommands(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockCommands + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBlockCommands + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBlockCommands + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBlockCommands + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBlockCommands = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBlockCommands = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBlockCommands = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/block.pb.go b/pb/block.pb.go index 00338f953..7815a4a1d 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -68,121 +68,6 @@ func (BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8e550b1f5926e92d, []int{0} } -type BlockHistoryMoveResponse_Error_Code int32 - -const ( - BlockHistoryMoveResponse_Error_NULL BlockHistoryMoveResponse_Error_Code = 0 - BlockHistoryMoveResponse_Error_UNKNOWN_ERROR BlockHistoryMoveResponse_Error_Code = 1 - BlockHistoryMoveResponse_Error_BAD_INPUT BlockHistoryMoveResponse_Error_Code = 2 - BlockHistoryMoveResponse_Error_CAN_NOT_MOVE BlockHistoryMoveResponse_Error_Code = 3 -) - -var BlockHistoryMoveResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "CAN_NOT_MOVE", -} - -var BlockHistoryMoveResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "CAN_NOT_MOVE": 3, -} - -func (x BlockHistoryMoveResponse_Error_Code) String() string { - return proto.EnumName(BlockHistoryMoveResponse_Error_Code_name, int32(x)) -} - -func (BlockHistoryMoveResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1, 0, 0} -} - -type BlockOpenResponse_Error_Code int32 - -const ( - BlockOpenResponse_Error_NULL BlockOpenResponse_Error_Code = 0 - BlockOpenResponse_Error_UNKNOWN_ERROR BlockOpenResponse_Error_Code = 1 - BlockOpenResponse_Error_BAD_INPUT BlockOpenResponse_Error_Code = 2 -) - -var BlockOpenResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var BlockOpenResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x BlockOpenResponse_Error_Code) String() string { - return proto.EnumName(BlockOpenResponse_Error_Code_name, int32(x)) -} - -func (BlockOpenResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3, 0, 0} -} - -type BlockCreateResponse_Error_Code int32 - -const ( - BlockCreateResponse_Error_NULL BlockCreateResponse_Error_Code = 0 - BlockCreateResponse_Error_UNKNOWN_ERROR BlockCreateResponse_Error_Code = 1 - BlockCreateResponse_Error_BAD_INPUT BlockCreateResponse_Error_Code = 2 -) - -var BlockCreateResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var BlockCreateResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x BlockCreateResponse_Error_Code) String() string { - return proto.EnumName(BlockCreateResponse_Error_Code_name, int32(x)) -} - -func (BlockCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5, 0, 0} -} - -type BlockUpdateResponse_Error_Code int32 - -const ( - BlockUpdateResponse_Error_NULL BlockUpdateResponse_Error_Code = 0 - BlockUpdateResponse_Error_UNKNOWN_ERROR BlockUpdateResponse_Error_Code = 1 - BlockUpdateResponse_Error_BAD_INPUT BlockUpdateResponse_Error_Code = 2 -) - -var BlockUpdateResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var BlockUpdateResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x BlockUpdateResponse_Error_Code) String() string { - return proto.EnumName(BlockUpdateResponse_Error_Code_name, int32(x)) -} - -func (BlockUpdateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{7, 0, 0} -} - type BlockContentPage_Style int32 const ( @@ -211,7 +96,7 @@ func (x BlockContentPage_Style) String() string { } func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24, 0} + return fileDescriptor_8e550b1f5926e92d, []int{16, 0} } type BlockContentDashboard_Style int32 @@ -233,7 +118,7 @@ func (x BlockContentDashboard_Style) String() string { } func (BlockContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27, 0} + return fileDescriptor_8e550b1f5926e92d, []int{19, 0} } type BlockContentText_Style int32 @@ -270,7 +155,7 @@ func (x BlockContentText_Style) String() string { } func (BlockContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29, 0} + return fileDescriptor_8e550b1f5926e92d, []int{21, 0} } type BlockContentText_MarkerType int32 @@ -298,7 +183,7 @@ func (x BlockContentText_MarkerType) String() string { } func (BlockContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29, 1} + return fileDescriptor_8e550b1f5926e92d, []int{21, 1} } type BlockContentText_Mark_Type int32 @@ -332,599 +217,7 @@ func (x BlockContentText_Mark_Type) String() string { } func (BlockContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29, 1, 0} -} - -type BlockHistoryMoveRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` - MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` -} - -func (m *BlockHistoryMoveRequest) Reset() { *m = BlockHistoryMoveRequest{} } -func (m *BlockHistoryMoveRequest) String() string { return proto.CompactTextString(m) } -func (*BlockHistoryMoveRequest) ProtoMessage() {} -func (*BlockHistoryMoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{0} -} -func (m *BlockHistoryMoveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHistoryMoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHistoryMoveRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHistoryMoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHistoryMoveRequest.Merge(m, src) -} -func (m *BlockHistoryMoveRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockHistoryMoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHistoryMoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHistoryMoveRequest proto.InternalMessageInfo - -func (m *BlockHistoryMoveRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *BlockHistoryMoveRequest) GetContextBlockId() string { - if m != nil { - return m.ContextBlockId - } - return "" -} - -func (m *BlockHistoryMoveRequest) GetMoveForward() bool { - if m != nil { - return m.MoveForward - } - return false -} - -type BlockHistoryMoveResponse struct { - Error *BlockHistoryMoveResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *BlockHistoryMoveResponse) Reset() { *m = BlockHistoryMoveResponse{} } -func (m *BlockHistoryMoveResponse) String() string { return proto.CompactTextString(m) } -func (*BlockHistoryMoveResponse) ProtoMessage() {} -func (*BlockHistoryMoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1} -} -func (m *BlockHistoryMoveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHistoryMoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHistoryMoveResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHistoryMoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHistoryMoveResponse.Merge(m, src) -} -func (m *BlockHistoryMoveResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockHistoryMoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHistoryMoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHistoryMoveResponse proto.InternalMessageInfo - -func (m *BlockHistoryMoveResponse) GetError() *BlockHistoryMoveResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type BlockHistoryMoveResponse_Error struct { - Code BlockHistoryMoveResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockHistoryMoveResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockHistoryMoveResponse_Error) Reset() { *m = BlockHistoryMoveResponse_Error{} } -func (m *BlockHistoryMoveResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockHistoryMoveResponse_Error) ProtoMessage() {} -func (*BlockHistoryMoveResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1, 0} -} -func (m *BlockHistoryMoveResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHistoryMoveResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHistoryMoveResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHistoryMoveResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHistoryMoveResponse_Error.Merge(m, src) -} -func (m *BlockHistoryMoveResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockHistoryMoveResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHistoryMoveResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHistoryMoveResponse_Error proto.InternalMessageInfo - -func (m *BlockHistoryMoveResponse_Error) GetCode() BlockHistoryMoveResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockHistoryMoveResponse_Error_NULL -} - -func (m *BlockHistoryMoveResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type BlockOpenRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *BlockOpenRequest) Reset() { *m = BlockOpenRequest{} } -func (m *BlockOpenRequest) String() string { return proto.CompactTextString(m) } -func (*BlockOpenRequest) ProtoMessage() {} -func (*BlockOpenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{2} -} -func (m *BlockOpenRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockOpenRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockOpenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockOpenRequest.Merge(m, src) -} -func (m *BlockOpenRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockOpenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockOpenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockOpenRequest proto.InternalMessageInfo - -func (m *BlockOpenRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type BlockOpenResponse struct { - Error *BlockOpenResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockHeader *BlockHeader `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` -} - -func (m *BlockOpenResponse) Reset() { *m = BlockOpenResponse{} } -func (m *BlockOpenResponse) String() string { return proto.CompactTextString(m) } -func (*BlockOpenResponse) ProtoMessage() {} -func (*BlockOpenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3} -} -func (m *BlockOpenResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockOpenResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockOpenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockOpenResponse.Merge(m, src) -} -func (m *BlockOpenResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockOpenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockOpenResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockOpenResponse proto.InternalMessageInfo - -func (m *BlockOpenResponse) GetError() *BlockOpenResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *BlockOpenResponse) GetBlockHeader() *BlockHeader { - if m != nil { - return m.BlockHeader - } - return nil -} - -type BlockOpenResponse_Error struct { - Code BlockOpenResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockOpenResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockOpenResponse_Error) Reset() { *m = BlockOpenResponse_Error{} } -func (m *BlockOpenResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockOpenResponse_Error) ProtoMessage() {} -func (*BlockOpenResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3, 0} -} -func (m *BlockOpenResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockOpenResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockOpenResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockOpenResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockOpenResponse_Error.Merge(m, src) -} -func (m *BlockOpenResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockOpenResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockOpenResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockOpenResponse_Error proto.InternalMessageInfo - -func (m *BlockOpenResponse_Error) GetCode() BlockOpenResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockOpenResponse_Error_NULL -} - -func (m *BlockOpenResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type BlockCreateRequest struct { - Type BlockType `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.BlockType" json:"type,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` -} - -func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } -func (m *BlockCreateRequest) String() string { return proto.CompactTextString(m) } -func (*BlockCreateRequest) ProtoMessage() {} -func (*BlockCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{4} -} -func (m *BlockCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreateRequest.Merge(m, src) -} -func (m *BlockCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreateRequest proto.InternalMessageInfo - -func (m *BlockCreateRequest) GetType() BlockType { - if m != nil { - return m.Type - } - return BlockType_DASHBOARD -} - -func (m *BlockCreateRequest) GetContextBlockId() string { - if m != nil { - return m.ContextBlockId - } - return "" -} - -type BlockCreateResponse struct { - Error *BlockCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *BlockCreateResponse) Reset() { *m = BlockCreateResponse{} } -func (m *BlockCreateResponse) String() string { return proto.CompactTextString(m) } -func (*BlockCreateResponse) ProtoMessage() {} -func (*BlockCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5} -} -func (m *BlockCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreateResponse.Merge(m, src) -} -func (m *BlockCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreateResponse proto.InternalMessageInfo - -func (m *BlockCreateResponse) GetError() *BlockCreateResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type BlockCreateResponse_Error struct { - Code BlockCreateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockCreateResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockCreateResponse_Error) Reset() { *m = BlockCreateResponse_Error{} } -func (m *BlockCreateResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockCreateResponse_Error) ProtoMessage() {} -func (*BlockCreateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5, 0} -} -func (m *BlockCreateResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreateResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreateResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreateResponse_Error.Merge(m, src) -} -func (m *BlockCreateResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockCreateResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreateResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreateResponse_Error proto.InternalMessageInfo - -func (m *BlockCreateResponse_Error) GetCode() BlockCreateResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockCreateResponse_Error_NULL -} - -func (m *BlockCreateResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type BlockUpdateRequest struct { - Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` -} - -func (m *BlockUpdateRequest) Reset() { *m = BlockUpdateRequest{} } -func (m *BlockUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*BlockUpdateRequest) ProtoMessage() {} -func (*BlockUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{6} -} -func (m *BlockUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdateRequest.Merge(m, src) -} -func (m *BlockUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdateRequest proto.InternalMessageInfo - -func (m *BlockUpdateRequest) GetChanges() *BlockChanges { - if m != nil { - return m.Changes - } - return nil -} - -type BlockUpdateResponse struct { - Error *BlockUpdateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *BlockUpdateResponse) Reset() { *m = BlockUpdateResponse{} } -func (m *BlockUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*BlockUpdateResponse) ProtoMessage() {} -func (*BlockUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{7} -} -func (m *BlockUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdateResponse.Merge(m, src) -} -func (m *BlockUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdateResponse proto.InternalMessageInfo - -func (m *BlockUpdateResponse) GetError() *BlockUpdateResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type BlockUpdateResponse_Error struct { - Code BlockUpdateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockUpdateResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockUpdateResponse_Error) Reset() { *m = BlockUpdateResponse_Error{} } -func (m *BlockUpdateResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockUpdateResponse_Error) ProtoMessage() {} -func (*BlockUpdateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{7, 0} -} -func (m *BlockUpdateResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdateResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdateResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdateResponse_Error.Merge(m, src) -} -func (m *BlockUpdateResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdateResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdateResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdateResponse_Error proto.InternalMessageInfo - -func (m *BlockUpdateResponse_Error) GetCode() BlockUpdateResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockUpdateResponse_Error_NULL -} - -func (m *BlockUpdateResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" + return fileDescriptor_8e550b1f5926e92d, []int{21, 1, 0} } // call @@ -936,7 +229,7 @@ func (m *BlockShow) Reset() { *m = BlockShow{} } func (m *BlockShow) String() string { return proto.CompactTextString(m) } func (*BlockShow) ProtoMessage() {} func (*BlockShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{8} + return fileDescriptor_8e550b1f5926e92d, []int{0} } func (m *BlockShow) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -980,7 +273,7 @@ func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } func (*BlockUpdate) ProtoMessage() {} func (*BlockUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{9} + return fileDescriptor_8e550b1f5926e92d, []int{1} } func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1024,7 +317,7 @@ func (m *BlockCreate) Reset() { *m = BlockCreate{} } func (m *BlockCreate) String() string { return proto.CompactTextString(m) } func (*BlockCreate) ProtoMessage() {} func (*BlockCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{10} + return fileDescriptor_8e550b1f5926e92d, []int{2} } func (m *BlockCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1069,7 +362,7 @@ func (m *BlockStructureChange) Reset() { *m = BlockStructureChange{} } func (m *BlockStructureChange) String() string { return proto.CompactTextString(m) } func (*BlockStructureChange) ProtoMessage() {} func (*BlockStructureChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{11} + return fileDescriptor_8e550b1f5926e92d, []int{3} } func (m *BlockStructureChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1128,7 +421,7 @@ func (m *BlockContentTextChange) Reset() { *m = BlockContentTextChange{} func (m *BlockContentTextChange) String() string { return proto.CompactTextString(m) } func (*BlockContentTextChange) ProtoMessage() {} func (*BlockContentTextChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{12} + return fileDescriptor_8e550b1f5926e92d, []int{4} } func (m *BlockContentTextChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1274,7 +567,7 @@ func (m *BlockContentPageChange) Reset() { *m = BlockContentPageChange{} func (m *BlockContentPageChange) String() string { return proto.CompactTextString(m) } func (*BlockContentPageChange) ProtoMessage() {} func (*BlockContentPageChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{13} + return fileDescriptor_8e550b1f5926e92d, []int{5} } func (m *BlockContentPageChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1374,7 +667,7 @@ func (m *BlockHeaderChange) Reset() { *m = BlockHeaderChange{} } func (m *BlockHeaderChange) String() string { return proto.CompactTextString(m) } func (*BlockHeaderChange) ProtoMessage() {} func (*BlockHeaderChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{14} + return fileDescriptor_8e550b1f5926e92d, []int{6} } func (m *BlockHeaderChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1496,7 +789,7 @@ func (m *BlockContentDashboardChange) Reset() { *m = BlockContentDashboa func (m *BlockContentDashboardChange) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboardChange) ProtoMessage() {} func (*BlockContentDashboardChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{15} + return fileDescriptor_8e550b1f5926e92d, []int{7} } func (m *BlockContentDashboardChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1596,7 +889,7 @@ func (m *BlockAtomicChange) Reset() { *m = BlockAtomicChange{} } func (m *BlockAtomicChange) String() string { return proto.CompactTextString(m) } func (*BlockAtomicChange) ProtoMessage() {} func (*BlockAtomicChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{16} + return fileDescriptor_8e550b1f5926e92d, []int{8} } func (m *BlockAtomicChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1709,7 +1002,7 @@ func (m *BlockChanges) Reset() { *m = BlockChanges{} } func (m *BlockChanges) String() string { return proto.CompactTextString(m) } func (*BlockChanges) ProtoMessage() {} func (*BlockChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{17} + return fileDescriptor_8e550b1f5926e92d, []int{9} } func (m *BlockChanges) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1761,7 +1054,7 @@ func (m *Block) Reset() { *m = Block{} } func (m *Block) String() string { return proto.CompactTextString(m) } func (*Block) ProtoMessage() {} func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} + return fileDescriptor_8e550b1f5926e92d, []int{10} } func (m *Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1901,7 +1194,7 @@ func (m *BlockHeader) Reset() { *m = BlockHeader{} } func (m *BlockHeader) String() string { return proto.CompactTextString(m) } func (*BlockHeader) ProtoMessage() {} func (*BlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} + return fileDescriptor_8e550b1f5926e92d, []int{11} } func (m *BlockHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1967,7 +1260,7 @@ func (m *BlockLayout) Reset() { *m = BlockLayout{} } func (m *BlockLayout) String() string { return proto.CompactTextString(m) } func (*BlockLayout) ProtoMessage() {} func (*BlockLayout) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} + return fileDescriptor_8e550b1f5926e92d, []int{12} } func (m *BlockLayout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2015,7 +1308,7 @@ func (m *BlockPermissions) Reset() { *m = BlockPermissions{} } func (m *BlockPermissions) String() string { return proto.CompactTextString(m) } func (*BlockPermissions) ProtoMessage() {} func (*BlockPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} + return fileDescriptor_8e550b1f5926e92d, []int{13} } func (m *BlockPermissions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2087,7 +1380,7 @@ func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } func (*BlockHeadersList) ProtoMessage() {} func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} + return fileDescriptor_8e550b1f5926e92d, []int{14} } func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2131,7 +1424,7 @@ func (m *BlocksList) Reset() { *m = BlocksList{} } func (m *BlocksList) String() string { return proto.CompactTextString(m) } func (*BlocksList) ProtoMessage() {} func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} + return fileDescriptor_8e550b1f5926e92d, []int{15} } func (m *BlocksList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2177,7 +1470,7 @@ func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } func (*BlockContentPage) ProtoMessage() {} func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24} + return fileDescriptor_8e550b1f5926e92d, []int{16} } func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2235,7 +1528,7 @@ func (m *BlockStructure) Reset() { *m = BlockStructure{} } func (m *BlockStructure) String() string { return proto.CompactTextString(m) } func (*BlockStructure) ProtoMessage() {} func (*BlockStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25} + return fileDescriptor_8e550b1f5926e92d, []int{17} } func (m *BlockStructure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2279,7 +1572,7 @@ func (m *BlockChildren) Reset() { *m = BlockChildren{} } func (m *BlockChildren) String() string { return proto.CompactTextString(m) } func (*BlockChildren) ProtoMessage() {} func (*BlockChildren) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26} + return fileDescriptor_8e550b1f5926e92d, []int{18} } func (m *BlockChildren) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2325,7 +1618,7 @@ func (m *BlockContentDashboard) Reset() { *m = BlockContentDashboard{} } func (m *BlockContentDashboard) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboard) ProtoMessage() {} func (*BlockContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27} + return fileDescriptor_8e550b1f5926e92d, []int{19} } func (m *BlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2382,7 +1675,7 @@ func (m *BlockContentDataview) Reset() { *m = BlockContentDataview{} } func (m *BlockContentDataview) String() string { return proto.CompactTextString(m) } func (*BlockContentDataview) ProtoMessage() {} func (*BlockContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{28} + return fileDescriptor_8e550b1f5926e92d, []int{20} } func (m *BlockContentDataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2425,7 +1718,7 @@ func (m *BlockContentText) Reset() { *m = BlockContentText{} } func (m *BlockContentText) String() string { return proto.CompactTextString(m) } func (*BlockContentText) ProtoMessage() {} func (*BlockContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29} + return fileDescriptor_8e550b1f5926e92d, []int{21} } func (m *BlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2511,7 +1804,7 @@ func (m *BlockContentText_Marks) Reset() { *m = BlockContentText_Marks{} func (m *BlockContentText_Marks) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Marks) ProtoMessage() {} func (*BlockContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29, 0} + return fileDescriptor_8e550b1f5926e92d, []int{21, 0} } func (m *BlockContentText_Marks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2557,7 +1850,7 @@ func (m *BlockContentText_Mark) Reset() { *m = BlockContentText_Mark{} } func (m *BlockContentText_Mark) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Mark) ProtoMessage() {} func (*BlockContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{29, 1} + return fileDescriptor_8e550b1f5926e92d, []int{21, 1} } func (m *BlockContentText_Mark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2615,7 +1908,7 @@ func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } func (*BlockContentMedia) ProtoMessage() {} func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{30} + return fileDescriptor_8e550b1f5926e92d, []int{22} } func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2660,7 +1953,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{31} + return fileDescriptor_8e550b1f5926e92d, []int{23} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2705,27 +1998,11 @@ func (m *Range) GetTo() int32 { func init() { proto.RegisterEnum("anytype.BlockType", BlockType_name, BlockType_value) - proto.RegisterEnum("anytype.BlockHistoryMoveResponse_Error_Code", BlockHistoryMoveResponse_Error_Code_name, BlockHistoryMoveResponse_Error_Code_value) - proto.RegisterEnum("anytype.BlockOpenResponse_Error_Code", BlockOpenResponse_Error_Code_name, BlockOpenResponse_Error_Code_value) - proto.RegisterEnum("anytype.BlockCreateResponse_Error_Code", BlockCreateResponse_Error_Code_name, BlockCreateResponse_Error_Code_value) - proto.RegisterEnum("anytype.BlockUpdateResponse_Error_Code", BlockUpdateResponse_Error_Code_name, BlockUpdateResponse_Error_Code_value) proto.RegisterEnum("anytype.BlockContentPage_Style", BlockContentPage_Style_name, BlockContentPage_Style_value) proto.RegisterEnum("anytype.BlockContentDashboard_Style", BlockContentDashboard_Style_name, BlockContentDashboard_Style_value) proto.RegisterEnum("anytype.BlockContentText_Style", BlockContentText_Style_name, BlockContentText_Style_value) proto.RegisterEnum("anytype.BlockContentText_MarkerType", BlockContentText_MarkerType_name, BlockContentText_MarkerType_value) proto.RegisterEnum("anytype.BlockContentText_Mark_Type", BlockContentText_Mark_Type_name, BlockContentText_Mark_Type_value) - proto.RegisterType((*BlockHistoryMoveRequest)(nil), "anytype.BlockHistoryMoveRequest") - proto.RegisterType((*BlockHistoryMoveResponse)(nil), "anytype.BlockHistoryMoveResponse") - proto.RegisterType((*BlockHistoryMoveResponse_Error)(nil), "anytype.BlockHistoryMoveResponse.Error") - proto.RegisterType((*BlockOpenRequest)(nil), "anytype.BlockOpenRequest") - proto.RegisterType((*BlockOpenResponse)(nil), "anytype.BlockOpenResponse") - proto.RegisterType((*BlockOpenResponse_Error)(nil), "anytype.BlockOpenResponse.Error") - proto.RegisterType((*BlockCreateRequest)(nil), "anytype.BlockCreateRequest") - proto.RegisterType((*BlockCreateResponse)(nil), "anytype.BlockCreateResponse") - proto.RegisterType((*BlockCreateResponse_Error)(nil), "anytype.BlockCreateResponse.Error") - proto.RegisterType((*BlockUpdateRequest)(nil), "anytype.BlockUpdateRequest") - proto.RegisterType((*BlockUpdateResponse)(nil), "anytype.BlockUpdateResponse") - proto.RegisterType((*BlockUpdateResponse_Error)(nil), "anytype.BlockUpdateResponse.Error") proto.RegisterType((*BlockShow)(nil), "anytype.BlockShow") proto.RegisterType((*BlockUpdate)(nil), "anytype.BlockUpdate") proto.RegisterType((*BlockCreate)(nil), "anytype.BlockCreate") @@ -2758,560 +2035,100 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1819 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x73, 0xdb, 0xc6, - 0x15, 0x07, 0x40, 0x82, 0x22, 0x1f, 0x25, 0x79, 0xbd, 0x51, 0x14, 0x96, 0x4d, 0x58, 0x0d, 0x9a, - 0xda, 0x9e, 0xda, 0xc3, 0x4c, 0x28, 0x3b, 0xff, 0x5c, 0x7b, 0x4a, 0x8a, 0xb0, 0xc9, 0x11, 0x45, - 0x6a, 0x56, 0x94, 0xdd, 0xe4, 0xa2, 0x81, 0x88, 0x8d, 0x84, 0x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0x7b, 0x26, 0x65, 0xf0, 0xe3, 0x64, 0x34, 0x45, - 0xae, 0x50, 0x59, 0x1e, 0x4d, 0x2a, 0x0e, 0xfc, 0x89, 0x04, 0x71, 0x75, 0xde, 0x35, 0x48, 0x80, - 0x18, 0xc3, 0xf7, 0x10, 0xf2, 0xb6, 0x15, 0x5a, 0x2f, 0x1c, 0xfa, 0xb2, 0xb4, 0x36, 0x8f, 0x90, - 0xb1, 0x3d, 0x21, 0xd4, 0x52, 0x48, 0xac, 0xc0, 0xac, 0x71, 0xa6, 0xac, 0x2f, 0xb1, 0xc6, 0x98, - 0x12, 0x73, 0xa4, 0x06, 0xfa, 0x88, 0xda, 0x8e, 0x55, 0xba, 0x31, 0x8f, 0x1d, 0x52, 0x63, 0x8f, - 0x49, 0xf0, 0xfc, 0xce, 0x06, 0x8c, 0xee, 0x43, 0x6b, 0xe2, 0x9d, 0x87, 0x25, 0x34, 0x0f, 0xc0, - 0x0e, 0x5f, 0x63, 0x74, 0x17, 0x52, 0x8d, 0x02, 0xac, 0x0c, 0xc4, 0x46, 0xc6, 0x0f, 0xaa, 0xac, - 0xa7, 0x92, 0x62, 0x17, 0xdf, 0x42, 0x97, 0x64, 0x24, 0x99, 0x8f, 0x6e, 0x43, 0xee, 0x5b, 0x87, - 0x0e, 0xed, 0xa8, 0x38, 0xdd, 0x88, 0x25, 0xc5, 0x75, 0x25, 0x72, 0x19, 0x3f, 0x4c, 0x27, 0xa3, - 0xec, 0x25, 0xc9, 0x28, 0x95, 0x8a, 0x8c, 0x8f, 0xa4, 0xb3, 0x22, 0xa2, 0x0b, 0x4f, 0x87, 0x3f, - 0xca, 0xe7, 0x45, 0x42, 0x1f, 0x63, 0xc8, 0xfa, 0xd4, 0x12, 0x52, 0x79, 0xc2, 0xc7, 0x6c, 0x8e, - 0xda, 0x8e, 0xb8, 0xbe, 0x79, 0xc2, 0xc7, 0x78, 0x13, 0x72, 0x3e, 0x65, 0x6f, 0x37, 0xf9, 0x8e, - 0x93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 0xe6, 0x4e, 0xac, 0x41, 0xa1, 0x59, 0x3f, 0x68, 0x89, 0xe0, 0x79, 0x12, 0xdd, 0xaf, 0x3f, - 0x35, 0x45, 0x12, 0x6d, 0xd6, 0xfb, 0xf5, 0x67, 0x6d, 0xf3, 0xb9, 0x00, 0xa2, 0x6f, 0xfe, 0xa1, - 0x2f, 0x80, 0x78, 0xd2, 0xee, 0x98, 0x28, 0x8b, 0x8b, 0xb0, 0xb2, 0xdf, 0xde, 0xe9, 0x1f, 0x12, - 0x13, 0xe9, 0x2c, 0xca, 0x67, 0xed, 0xa6, 0xd9, 0x43, 0x39, 0x96, 0x70, 0x49, 0xef, 0x39, 0x5a, - 0x61, 0xa1, 0xec, 0xf4, 0x3a, 0x87, 0x7b, 0x5d, 0x94, 0x6f, 0x7c, 0xf8, 0xaf, 0xd7, 0x15, 0xf5, - 0xd5, 0xeb, 0x8a, 0xfa, 0xd3, 0xeb, 0x8a, 0xfa, 0x97, 0x37, 0x15, 0xe5, 0xd5, 0x9b, 0x8a, 0xf2, - 0x9f, 0x37, 0x15, 0xe5, 0x1b, 0x6d, 0x7c, 0x7c, 0x9c, 0xe3, 0x7f, 0xb2, 0x6e, 0xff, 0x3f, 0x00, - 0x00, 0xff, 0xff, 0xe5, 0xe7, 0x9a, 0x8a, 0x8a, 0x15, 0x00, 0x00, -} - -func (m *BlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHistoryMoveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHistoryMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MoveForward { - i-- - if m.MoveForward { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.ContextBlockId) > 0 { - i -= len(m.ContextBlockId) - copy(dAtA[i:], m.ContextBlockId) - i = encodeVarintBlock(dAtA, i, uint64(len(m.ContextBlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockHistoryMoveResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHistoryMoveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHistoryMoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockHistoryMoveResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHistoryMoveResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHistoryMoveResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockOpenRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockOpenResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockOpenResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BlockHeader != nil { - { - size, err := m.BlockHeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockOpenResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockOpenResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockOpenResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ContextBlockId) > 0 { - i -= len(m.ContextBlockId) - copy(dAtA[i:], m.ContextBlockId) - i = encodeVarintBlock(dAtA, i, uint64(len(m.ContextBlockId))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockCreateResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreateResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Changes != nil { - { - size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdateResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdateResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + // 1485 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x93, 0x12, 0x57, + 0x14, 0xee, 0x6e, 0x68, 0x1e, 0x87, 0x79, 0xb4, 0x37, 0xe3, 0x84, 0x10, 0x25, 0x56, 0xc7, 0xd2, + 0xa9, 0x68, 0x61, 0x39, 0x8f, 0x32, 0xd1, 0x68, 0x15, 0x0c, 0x28, 0xd4, 0x30, 0xc3, 0xd4, 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 0xa6, 0x18, 0x26, 0xc3, 0xcf, 0x36, 0x45, 0xeb, + 0xa0, 0x67, 0xf5, 0x3d, 0xb4, 0xd2, 0xb5, 0x7e, 0x0b, 0x54, 0x96, 0x3b, 0x4a, 0x7c, 0xe9, 0xd8, + 0x43, 0x46, 0x54, 0x31, 0x5b, 0xd3, 0x67, 0xce, 0xb5, 0x59, 0x1a, 0x55, 0xac, 0xb8, 0xf6, 0x77, + 0x63, 0xf1, 0xd5, 0xcd, 0x9c, 0x58, 0x86, 0x74, 0xb9, 0xd8, 0xac, 0xf2, 0xe0, 0x59, 0x13, 0x3d, + 0x2c, 0x3e, 0xa9, 0xf0, 0x26, 0x5a, 0x2e, 0xb6, 0x8a, 0x4f, 0x6b, 0x95, 0x67, 0x3c, 0x11, 0xad, + 0xca, 0x4f, 0x2d, 0x9e, 0x88, 0xc7, 0xb5, 0x7a, 0x45, 0x8b, 0xa3, 0x0c, 0x24, 0x0f, 0x6b, 0xbb, + 0xad, 0x23, 0x5c, 0xd1, 0x54, 0x1a, 0xe5, 0xd3, 0x5a, 0xb9, 0xd2, 0xd0, 0x12, 0xb4, 0xe1, 0xe2, + 0xc6, 0x33, 0x2d, 0x49, 0x43, 0xd9, 0x6d, 0xd4, 0x8f, 0xf6, 0x0f, 0xb4, 0x54, 0xe9, 0xca, 0x9f, + 0x27, 0x79, 0xf9, 0xfd, 0x49, 0x5e, 0xfe, 0x70, 0x92, 0x97, 0x7f, 0x3f, 0xcd, 0x4b, 0xef, 0x4f, + 0xf3, 0xd2, 0xdf, 0xa7, 0x79, 0xe9, 0x85, 0x32, 0x6a, 0xb7, 0x13, 0xec, 0xff, 0x80, 0xad, 0x7f, + 0x03, 0x00, 0x00, 0xff, 0xff, 0xd3, 0xe5, 0xd9, 0xf5, 0x35, 0x10, 0x00, 0x00, } func (m *BlockShow) Marshal() (dAtA []byte, err error) { @@ -4898,188 +3715,6 @@ func encodeVarintBlock(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *BlockHistoryMoveRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.ContextBlockId) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.MoveForward { - n += 2 - } - return n -} - -func (m *BlockHistoryMoveResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockHistoryMoveResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlock(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockOpenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockOpenResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.BlockHeader != nil { - l = m.BlockHeader.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockOpenResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlock(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovBlock(uint64(m.Type)) - } - l = len(m.ContextBlockId) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockCreateResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlock(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Changes != nil { - l = m.Changes.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockUpdateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockUpdateResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlock(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - func (m *BlockShow) Size() (n int) { if m == nil { return 0 @@ -5813,1229 +4448,6 @@ func sovBlock(x uint64) (n int) { func sozBlock(x uint64) (n int) { return sovBlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *BlockHistoryMoveRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHistoryMoveRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHistoryMoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContextBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MoveForward", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.MoveForward = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHistoryMoveResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHistoryMoveResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHistoryMoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockHistoryMoveResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHistoryMoveResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockHistoryMoveResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockOpenRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockOpenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockOpenRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockOpenResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockOpenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockOpenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockOpenResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeader", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BlockHeader == nil { - m.BlockHeader = &BlockHeader{} - } - if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockOpenResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockOpenResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= BlockType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContextBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockCreateResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreateResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockCreateResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockUpdateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Changes == nil { - m.Changes = &BlockChanges{} - } - if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockUpdateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockUpdateResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdateResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockUpdateResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *BlockShow) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pb/edit.pb.go b/pb/edit.pb.go index 169589d8c..431fe01b1 100644 --- a/pb/edit.pb.go +++ b/pb/edit.pb.go @@ -22,6 +22,109 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A opened a block +// 1. User B opens the same block +// 2. User A receives a message about p.1 +type UserBlockJoin struct { + Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *UserBlockJoin) Reset() { *m = UserBlockJoin{} } +func (m *UserBlockJoin) String() string { return proto.CompactTextString(m) } +func (*UserBlockJoin) ProtoMessage() {} +func (*UserBlockJoin) Descriptor() ([]byte, []int) { + return fileDescriptor_f5013c7d48f38d97, []int{0} +} +func (m *UserBlockJoin) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserBlockJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserBlockJoin.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserBlockJoin) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserBlockJoin.Merge(m, src) +} +func (m *UserBlockJoin) XXX_Size() int { + return m.Size() +} +func (m *UserBlockJoin) XXX_DiscardUnknown() { + xxx_messageInfo_UserBlockJoin.DiscardUnknown(m) +} + +var xxx_messageInfo_UserBlockJoin proto.InternalMessageInfo + +func (m *UserBlockJoin) GetAccount() *Account { + if m != nil { + return m.Account + } + return nil +} + +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A and user B opened the same block +// 1. User B closes the block +// 2. User A receives a message about p.1 +type UserBlockLeft struct { + Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *UserBlockLeft) Reset() { *m = UserBlockLeft{} } +func (m *UserBlockLeft) String() string { return proto.CompactTextString(m) } +func (*UserBlockLeft) ProtoMessage() {} +func (*UserBlockLeft) Descriptor() ([]byte, []int) { + return fileDescriptor_f5013c7d48f38d97, []int{1} +} +func (m *UserBlockLeft) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserBlockLeft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserBlockLeft.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserBlockLeft) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserBlockLeft.Merge(m, src) +} +func (m *UserBlockLeft) XXX_Size() int { + return m.Size() +} +func (m *UserBlockLeft) XXX_DiscardUnknown() { + xxx_messageInfo_UserBlockLeft.DiscardUnknown(m) +} + +var xxx_messageInfo_UserBlockLeft proto.InternalMessageInfo + +func (m *UserBlockLeft) GetAccount() *Account { + if m != nil { + return m.Account + } + return nil +} + +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A and user B opened the same block +// 1. User B sets cursor or selects a text region into a text block +// 2. User A receives a message about p.1 type UserBlockTextRange struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` @@ -32,7 +135,7 @@ func (m *UserBlockTextRange) Reset() { *m = UserBlockTextRange{} } func (m *UserBlockTextRange) String() string { return proto.CompactTextString(m) } func (*UserBlockTextRange) ProtoMessage() {} func (*UserBlockTextRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{0} + return fileDescriptor_f5013c7d48f38d97, []int{2} } func (m *UserBlockTextRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -82,94 +185,11 @@ func (m *UserBlockTextRange) GetRange() *Range { return nil } -type UserBlockJoin struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *UserBlockJoin) Reset() { *m = UserBlockJoin{} } -func (m *UserBlockJoin) String() string { return proto.CompactTextString(m) } -func (*UserBlockJoin) ProtoMessage() {} -func (*UserBlockJoin) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{1} -} -func (m *UserBlockJoin) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockJoin.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockJoin) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockJoin.Merge(m, src) -} -func (m *UserBlockJoin) XXX_Size() int { - return m.Size() -} -func (m *UserBlockJoin) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockJoin.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockJoin proto.InternalMessageInfo - -func (m *UserBlockJoin) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -type UserBlockLeft struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *UserBlockLeft) Reset() { *m = UserBlockLeft{} } -func (m *UserBlockLeft) String() string { return proto.CompactTextString(m) } -func (*UserBlockLeft) ProtoMessage() {} -func (*UserBlockLeft) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{2} -} -func (m *UserBlockLeft) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockLeft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockLeft.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockLeft) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockLeft.Merge(m, src) -} -func (m *UserBlockLeft) XXX_Size() int { - return m.Size() -} -func (m *UserBlockLeft) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockLeft.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockLeft proto.InternalMessageInfo - -func (m *UserBlockLeft) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A and user B opened the same block +// 1. User B selects some inner blocks +// 2. User A receives a message about p.1 type UserBlockSelectRange struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` BlockIdsArray []string `protobuf:"bytes,2,rep,name=blockIdsArray,proto3" json:"blockIdsArray,omitempty"` @@ -222,140 +242,32 @@ func (m *UserBlockSelectRange) GetBlockIdsArray() []string { return nil } -type UserBlockFocus struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` -} - -func (m *UserBlockFocus) Reset() { *m = UserBlockFocus{} } -func (m *UserBlockFocus) String() string { return proto.CompactTextString(m) } -func (*UserBlockFocus) ProtoMessage() {} -func (*UserBlockFocus) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{4} -} -func (m *UserBlockFocus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockFocus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockFocus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockFocus) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockFocus.Merge(m, src) -} -func (m *UserBlockFocus) XXX_Size() int { - return m.Size() -} -func (m *UserBlockFocus) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockFocus.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockFocus proto.InternalMessageInfo - -func (m *UserBlockFocus) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -func (m *UserBlockFocus) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - func init() { - proto.RegisterType((*UserBlockTextRange)(nil), "anytype.UserBlockTextRange") proto.RegisterType((*UserBlockJoin)(nil), "anytype.UserBlockJoin") proto.RegisterType((*UserBlockLeft)(nil), "anytype.UserBlockLeft") + proto.RegisterType((*UserBlockTextRange)(nil), "anytype.UserBlockTextRange") proto.RegisterType((*UserBlockSelectRange)(nil), "anytype.UserBlockSelectRange") - proto.RegisterType((*UserBlockFocus)(nil), "anytype.UserBlockFocus") } func init() { proto.RegisterFile("edit.proto", fileDescriptor_f5013c7d48f38d97) } var fileDescriptor_f5013c7d48f38d97 = []byte{ - // 250 bytes of a gzipped FileDescriptorProto + // 236 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xc9, 0x2c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0xe2, 0x4e, 0xca, 0xc9, 0x4f, 0xce, 0x86, 0x88, 0x4a, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, 0xe6, - 0x41, 0x15, 0x29, 0x35, 0x30, 0x72, 0x09, 0x85, 0x16, 0xa7, 0x16, 0x39, 0x81, 0x94, 0x84, 0xa4, - 0x56, 0x94, 0x04, 0x25, 0xe6, 0xa5, 0xa7, 0x0a, 0x69, 0x71, 0xb1, 0x43, 0xd5, 0x49, 0x30, 0x2a, - 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe8, 0x41, 0x4d, 0xd3, 0x73, 0x84, 0x88, 0x07, 0xc1, 0x14, 0x08, - 0x49, 0x70, 0xb1, 0x83, 0x2d, 0xf0, 0x4c, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, - 0x85, 0x54, 0xb8, 0x58, 0x8b, 0x40, 0xc6, 0x49, 0x30, 0x83, 0xcd, 0xe0, 0x83, 0x9b, 0x01, 0xb6, - 0x24, 0x08, 0x22, 0xa9, 0x64, 0xcd, 0xc5, 0x0b, 0x77, 0x81, 0x57, 0x7e, 0x66, 0x1e, 0x29, 0x96, - 0xa3, 0x68, 0xf6, 0x49, 0x4d, 0x2b, 0x21, 0x49, 0x73, 0x06, 0x97, 0x08, 0x5c, 0x73, 0x70, 0x6a, - 0x4e, 0x6a, 0x32, 0x19, 0xbe, 0x57, 0xe1, 0xe2, 0x85, 0x7a, 0xb7, 0xd8, 0xb1, 0xa8, 0x28, 0xb1, - 0x52, 0x82, 0x49, 0x81, 0x59, 0x83, 0x33, 0x08, 0x55, 0x50, 0x29, 0x8c, 0x8b, 0x0f, 0x6e, 0x93, - 0x5b, 0x7e, 0x72, 0x69, 0x31, 0x75, 0x42, 0xd8, 0x49, 0xe6, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, - 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, - 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x71, 0x6c, 0x0c, 0x08, 0x00, 0x00, - 0xff, 0xff, 0x2e, 0xa0, 0x3b, 0x82, 0x16, 0x02, 0x00, 0x00, -} - -func (m *UserBlockTextRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + 0x41, 0x15, 0x29, 0x59, 0x73, 0xf1, 0x86, 0x16, 0xa7, 0x16, 0x39, 0x81, 0x54, 0x78, 0xe5, 0x67, + 0xe6, 0x09, 0x69, 0x71, 0xb1, 0x43, 0x55, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe8, + 0x41, 0xcd, 0xd1, 0x73, 0x84, 0x88, 0x07, 0xc1, 0x14, 0xa0, 0x68, 0xf6, 0x49, 0x4d, 0x2b, 0x21, + 0x49, 0x73, 0x03, 0x23, 0x97, 0x10, 0x5c, 0x77, 0x48, 0x6a, 0x45, 0x49, 0x50, 0x62, 0x5e, 0x7a, + 0x2a, 0x29, 0x46, 0x08, 0x49, 0x70, 0xb1, 0x83, 0xbd, 0xe6, 0x99, 0x22, 0xc1, 0xa4, 0xc0, 0xa8, + 0xc1, 0x19, 0x04, 0xe3, 0x0a, 0xa9, 0x70, 0xb1, 0x16, 0x81, 0x8c, 0x93, 0x60, 0x06, 0x9b, 0xc1, + 0x07, 0x37, 0x03, 0x6c, 0x49, 0x10, 0x44, 0x52, 0x29, 0x83, 0x4b, 0x04, 0xee, 0x82, 0xe0, 0xd4, + 0x9c, 0xd4, 0x64, 0x32, 0xdc, 0xa0, 0xc2, 0xc5, 0x0b, 0xb5, 0xb4, 0xd8, 0xb1, 0xa8, 0x28, 0xb1, + 0x52, 0x82, 0x49, 0x81, 0x59, 0x83, 0x33, 0x08, 0x55, 0xd0, 0x49, 0xe6, 0xc4, 0x23, 0x39, 0xc6, + 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, + 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x71, 0x61, 0x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0x13, 0x3c, 0x53, 0x4b, 0xbe, 0x01, 0x00, 0x00, } func (m *UserBlockJoin) Marshal() (dAtA []byte, err error) { @@ -428,6 +340,60 @@ func (m *UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *UserBlockTextRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEdit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEdit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *UserBlockSelectRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -472,48 +438,6 @@ func (m *UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *UserBlockFocus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserBlockFocus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserBlockFocus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func encodeVarintEdit(dAtA []byte, offset int, v uint64) int { offset -= sovEdit(v) base := offset @@ -525,27 +449,6 @@ func encodeVarintEdit(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *UserBlockTextRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovEdit(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovEdit(uint64(l)) - } - if m.Range != nil { - l = m.Range.Size() - n += 1 + l + sovEdit(uint64(l)) - } - return n -} - func (m *UserBlockJoin) Size() (n int) { if m == nil { return 0 @@ -572,6 +475,27 @@ func (m *UserBlockLeft) Size() (n int) { return n } +func (m *UserBlockTextRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovEdit(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovEdit(uint64(l)) + } + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovEdit(uint64(l)) + } + return n +} + func (m *UserBlockSelectRange) Size() (n int) { if m == nil { return 0 @@ -591,186 +515,12 @@ func (m *UserBlockSelectRange) Size() (n int) { return n } -func (m *UserBlockFocus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovEdit(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovEdit(uint64(l)) - } - return n -} - func sovEdit(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozEdit(x uint64) (n int) { return sovEdit(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *UserBlockTextRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserBlockTextRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserBlockTextRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Range == nil { - m.Range = &Range{} - } - if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *UserBlockJoin) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -949,6 +699,163 @@ func (m *UserBlockLeft) Unmarshal(dAtA []byte) error { } return nil } +func (m *UserBlockTextRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserBlockTextRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserBlockTextRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEdit + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEdit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEdit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEdit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEdit + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEdit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Range == nil { + m.Range = &Range{} + } + if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEdit(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEdit + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEdit + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *UserBlockSelectRange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1070,127 +977,6 @@ func (m *UserBlockSelectRange) Unmarshal(dAtA []byte) error { } return nil } -func (m *UserBlockFocus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserBlockFocus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserBlockFocus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipEdit(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/pb/event.pb.go b/pb/event.pb.go index 575e70e4e..567b4d627 100644 --- a/pb/event.pb.go +++ b/pb/event.pb.go @@ -28,6 +28,10 @@ type Event struct { // *Event_BlockShow // *Event_BlockUpdate // *Event_BlockCreate + // *Event_UserBlockTextRange + // *Event_UserBlockJoin + // *Event_UserBlockLeft + // *Event_UserBlockSelectRange Message isEvent_Message `protobuf_oneof:"message"` } @@ -82,11 +86,27 @@ type Event_BlockUpdate struct { type Event_BlockCreate struct { BlockCreate *BlockCreate `protobuf:"bytes,4,opt,name=blockCreate,proto3,oneof" json:"blockCreate,omitempty"` } +type Event_UserBlockTextRange struct { + UserBlockTextRange *UserBlockTextRange `protobuf:"bytes,5,opt,name=userBlockTextRange,proto3,oneof" json:"userBlockTextRange,omitempty"` +} +type Event_UserBlockJoin struct { + UserBlockJoin *UserBlockJoin `protobuf:"bytes,6,opt,name=userBlockJoin,proto3,oneof" json:"userBlockJoin,omitempty"` +} +type Event_UserBlockLeft struct { + UserBlockLeft *UserBlockLeft `protobuf:"bytes,7,opt,name=userBlockLeft,proto3,oneof" json:"userBlockLeft,omitempty"` +} +type Event_UserBlockSelectRange struct { + UserBlockSelectRange *UserBlockSelectRange `protobuf:"bytes,8,opt,name=userBlockSelectRange,proto3,oneof" json:"userBlockSelectRange,omitempty"` +} -func (*Event_AccountShow) isEvent_Message() {} -func (*Event_BlockShow) isEvent_Message() {} -func (*Event_BlockUpdate) isEvent_Message() {} -func (*Event_BlockCreate) isEvent_Message() {} +func (*Event_AccountShow) isEvent_Message() {} +func (*Event_BlockShow) isEvent_Message() {} +func (*Event_BlockUpdate) isEvent_Message() {} +func (*Event_BlockCreate) isEvent_Message() {} +func (*Event_UserBlockTextRange) isEvent_Message() {} +func (*Event_UserBlockJoin) isEvent_Message() {} +func (*Event_UserBlockLeft) isEvent_Message() {} +func (*Event_UserBlockSelectRange) isEvent_Message() {} func (m *Event) GetMessage() isEvent_Message { if m != nil { @@ -123,6 +143,34 @@ func (m *Event) GetBlockCreate() *BlockCreate { return nil } +func (m *Event) GetUserBlockTextRange() *UserBlockTextRange { + if x, ok := m.GetMessage().(*Event_UserBlockTextRange); ok { + return x.UserBlockTextRange + } + return nil +} + +func (m *Event) GetUserBlockJoin() *UserBlockJoin { + if x, ok := m.GetMessage().(*Event_UserBlockJoin); ok { + return x.UserBlockJoin + } + return nil +} + +func (m *Event) GetUserBlockLeft() *UserBlockLeft { + if x, ok := m.GetMessage().(*Event_UserBlockLeft); ok { + return x.UserBlockLeft + } + return nil +} + +func (m *Event) GetUserBlockSelectRange() *UserBlockSelectRange { + if x, ok := m.GetMessage().(*Event_UserBlockSelectRange); ok { + return x.UserBlockSelectRange + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*Event) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -130,6 +178,10 @@ func (*Event) XXX_OneofWrappers() []interface{} { (*Event_BlockShow)(nil), (*Event_BlockUpdate)(nil), (*Event_BlockCreate)(nil), + (*Event_UserBlockTextRange)(nil), + (*Event_UserBlockJoin)(nil), + (*Event_UserBlockLeft)(nil), + (*Event_UserBlockSelectRange)(nil), } } @@ -140,21 +192,27 @@ func init() { func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } var fileDescriptor_2d17a9d3f0ddf27e = []byte{ - // 209 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0x2d, 0x4b, 0xcd, - 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, - 0x95, 0xe2, 0x4d, 0x4c, 0x4e, 0xce, 0x2f, 0x85, 0x89, 0x4b, 0x71, 0x27, 0xe5, 0xe4, 0x27, 0x67, - 0x43, 0x38, 0x4a, 0x5f, 0x18, 0xb9, 0x58, 0x5d, 0x41, 0x9a, 0x84, 0x2c, 0xb8, 0xb8, 0xa1, 0xea, - 0x82, 0x33, 0xf2, 0xcb, 0x25, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x44, 0xf4, 0xa0, 0x86, 0xe8, - 0x39, 0x22, 0xe4, 0x3c, 0x18, 0x82, 0x90, 0x95, 0x0a, 0x19, 0x71, 0x71, 0x82, 0x8d, 0x04, 0xeb, - 0x63, 0x02, 0xeb, 0x13, 0x82, 0xeb, 0x73, 0x82, 0xc9, 0x78, 0x30, 0x04, 0x21, 0x94, 0x81, 0x6c, - 0x03, 0x73, 0x42, 0x0b, 0x52, 0x12, 0x4b, 0x52, 0x25, 0x98, 0xd1, 0x6c, 0x73, 0x42, 0xc8, 0x81, - 0x6c, 0x43, 0x52, 0x0a, 0xd7, 0xe9, 0x5c, 0x94, 0x0a, 0xd2, 0xc9, 0x82, 0x4d, 0x27, 0x44, 0x0e, - 0xae, 0x13, 0xc2, 0x75, 0xe2, 0xe4, 0x62, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x75, 0x92, - 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, - 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xa6, 0x82, 0xa4, 0x24, 0x36, - 0x70, 0xd8, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x58, 0xcc, 0xa8, 0x8c, 0x4f, 0x01, 0x00, - 0x00, + // 316 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xbd, 0x4e, 0xf3, 0x30, + 0x14, 0x86, 0x9d, 0x7e, 0xfd, 0xf9, 0xea, 0xa8, 0x8b, 0x55, 0xa1, 0xa8, 0x80, 0x85, 0x98, 0x98, + 0x3a, 0x94, 0x85, 0x09, 0x89, 0x20, 0xa4, 0x08, 0xc1, 0xe2, 0xd0, 0x85, 0x2d, 0x49, 0x0f, 0xa5, + 0xa2, 0xc4, 0x51, 0xe2, 0x02, 0xbd, 0x0b, 0x46, 0x2e, 0x89, 0xb1, 0x23, 0x23, 0x4a, 0x6e, 0x04, + 0xd9, 0x4d, 0x9d, 0x84, 0x84, 0xf1, 0x9c, 0xf7, 0x7d, 0x9e, 0x23, 0x4b, 0xc6, 0x26, 0xbc, 0x40, + 0x28, 0xc6, 0x51, 0xcc, 0x05, 0x27, 0x3d, 0x2f, 0x5c, 0x8b, 0x75, 0x04, 0xa3, 0x81, 0x17, 0x04, + 0x7c, 0xb5, 0xdb, 0x8f, 0x4c, 0x7f, 0xc9, 0x83, 0xa7, 0x7c, 0xc0, 0x30, 0x5b, 0xe4, 0xc1, 0xf1, + 0x47, 0x1b, 0x77, 0xae, 0xa4, 0x80, 0x9c, 0x61, 0x33, 0x67, 0xdc, 0x47, 0xfe, 0x6a, 0x19, 0x47, + 0xc6, 0x89, 0x39, 0x19, 0x8e, 0x73, 0xe1, 0xf8, 0xa2, 0xc8, 0x1c, 0xc4, 0xca, 0x55, 0x32, 0xc1, + 0x7d, 0xa5, 0x57, 0x5c, 0x4b, 0x71, 0x44, 0x73, 0xf6, 0x2e, 0x71, 0x10, 0x2b, 0x6a, 0xf2, 0x9a, + 0x1a, 0xa6, 0xd1, 0xcc, 0x13, 0x60, 0xfd, 0xfb, 0x75, 0xcd, 0x2e, 0x32, 0x79, 0xad, 0x54, 0xd5, + 0xe4, 0x65, 0x0c, 0x92, 0x6c, 0x37, 0x91, 0xdb, 0x4c, 0x93, 0xdb, 0x91, 0xdc, 0x62, 0xb2, 0x4a, + 0x20, 0x56, 0x8d, 0x3b, 0x78, 0x13, 0xcc, 0x0b, 0xe7, 0x60, 0x75, 0x94, 0x60, 0x5f, 0x0b, 0xa6, + 0xb5, 0x8a, 0x83, 0x58, 0x03, 0x48, 0xce, 0xf1, 0x40, 0x6f, 0xaf, 0xf9, 0x22, 0xb4, 0xba, 0xca, + 0xb4, 0x57, 0x37, 0xc9, 0xd4, 0x41, 0xac, 0x5a, 0xaf, 0xf0, 0x37, 0xf0, 0x20, 0xac, 0xde, 0x5f, + 0xbc, 0x4c, 0x2b, 0xbc, 0x5c, 0x10, 0x17, 0x0f, 0xf5, 0xc2, 0x85, 0x25, 0x04, 0xf9, 0x83, 0xfe, + 0x2b, 0xcd, 0x61, 0x5d, 0x53, 0x2a, 0x39, 0x88, 0x35, 0xc2, 0x76, 0x1f, 0xf7, 0x9e, 0x21, 0x49, + 0xbc, 0x39, 0xd8, 0x07, 0x9f, 0x29, 0x35, 0x36, 0x29, 0x35, 0xbe, 0x53, 0x6a, 0xbc, 0x67, 0x14, + 0x6d, 0x32, 0x8a, 0xbe, 0x32, 0x8a, 0xee, 0x5b, 0x91, 0xef, 0x77, 0xd5, 0xff, 0x39, 0xfd, 0x09, + 0x00, 0x00, 0xff, 0xff, 0x03, 0x6a, 0xb5, 0x84, 0x7f, 0x02, 0x00, 0x00, } func (m *Event) Marshal() (dAtA []byte, err error) { @@ -273,6 +331,90 @@ func (m *Event_BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } +func (m *Event_UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockTextRange != nil { + { + size, err := m.UserBlockTextRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockJoin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockJoin != nil { + { + size, err := m.UserBlockJoin.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockLeft) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockLeft != nil { + { + size, err := m.UserBlockLeft.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockSelectRange != nil { + { + size, err := m.UserBlockSelectRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + return len(dAtA) - i, nil +} func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { offset -= sovEvent(v) base := offset @@ -344,6 +486,54 @@ func (m *Event_BlockCreate) Size() (n int) { } return n } +func (m *Event_UserBlockTextRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockTextRange != nil { + l = m.UserBlockTextRange.Size() + n += 1 + l + sovEvent(uint64(l)) + } + return n +} +func (m *Event_UserBlockJoin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockJoin != nil { + l = m.UserBlockJoin.Size() + n += 1 + l + sovEvent(uint64(l)) + } + return n +} +func (m *Event_UserBlockLeft) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockLeft != nil { + l = m.UserBlockLeft.Size() + n += 1 + l + sovEvent(uint64(l)) + } + return n +} +func (m *Event_UserBlockSelectRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockSelectRange != nil { + l = m.UserBlockSelectRange.Size() + n += 1 + l + sovEvent(uint64(l)) + } + return n +} func sovEvent(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 @@ -520,6 +710,146 @@ func (m *Event) Unmarshal(dAtA []byte) error { } m.Message = &Event_BlockCreate{v} iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockTextRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &UserBlockTextRange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockTextRange{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockJoin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &UserBlockJoin{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockJoin{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockLeft", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &UserBlockLeft{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockLeft{v} + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockSelectRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &UserBlockSelectRange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockSelectRange{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) diff --git a/pb/protos/block-commands.proto b/pb/protos/block-commands.proto new file mode 100644 index 000000000..aebf99a96 --- /dev/null +++ b/pb/protos/block-commands.proto @@ -0,0 +1,90 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + +import "block.proto"; + +message BlockHistoryMoveRequest { + string id = 1; + string contextBlockId = 2; + bool moveForward = 3; +} + +message BlockHistoryMoveResponse { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + CAN_NOT_MOVE = 3; + // ... + } + } +} + +message BlockOpenRequest { + string id = 1; +} + +message BlockOpenResponse { + Error error = 1; + BlockHeader blockHeader = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } +} + +message BlockCreateRequest { + BlockType type = 1; + string contextBlockId = 2; +} + +message BlockCreateResponse { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } +} + +message BlockUpdateRequest { + BlockChanges changes = 1; +} + +message BlockUpdateResponse { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } +} \ No newline at end of file diff --git a/pb/protos/block.proto b/pb/protos/block.proto index ea0154eda..652e337dd 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -4,98 +4,6 @@ option go_package = "pb"; import "struct.proto"; - -// commands -// - -message BlockHistoryMoveRequest { - string id = 1; - string contextBlockId = 2; - bool moveForward = 3; -} - -message BlockHistoryMoveResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - CAN_NOT_MOVE = 3; - // ... - } - } -} - -message BlockOpenRequest { - string id = 1; -} - -message BlockOpenResponse { - Error error = 1; - BlockHeader blockHeader = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } -} - -message BlockCreateRequest { - BlockType type = 1; - string contextBlockId = 2; -} - -message BlockCreateResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } -} - -message BlockUpdateRequest { - BlockChanges changes = 1; -} - -message BlockUpdateResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } -} - -// events -// - // call message BlockShow { Block block = 1; diff --git a/pb/protos/edit.proto b/pb/protos/edit.proto index 156dec3ae..ff5fdf5c5 100644 --- a/pb/protos/edit.proto +++ b/pb/protos/edit.proto @@ -5,26 +5,45 @@ option go_package = "pb"; import "block.proto"; import "account.proto"; -message UserBlockTextRange { - Account account = 1; - string blockId = 2; - Range range = 3; -} - +/** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A opened a block + * 1. User B opens the same block + * 2. User A receives a message about p.1 +*/ message UserBlockJoin { - Account account = 1; + Account account = 1; // Account of the user, that opened a block } +/** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A and user B opened the same block + * 1. User B closes the block + * 2. User A receives a message about p.1 +*/ message UserBlockLeft { - Account account = 1; + Account account = 1; // Account of the user, that left the block } +/** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A and user B opened the same block + * 1. User B sets cursor or selects a text region into a text block + * 2. User A receives a message about p.1 +*/ +message UserBlockTextRange { + Account account = 1; // Account of the user, that selected a text + string blockId = 2; // Id of the text block, that have a selection + Range range = 3; // Range of the selection +} + +/** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A and user B opened the same block + * 1. User B selects some inner blocks + * 2. User A receives a message about p.1 +*/ message UserBlockSelectRange { - Account account = 1; - repeated string blockIdsArray = 2; -} - -message UserBlockFocus { - Account account = 1; - string blockId = 2; -} + Account account = 1; // Account of the user, that selected blocks + repeated string blockIdsArray = 2; // Ids of selected blocks. +} \ No newline at end of file diff --git a/pb/protos/event.proto b/pb/protos/event.proto index 54530c67b..83db8abc8 100644 --- a/pb/protos/event.proto +++ b/pb/protos/event.proto @@ -4,20 +4,18 @@ option go_package = "pb"; import "account.proto"; import "block.proto"; +import "edit.proto"; message Event { - oneof message { - // show wallet's accounts that were loaded from local or remote source - AccountShow accountShow = 1; + oneof message { + AccountShow accountShow = 1; // show wallet's accounts that were loaded from local or remote source BlockShow blockShow = 2; BlockUpdate blockUpdate = 3; BlockCreate blockCreate = 4; - // unit was rearranged. Need to update the position - // UnitMoved unitMoved = 104; - - // unit was renamed or icon was changed - //UnitRenamed unitRenamed = 105; - + UserBlockTextRange userBlockTextRange = 5; + UserBlockJoin userBlockJoin = 6; + UserBlockLeft userBlockLeft = 7; + UserBlockSelectRange userBlockSelectRange = 8; } } diff --git a/pb/protos/service/service.proto b/pb/protos/service/service.proto index a4b584217..417152356 100644 --- a/pb/protos/service/service.proto +++ b/pb/protos/service/service.proto @@ -5,7 +5,8 @@ option go_package = "lib"; import "account.proto"; import "file.proto"; import "misc.proto"; -import "block.proto"; +import "block-commands.proto"; + service ClientCommands { rpc WalletCreate (anytype.WalletCreateRequest) returns (anytype.WalletCreateResponse); From 700d500409a911982c854107028ddcdf405cd82f Mon Sep 17 00:00:00 2001 From: Kirill Date: Wed, 30 Oct 2019 17:14:55 +0100 Subject: [PATCH 09/24] Fix BlockMedia protos; Fix enum BlockType; comments --- pb/block.pb.go | 723 ++++++++++++++++++++++++++++++++++-------- pb/edit.pb.go | 246 +++++++++++++- pb/event.pb.go | 124 ++++++-- pb/protos/block.proto | 31 +- pb/protos/edit.proto | 14 +- pb/protos/event.proto | 2 + 6 files changed, 968 insertions(+), 172 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index 7815a4a1d..4de523860 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -28,36 +28,39 @@ const ( BlockType_DASHBOARD BlockType = 0 BlockType_PAGE BlockType = 1 BlockType_DATAVIEW BlockType = 2 - BlockType_TEXT BlockType = 3 - BlockType_FILE BlockType = 4 - BlockType_PICTURE BlockType = 5 - BlockType_VIDEO BlockType = 6 - BlockType_ROW BlockType = 7 - BlockType_COLUMN BlockType = 8 + BlockType_TEXT BlockType = 101 + BlockType_FILE BlockType = 102 + BlockType_PICTURE BlockType = 103 + BlockType_VIDEO BlockType = 104 + BlockType_BOOKMARK BlockType = 105 + BlockType_ROW BlockType = 201 + BlockType_COLUMN BlockType = 202 ) var BlockType_name = map[int32]string{ - 0: "DASHBOARD", - 1: "PAGE", - 2: "DATAVIEW", - 3: "TEXT", - 4: "FILE", - 5: "PICTURE", - 6: "VIDEO", - 7: "ROW", - 8: "COLUMN", + 0: "DASHBOARD", + 1: "PAGE", + 2: "DATAVIEW", + 101: "TEXT", + 102: "FILE", + 103: "PICTURE", + 104: "VIDEO", + 105: "BOOKMARK", + 201: "ROW", + 202: "COLUMN", } var BlockType_value = map[string]int32{ "DASHBOARD": 0, "PAGE": 1, "DATAVIEW": 2, - "TEXT": 3, - "FILE": 4, - "PICTURE": 5, - "VIDEO": 6, - "ROW": 7, - "COLUMN": 8, + "TEXT": 101, + "FILE": 102, + "PICTURE": 103, + "VIDEO": 104, + "BOOKMARK": 105, + "ROW": 201, + "COLUMN": 202, } func (x BlockType) String() string { @@ -96,7 +99,7 @@ func (x BlockContentPage_Style) String() string { } func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{16, 0} + return fileDescriptor_8e550b1f5926e92d, []int{17, 0} } type BlockContentDashboard_Style int32 @@ -118,7 +121,7 @@ func (x BlockContentDashboard_Style) String() string { } func (BlockContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19, 0} + return fileDescriptor_8e550b1f5926e92d, []int{20, 0} } type BlockContentText_Style int32 @@ -130,6 +133,7 @@ const ( BlockContentText_h3 BlockContentText_Style = 3 BlockContentText_h4 BlockContentText_Style = 4 BlockContentText_quote BlockContentText_Style = 5 + BlockContentText_code BlockContentText_Style = 6 ) var BlockContentText_Style_name = map[int32]string{ @@ -139,6 +143,7 @@ var BlockContentText_Style_name = map[int32]string{ 3: "h3", 4: "h4", 5: "quote", + 6: "code", } var BlockContentText_Style_value = map[string]int32{ @@ -148,6 +153,7 @@ var BlockContentText_Style_value = map[string]int32{ "h3": 3, "h4": 4, "quote": 5, + "code": 6, } func (x BlockContentText_Style) String() string { @@ -155,7 +161,7 @@ func (x BlockContentText_Style) String() string { } func (BlockContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21, 0} + return fileDescriptor_8e550b1f5926e92d, []int{22, 0} } type BlockContentText_MarkerType int32 @@ -183,7 +189,7 @@ func (x BlockContentText_MarkerType) String() string { } func (BlockContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21, 1} + return fileDescriptor_8e550b1f5926e92d, []int{22, 1} } type BlockContentText_Mark_Type int32 @@ -217,7 +223,41 @@ func (x BlockContentText_Mark_Type) String() string { } func (BlockContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21, 1, 0} + return fileDescriptor_8e550b1f5926e92d, []int{22, 1, 0} +} + +type BlockContentMedia_State int32 + +const ( + BlockContentMedia_EMPTY BlockContentMedia_State = 0 + BlockContentMedia_UPLOADING BlockContentMedia_State = 1 + BlockContentMedia_PREVIEW BlockContentMedia_State = 2 + BlockContentMedia_DOWNLOADING BlockContentMedia_State = 3 + BlockContentMedia_DONE BlockContentMedia_State = 4 +) + +var BlockContentMedia_State_name = map[int32]string{ + 0: "EMPTY", + 1: "UPLOADING", + 2: "PREVIEW", + 3: "DOWNLOADING", + 4: "DONE", +} + +var BlockContentMedia_State_value = map[string]int32{ + "EMPTY": 0, + "UPLOADING": 1, + "PREVIEW": 2, + "DOWNLOADING": 3, + "DONE": 4, +} + +func (x BlockContentMedia_State) String() string { + return proto.EnumName(BlockContentMedia_State_name, int32(x)) +} + +func (BlockContentMedia_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{23, 0} } // call @@ -875,6 +915,91 @@ func (*BlockContentDashboardChange) XXX_OneofWrappers() []interface{} { } } +type BlockContentMediaChange struct { + // Types that are valid to be assigned to Change: + // *BlockContentMediaChange_Link + // *BlockContentMediaChange_State + Change isBlockContentMediaChange_Change `protobuf_oneof:"change"` +} + +func (m *BlockContentMediaChange) Reset() { *m = BlockContentMediaChange{} } +func (m *BlockContentMediaChange) String() string { return proto.CompactTextString(m) } +func (*BlockContentMediaChange) ProtoMessage() {} +func (*BlockContentMediaChange) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{8} +} +func (m *BlockContentMediaChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockContentMediaChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockContentMediaChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockContentMediaChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockContentMediaChange.Merge(m, src) +} +func (m *BlockContentMediaChange) XXX_Size() int { + return m.Size() +} +func (m *BlockContentMediaChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockContentMediaChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockContentMediaChange proto.InternalMessageInfo + +type isBlockContentMediaChange_Change interface { + isBlockContentMediaChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockContentMediaChange_Link struct { + Link string `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` +} +type BlockContentMediaChange_State struct { + State BlockContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.BlockContentMedia_State,oneof" json:"state,omitempty"` +} + +func (*BlockContentMediaChange_Link) isBlockContentMediaChange_Change() {} +func (*BlockContentMediaChange_State) isBlockContentMediaChange_Change() {} + +func (m *BlockContentMediaChange) GetChange() isBlockContentMediaChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlockContentMediaChange) GetLink() string { + if x, ok := m.GetChange().(*BlockContentMediaChange_Link); ok { + return x.Link + } + return "" +} + +func (m *BlockContentMediaChange) GetState() BlockContentMedia_State { + if x, ok := m.GetChange().(*BlockContentMediaChange_State); ok { + return x.State + } + return BlockContentMedia_EMPTY +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockContentMediaChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockContentMediaChange_Link)(nil), + (*BlockContentMediaChange_State)(nil), + } +} + type BlockAtomicChange struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Types that are valid to be assigned to Change: @@ -882,6 +1007,7 @@ type BlockAtomicChange struct { // *BlockAtomicChange_BlockHeader // *BlockAtomicChange_Page // *BlockAtomicChange_Dashboard + // *BlockAtomicChange_Media Change isBlockAtomicChange_Change `protobuf_oneof:"change"` } @@ -889,7 +1015,7 @@ func (m *BlockAtomicChange) Reset() { *m = BlockAtomicChange{} } func (m *BlockAtomicChange) String() string { return proto.CompactTextString(m) } func (*BlockAtomicChange) ProtoMessage() {} func (*BlockAtomicChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{8} + return fileDescriptor_8e550b1f5926e92d, []int{9} } func (m *BlockAtomicChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -936,11 +1062,15 @@ type BlockAtomicChange_Page struct { type BlockAtomicChange_Dashboard struct { Dashboard *BlockContentDashboardChange `protobuf:"bytes,5,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` } +type BlockAtomicChange_Media struct { + Media *BlockContentMediaChange `protobuf:"bytes,6,opt,name=media,proto3,oneof" json:"media,omitempty"` +} func (*BlockAtomicChange_Text) isBlockAtomicChange_Change() {} func (*BlockAtomicChange_BlockHeader) isBlockAtomicChange_Change() {} func (*BlockAtomicChange_Page) isBlockAtomicChange_Change() {} func (*BlockAtomicChange_Dashboard) isBlockAtomicChange_Change() {} +func (*BlockAtomicChange_Media) isBlockAtomicChange_Change() {} func (m *BlockAtomicChange) GetChange() isBlockAtomicChange_Change { if m != nil { @@ -984,6 +1114,13 @@ func (m *BlockAtomicChange) GetDashboard() *BlockContentDashboardChange { return nil } +func (m *BlockAtomicChange) GetMedia() *BlockContentMediaChange { + if x, ok := m.GetChange().(*BlockAtomicChange_Media); ok { + return x.Media + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*BlockAtomicChange) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -991,6 +1128,7 @@ func (*BlockAtomicChange) XXX_OneofWrappers() []interface{} { (*BlockAtomicChange_BlockHeader)(nil), (*BlockAtomicChange_Page)(nil), (*BlockAtomicChange_Dashboard)(nil), + (*BlockAtomicChange_Media)(nil), } } @@ -1002,7 +1140,7 @@ func (m *BlockChanges) Reset() { *m = BlockChanges{} } func (m *BlockChanges) String() string { return proto.CompactTextString(m) } func (*BlockChanges) ProtoMessage() {} func (*BlockChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{9} + return fileDescriptor_8e550b1f5926e92d, []int{10} } func (m *BlockChanges) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1054,7 +1192,7 @@ func (m *Block) Reset() { *m = Block{} } func (m *Block) String() string { return proto.CompactTextString(m) } func (*Block) ProtoMessage() {} func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{10} + return fileDescriptor_8e550b1f5926e92d, []int{11} } func (m *Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1194,7 +1332,7 @@ func (m *BlockHeader) Reset() { *m = BlockHeader{} } func (m *BlockHeader) String() string { return proto.CompactTextString(m) } func (*BlockHeader) ProtoMessage() {} func (*BlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{11} + return fileDescriptor_8e550b1f5926e92d, []int{12} } func (m *BlockHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1260,7 +1398,7 @@ func (m *BlockLayout) Reset() { *m = BlockLayout{} } func (m *BlockLayout) String() string { return proto.CompactTextString(m) } func (*BlockLayout) ProtoMessage() {} func (*BlockLayout) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{12} + return fileDescriptor_8e550b1f5926e92d, []int{13} } func (m *BlockLayout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1308,7 +1446,7 @@ func (m *BlockPermissions) Reset() { *m = BlockPermissions{} } func (m *BlockPermissions) String() string { return proto.CompactTextString(m) } func (*BlockPermissions) ProtoMessage() {} func (*BlockPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{13} + return fileDescriptor_8e550b1f5926e92d, []int{14} } func (m *BlockPermissions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1380,7 +1518,7 @@ func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } func (*BlockHeadersList) ProtoMessage() {} func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{14} + return fileDescriptor_8e550b1f5926e92d, []int{15} } func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1424,7 +1562,7 @@ func (m *BlocksList) Reset() { *m = BlocksList{} } func (m *BlocksList) String() string { return proto.CompactTextString(m) } func (*BlocksList) ProtoMessage() {} func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{15} + return fileDescriptor_8e550b1f5926e92d, []int{16} } func (m *BlocksList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1470,7 +1608,7 @@ func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } func (*BlockContentPage) ProtoMessage() {} func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{16} + return fileDescriptor_8e550b1f5926e92d, []int{17} } func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1528,7 +1666,7 @@ func (m *BlockStructure) Reset() { *m = BlockStructure{} } func (m *BlockStructure) String() string { return proto.CompactTextString(m) } func (*BlockStructure) ProtoMessage() {} func (*BlockStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{17} + return fileDescriptor_8e550b1f5926e92d, []int{18} } func (m *BlockStructure) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1572,7 +1710,7 @@ func (m *BlockChildren) Reset() { *m = BlockChildren{} } func (m *BlockChildren) String() string { return proto.CompactTextString(m) } func (*BlockChildren) ProtoMessage() {} func (*BlockChildren) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} + return fileDescriptor_8e550b1f5926e92d, []int{19} } func (m *BlockChildren) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1618,7 +1756,7 @@ func (m *BlockContentDashboard) Reset() { *m = BlockContentDashboard{} } func (m *BlockContentDashboard) String() string { return proto.CompactTextString(m) } func (*BlockContentDashboard) ProtoMessage() {} func (*BlockContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} + return fileDescriptor_8e550b1f5926e92d, []int{20} } func (m *BlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1675,7 +1813,7 @@ func (m *BlockContentDataview) Reset() { *m = BlockContentDataview{} } func (m *BlockContentDataview) String() string { return proto.CompactTextString(m) } func (*BlockContentDataview) ProtoMessage() {} func (*BlockContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} + return fileDescriptor_8e550b1f5926e92d, []int{21} } func (m *BlockContentDataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1718,7 +1856,7 @@ func (m *BlockContentText) Reset() { *m = BlockContentText{} } func (m *BlockContentText) String() string { return proto.CompactTextString(m) } func (*BlockContentText) ProtoMessage() {} func (*BlockContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} + return fileDescriptor_8e550b1f5926e92d, []int{22} } func (m *BlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1804,7 +1942,7 @@ func (m *BlockContentText_Marks) Reset() { *m = BlockContentText_Marks{} func (m *BlockContentText_Marks) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Marks) ProtoMessage() {} func (*BlockContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21, 0} + return fileDescriptor_8e550b1f5926e92d, []int{22, 0} } func (m *BlockContentText_Marks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1850,7 +1988,7 @@ func (m *BlockContentText_Mark) Reset() { *m = BlockContentText_Mark{} } func (m *BlockContentText_Mark) String() string { return proto.CompactTextString(m) } func (*BlockContentText_Mark) ProtoMessage() {} func (*BlockContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21, 1} + return fileDescriptor_8e550b1f5926e92d, []int{22, 1} } func (m *BlockContentText_Mark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1901,14 +2039,15 @@ func (m *BlockContentText_Mark) GetParam() string { } type BlockContentMedia struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` + Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` + State BlockContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.BlockContentMedia_State" json:"state,omitempty"` } func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } func (*BlockContentMedia) ProtoMessage() {} func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} + return fileDescriptor_8e550b1f5926e92d, []int{23} } func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1944,6 +2083,13 @@ func (m *BlockContentMedia) GetLink() string { return "" } +func (m *BlockContentMedia) GetState() BlockContentMedia_State { + if m != nil { + return m.State + } + return BlockContentMedia_EMPTY +} + type Range struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` @@ -1953,7 +2099,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} + return fileDescriptor_8e550b1f5926e92d, []int{24} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2003,6 +2149,7 @@ func init() { proto.RegisterEnum("anytype.BlockContentText_Style", BlockContentText_Style_name, BlockContentText_Style_value) proto.RegisterEnum("anytype.BlockContentText_MarkerType", BlockContentText_MarkerType_name, BlockContentText_MarkerType_value) proto.RegisterEnum("anytype.BlockContentText_Mark_Type", BlockContentText_Mark_Type_name, BlockContentText_Mark_Type_value) + proto.RegisterEnum("anytype.BlockContentMedia_State", BlockContentMedia_State_name, BlockContentMedia_State_value) proto.RegisterType((*BlockShow)(nil), "anytype.BlockShow") proto.RegisterType((*BlockUpdate)(nil), "anytype.BlockUpdate") proto.RegisterType((*BlockCreate)(nil), "anytype.BlockCreate") @@ -2011,6 +2158,7 @@ func init() { proto.RegisterType((*BlockContentPageChange)(nil), "anytype.BlockContentPageChange") proto.RegisterType((*BlockHeaderChange)(nil), "anytype.BlockHeaderChange") proto.RegisterType((*BlockContentDashboardChange)(nil), "anytype.BlockContentDashboardChange") + proto.RegisterType((*BlockContentMediaChange)(nil), "anytype.BlockContentMediaChange") proto.RegisterType((*BlockAtomicChange)(nil), "anytype.BlockAtomicChange") proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") proto.RegisterType((*Block)(nil), "anytype.Block") @@ -2035,100 +2183,108 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1485 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x93, 0x12, 0x57, - 0x14, 0xee, 0x6e, 0x68, 0x1e, 0x87, 0x79, 0xb4, 0x37, 0xe3, 0x84, 0x10, 0x25, 0x56, 0xc7, 0xd2, - 0xa9, 0x68, 0x61, 0x39, 0x8f, 0x32, 0xd1, 0x68, 0x15, 0x0c, 0x28, 0xd4, 0x30, 0xc3, 0xd4, 0x85, - 0xd1, 0xe8, 0x26, 0xd5, 0xd0, 0xd7, 0x81, 0x02, 0xba, 0x49, 0xd3, 0xa8, 0x6c, 0xb2, 0xc9, 0x1f, - 0xc8, 0x5f, 0xc8, 0xda, 0xbf, 0xe1, 0x22, 0xab, 0x94, 0xcb, 0x64, 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 0x5b, 0xd3, 0x67, 0xce, 0xb5, 0x59, 0x1a, 0x55, 0xac, 0xb8, 0xf6, 0x77, - 0x63, 0xf1, 0xd5, 0xcd, 0x9c, 0x58, 0x86, 0x74, 0xb9, 0xd8, 0xac, 0xf2, 0xe0, 0x59, 0x13, 0x3d, - 0x2c, 0x3e, 0xa9, 0xf0, 0x26, 0x5a, 0x2e, 0xb6, 0x8a, 0x4f, 0x6b, 0x95, 0x67, 0x3c, 0x11, 0xad, - 0xca, 0x4f, 0x2d, 0x9e, 0x88, 0xc7, 0xb5, 0x7a, 0x45, 0x8b, 0xa3, 0x0c, 0x24, 0x0f, 0x6b, 0xbb, - 0xad, 0x23, 0x5c, 0xd1, 0x54, 0x1a, 0xe5, 0xd3, 0x5a, 0xb9, 0xd2, 0xd0, 0x12, 0xb4, 0xe1, 0xe2, - 0xc6, 0x33, 0x2d, 0x49, 0x43, 0xd9, 0x6d, 0xd4, 0x8f, 0xf6, 0x0f, 0xb4, 0x54, 0xe9, 0xca, 0x9f, - 0x27, 0x79, 0xf9, 0xfd, 0x49, 0x5e, 0xfe, 0x70, 0x92, 0x97, 0x7f, 0x3f, 0xcd, 0x4b, 0xef, 0x4f, - 0xf3, 0xd2, 0xdf, 0xa7, 0x79, 0xe9, 0x85, 0x32, 0x6a, 0xb7, 0x13, 0xec, 0xff, 0x80, 0xad, 0x7f, - 0x03, 0x00, 0x00, 0xff, 0xff, 0xd3, 0xe5, 0xd9, 0xf5, 0x35, 0x10, 0x00, 0x00, + // 1603 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x73, 0x13, 0xc7, + 0x16, 0x9e, 0x19, 0x69, 0x64, 0xe9, 0xc8, 0x8f, 0xa6, 0xaf, 0x31, 0xba, 0xbe, 0xa0, 0xeb, 0x9a, + 0x4b, 0x71, 0x5d, 0x81, 0x12, 0x85, 0x1f, 0x81, 0x82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0x35, 0xbd, 0x5c, 0x6c, 0x16, 0xa5, 0x72, 0x56, + 0xeb, 0xcd, 0xaf, 0x9b, 0x88, 0xbb, 0xee, 0x71, 0xb5, 0x66, 0xa2, 0x17, 0xdc, 0xba, 0xea, 0x56, + 0xf3, 0x80, 0x98, 0xe8, 0x88, 0x5d, 0xe2, 0x49, 0xb5, 0x6c, 0xd6, 0x51, 0x3b, 0xd6, 0x0d, 0x3a, + 0x38, 0x0d, 0x09, 0x52, 0x7f, 0x8a, 0x7e, 0x61, 0xb7, 0x49, 0x6d, 0xd5, 0x6b, 0x07, 0xbb, 0x7b, + 0xe8, 0x57, 0xb5, 0x74, 0xf5, 0xe7, 0xd3, 0xbc, 0xfa, 0xee, 0x34, 0xaf, 0xbe, 0x3f, 0xcd, 0xab, + 0xdf, 0x7f, 0xc8, 0x2b, 0xef, 0x3e, 0xe4, 0x95, 0xdf, 0x3f, 0xe4, 0x95, 0xe7, 0xda, 0xe0, 0xf0, + 0x30, 0xc5, 0xff, 0x5d, 0x59, 0xff, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x4f, 0xab, 0x02, 0x83, + 0x11, 0x00, 0x00, } func (m *BlockShow) Marshal() (dAtA []byte, err error) { @@ -2699,6 +2855,64 @@ func (m *BlockContentDashboardChange_Header) MarshalToSizedBuffer(dAtA []byte) ( } return len(dAtA) - i, nil } +func (m *BlockContentMediaChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockContentMediaChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMediaChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BlockContentMediaChange_Link) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMediaChange_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Link) + copy(dAtA[i:], m.Link) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Link))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *BlockContentMediaChange_State) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMediaChange_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlock(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 + return len(dAtA) - i, nil +} func (m *BlockAtomicChange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2822,6 +3036,27 @@ func (m *BlockAtomicChange_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, er } return len(dAtA) - i, nil } +func (m *BlockAtomicChange_Media) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockAtomicChange_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Media != nil { + { + size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} func (m *BlockChanges) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3661,6 +3896,11 @@ func (m *BlockContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintBlock(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 + } if len(m.Link) > 0 { i -= len(m.Link) copy(dAtA[i:], m.Link) @@ -4003,6 +4243,37 @@ func (m *BlockContentDashboardChange_Header) Size() (n int) { } return n } +func (m *BlockContentMediaChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlockContentMediaChange_Link) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Link) + n += 1 + l + sovBlock(uint64(l)) + return n +} +func (m *BlockContentMediaChange_State) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlock(uint64(m.State)) + return n +} func (m *BlockAtomicChange) Size() (n int) { if m == nil { return 0 @@ -4067,6 +4338,18 @@ func (m *BlockAtomicChange_Dashboard) Size() (n int) { } return n } +func (m *BlockAtomicChange_Media) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Media != nil { + l = m.Media.Size() + n += 1 + l + sovBlock(uint64(l)) + } + return n +} func (m *BlockChanges) Size() (n int) { if m == nil { return 0 @@ -4424,6 +4707,9 @@ func (m *BlockContentMedia) Size() (n int) { if l > 0 { n += 1 + l + sovBlock(uint64(l)) } + if m.State != 0 { + n += 1 + sovBlock(uint64(m.State)) + } return n } @@ -5549,6 +5835,111 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { } return nil } +func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockContentMediaChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockContentMediaChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &BlockContentMediaChange_Link{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var v BlockContentMedia_State + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= BlockContentMedia_State(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockContentMediaChange_State{v} + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BlockAtomicChange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -5750,6 +6141,41 @@ func (m *BlockAtomicChange) Unmarshal(dAtA []byte) error { } m.Change = &BlockAtomicChange_Dashboard{v} iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockContentMediaChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlockAtomicChange_Media{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBlock(dAtA[iNdEx:]) @@ -7863,6 +8289,25 @@ func (m *BlockContentMedia) Unmarshal(dAtA []byte) error { } m.Link = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= BlockContentMedia_State(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipBlock(dAtA[iNdEx:]) diff --git a/pb/edit.pb.go b/pb/edit.pb.go index 431fe01b1..d734dfbac 100644 --- a/pb/edit.pb.go +++ b/pb/edit.pb.go @@ -242,17 +242,76 @@ func (m *UserBlockSelectRange) GetBlockIdsArray() []string { return nil } +//* +// Middleware to front end event message, that will be sent on one of this scenarios: +// Precondition: user A opened a block +// 1. User A drops a set of files/pictures/videos +// 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. +// +type FilesUpload struct { + FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` +} + +func (m *FilesUpload) Reset() { *m = FilesUpload{} } +func (m *FilesUpload) String() string { return proto.CompactTextString(m) } +func (*FilesUpload) ProtoMessage() {} +func (*FilesUpload) Descriptor() ([]byte, []int) { + return fileDescriptor_f5013c7d48f38d97, []int{4} +} +func (m *FilesUpload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FilesUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FilesUpload.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FilesUpload) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilesUpload.Merge(m, src) +} +func (m *FilesUpload) XXX_Size() int { + return m.Size() +} +func (m *FilesUpload) XXX_DiscardUnknown() { + xxx_messageInfo_FilesUpload.DiscardUnknown(m) +} + +var xxx_messageInfo_FilesUpload proto.InternalMessageInfo + +func (m *FilesUpload) GetFilePath() []string { + if m != nil { + return m.FilePath + } + return nil +} + +func (m *FilesUpload) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + func init() { proto.RegisterType((*UserBlockJoin)(nil), "anytype.UserBlockJoin") proto.RegisterType((*UserBlockLeft)(nil), "anytype.UserBlockLeft") proto.RegisterType((*UserBlockTextRange)(nil), "anytype.UserBlockTextRange") proto.RegisterType((*UserBlockSelectRange)(nil), "anytype.UserBlockSelectRange") + proto.RegisterType((*FilesUpload)(nil), "anytype.FilesUpload") } func init() { proto.RegisterFile("edit.proto", fileDescriptor_f5013c7d48f38d97) } var fileDescriptor_f5013c7d48f38d97 = []byte{ - // 236 bytes of a gzipped FileDescriptorProto + // 271 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xc9, 0x2c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0xe2, 0x4e, 0xca, 0xc9, 0x4f, 0xce, 0x86, 0x88, 0x4a, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, 0xe6, @@ -264,10 +323,12 @@ var fileDescriptor_f5013c7d48f38d97 = []byte{ 0xc1, 0x19, 0x04, 0xe3, 0x0a, 0xa9, 0x70, 0xb1, 0x16, 0x81, 0x8c, 0x93, 0x60, 0x06, 0x9b, 0xc1, 0x07, 0x37, 0x03, 0x6c, 0x49, 0x10, 0x44, 0x52, 0x29, 0x83, 0x4b, 0x04, 0xee, 0x82, 0xe0, 0xd4, 0x9c, 0xd4, 0x64, 0x32, 0xdc, 0xa0, 0xc2, 0xc5, 0x0b, 0xb5, 0xb4, 0xd8, 0xb1, 0xa8, 0x28, 0xb1, - 0x52, 0x82, 0x49, 0x81, 0x59, 0x83, 0x33, 0x08, 0x55, 0xd0, 0x49, 0xe6, 0xc4, 0x23, 0x39, 0xc6, - 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, - 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x71, 0x61, 0x0c, 0x08, - 0x00, 0x00, 0xff, 0xff, 0x13, 0x3c, 0x53, 0x4b, 0xbe, 0x01, 0x00, 0x00, + 0x52, 0x82, 0x49, 0x81, 0x59, 0x83, 0x33, 0x08, 0x55, 0x50, 0xc9, 0x99, 0x8b, 0xdb, 0x2d, 0x33, + 0x27, 0xb5, 0x38, 0xb4, 0x20, 0x27, 0x3f, 0x31, 0x45, 0x48, 0x8a, 0x8b, 0x23, 0x2d, 0x33, 0x27, + 0x35, 0x20, 0xb1, 0x24, 0x43, 0x82, 0x11, 0xac, 0x1e, 0xce, 0xc7, 0xed, 0x29, 0x27, 0x99, 0x13, + 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, + 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x62, 0x2a, 0x48, 0x4a, 0x62, 0x03, 0x47, + 0xa8, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x7c, 0x5f, 0xf5, 0x03, 0x02, 0x00, 0x00, } func (m *UserBlockJoin) Marshal() (dAtA []byte, err error) { @@ -438,6 +499,45 @@ func (m *UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *FilesUpload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FilesUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.FilePath) > 0 { + for iNdEx := len(m.FilePath) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FilePath[iNdEx]) + copy(dAtA[i:], m.FilePath[iNdEx]) + i = encodeVarintEdit(dAtA, i, uint64(len(m.FilePath[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintEdit(dAtA []byte, offset int, v uint64) int { offset -= sovEdit(v) base := offset @@ -515,6 +615,25 @@ func (m *UserBlockSelectRange) Size() (n int) { return n } +func (m *FilesUpload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FilePath) > 0 { + for _, s := range m.FilePath { + l = len(s) + n += 1 + l + sovEdit(uint64(l)) + } + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovEdit(uint64(l)) + } + return n +} + func sovEdit(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -977,6 +1096,123 @@ func (m *UserBlockSelectRange) Unmarshal(dAtA []byte) error { } return nil } +func (m *FilesUpload) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FilesUpload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FilesUpload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEdit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEdit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FilePath = append(m.FilePath, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEdit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEdit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEdit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEdit(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEdit + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEdit + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEdit(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/pb/event.pb.go b/pb/event.pb.go index 567b4d627..027523713 100644 --- a/pb/event.pb.go +++ b/pb/event.pb.go @@ -32,6 +32,7 @@ type Event struct { // *Event_UserBlockJoin // *Event_UserBlockLeft // *Event_UserBlockSelectRange + // *Event_FilesUpload Message isEvent_Message `protobuf_oneof:"message"` } @@ -98,6 +99,9 @@ type Event_UserBlockLeft struct { type Event_UserBlockSelectRange struct { UserBlockSelectRange *UserBlockSelectRange `protobuf:"bytes,8,opt,name=userBlockSelectRange,proto3,oneof" json:"userBlockSelectRange,omitempty"` } +type Event_FilesUpload struct { + FilesUpload *FilesUpload `protobuf:"bytes,9,opt,name=filesUpload,proto3,oneof" json:"filesUpload,omitempty"` +} func (*Event_AccountShow) isEvent_Message() {} func (*Event_BlockShow) isEvent_Message() {} @@ -107,6 +111,7 @@ func (*Event_UserBlockTextRange) isEvent_Message() {} func (*Event_UserBlockJoin) isEvent_Message() {} func (*Event_UserBlockLeft) isEvent_Message() {} func (*Event_UserBlockSelectRange) isEvent_Message() {} +func (*Event_FilesUpload) isEvent_Message() {} func (m *Event) GetMessage() isEvent_Message { if m != nil { @@ -171,6 +176,13 @@ func (m *Event) GetUserBlockSelectRange() *UserBlockSelectRange { return nil } +func (m *Event) GetFilesUpload() *FilesUpload { + if x, ok := m.GetMessage().(*Event_FilesUpload); ok { + return x.FilesUpload + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*Event) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -182,6 +194,7 @@ func (*Event) XXX_OneofWrappers() []interface{} { (*Event_UserBlockJoin)(nil), (*Event_UserBlockLeft)(nil), (*Event_UserBlockSelectRange)(nil), + (*Event_FilesUpload)(nil), } } @@ -192,27 +205,28 @@ func init() { func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } var fileDescriptor_2d17a9d3f0ddf27e = []byte{ - // 316 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xbd, 0x4e, 0xf3, 0x30, - 0x14, 0x86, 0x9d, 0x7e, 0xfd, 0xf9, 0xea, 0xa8, 0x8b, 0x55, 0xa1, 0xa8, 0x80, 0x85, 0x98, 0x98, - 0x3a, 0x94, 0x85, 0x09, 0x89, 0x20, 0xa4, 0x08, 0xc1, 0xe2, 0xd0, 0x85, 0x2d, 0x49, 0x0f, 0xa5, - 0xa2, 0xc4, 0x51, 0xe2, 0x02, 0xbd, 0x0b, 0x46, 0x2e, 0x89, 0xb1, 0x23, 0x23, 0x4a, 0x6e, 0x04, - 0xd9, 0x4d, 0x9d, 0x84, 0x84, 0xf1, 0x9c, 0xf7, 0x7d, 0x9e, 0x23, 0x4b, 0xc6, 0x26, 0xbc, 0x40, - 0x28, 0xc6, 0x51, 0xcc, 0x05, 0x27, 0x3d, 0x2f, 0x5c, 0x8b, 0x75, 0x04, 0xa3, 0x81, 0x17, 0x04, - 0x7c, 0xb5, 0xdb, 0x8f, 0x4c, 0x7f, 0xc9, 0x83, 0xa7, 0x7c, 0xc0, 0x30, 0x5b, 0xe4, 0xc1, 0xf1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x5b, 0x91, 0xef, 0x77, 0xd5, 0xff, 0x39, 0xfd, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x03, 0x6a, 0xb5, 0x84, 0x7f, 0x02, 0x00, 0x00, + // 336 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x3f, 0x4f, 0xc2, 0x40, + 0x18, 0xc6, 0xaf, 0xc8, 0x1f, 0xb9, 0x86, 0xe5, 0x42, 0xcc, 0x05, 0xf5, 0x62, 0x9c, 0x9c, 0x18, + 0x70, 0x71, 0x32, 0xb1, 0x46, 0xd3, 0x18, 0x5d, 0x0e, 0x59, 0xdc, 0x8e, 0xf2, 0x82, 0xc4, 0xda, + 0x6b, 0xe8, 0xa1, 0xf2, 0x2d, 0xfc, 0x58, 0x8e, 0xc4, 0xc9, 0xd1, 0xc0, 0x17, 0x31, 0x77, 0x94, + 0x6b, 0x81, 0x3a, 0xde, 0xfb, 0x3c, 0xbf, 0xdf, 0x9b, 0xbe, 0x29, 0x76, 0xe1, 0x0d, 0x22, 0xd5, + 0x8e, 0x27, 0x52, 0x49, 0x52, 0x13, 0xd1, 0x4c, 0xcd, 0x62, 0x68, 0x35, 0x44, 0x10, 0xc8, 0xe9, + 0x7a, 0xde, 0x72, 0xfb, 0xa1, 0x0c, 0x5e, 0xd2, 0x07, 0x86, 0xc1, 0x38, 0x0d, 0x4e, 0xbf, 0xcb, + 0xb8, 0x72, 0xa3, 0x05, 0xe4, 0x02, 0xbb, 0x29, 0xd3, 0x7d, 0x96, 0xef, 0xd4, 0x39, 0x71, 0xce, + 0xdc, 0x4e, 0xb3, 0x9d, 0x0a, 0xdb, 0x57, 0x59, 0xe6, 0x23, 0x9e, 0xaf, 0x92, 0x0e, 0xae, 0x1b, + 0xbd, 0xe1, 0x4a, 0x86, 0x23, 0x96, 0xf3, 0xd6, 0x89, 0x8f, 0x78, 0x56, 0xd3, 0xdb, 0xcc, 0xa3, + 0x17, 0x0f, 0x84, 0x02, 0xba, 0xb7, 0xb5, 0xcd, 0xcb, 0x32, 0xbd, 0x2d, 0x57, 0xb5, 0xe4, 0xf5, + 0x04, 0x34, 0x59, 0x2e, 0x22, 0x57, 0x99, 0x25, 0x57, 0x4f, 0xf2, 0x80, 0xc9, 0x34, 0x81, 0x89, + 0x69, 0x3c, 0xc2, 0x87, 0xe2, 0x22, 0x1a, 0x01, 0xad, 0x18, 0xc1, 0xa1, 0x15, 0xf4, 0x76, 0x2a, + 0x3e, 0xe2, 0x05, 0x20, 0xb9, 0xc4, 0x0d, 0x3b, 0xbd, 0x93, 0xe3, 0x88, 0x56, 0x8d, 0xe9, 0x60, + 0xd7, 0xa4, 0x53, 0x1f, 0xf1, 0xcd, 0xfa, 0x06, 0x7f, 0x0f, 0x43, 0x45, 0x6b, 0xff, 0xf1, 0x3a, + 0xdd, 0xe0, 0xf5, 0x80, 0x74, 0x71, 0xd3, 0x0e, 0xba, 0x10, 0x42, 0x90, 0x7e, 0xd0, 0xbe, 0xd1, + 0x1c, 0xef, 0x6a, 0x72, 0x25, 0x1f, 0xf1, 0x42, 0x58, 0x5f, 0x77, 0x38, 0x0e, 0x21, 0xe9, 0xc5, + 0xa1, 0x14, 0x03, 0x5a, 0xdf, 0xba, 0xee, 0x6d, 0x96, 0xe9, 0xeb, 0xe6, 0xaa, 0x5e, 0x1d, 0xd7, + 0x5e, 0x21, 0x49, 0xc4, 0x08, 0xbc, 0xa3, 0xaf, 0x05, 0x73, 0xe6, 0x0b, 0xe6, 0xfc, 0x2e, 0x98, + 0xf3, 0xb9, 0x64, 0x68, 0xbe, 0x64, 0xe8, 0x67, 0xc9, 0xd0, 0x53, 0x29, 0xee, 0xf7, 0xab, 0xe6, + 0xcf, 0x3b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x16, 0xfd, 0x5f, 0xb9, 0x02, 0x00, 0x00, } func (m *Event) Marshal() (dAtA []byte, err error) { @@ -415,6 +429,27 @@ func (m *Event_UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, err } return len(dAtA) - i, nil } +func (m *Event_FilesUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FilesUpload != nil { + { + size, err := m.FilesUpload.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + return len(dAtA) - i, nil +} func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { offset -= sovEvent(v) base := offset @@ -534,6 +569,18 @@ func (m *Event_UserBlockSelectRange) Size() (n int) { } return n } +func (m *Event_FilesUpload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FilesUpload != nil { + l = m.FilesUpload.Size() + n += 1 + l + sovEvent(uint64(l)) + } + return n +} func sovEvent(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 @@ -850,6 +897,41 @@ func (m *Event) Unmarshal(dAtA []byte) error { } m.Message = &Event_UserBlockSelectRange{v} iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilesUpload", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FilesUpload{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_FilesUpload{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) diff --git a/pb/protos/block.proto b/pb/protos/block.proto index 652e337dd..85a94e6ba 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -63,6 +63,13 @@ message BlockContentDashboardChange { } } +message BlockContentMediaChange { + oneof change { + string link = 1; + BlockContentMedia.State state = 2; + } +} + message BlockAtomicChange { string id = 1; oneof change { @@ -70,6 +77,7 @@ message BlockAtomicChange { BlockHeaderChange blockHeader = 3; BlockContentPageChange page = 4; BlockContentDashboardChange dashboard = 5; + BlockContentMediaChange media = 6; } } @@ -119,13 +127,14 @@ enum BlockType { PAGE = 1; DATAVIEW = 2; - TEXT = 3; - FILE = 4; - PICTURE = 5; - VIDEO = 6; + TEXT = 101; + FILE = 102; + PICTURE = 103; + VIDEO = 104; + BOOKMARK = 105; - ROW = 7; - COLUMN = 8; + ROW = 201; + COLUMN = 202; } message BlockHeadersList { @@ -181,6 +190,7 @@ message BlockContentText { h3 = 3; h4 = 4; quote = 5; + code = 6; } enum MarkerType { @@ -221,6 +231,15 @@ message BlockContentText { message BlockContentMedia { string link = 1; + State state = 2; + + enum State { + EMPTY = 0; + UPLOADING = 1; + PREVIEW = 2; + DOWNLOADING = 3; + DONE = 4; + } } message Range { diff --git a/pb/protos/edit.proto b/pb/protos/edit.proto index ff5fdf5c5..60169253c 100644 --- a/pb/protos/edit.proto +++ b/pb/protos/edit.proto @@ -46,4 +46,16 @@ message UserBlockTextRange { message UserBlockSelectRange { Account account = 1; // Account of the user, that selected blocks repeated string blockIdsArray = 2; // Ids of selected blocks. -} \ No newline at end of file +} + +/** + * Middleware to front end event message, that will be sent on one of this scenarios: + * Precondition: user A opened a block + * 1. User A drops a set of files/pictures/videos + * 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. +*/ +message FilesUpload { + repeated string filePath = 1; // filepaths to the files + string blockId = 2; // if empty => create new blocks +} + diff --git a/pb/protos/event.proto b/pb/protos/event.proto index 83db8abc8..9befb807b 100644 --- a/pb/protos/event.proto +++ b/pb/protos/event.proto @@ -17,5 +17,7 @@ message Event { UserBlockJoin userBlockJoin = 6; UserBlockLeft userBlockLeft = 7; UserBlockSelectRange userBlockSelectRange = 8; + + FilesUpload filesUpload = 9; } } From ad7da7219302d5b17415c10806c070f81765f9ac Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 31 Oct 2019 03:20:09 +0100 Subject: [PATCH 10/24] Fix proto media --- pb/block.pb.go | 1284 ++++++++++++++++++++++++++++--- pb/edit.pb.go | 1 - pb/protos/block.proto | 25 +- pb/protos/service/service.proto | 2 +- 4 files changed, 1187 insertions(+), 125 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index 4de523860..bb4c66c31 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -257,7 +257,7 @@ func (x BlockContentMedia_State) String() string { } func (BlockContentMedia_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23, 0} + return fileDescriptor_8e550b1f5926e92d, []int{26, 0} } // call @@ -2038,16 +2038,193 @@ func (m *BlockContentText_Mark) GetParam() string { return "" } +type VideoPreview struct { + Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *VideoPreview) Reset() { *m = VideoPreview{} } +func (m *VideoPreview) String() string { return proto.CompactTextString(m) } +func (*VideoPreview) ProtoMessage() {} +func (*VideoPreview) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{23} +} +func (m *VideoPreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VideoPreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VideoPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_VideoPreview.Merge(m, src) +} +func (m *VideoPreview) XXX_Size() int { + return m.Size() +} +func (m *VideoPreview) XXX_DiscardUnknown() { + xxx_messageInfo_VideoPreview.DiscardUnknown(m) +} + +var xxx_messageInfo_VideoPreview proto.InternalMessageInfo + +func (m *VideoPreview) GetThumbnail() []byte { + if m != nil { + return m.Thumbnail + } + return nil +} + +func (m *VideoPreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *VideoPreview) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type ImagePreview struct { + Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *ImagePreview) Reset() { *m = ImagePreview{} } +func (m *ImagePreview) String() string { return proto.CompactTextString(m) } +func (*ImagePreview) ProtoMessage() {} +func (*ImagePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{24} +} +func (m *ImagePreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ImagePreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ImagePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImagePreview.Merge(m, src) +} +func (m *ImagePreview) XXX_Size() int { + return m.Size() +} +func (m *ImagePreview) XXX_DiscardUnknown() { + xxx_messageInfo_ImagePreview.DiscardUnknown(m) +} + +var xxx_messageInfo_ImagePreview proto.InternalMessageInfo + +func (m *ImagePreview) GetThumbnail() []byte { + if m != nil { + return m.Thumbnail + } + return nil +} + +func (m *ImagePreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ImagePreview) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type FilePreview struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` +} + +func (m *FilePreview) Reset() { *m = FilePreview{} } +func (m *FilePreview) String() string { return proto.CompactTextString(m) } +func (*FilePreview) ProtoMessage() {} +func (*FilePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{25} +} +func (m *FilePreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FilePreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FilePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilePreview.Merge(m, src) +} +func (m *FilePreview) XXX_Size() int { + return m.Size() +} +func (m *FilePreview) XXX_DiscardUnknown() { + xxx_messageInfo_FilePreview.DiscardUnknown(m) +} + +var xxx_messageInfo_FilePreview proto.InternalMessageInfo + +func (m *FilePreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FilePreview) GetIcon() string { + if m != nil { + return m.Icon + } + return "" +} + type BlockContentMedia struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` - State BlockContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.BlockContentMedia_State" json:"state,omitempty"` + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + State BlockContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.BlockContentMedia_State" json:"state,omitempty"` + // Types that are valid to be assigned to Preview: + // *BlockContentMedia_Video + // *BlockContentMedia_Image + // *BlockContentMedia_File + Preview isBlockContentMedia_Preview `protobuf_oneof:"preview"` } func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } func (*BlockContentMedia) ProtoMessage() {} func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} + return fileDescriptor_8e550b1f5926e92d, []int{26} } func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2076,11 +2253,38 @@ func (m *BlockContentMedia) XXX_DiscardUnknown() { var xxx_messageInfo_BlockContentMedia proto.InternalMessageInfo -func (m *BlockContentMedia) GetLink() string { +type isBlockContentMedia_Preview interface { + isBlockContentMedia_Preview() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockContentMedia_Video struct { + Video *VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` +} +type BlockContentMedia_Image struct { + Image *ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` +} +type BlockContentMedia_File struct { + File *FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` +} + +func (*BlockContentMedia_Video) isBlockContentMedia_Preview() {} +func (*BlockContentMedia_Image) isBlockContentMedia_Preview() {} +func (*BlockContentMedia_File) isBlockContentMedia_Preview() {} + +func (m *BlockContentMedia) GetPreview() isBlockContentMedia_Preview { if m != nil { - return m.Link + return m.Preview } - return "" + return nil +} + +func (m *BlockContentMedia) GetContent() []byte { + if m != nil { + return m.Content + } + return nil } func (m *BlockContentMedia) GetState() BlockContentMedia_State { @@ -2090,6 +2294,36 @@ func (m *BlockContentMedia) GetState() BlockContentMedia_State { return BlockContentMedia_EMPTY } +func (m *BlockContentMedia) GetVideo() *VideoPreview { + if x, ok := m.GetPreview().(*BlockContentMedia_Video); ok { + return x.Video + } + return nil +} + +func (m *BlockContentMedia) GetImage() *ImagePreview { + if x, ok := m.GetPreview().(*BlockContentMedia_Image); ok { + return x.Image + } + return nil +} + +func (m *BlockContentMedia) GetFile() *FilePreview { + if x, ok := m.GetPreview().(*BlockContentMedia_File); ok { + return x.File + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockContentMedia) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockContentMedia_Video)(nil), + (*BlockContentMedia_Image)(nil), + (*BlockContentMedia_File)(nil), + } +} + type Range struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` @@ -2099,7 +2333,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24} + return fileDescriptor_8e550b1f5926e92d, []int{27} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2176,6 +2410,9 @@ func init() { proto.RegisterType((*BlockContentText)(nil), "anytype.BlockContentText") proto.RegisterType((*BlockContentText_Marks)(nil), "anytype.BlockContentText.Marks") proto.RegisterType((*BlockContentText_Mark)(nil), "anytype.BlockContentText.Mark") + proto.RegisterType((*VideoPreview)(nil), "anytype.VideoPreview") + proto.RegisterType((*ImagePreview)(nil), "anytype.ImagePreview") + proto.RegisterType((*FilePreview)(nil), "anytype.FilePreview") proto.RegisterType((*BlockContentMedia)(nil), "anytype.BlockContentMedia") proto.RegisterType((*Range)(nil), "anytype.Range") } @@ -2183,108 +2420,116 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1603 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x73, 0x13, 0xc7, - 0x16, 0x9e, 0x19, 0x69, 0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, 0xaa, 0xfc, 0xcf, 0x82, 0x7b, 0x62, 0x0e, 0x32, 0xe5, 0x62, 0xa3, 0x22, - 0x62, 0xc1, 0x6b, 0xfa, 0x7e, 0x71, 0xdb, 0x14, 0x35, 0xbd, 0x5c, 0x6c, 0x16, 0xa5, 0x72, 0x56, - 0xeb, 0xcd, 0xaf, 0x9b, 0x88, 0xbb, 0xee, 0x71, 0xb5, 0x66, 0xa2, 0x17, 0xdc, 0xba, 0xea, 0x56, - 0xf3, 0x80, 0x98, 0xe8, 0x88, 0x5d, 0xe2, 0x49, 0xb5, 0x6c, 0xd6, 0x51, 0x3b, 0xd6, 0x0d, 0x3a, - 0x38, 0x0d, 0x09, 0x52, 0x7f, 0x8a, 0x7e, 0x61, 0xb7, 0x49, 0x6d, 0xd5, 0x6b, 0x07, 0xbb, 0x7b, - 0xe8, 0x57, 0xb5, 0x74, 0xf5, 0xe7, 0xd3, 0xbc, 0xfa, 0xee, 0x34, 0xaf, 0xbe, 0x3f, 0xcd, 0xab, - 0xdf, 0x7f, 0xc8, 0x2b, 0xef, 0x3e, 0xe4, 0x95, 0xdf, 0x3f, 0xe4, 0x95, 0xe7, 0xda, 0xe0, 0xf0, - 0x30, 0xc5, 0xff, 0x5d, 0x59, 0xff, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x4f, 0xab, 0x02, 0x83, - 0x11, 0x00, 0x00, + // 1733 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x73, 0x1a, 0xc9, + 0x15, 0x9e, 0x19, 0x18, 0x04, 0x07, 0x5d, 0x7a, 0x3b, 0x5a, 0x2d, 0x51, 0xbc, 0x44, 0x35, 0xd9, + 0x72, 0x54, 0xeb, 0x0d, 0x5b, 0xab, 0x4b, 0x76, 0x6b, 0x37, 0x76, 0x15, 0x08, 0x2c, 0x28, 0x21, + 0xa1, 0x6a, 0x90, 0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xec, 0x39, 0x23, 0xbb, 0x77, 0x47, 0x72, 0xda, 0x97, 0xd9, 0x44, 0xbb, 0xe7, 0xf5, 0x07, + 0x6e, 0x11, 0xe9, 0xe6, 0x89, 0xcc, 0xe4, 0xf5, 0xa8, 0x43, 0x36, 0xe7, 0x39, 0x24, 0x60, 0x8c, + 0x32, 0x30, 0xb5, 0x13, 0xb3, 0x2f, 0xd2, 0x46, 0x7e, 0xc1, 0x83, 0x0b, 0xd5, 0x32, 0x72, 0x5c, + 0x85, 0x9c, 0xe5, 0x47, 0x5a, 0x42, 0xee, 0x1e, 0x3c, 0x04, 0x02, 0x42, 0x46, 0xe6, 0xdd, 0x11, + 0xf3, 0x1d, 0xcf, 0x25, 0xf9, 0x45, 0xde, 0x0d, 0xb8, 0x05, 0x43, 0xc4, 0xbb, 0x55, 0x58, 0x8e, + 0x96, 0x12, 0xbc, 0x17, 0x2d, 0x39, 0xa9, 0xdb, 0xce, 0x88, 0x06, 0x21, 0xac, 0x3b, 0xaf, 0x52, + 0xa0, 0xf3, 0x63, 0xfc, 0x55, 0x00, 0x2e, 0xf5, 0x6e, 0x70, 0xf9, 0xd0, 0xc2, 0x4f, 0xa2, 0x7e, + 0xc8, 0x73, 0x86, 0xe2, 0x62, 0x3f, 0xc4, 0x3d, 0xf0, 0xb5, 0x74, 0xff, 0xf2, 0xbc, 0x57, 0x1b, + 0x71, 0x7f, 0xe0, 0xf8, 0x1f, 0x20, 0x6b, 0x99, 0x9e, 0x79, 0x65, 0xd3, 0x17, 0x85, 0x95, 0x79, + 0xef, 0x27, 0xd0, 0x27, 0x88, 0xea, 0x0a, 0x09, 0x18, 0x98, 0x36, 0x8e, 0xb1, 0xd5, 0x05, 0xda, + 0x18, 0xc6, 0x02, 0x74, 0xed, 0xf8, 0x01, 0x5a, 0x9b, 0x87, 0xab, 0x68, 0x80, 0x82, 0xd0, 0xb0, + 0xd7, 0x39, 0x34, 0xaf, 0x9d, 0x99, 0x57, 0x40, 0xf3, 0x1c,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07, 0x8c, 0x44, 0x6e, 0x35, 0xfe, 0xac, 0xc7, 0x81, 0xce, 0x72, 0x27, + 0x7b, 0xa3, 0xe1, 0x58, 0x20, 0xf3, 0xe8, 0xfe, 0x87, 0x0d, 0x05, 0xfe, 0xed, 0x1f, 0x43, 0x8e, + 0xb7, 0xf8, 0xcc, 0xce, 0xf7, 0x1c, 0x0b, 0x48, 0xc8, 0x81, 0x8b, 0xb7, 0x07, 0x83, 0xd8, 0x58, + 0x50, 0xfd, 0xd8, 0xb1, 0x20, 0x36, 0x14, 0x3c, 0xb8, 0x35, 0x14, 0x44, 0x47, 0x82, 0x42, 0x62, + 0x24, 0x08, 0x06, 0x82, 0xcd, 0xc7, 0xa0, 0x73, 0x8b, 0xf1, 0x9e, 0x3f, 0xf8, 0x88, 0x57, 0x52, + 0x5c, 0x6c, 0x81, 0x9c, 0x7a, 0x36, 0x5f, 0xab, 0x90, 0x66, 0x6b, 0x36, 0x23, 0xba, 0xbc, 0x9d, + 0x4c, 0xce, 0x88, 0x84, 0x97, 0x78, 0x71, 0x88, 0xbf, 0x8d, 0x95, 0x8e, 0x5f, 0x2c, 0xd6, 0x51, + 0x8a, 0xd4, 0x92, 0x75, 0xd0, 0x27, 0xa6, 0x6b, 0x8e, 0x44, 0x2f, 0x4e, 0xc4, 0xc2, 0x38, 0x84, + 0x34, 0xbf, 0xfc, 0x27, 0xb0, 0xd2, 0xee, 0x90, 0xc6, 0x51, 0xad, 0x53, 0x27, 0xad, 0xb3, 0xc3, + 0x3a, 0x52, 0x58, 0xbe, 0x38, 0xaa, 0xfd, 0x58, 0x69, 0x95, 0x49, 0x15, 0xa9, 0x18, 0x20, 0xd3, + 0xe8, 0x94, 0x9b, 0x8d, 0x03, 0xa4, 0xb1, 0x9c, 0x52, 0x69, 0x35, 0xab, 0x28, 0xc5, 0xbe, 0x9a, + 0x8d, 0x93, 0x23, 0x94, 0x36, 0x0e, 0x7c, 0xd0, 0xe9, 0xa0, 0x4e, 0x90, 0x82,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0x6f, 0x8a, 0xea, 0x9b, 0x9b, 0xa2, 0xfa, 0xf6, 0xa6, + 0xa8, 0xfe, 0xf1, 0x5d, 0x51, 0x79, 0xf3, 0xae, 0xa8, 0xfc, 0xf3, 0x5d, 0x51, 0x79, 0xae, 0x4d, + 0xba, 0xdd, 0x0c, 0xff, 0x7f, 0x6b, 0xf7, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x82, 0xc3, 0xde, + 0x4f, 0x05, 0x13, 0x00, 0x00, } func (m *BlockShow) Marshal() (dAtA []byte, err error) { @@ -3876,6 +4121,127 @@ func (m *BlockContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *VideoPreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VideoPreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintBlock(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Thumbnail) > 0 { + i -= len(m.Thumbnail) + copy(dAtA[i:], m.Thumbnail) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Thumbnail))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ImagePreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ImagePreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintBlock(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Thumbnail) > 0 { + i -= len(m.Thumbnail) + copy(dAtA[i:], m.Thumbnail) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Thumbnail))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FilePreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FilePreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Icon) > 0 { + i -= len(m.Icon) + copy(dAtA[i:], m.Icon) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Icon))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *BlockContentMedia) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3896,21 +4262,99 @@ func (m *BlockContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Preview != nil { + { + size := m.Preview.Size() + i -= size + if _, err := m.Preview.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } if m.State != 0 { i = encodeVarintBlock(dAtA, i, uint64(m.State)) i-- dAtA[i] = 0x10 } - if len(m.Link) > 0 { - i -= len(m.Link) - copy(dAtA[i:], m.Link) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Link))) + if len(m.Content) > 0 { + i -= len(m.Content) + copy(dAtA[i:], m.Content) + i = encodeVarintBlock(dAtA, i, uint64(len(m.Content))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *BlockContentMedia_Video) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Video != nil { + { + size, err := m.Video.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} +func (m *BlockContentMedia_Image) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Image != nil { + { + size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb2 + } + return len(dAtA) - i, nil +} +func (m *BlockContentMedia_File) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.File != nil { + { + size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} func (m *Range) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4697,22 +5141,118 @@ func (m *BlockContentText_Mark) Size() (n int) { return n } +func (m *VideoPreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Thumbnail) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovBlock(uint64(m.Width)) + } + return n +} + +func (m *ImagePreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Thumbnail) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovBlock(uint64(m.Width)) + } + return n +} + +func (m *FilePreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + l = len(m.Icon) + if l > 0 { + n += 1 + l + sovBlock(uint64(l)) + } + return n +} + func (m *BlockContentMedia) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Link) + l = len(m.Content) if l > 0 { n += 1 + l + sovBlock(uint64(l)) } if m.State != 0 { n += 1 + sovBlock(uint64(m.State)) } + if m.Preview != nil { + n += m.Preview.Size() + } return n } +func (m *BlockContentMedia_Video) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Video != nil { + l = m.Video.Size() + n += 2 + l + sovBlock(uint64(l)) + } + return n +} +func (m *BlockContentMedia_Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Image != nil { + l = m.Image.Size() + n += 2 + l + sovBlock(uint64(l)) + } + return n +} +func (m *BlockContentMedia_File) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.File != nil { + l = m.File.Size() + n += 2 + l + sovBlock(uint64(l)) + } + return n +} func (m *Range) Size() (n int) { if m == nil { return 0 @@ -8228,6 +8768,399 @@ func (m *BlockContentText_Mark) Unmarshal(dAtA []byte) error { } return nil } +func (m *VideoPreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VideoPreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VideoPreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) + if m.Thumbnail == nil { + m.Thumbnail = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ImagePreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImagePreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImagePreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) + if m.Thumbnail == nil { + m.Thumbnail = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FilePreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FilePreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FilePreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Icon = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BlockContentMedia) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8259,9 +9192,9 @@ func (m *BlockContentMedia) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBlock @@ -8271,23 +9204,25 @@ func (m *BlockContentMedia) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthBlock } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthBlock } if postIndex > l { return io.ErrUnexpectedEOF } - m.Link = string(dAtA[iNdEx:postIndex]) + m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) + if m.Content == nil { + m.Content = []byte{} + } iNdEx = postIndex case 2: if wireType != 0 { @@ -8308,6 +9243,111 @@ func (m *BlockContentMedia) Unmarshal(dAtA []byte) error { break } } + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Video", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &VideoPreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &BlockContentMedia_Video{v} + iNdEx = postIndex + case 102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ImagePreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &BlockContentMedia_Image{v} + iNdEx = postIndex + case 103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FilePreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &BlockContentMedia_File{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBlock(dAtA[iNdEx:]) diff --git a/pb/edit.pb.go b/pb/edit.pb.go index d734dfbac..2be6d2a90 100644 --- a/pb/edit.pb.go +++ b/pb/edit.pb.go @@ -247,7 +247,6 @@ func (m *UserBlockSelectRange) GetBlockIdsArray() []string { // Precondition: user A opened a block // 1. User A drops a set of files/pictures/videos // 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. -// type FilesUpload struct { FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"` BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` diff --git a/pb/protos/block.proto b/pb/protos/block.proto index 85a94e6ba..fcd138d56 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -229,10 +229,33 @@ message BlockContentText { bool checked = 7; } +message VideoPreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; +} + +message ImagePreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; +} + +message FilePreview { + string name = 1; + string icon = 2; +} + message BlockContentMedia { - string link = 1; + bytes content = 1; State state = 2; + oneof preview { + VideoPreview video = 101; + ImagePreview image = 102; + FilePreview file = 103; + } + enum State { EMPTY = 0; UPLOADING = 1; diff --git a/pb/protos/service/service.proto b/pb/protos/service/service.proto index 417152356..36eff7a6d 100644 --- a/pb/protos/service/service.proto +++ b/pb/protos/service/service.proto @@ -7,7 +7,6 @@ import "file.proto"; import "misc.proto"; import "block-commands.proto"; - service ClientCommands { rpc WalletCreate (anytype.WalletCreateRequest) returns (anytype.WalletCreateResponse); rpc WalletRecover (anytype.WalletRecoverRequest) returns (anytype.WalletRecoverResponse); @@ -24,4 +23,5 @@ service ClientCommands { rpc BlockCreate (BlockCreateRequest) returns (BlockCreateResponse); rpc BlockUpdate (BlockUpdateRequest) returns (BlockUpdateResponse); rpc BlockHistoryMove (BlockHistoryMoveRequest) returns (BlockHistoryMoveResponse); + // rpc BlockFilesUpload (BlockHistoryMoveRequest) returns (BlockHistoryMoveResponse); } From 0890dff259c3d0d3d9097057cda08260a8beaef9 Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 31 Oct 2019 13:36:04 +0100 Subject: [PATCH 11/24] Doc fixes --- pb/account.pb.go | 20 +++++++++--------- pb/protos/account.proto | 46 ++++++++++++++++++++--------------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/pb/account.pb.go b/pb/account.pb.go index 621e4effa..eea09d063 100644 --- a/pb/account.pb.go +++ b/pb/account.pb.go @@ -360,7 +360,7 @@ func (m *Account) GetAvatar() *Avatar { } //* -// Front end to middleware request to create a new wallet +// Front-end-to-middleware request to create a new wallet type WalletCreateRequest struct { RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` } @@ -406,7 +406,7 @@ func (m *WalletCreateRequest) GetRootPath() string { } //* -// Middleware to front end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error +// Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error type WalletCreateResponse struct { Error *WalletCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` @@ -512,7 +512,7 @@ func (m *WalletCreateResponse_Error) GetDescription() string { } //* -// Front end to middleware request to recover a wallet with this mnemonic and a rootPath +// Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath type WalletRecoverRequest struct { RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` @@ -566,7 +566,7 @@ func (m *WalletRecoverRequest) GetMnemonic() string { } //* -// Middleware to front end response, that can contain a NULL error or a non-NULL error +// Middleware-to-front-end response, that can contain a NULL error or a non-NULL error type WalletRecoverResponse struct { Error *WalletRecoverResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -664,7 +664,7 @@ func (m *WalletRecoverResponse_Error) GetDescription() string { } //* -// Front end to middleware request to create an account +// Front end to middleware request-to-create-an account type AccountCreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Avatar: @@ -759,7 +759,7 @@ func (*AccountCreateRequest) XXX_OneofWrappers() []interface{} { } //* -// Middleware to front end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account +// Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account type AccountCreateResponse struct { Error *AccountCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` @@ -865,7 +865,7 @@ func (m *AccountCreateResponse_Error) GetDescription() string { } //* -// Front end to middleware request to start search of an accounts for a recovered mnemonic. +// Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. // Each of an account that would be found will come with an AccountAdd event type AccountRecoverRequest struct { } @@ -904,7 +904,7 @@ func (m *AccountRecoverRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AccountRecoverRequest proto.InternalMessageInfo //* -// Middleware to front end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account +// Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account type AccountRecoverResponse struct { Error *AccountRecoverResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -1002,7 +1002,7 @@ func (m *AccountRecoverResponse_Error) GetDescription() string { } //* -// Front end to middleware request to select an account with this id and a root path +// Front end to middleware request-to-launch-a specific account using account id and a root path // User can select an account from those, that came with an AccountAdd events type AccountSelectRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -1057,7 +1057,7 @@ func (m *AccountSelectRequest) GetRootPath() string { } //* -// Middleware to front end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account +// Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account type AccountSelectResponse struct { Error *AccountSelectResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` diff --git a/pb/protos/account.proto b/pb/protos/account.proto index e8ff56dbe..eae5a499d 100644 --- a/pb/protos/account.proto +++ b/pb/protos/account.proto @@ -24,17 +24,17 @@ message Account { } /** - * Front end to middleware request to create a new wallet + * Front-end-to-middleware request to create a new wallet */ message WalletCreateRequest { - string rootPath = 1; // + string rootPath = 1; // Path to a wallet directory } /** - * Middleware to front end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error + * Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error */ message WalletCreateResponse { - Error error = 1; // Error on a middleware, that happened while trying to create a wallet + Error error = 1; string mnemonic = 2; // Mnemonic of a new account (sequence of words, divided by spaces) message Error { @@ -53,18 +53,18 @@ message WalletCreateResponse { } /** - * Front end to middleware request to recover a wallet with this mnemonic and a rootPath + * Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath */ message WalletRecoverRequest { - string rootPath = 1; // TODO: what is that? + string rootPath = 1; // Path to a wallet directory string mnemonic = 2; // Mnemonic of a wallet to recover } /** - * Middleware to front end response, that can contain a NULL error or a non-NULL error + * Middleware-to-front-end response, that can contain a NULL error or a non-NULL error */ message WalletRecoverResponse { - Error error = 1; // Error on a middleware, that happened while trying to recover a wallet + Error error = 1; // Error while trying to recover a wallet message Error { Code code = 1; string description = 2; @@ -80,22 +80,22 @@ message WalletRecoverResponse { } /** - * Front end to middleware request to create an account + * Front end to middleware request-to-create-an account */ message AccountCreateRequest { - string name = 1; // Name of an account (username) + string name = 1; // Account name oneof avatar { string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account - string avatarColor = 3; // You can set a color of an avatar if you don't want to use an image + string avatarColor = 3; // Avatar color as an alternative for avatar image } } /** - * Middleware to front end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account + * Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account */ message AccountCreateResponse { - Error error = 1; // Error on a middleware, that happened while trying to create an account - Account account = 2; // Newly created account; If the error is non-NULL, account be a structure with an empty fields + Error error = 1; // Error while trying to create an account + Account account = 2; // A newly created account; In case of a failure, i.e. error is non-NULL, the account model should contain empty/default-value fields message Error { Code code = 1; @@ -114,16 +114,16 @@ message AccountCreateResponse { } /** - * Front end to middleware request to start search of an accounts for a recovered mnemonic. + * Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. * Each of an account that would be found will come with an AccountAdd event */ message AccountRecoverRequest {} /** - * Middleware to front end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account + * Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account */ message AccountRecoverResponse { - Error error = 1; // Error on a middleware, that happened while trying to create a wallet + Error error = 1; // Error while trying to recover an account message Error { Code code = 1; string description = 2; @@ -144,19 +144,19 @@ message AccountRecoverResponse { } /** - * Front end to middleware request to select an account with this id and a root path + * Front end to middleware request-to-launch-a specific account using account id and a root path * User can select an account from those, that came with an AccountAdd events */ message AccountSelectRequest { - string id = 1; // id of a selected account - string rootPath = 2; // rootPath is optional, set if this is a first request + string id = 1; // Id of a selected account + string rootPath = 2; // Root path is optional, set if this is a first request } /** - * Middleware to front end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account + * Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account */ message AccountSelectResponse { - Error error = 1; // Error on a middleware, that happened while trying to select an account + Error error = 1; // Error while trying to launch/select an account Account account = 2; // Selected account message Error { @@ -164,7 +164,7 @@ message AccountSelectResponse { string description = 2; enum Code { - NULL = 0; // No error; + NULL = 0; // No error UNKNOWN_ERROR = 1; // Any other errors BAD_INPUT = 2; // Id or root path is wrong From 6ed801530ead37836bde54955c9407123334808d Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 31 Oct 2019 13:40:42 +0100 Subject: [PATCH 12/24] Fix layout proto --- pb/block.pb.go | 298 ++++++++++++++++++++++-------------------- pb/protos/block.proto | 10 +- 2 files changed, 160 insertions(+), 148 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index bb4c66c31..fbb6d1544 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -33,8 +33,7 @@ const ( BlockType_PICTURE BlockType = 103 BlockType_VIDEO BlockType = 104 BlockType_BOOKMARK BlockType = 105 - BlockType_ROW BlockType = 201 - BlockType_COLUMN BlockType = 202 + BlockType_LAYOUT BlockType = 201 ) var BlockType_name = map[int32]string{ @@ -46,8 +45,7 @@ var BlockType_name = map[int32]string{ 103: "PICTURE", 104: "VIDEO", 105: "BOOKMARK", - 201: "ROW", - 202: "COLUMN", + 201: "LAYOUT", } var BlockType_value = map[string]int32{ @@ -59,8 +57,7 @@ var BlockType_value = map[string]int32{ "PICTURE": 103, "VIDEO": 104, "BOOKMARK": 105, - "ROW": 201, - "COLUMN": 202, + "LAYOUT": 201, } func (x BlockType) String() string { @@ -71,6 +68,31 @@ func (BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8e550b1f5926e92d, []int{0} } +type BlockLayout_Style int32 + +const ( + BlockLayout_ROW BlockLayout_Style = 0 + BlockLayout_COLUMN BlockLayout_Style = 1 +) + +var BlockLayout_Style_name = map[int32]string{ + 0: "ROW", + 1: "COLUMN", +} + +var BlockLayout_Style_value = map[string]int32{ + "ROW": 0, + "COLUMN": 1, +} + +func (x BlockLayout_Style) String() string { + return proto.EnumName(BlockLayout_Style_name, int32(x)) +} + +func (BlockLayout_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8e550b1f5926e92d, []int{13, 0} +} + type BlockContentPage_Style int32 const ( @@ -1391,7 +1413,7 @@ func (m *BlockHeader) GetPermissions() *BlockPermissions { // row/column type specified in the header type BlockLayout struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Style BlockLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockLayout_Style" json:"style,omitempty"` } func (m *BlockLayout) Reset() { *m = BlockLayout{} } @@ -1427,11 +1449,11 @@ func (m *BlockLayout) XXX_DiscardUnknown() { var xxx_messageInfo_BlockLayout proto.InternalMessageInfo -func (m *BlockLayout) GetId() string { +func (m *BlockLayout) GetStyle() BlockLayout_Style { if m != nil { - return m.Id + return m.Style } - return "" + return BlockLayout_ROW } type BlockPermissions struct { @@ -2378,6 +2400,7 @@ func (m *Range) GetTo() int32 { func init() { proto.RegisterEnum("anytype.BlockType", BlockType_name, BlockType_value) + proto.RegisterEnum("anytype.BlockLayout_Style", BlockLayout_Style_name, BlockLayout_Style_value) proto.RegisterEnum("anytype.BlockContentPage_Style", BlockContentPage_Style_name, BlockContentPage_Style_value) proto.RegisterEnum("anytype.BlockContentDashboard_Style", BlockContentDashboard_Style_name, BlockContentDashboard_Style_value) proto.RegisterEnum("anytype.BlockContentText_Style", BlockContentText_Style_name, BlockContentText_Style_value) @@ -2420,116 +2443,117 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1733 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x73, 0x1a, 0xc9, - 0x15, 0x9e, 0x19, 0x18, 0x04, 0x07, 0x5d, 0x7a, 0x3b, 0x5a, 0x2d, 0x51, 0xbc, 0x44, 0x35, 0xd9, - 0x72, 0x54, 0xeb, 0x0d, 0x5b, 0xab, 0x4b, 0x76, 0x6b, 0x37, 0x76, 0x15, 0x08, 0x2c, 0x28, 0x21, - 0xa1, 0x6a, 0x90, 0x9c, 0xf5, 0x4b, 0x6a, 0x60, 0x5a, 0x30, 0x25, 0x60, 0xc8, 0x30, 0xc8, 0xd6, - 0x4b, 0x5e, 0xfc, 0x07, 0xf2, 0x3f, 0xf2, 0x9c, 0x7f, 0xe0, 0x54, 0x25, 0x79, 0x48, 0xf9, 0x31, - 0xa9, 0xbc, 0xb8, 0xe4, 0x3f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xb3, 0x2f, 0xd2, 0x46, 0x7e, 0xc1, 0x83, 0x0b, 0xd5, 0x32, 0x72, 0x5c, - 0x85, 0x9c, 0xe5, 0x47, 0x5a, 0x42, 0xee, 0x1e, 0x3c, 0x04, 0x02, 0x42, 0x46, 0xe6, 0xdd, 0x11, - 0xf3, 0x1d, 0xcf, 0x25, 0xf9, 0x45, 0xde, 0x0d, 0xb8, 0x05, 0x43, 0xc4, 0xbb, 0x55, 0x58, 0x8e, - 0x96, 0x12, 0xbc, 0x17, 0x2d, 0x39, 0xa9, 0xdb, 0xce, 0x88, 0x06, 0x21, 0xac, 0x3b, 0xaf, 0x52, - 0xa0, 0xf3, 0x63, 0xfc, 0x55, 0x00, 0x2e, 0xf5, 0x6e, 0x70, 0xf9, 0xd0, 0xc2, 0x4f, 0xa2, 0x7e, - 0xc8, 0x73, 0x86, 0xe2, 0x62, 0x3f, 0xc4, 0x3d, 0xf0, 0xb5, 0x74, 0xff, 0xf2, 0xbc, 0x57, 0x1b, - 0x71, 0x7f, 0xe0, 0xf8, 0x1f, 0x20, 0x6b, 0x99, 0x9e, 0x79, 0x65, 0xd3, 0x17, 0x85, 0x95, 0x79, - 0xef, 0x27, 0xd0, 0x27, 0x88, 0xea, 0x0a, 0x09, 0x18, 0x98, 0x36, 0x8e, 0xb1, 0xd5, 0x05, 0xda, - 0x18, 0xc6, 0x02, 0x74, 0xed, 0xf8, 0x01, 0x5a, 0x9b, 0x87, 0xab, 0x68, 0x80, 0x82, 0xd0, 0xb0, - 0xd7, 0x39, 0x34, 0xaf, 0x9d, 0x99, 0x57, 0x40, 0xf3, 0x1c, 0xd8, 0xe4, 0x67, 0xec, 0x75, 0x0a, - 0xaa, 0x4a, 0x0e, 0x96, 0x7a, 0x42, 0x90, 0xf1, 0x27, 0x55, 0x96, 0x7f, 0x09, 0xce, 0xe4, 0x1b, - 0x79, 0x78, 0x5f, 0x02, 0x95, 0xe9, 0xf3, 0x97, 0x90, 0xb9, 0xb0, 0xe9, 0x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b, 0x48, 0xc8, 0x81, 0x8b, 0xb7, 0x07, 0x83, 0xd8, 0x58, - 0x50, 0xfd, 0xd8, 0xb1, 0x20, 0x36, 0x14, 0x3c, 0xb8, 0x35, 0x14, 0x44, 0x47, 0x82, 0x42, 0x62, - 0x24, 0x08, 0x06, 0x82, 0xcd, 0xc7, 0xa0, 0x73, 0x8b, 0xf1, 0x9e, 0x3f, 0xf8, 0x88, 0x57, 0x52, - 0x5c, 0x6c, 0x81, 0x9c, 0x7a, 0x36, 0x5f, 0xab, 0x90, 0x66, 0x6b, 0x36, 0x23, 0xba, 0xbc, 0x9d, - 0x4c, 0xce, 0x88, 0x84, 0x97, 0x78, 0x71, 0x88, 0xbf, 0x8d, 0x95, 0x8e, 0x5f, 0x2c, 0xd6, 0x51, - 0x8a, 0xd4, 0x92, 0x75, 0xd0, 0x27, 0xa6, 0x6b, 0x8e, 0x44, 0x2f, 0x4e, 0xc4, 0xc2, 0x38, 0x84, - 0x34, 0xbf, 0xfc, 0x27, 0xb0, 0xd2, 0xee, 0x90, 0xc6, 0x51, 0xad, 0x53, 0x27, 0xad, 0xb3, 0xc3, - 0x3a, 0x52, 0x58, 0xbe, 0x38, 0xaa, 0xfd, 0x58, 0x69, 0x95, 0x49, 0x15, 0xa9, 0x18, 0x20, 0xd3, - 0xe8, 0x94, 0x9b, 0x8d, 0x03, 0xa4, 0xb1, 0x9c, 0x52, 0x69, 0x35, 0xab, 0x28, 0xc5, 0xbe, 0x9a, - 0x8d, 0x93, 0x23, 0x94, 0x36, 0x0e, 0x7c, 0xd0, 0xe9, 0xa0, 0x4e, 0x90, 0x82, 0x33, 0xa0, 0x0d, - 0xbe, 0x41, 0x2a, 0xff, 0xdd, 0x41, 0x1a, 0xff, 0xdd, 0x45, 0x29, 0xfe, 0xbb, 0x87, 0xd2, 0x2c, - 0x45, 0xfd, 0x7e, 0xe6, 0x78, 0x14, 0xe9, 0x4c, 0x48, 0xcf, 0xb1, 0x28, 0xca, 0x18, 0x25, 0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x01, 0x00, 0x00, 0xff, 0xff, 0x82, 0xc3, 0xde, - 0x4f, 0x05, 0x13, 0x00, 0x00, + // 1755 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x6f, 0x22, 0xc9, + 0x15, 0xee, 0x6e, 0x68, 0x0c, 0x07, 0x5f, 0x6a, 0x2b, 0x5e, 0x2f, 0x21, 0x0e, 0xb1, 0x3a, 0xab, + 0x89, 0xb5, 0xb3, 0x61, 0xb3, 0xbe, 0x64, 0x57, 0xbb, 0x99, 0x91, 0xc0, 0x30, 0x06, 0x19, 0x1b, + 0xab, 0xc0, 0x9e, 0xcc, 0x4a, 0x51, 0xd4, 0xd0, 0x65, 0x68, 0x19, 0x68, 0xd2, 0x34, 0x9e, 0xe5, + 0x25, 0x2f, 0xf9, 0x03, 0xf9, 0x1f, 0x79, 0xce, 0x3f, 0x98, 0x48, 0xc9, 0x4b, 0x34, 0x8f, 0x89, + 0xf2, 0x32, 0xf2, 0xfc, 0x91, 0xa8, 0x2e, 0x7d, 0xc3, 0x18, 0xcf, 0x4c, 0xb2, 0x4f, 0x74, 0x55, + 0x9d, 0x73, 0xea, 0xd4, 0x39, 0xdf, 0xb9, 0x01, 0xd9, 0xce, 0xc0, 0xe9, 0x5e, 0x17, 0xc7, 0xae, + 0xe3, 0x39, 0x78, 0xc5, 0x1c, 0xcd, 0xbc, 0xd9, 0x98, 0xe6, 0x57, 0x27, 0x9e, 0x3b, 0xed, 0x7a, + 0x62, 0xdb, 0xf8, 0x12, 0x32, 0x65, 0x46, 0xd5, 0xea, 0x3b, 0x2f, 0xf1, 0xa7, 0xa0, 0x73, 0x96, + 0x9c, 0xba, 0xa3, 0xee, 0x66, 0xf7, 0xd6, 0x8b, 0x92, 0xa7, 0xc8, 0x49, 0x88, 0x38, 0x34, 0x9e, + 0x42, 0x96, 0xaf, 0x2f, 0xc6, 0x96, 0xe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, 0xe7, 0x39, 0xdc, 0x62, 0x3a, 0xd1, 0x3c, + 0xe7, 0xb3, 0x99, 0xfc, 0xd3, 0x89, 0x43, 0x71, 0x0d, 0x32, 0x95, 0x52, 0xab, 0x26, 0x82, 0x81, + 0x17, 0xd5, 0xf3, 0xd2, 0x71, 0x55, 0x14, 0xd5, 0x4a, 0xa9, 0x5d, 0x92, 0x6a, 0xb0, 0x62, 0x5b, + 0xfd, 0x6d, 0x1b, 0x71, 0xec, 0x3e, 0xab, 0x37, 0xaa, 0xe8, 0x8a, 0xeb, 0x59, 0x3f, 0x6a, 0x5f, + 0x90, 0x2a, 0xea, 0xb1, 0xe7, 0x5c, 0xd6, 0x2b, 0xd5, 0x26, 0xea, 0xc7, 0xca, 0xb1, 0x8d, 0xb3, + 0x90, 0x6a, 0x94, 0x5e, 0x34, 0x2f, 0xda, 0xe8, 0x1f, 0x6a, 0x79, 0xfb, 0xef, 0xb7, 0x05, 0xf5, + 0xf5, 0x6d, 0x41, 0x7d, 0x73, 0x5b, 0x50, 0xff, 0xfc, 0xb6, 0xa0, 0xbc, 0x7e, 0x5b, 0x50, 0xfe, + 0xf5, 0xb6, 0xa0, 0x7c, 0xa7, 0x8d, 0x3b, 0x9d, 0x14, 0xff, 0x53, 0x6c, 0xff, 0xbf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x02, 0x69, 0xcb, 0x45, 0x3a, 0x13, 0x00, 0x00, } func (m *BlockShow) Marshal() (dAtA []byte, err error) { @@ -3590,12 +3614,10 @@ func (m *BlockLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) + if m.Style != 0 { + i = encodeVarintBlock(dAtA, i, uint64(m.Style)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } @@ -4927,9 +4949,8 @@ func (m *BlockLayout) Size() (n int) { } var l int _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) + if m.Style != 0 { + n += 1 + sovBlock(uint64(m.Style)) } return n } @@ -7332,10 +7353,10 @@ func (m *BlockLayout) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var stringLen uint64 + m.Style = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBlock @@ -7345,24 +7366,11 @@ func (m *BlockLayout) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Style |= BlockLayout_Style(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBlock(dAtA[iNdEx:]) diff --git a/pb/protos/block.proto b/pb/protos/block.proto index fcd138d56..58fa22b89 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -111,7 +111,12 @@ message BlockHeader { // row/column type specified in the header message BlockLayout { - string id = 1; + Style style = 1; + + enum Style { + ROW = 0; + COLUMN = 1; + } } message BlockPermissions { @@ -133,8 +138,7 @@ enum BlockType { VIDEO = 104; BOOKMARK = 105; - ROW = 201; - COLUMN = 202; + LAYOUT = 201; } message BlockHeadersList { From d421e68a31700044e4e16ae630d21d35e8af406c Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 31 Oct 2019 14:03:21 +0100 Subject: [PATCH 13/24] Fix block layout --- pb/block.pb.go | 298 +++++++++++++++++++++--------------------- pb/protos/block.proto | 4 +- 2 files changed, 151 insertions(+), 151 deletions(-) diff --git a/pb/block.pb.go b/pb/block.pb.go index fbb6d1544..f3d738e41 100644 --- a/pb/block.pb.go +++ b/pb/block.pb.go @@ -68,28 +68,28 @@ func (BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8e550b1f5926e92d, []int{0} } -type BlockLayout_Style int32 +type BlockContentLayout_Style int32 const ( - BlockLayout_ROW BlockLayout_Style = 0 - BlockLayout_COLUMN BlockLayout_Style = 1 + BlockContentLayout_ROW BlockContentLayout_Style = 0 + BlockContentLayout_COLUMN BlockContentLayout_Style = 1 ) -var BlockLayout_Style_name = map[int32]string{ +var BlockContentLayout_Style_name = map[int32]string{ 0: "ROW", 1: "COLUMN", } -var BlockLayout_Style_value = map[string]int32{ +var BlockContentLayout_Style_value = map[string]int32{ "ROW": 0, "COLUMN": 1, } -func (x BlockLayout_Style) String() string { - return proto.EnumName(BlockLayout_Style_name, int32(x)) +func (x BlockContentLayout_Style) String() string { + return proto.EnumName(BlockContentLayout_Style_name, int32(x)) } -func (BlockLayout_Style) EnumDescriptor() ([]byte, []int) { +func (BlockContentLayout_Style) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8e550b1f5926e92d, []int{13, 0} } @@ -1265,7 +1265,7 @@ type Block_Media struct { Media *BlockContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` } type Block_Layout struct { - Layout *BlockLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` + Layout *BlockContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` } func (*Block_Dashboard) isBlock_Content() {} @@ -1324,7 +1324,7 @@ func (m *Block) GetMedia() *BlockContentMedia { return nil } -func (m *Block) GetLayout() *BlockLayout { +func (m *Block) GetLayout() *BlockContentLayout { if x, ok := m.GetContent().(*Block_Layout); ok { return x.Layout } @@ -1412,22 +1412,22 @@ func (m *BlockHeader) GetPermissions() *BlockPermissions { } // row/column type specified in the header -type BlockLayout struct { - Style BlockLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockLayout_Style" json:"style,omitempty"` +type BlockContentLayout struct { + Style BlockContentLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentLayout_Style" json:"style,omitempty"` } -func (m *BlockLayout) Reset() { *m = BlockLayout{} } -func (m *BlockLayout) String() string { return proto.CompactTextString(m) } -func (*BlockLayout) ProtoMessage() {} -func (*BlockLayout) Descriptor() ([]byte, []int) { +func (m *BlockContentLayout) Reset() { *m = BlockContentLayout{} } +func (m *BlockContentLayout) String() string { return proto.CompactTextString(m) } +func (*BlockContentLayout) ProtoMessage() {} +func (*BlockContentLayout) Descriptor() ([]byte, []int) { return fileDescriptor_8e550b1f5926e92d, []int{13} } -func (m *BlockLayout) XXX_Unmarshal(b []byte) error { +func (m *BlockContentLayout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *BlockContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockLayout.Marshal(b, m, deterministic) + return xxx_messageInfo_BlockContentLayout.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1437,23 +1437,23 @@ func (m *BlockLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *BlockLayout) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockLayout.Merge(m, src) +func (m *BlockContentLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockContentLayout.Merge(m, src) } -func (m *BlockLayout) XXX_Size() int { +func (m *BlockContentLayout) XXX_Size() int { return m.Size() } -func (m *BlockLayout) XXX_DiscardUnknown() { - xxx_messageInfo_BlockLayout.DiscardUnknown(m) +func (m *BlockContentLayout) XXX_DiscardUnknown() { + xxx_messageInfo_BlockContentLayout.DiscardUnknown(m) } -var xxx_messageInfo_BlockLayout proto.InternalMessageInfo +var xxx_messageInfo_BlockContentLayout proto.InternalMessageInfo -func (m *BlockLayout) GetStyle() BlockLayout_Style { +func (m *BlockContentLayout) GetStyle() BlockContentLayout_Style { if m != nil { return m.Style } - return BlockLayout_ROW + return BlockContentLayout_ROW } type BlockPermissions struct { @@ -2400,7 +2400,7 @@ func (m *Range) GetTo() int32 { func init() { proto.RegisterEnum("anytype.BlockType", BlockType_name, BlockType_value) - proto.RegisterEnum("anytype.BlockLayout_Style", BlockLayout_Style_name, BlockLayout_Style_value) + proto.RegisterEnum("anytype.BlockContentLayout_Style", BlockContentLayout_Style_name, BlockContentLayout_Style_value) proto.RegisterEnum("anytype.BlockContentPage_Style", BlockContentPage_Style_name, BlockContentPage_Style_value) proto.RegisterEnum("anytype.BlockContentDashboard_Style", BlockContentDashboard_Style_name, BlockContentDashboard_Style_value) proto.RegisterEnum("anytype.BlockContentText_Style", BlockContentText_Style_name, BlockContentText_Style_value) @@ -2420,7 +2420,7 @@ func init() { proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") proto.RegisterType((*Block)(nil), "anytype.Block") proto.RegisterType((*BlockHeader)(nil), "anytype.BlockHeader") - proto.RegisterType((*BlockLayout)(nil), "anytype.BlockLayout") + proto.RegisterType((*BlockContentLayout)(nil), "anytype.BlockContentLayout") proto.RegisterType((*BlockPermissions)(nil), "anytype.BlockPermissions") proto.RegisterType((*BlockHeadersList)(nil), "anytype.BlockHeadersList") proto.RegisterType((*BlocksList)(nil), "anytype.BlocksList") @@ -2443,117 +2443,117 @@ func init() { func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1755 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x6f, 0x22, 0xc9, - 0x15, 0xee, 0x6e, 0x68, 0x0c, 0x07, 0x5f, 0x6a, 0x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 0x6d, 0x1b, 0x71, 0xec, 0x3e, 0xab, 0x37, 0xaa, 0xe8, 0x8a, 0xeb, 0x59, 0x3f, 0x6a, 0x5f, - 0x90, 0x2a, 0xea, 0xb1, 0xe7, 0x5c, 0xd6, 0x2b, 0xd5, 0x26, 0xea, 0xc7, 0xca, 0xb1, 0x8d, 0xb3, - 0x90, 0x6a, 0x94, 0x5e, 0x34, 0x2f, 0xda, 0xe8, 0x1f, 0x6a, 0x79, 0xfb, 0xef, 0xb7, 0x05, 0xf5, - 0xf5, 0x6d, 0x41, 0x7d, 0x73, 0x5b, 0x50, 0xff, 0xfc, 0xb6, 0xa0, 0xbc, 0x7e, 0x5b, 0x50, 0xfe, - 0xf5, 0xb6, 0xa0, 0x7c, 0xa7, 0x8d, 0x3b, 0x9d, 0x14, 0xff, 0x53, 0x6c, 0xff, 0xbf, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x02, 0x69, 0xcb, 0x45, 0x3a, 0x13, 0x00, 0x00, + // 1754 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x73, 0x22, 0xc7, + 0x15, 0x9e, 0x19, 0x18, 0x04, 0x07, 0x49, 0xdb, 0xee, 0xac, 0x65, 0x22, 0x2b, 0x44, 0x99, 0xb8, + 0x36, 0x2a, 0xaf, 0x83, 0xcb, 0xba, 0xc4, 0x2e, 0x3b, 0xbb, 0x55, 0x20, 0x58, 0x41, 0x09, 0x09, + 0x55, 0x83, 0xb4, 0x59, 0xbf, 0xa4, 0x06, 0xa6, 0x05, 0x53, 0x5c, 0x86, 0x0c, 0x83, 0xd6, 0xbc, + 0xe4, 0x07, 0xe4, 0x29, 0xff, 0x23, 0xcf, 0xf9, 0x07, 0x4e, 0x55, 0xf2, 0x92, 0xda, 0xc7, 0xa4, + 0xf2, 0xe2, 0xd2, 0xfe, 0x91, 0x54, 0x5f, 0xe6, 0x2a, 0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 0x8b, 0xca, 0xd7, 0xda, 0xb4, 0xdb, 0xcd, 0xf0, 0x7f, 0xca, 0x0e, 0xfe, 0x1b, 0x00, 0x00, + 0xff, 0xff, 0xe5, 0xaa, 0x95, 0xf2, 0x4f, 0x13, 0x00, 0x00, } func (m *BlockShow) Marshal() (dAtA []byte, err error) { @@ -3594,7 +3594,7 @@ func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BlockLayout) Marshal() (dAtA []byte, err error) { +func (m *BlockContentLayout) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3604,12 +3604,12 @@ func (m *BlockLayout) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BlockLayout) MarshalTo(dAtA []byte) (int, error) { +func (m *BlockContentLayout) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlockContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4943,7 +4943,7 @@ func (m *BlockHeader) Size() (n int) { return n } -func (m *BlockLayout) Size() (n int) { +func (m *BlockContentLayout) Size() (n int) { if m == nil { return 0 } @@ -7117,7 +7117,7 @@ func (m *Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockLayout{} + v := &BlockContentLayout{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7323,7 +7323,7 @@ func (m *BlockHeader) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockLayout) Unmarshal(dAtA []byte) error { +func (m *BlockContentLayout) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7346,10 +7346,10 @@ func (m *BlockLayout) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockLayout: wiretype end group for non-group") + return fmt.Errorf("proto: BlockContentLayout: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockLayout: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BlockContentLayout: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7366,7 +7366,7 @@ func (m *BlockLayout) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= BlockLayout_Style(b&0x7F) << shift + m.Style |= BlockContentLayout_Style(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/protos/block.proto b/pb/protos/block.proto index 58fa22b89..fbd5a09fc 100644 --- a/pb/protos/block.proto +++ b/pb/protos/block.proto @@ -98,7 +98,7 @@ message Block { BlockContentText text = 14; BlockContentMedia media = 15; - BlockLayout layout = 16; + BlockContentLayout layout = 16; } } @@ -110,7 +110,7 @@ message BlockHeader { } // row/column type specified in the header -message BlockLayout { +message BlockContentLayout { Style style = 1; enum Style { From 9ee912e773d2d8b499e8609d7e864956176b05ca Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 1 Nov 2019 18:30:12 +0100 Subject: [PATCH 14/24] #15: 4/4 --- pb/block-changes.pb.go | 3174 ++++++++++- pb/block-commands.pb.go | 85 +- pb/block-content.pb.go | 4939 +++++++++++++++++ pb/block-events.pb.go | 692 +++ pb/block.pb.go | 9557 -------------------------------- pb/edit.pb.go | 33 +- pb/event.pb.go | 45 +- pb/general-models.pb.go | 335 ++ pb/protos/block-changes.proto | 70 + pb/protos/block-commands.proto | 7 +- pb/protos/block-content.proto | 173 + pb/protos/block-events.proto | 19 + pb/protos/block.proto | 339 -- pb/protos/edit.proto | 2 +- pb/protos/event.proto | 2 +- pb/protos/general-models.proto | 9 + 16 files changed, 9493 insertions(+), 9988 deletions(-) create mode 100644 pb/block-content.pb.go create mode 100644 pb/block-events.pb.go delete mode 100644 pb/block.pb.go create mode 100644 pb/general-models.pb.go create mode 100644 pb/protos/block-changes.proto create mode 100644 pb/protos/block-content.proto create mode 100644 pb/protos/block-events.proto delete mode 100644 pb/protos/block.proto create mode 100644 pb/protos/general-models.proto diff --git a/pb/block-changes.pb.go b/pb/block-changes.pb.go index bbe386a94..07b2e7500 100644 --- a/pb/block-changes.pb.go +++ b/pb/block-changes.pb.go @@ -6,7 +6,9 @@ package pb import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" + io "io" math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -20,14 +22,3172 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type BlockContentTextChange struct { + // Types that are valid to be assigned to Change: + // *BlockContentTextChange_Text + // *BlockContentTextChange_Style + // *BlockContentTextChange_Marks + // *BlockContentTextChange_Toggleable + // *BlockContentTextChange_MarkerType + // *BlockContentTextChange_Checkable + // *BlockContentTextChange_Checked + Change isBlockContentTextChange_Change `protobuf_oneof:"change"` +} + +func (m *BlockContentTextChange) Reset() { *m = BlockContentTextChange{} } +func (m *BlockContentTextChange) String() string { return proto.CompactTextString(m) } +func (*BlockContentTextChange) ProtoMessage() {} +func (*BlockContentTextChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{0} +} +func (m *BlockContentTextChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockContentTextChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockContentTextChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockContentTextChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockContentTextChange.Merge(m, src) +} +func (m *BlockContentTextChange) XXX_Size() int { + return m.Size() +} +func (m *BlockContentTextChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockContentTextChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockContentTextChange proto.InternalMessageInfo + +type isBlockContentTextChange_Change interface { + isBlockContentTextChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockContentTextChange_Text struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` +} +type BlockContentTextChange_Style struct { + Style Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Block_ContentText_Style,oneof" json:"style,omitempty"` +} +type BlockContentTextChange_Marks struct { + Marks *Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` +} +type BlockContentTextChange_Toggleable struct { + Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3,oneof" json:"toggleable,omitempty"` +} +type BlockContentTextChange_MarkerType struct { + MarkerType Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Block_ContentText_MarkerType,oneof" json:"markerType,omitempty"` +} +type BlockContentTextChange_Checkable struct { + Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3,oneof" json:"checkable,omitempty"` +} +type BlockContentTextChange_Checked struct { + Checked bool `protobuf:"varint,7,opt,name=checked,proto3,oneof" json:"checked,omitempty"` +} + +func (*BlockContentTextChange_Text) isBlockContentTextChange_Change() {} +func (*BlockContentTextChange_Style) isBlockContentTextChange_Change() {} +func (*BlockContentTextChange_Marks) isBlockContentTextChange_Change() {} +func (*BlockContentTextChange_Toggleable) isBlockContentTextChange_Change() {} +func (*BlockContentTextChange_MarkerType) isBlockContentTextChange_Change() {} +func (*BlockContentTextChange_Checkable) isBlockContentTextChange_Change() {} +func (*BlockContentTextChange_Checked) isBlockContentTextChange_Change() {} + +func (m *BlockContentTextChange) GetChange() isBlockContentTextChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlockContentTextChange) GetText() string { + if x, ok := m.GetChange().(*BlockContentTextChange_Text); ok { + return x.Text + } + return "" +} + +func (m *BlockContentTextChange) GetStyle() Block_ContentText_Style { + if x, ok := m.GetChange().(*BlockContentTextChange_Style); ok { + return x.Style + } + return Block_ContentText_p +} + +func (m *BlockContentTextChange) GetMarks() *Block_ContentText_Marks { + if x, ok := m.GetChange().(*BlockContentTextChange_Marks); ok { + return x.Marks + } + return nil +} + +func (m *BlockContentTextChange) GetToggleable() bool { + if x, ok := m.GetChange().(*BlockContentTextChange_Toggleable); ok { + return x.Toggleable + } + return false +} + +func (m *BlockContentTextChange) GetMarkerType() Block_ContentText_MarkerType { + if x, ok := m.GetChange().(*BlockContentTextChange_MarkerType); ok { + return x.MarkerType + } + return Block_ContentText_none +} + +func (m *BlockContentTextChange) GetCheckable() bool { + if x, ok := m.GetChange().(*BlockContentTextChange_Checkable); ok { + return x.Checkable + } + return false +} + +func (m *BlockContentTextChange) GetChecked() bool { + if x, ok := m.GetChange().(*BlockContentTextChange_Checked); ok { + return x.Checked + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockContentTextChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockContentTextChange_Text)(nil), + (*BlockContentTextChange_Style)(nil), + (*BlockContentTextChange_Marks)(nil), + (*BlockContentTextChange_Toggleable)(nil), + (*BlockContentTextChange_MarkerType)(nil), + (*BlockContentTextChange_Checkable)(nil), + (*BlockContentTextChange_Checked)(nil), + } +} + +type BlockContentPageChange struct { + // Types that are valid to be assigned to Change: + // *BlockContentPageChange_Style + // *BlockContentPageChange_Block + Change isBlockContentPageChange_Change `protobuf_oneof:"change"` +} + +func (m *BlockContentPageChange) Reset() { *m = BlockContentPageChange{} } +func (m *BlockContentPageChange) String() string { return proto.CompactTextString(m) } +func (*BlockContentPageChange) ProtoMessage() {} +func (*BlockContentPageChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{1} +} +func (m *BlockContentPageChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockContentPageChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockContentPageChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockContentPageChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockContentPageChange.Merge(m, src) +} +func (m *BlockContentPageChange) XXX_Size() int { + return m.Size() +} +func (m *BlockContentPageChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockContentPageChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockContentPageChange proto.InternalMessageInfo + +type isBlockContentPageChange_Change interface { + isBlockContentPageChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockContentPageChange_Style struct { + Style Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentPage_Style,oneof" json:"style,omitempty"` +} +type BlockContentPageChange_Block struct { + Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` +} + +func (*BlockContentPageChange_Style) isBlockContentPageChange_Change() {} +func (*BlockContentPageChange_Block) isBlockContentPageChange_Change() {} + +func (m *BlockContentPageChange) GetChange() isBlockContentPageChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlockContentPageChange) GetStyle() Block_ContentPage_Style { + if x, ok := m.GetChange().(*BlockContentPageChange_Style); ok { + return x.Style + } + return Block_ContentPage_EMPTY +} + +func (m *BlockContentPageChange) GetBlock() *Block { + if x, ok := m.GetChange().(*BlockContentPageChange_Block); ok { + return x.Block + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockContentPageChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockContentPageChange_Style)(nil), + (*BlockContentPageChange_Block)(nil), + } +} + +type BlockHeaderChange struct { + // Types that are valid to be assigned to Change: + // *BlockHeaderChange_Id + // *BlockHeaderChange_Type + // *BlockHeaderChange_Name + // *BlockHeaderChange_Icon + // *BlockHeaderChange_Permissions + Change isBlockHeaderChange_Change `protobuf_oneof:"change"` +} + +func (m *BlockHeaderChange) Reset() { *m = BlockHeaderChange{} } +func (m *BlockHeaderChange) String() string { return proto.CompactTextString(m) } +func (*BlockHeaderChange) ProtoMessage() {} +func (*BlockHeaderChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{2} +} +func (m *BlockHeaderChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHeaderChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHeaderChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHeaderChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHeaderChange.Merge(m, src) +} +func (m *BlockHeaderChange) XXX_Size() int { + return m.Size() +} +func (m *BlockHeaderChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHeaderChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHeaderChange proto.InternalMessageInfo + +type isBlockHeaderChange_Change interface { + isBlockHeaderChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockHeaderChange_Id struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` +} +type BlockHeaderChange_Type struct { + Type Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Block_Header_Type,oneof" json:"type,omitempty"` +} +type BlockHeaderChange_Name struct { + Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` +} +type BlockHeaderChange_Icon struct { + Icon string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` +} +type BlockHeaderChange_Permissions struct { + Permissions *Block_Header_Permissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` +} + +func (*BlockHeaderChange_Id) isBlockHeaderChange_Change() {} +func (*BlockHeaderChange_Type) isBlockHeaderChange_Change() {} +func (*BlockHeaderChange_Name) isBlockHeaderChange_Change() {} +func (*BlockHeaderChange_Icon) isBlockHeaderChange_Change() {} +func (*BlockHeaderChange_Permissions) isBlockHeaderChange_Change() {} + +func (m *BlockHeaderChange) GetChange() isBlockHeaderChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlockHeaderChange) GetId() string { + if x, ok := m.GetChange().(*BlockHeaderChange_Id); ok { + return x.Id + } + return "" +} + +func (m *BlockHeaderChange) GetType() Block_Header_Type { + if x, ok := m.GetChange().(*BlockHeaderChange_Type); ok { + return x.Type + } + return Block_Header_DASHBOARD +} + +func (m *BlockHeaderChange) GetName() string { + if x, ok := m.GetChange().(*BlockHeaderChange_Name); ok { + return x.Name + } + return "" +} + +func (m *BlockHeaderChange) GetIcon() string { + if x, ok := m.GetChange().(*BlockHeaderChange_Icon); ok { + return x.Icon + } + return "" +} + +func (m *BlockHeaderChange) GetPermissions() *Block_Header_Permissions { + if x, ok := m.GetChange().(*BlockHeaderChange_Permissions); ok { + return x.Permissions + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockHeaderChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockHeaderChange_Id)(nil), + (*BlockHeaderChange_Type)(nil), + (*BlockHeaderChange_Name)(nil), + (*BlockHeaderChange_Icon)(nil), + (*BlockHeaderChange_Permissions)(nil), + } +} + +type BlockChildrenChange struct { + Children []string `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` +} + +func (m *BlockChildrenChange) Reset() { *m = BlockChildrenChange{} } +func (m *BlockChildrenChange) String() string { return proto.CompactTextString(m) } +func (*BlockChildrenChange) ProtoMessage() {} +func (*BlockChildrenChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{3} +} +func (m *BlockChildrenChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockChildrenChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockChildrenChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockChildrenChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockChildrenChange.Merge(m, src) +} +func (m *BlockChildrenChange) XXX_Size() int { + return m.Size() +} +func (m *BlockChildrenChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockChildrenChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockChildrenChange proto.InternalMessageInfo + +func (m *BlockChildrenChange) GetChildren() []string { + if m != nil { + return m.Children + } + return nil +} + +type BlockContentDashboardChange struct { + // Types that are valid to be assigned to Change: + // *BlockContentDashboardChange_Style + // *BlockContentDashboardChange_Header + Change isBlockContentDashboardChange_Change `protobuf_oneof:"change"` +} + +func (m *BlockContentDashboardChange) Reset() { *m = BlockContentDashboardChange{} } +func (m *BlockContentDashboardChange) String() string { return proto.CompactTextString(m) } +func (*BlockContentDashboardChange) ProtoMessage() {} +func (*BlockContentDashboardChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{4} +} +func (m *BlockContentDashboardChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockContentDashboardChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockContentDashboardChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockContentDashboardChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockContentDashboardChange.Merge(m, src) +} +func (m *BlockContentDashboardChange) XXX_Size() int { + return m.Size() +} +func (m *BlockContentDashboardChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockContentDashboardChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockContentDashboardChange proto.InternalMessageInfo + +type isBlockContentDashboardChange_Change interface { + isBlockContentDashboardChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockContentDashboardChange_Style struct { + Style Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentDashboard_Style,oneof" json:"style,omitempty"` +} +type BlockContentDashboardChange_Header struct { + Header *Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` +} + +func (*BlockContentDashboardChange_Style) isBlockContentDashboardChange_Change() {} +func (*BlockContentDashboardChange_Header) isBlockContentDashboardChange_Change() {} + +func (m *BlockContentDashboardChange) GetChange() isBlockContentDashboardChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlockContentDashboardChange) GetStyle() Block_ContentDashboard_Style { + if x, ok := m.GetChange().(*BlockContentDashboardChange_Style); ok { + return x.Style + } + return Block_ContentDashboard_MAIN_SCREEN +} + +func (m *BlockContentDashboardChange) GetHeader() *Block_Header { + if x, ok := m.GetChange().(*BlockContentDashboardChange_Header); ok { + return x.Header + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockContentDashboardChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockContentDashboardChange_Style)(nil), + (*BlockContentDashboardChange_Header)(nil), + } +} + +type BlockContentMediaChange struct { + // Types that are valid to be assigned to Change: + // *BlockContentMediaChange_Link + // *BlockContentMediaChange_State + Change isBlockContentMediaChange_Change `protobuf_oneof:"change"` +} + +func (m *BlockContentMediaChange) Reset() { *m = BlockContentMediaChange{} } +func (m *BlockContentMediaChange) String() string { return proto.CompactTextString(m) } +func (*BlockContentMediaChange) ProtoMessage() {} +func (*BlockContentMediaChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{5} +} +func (m *BlockContentMediaChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockContentMediaChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockContentMediaChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockContentMediaChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockContentMediaChange.Merge(m, src) +} +func (m *BlockContentMediaChange) XXX_Size() int { + return m.Size() +} +func (m *BlockContentMediaChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlockContentMediaChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockContentMediaChange proto.InternalMessageInfo + +type isBlockContentMediaChange_Change interface { + isBlockContentMediaChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlockContentMediaChange_Link struct { + Link string `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` +} +type BlockContentMediaChange_State struct { + State Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Block_ContentMedia_State,oneof" json:"state,omitempty"` +} + +func (*BlockContentMediaChange_Link) isBlockContentMediaChange_Change() {} +func (*BlockContentMediaChange_State) isBlockContentMediaChange_Change() {} + +func (m *BlockContentMediaChange) GetChange() isBlockContentMediaChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlockContentMediaChange) GetLink() string { + if x, ok := m.GetChange().(*BlockContentMediaChange_Link); ok { + return x.Link + } + return "" +} + +func (m *BlockContentMediaChange) GetState() Block_ContentMedia_State { + if x, ok := m.GetChange().(*BlockContentMediaChange_State); ok { + return x.State + } + return Block_ContentMedia_EMPTY +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlockContentMediaChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlockContentMediaChange_Link)(nil), + (*BlockContentMediaChange_State)(nil), + } +} + +type BlocksListSingleChange struct { + Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"` + // Types that are valid to be assigned to Change: + // *BlocksListSingleChange_Text + // *BlocksListSingleChange_BlockHeader + // *BlocksListSingleChange_BlockChildren + // *BlocksListSingleChange_Page + // *BlocksListSingleChange_Dashboard + // *BlocksListSingleChange_Media + Change isBlocksListSingleChange_Change `protobuf_oneof:"change"` +} + +func (m *BlocksListSingleChange) Reset() { *m = BlocksListSingleChange{} } +func (m *BlocksListSingleChange) String() string { return proto.CompactTextString(m) } +func (*BlocksListSingleChange) ProtoMessage() {} +func (*BlocksListSingleChange) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{6} +} +func (m *BlocksListSingleChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlocksListSingleChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlocksListSingleChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlocksListSingleChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlocksListSingleChange.Merge(m, src) +} +func (m *BlocksListSingleChange) XXX_Size() int { + return m.Size() +} +func (m *BlocksListSingleChange) XXX_DiscardUnknown() { + xxx_messageInfo_BlocksListSingleChange.DiscardUnknown(m) +} + +var xxx_messageInfo_BlocksListSingleChange proto.InternalMessageInfo + +type isBlocksListSingleChange_Change interface { + isBlocksListSingleChange_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type BlocksListSingleChange_Text struct { + Text *BlockContentTextChange `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"` +} +type BlocksListSingleChange_BlockHeader struct { + BlockHeader *BlockHeaderChange `protobuf:"bytes,3,opt,name=blockHeader,proto3,oneof" json:"blockHeader,omitempty"` +} +type BlocksListSingleChange_BlockChildren struct { + BlockChildren *BlockChildrenChange `protobuf:"bytes,4,opt,name=blockChildren,proto3,oneof" json:"blockChildren,omitempty"` +} +type BlocksListSingleChange_Page struct { + Page *BlockContentPageChange `protobuf:"bytes,5,opt,name=page,proto3,oneof" json:"page,omitempty"` +} +type BlocksListSingleChange_Dashboard struct { + Dashboard *BlockContentDashboardChange `protobuf:"bytes,6,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` +} +type BlocksListSingleChange_Media struct { + Media *BlockContentMediaChange `protobuf:"bytes,7,opt,name=media,proto3,oneof" json:"media,omitempty"` +} + +func (*BlocksListSingleChange_Text) isBlocksListSingleChange_Change() {} +func (*BlocksListSingleChange_BlockHeader) isBlocksListSingleChange_Change() {} +func (*BlocksListSingleChange_BlockChildren) isBlocksListSingleChange_Change() {} +func (*BlocksListSingleChange_Page) isBlocksListSingleChange_Change() {} +func (*BlocksListSingleChange_Dashboard) isBlocksListSingleChange_Change() {} +func (*BlocksListSingleChange_Media) isBlocksListSingleChange_Change() {} + +func (m *BlocksListSingleChange) GetChange() isBlocksListSingleChange_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *BlocksListSingleChange) GetId() []string { + if m != nil { + return m.Id + } + return nil +} + +func (m *BlocksListSingleChange) GetText() *BlockContentTextChange { + if x, ok := m.GetChange().(*BlocksListSingleChange_Text); ok { + return x.Text + } + return nil +} + +func (m *BlocksListSingleChange) GetBlockHeader() *BlockHeaderChange { + if x, ok := m.GetChange().(*BlocksListSingleChange_BlockHeader); ok { + return x.BlockHeader + } + return nil +} + +func (m *BlocksListSingleChange) GetBlockChildren() *BlockChildrenChange { + if x, ok := m.GetChange().(*BlocksListSingleChange_BlockChildren); ok { + return x.BlockChildren + } + return nil +} + +func (m *BlocksListSingleChange) GetPage() *BlockContentPageChange { + if x, ok := m.GetChange().(*BlocksListSingleChange_Page); ok { + return x.Page + } + return nil +} + +func (m *BlocksListSingleChange) GetDashboard() *BlockContentDashboardChange { + if x, ok := m.GetChange().(*BlocksListSingleChange_Dashboard); ok { + return x.Dashboard + } + return nil +} + +func (m *BlocksListSingleChange) GetMedia() *BlockContentMediaChange { + if x, ok := m.GetChange().(*BlocksListSingleChange_Media); ok { + return x.Media + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BlocksListSingleChange) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BlocksListSingleChange_Text)(nil), + (*BlocksListSingleChange_BlockHeader)(nil), + (*BlocksListSingleChange_BlockChildren)(nil), + (*BlocksListSingleChange_Page)(nil), + (*BlocksListSingleChange_Dashboard)(nil), + (*BlocksListSingleChange_Media)(nil), + } +} + +type BlockChanges struct { + Changes []*BlocksListSingleChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` +} + +func (m *BlockChanges) Reset() { *m = BlockChanges{} } +func (m *BlockChanges) String() string { return proto.CompactTextString(m) } +func (*BlockChanges) ProtoMessage() {} +func (*BlockChanges) Descriptor() ([]byte, []int) { + return fileDescriptor_789b3a42aa974be8, []int{7} +} +func (m *BlockChanges) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockChanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockChanges.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockChanges) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockChanges.Merge(m, src) +} +func (m *BlockChanges) XXX_Size() int { + return m.Size() +} +func (m *BlockChanges) XXX_DiscardUnknown() { + xxx_messageInfo_BlockChanges.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockChanges proto.InternalMessageInfo + +func (m *BlockChanges) GetChanges() []*BlocksListSingleChange { + if m != nil { + return m.Changes + } + return nil +} + +func init() { + proto.RegisterType((*BlockContentTextChange)(nil), "anytype.BlockContentTextChange") + proto.RegisterType((*BlockContentPageChange)(nil), "anytype.BlockContentPageChange") + proto.RegisterType((*BlockHeaderChange)(nil), "anytype.BlockHeaderChange") + proto.RegisterType((*BlockChildrenChange)(nil), "anytype.BlockChildrenChange") + proto.RegisterType((*BlockContentDashboardChange)(nil), "anytype.BlockContentDashboardChange") + proto.RegisterType((*BlockContentMediaChange)(nil), "anytype.BlockContentMediaChange") + proto.RegisterType((*BlocksListSingleChange)(nil), "anytype.BlocksListSingleChange") + proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") +} + func init() { proto.RegisterFile("block-changes.proto", fileDescriptor_789b3a42aa974be8) } var fileDescriptor_789b3a42aa974be8 = []byte{ - // 96 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xca, 0xc9, 0x4f, - 0xce, 0xd6, 0x4d, 0xce, 0x48, 0xcc, 0x4b, 0x4f, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0xe2, 0x06, 0xcb, 0x42, 0x44, 0x9d, 0x64, - 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, - 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x8a, 0xa9, 0x20, 0x29, 0x89, 0x0d, - 0xac, 0xc8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x16, 0x64, 0xa9, 0x0f, 0x51, 0x00, 0x00, 0x00, + // 669 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x55, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xf6, 0xa6, 0x6d, 0xda, 0x8c, 0x7f, 0xbf, 0x0a, 0xb6, 0xfc, 0xb1, 0x42, 0x65, 0xdc, 0x0a, + 0x50, 0x2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, 0x73, 0x20, 0x1d, 0x3c, 0xa4, 0x81, 0x2e, 0xc5, + 0xd2, 0xc1, 0x5b, 0x26, 0x9c, 0x0e, 0x1e, 0x9a, 0x06, 0x51, 0x1f, 0xe0, 0x3f, 0x3d, 0x28, 0xdd, + 0x74, 0x7e, 0x80, 0xf7, 0x87, 0x7e, 0x12, 0x45, 0x4b, 0x33, 0x2d, 0xf1, 0x19, 0xcc, 0xe2, 0x0f, + 0x77, 0xbf, 0x5f, 0xbb, 0xec, 0xea, 0xda, 0x65, 0xbf, 0xaf, 0x5d, 0xf6, 0x65, 0xea, 0x5a, 0x57, + 0x53, 0xd7, 0xfa, 0x35, 0x75, 0xad, 0x4f, 0x8d, 0x71, 0x18, 0x36, 0xe9, 0xff, 0xe0, 0xe5, 0x9f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xc0, 0xbc, 0xfc, 0x44, 0x06, 0x00, 0x00, } + +func (m *BlockContentTextChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockContentTextChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BlockContentTextChange_Text) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Text) + copy(dAtA[i:], m.Text) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Text))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *BlockContentTextChange_Style) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlockChanges(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x10 + return len(dAtA) - i, nil +} +func (m *BlockContentTextChange_Marks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Marks != nil { + { + size, err := m.Marks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *BlockContentTextChange_Toggleable) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_Toggleable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.Toggleable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + return len(dAtA) - i, nil +} +func (m *BlockContentTextChange_MarkerType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_MarkerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlockChanges(dAtA, i, uint64(m.MarkerType)) + i-- + dAtA[i] = 0x28 + return len(dAtA) - i, nil +} +func (m *BlockContentTextChange_Checkable) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_Checkable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.Checkable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + return len(dAtA) - i, nil +} +func (m *BlockContentTextChange_Checked) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentTextChange_Checked) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.Checked { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *BlockContentPageChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockContentPageChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentPageChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BlockContentPageChange_Style) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentPageChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlockChanges(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} +func (m *BlockContentPageChange_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentPageChange_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *BlockHeaderChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHeaderChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeaderChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BlockHeaderChange_Id) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeaderChange_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *BlockHeaderChange_Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeaderChange_Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlockChanges(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + return len(dAtA) - i, nil +} +func (m *BlockHeaderChange_Name) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeaderChange_Name) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *BlockHeaderChange_Icon) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeaderChange_Icon) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Icon) + copy(dAtA[i:], m.Icon) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Icon))) + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil +} +func (m *BlockHeaderChange_Permissions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeaderChange_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Permissions != nil { + { + size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *BlockChildrenChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockChildrenChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockChildrenChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Children[iNdEx]) + copy(dAtA[i:], m.Children[iNdEx]) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Children[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BlockContentDashboardChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockContentDashboardChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentDashboardChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BlockContentDashboardChange_Style) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentDashboardChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlockChanges(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} +func (m *BlockContentDashboardChange_Header) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentDashboardChange_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *BlockContentMediaChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockContentMediaChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMediaChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BlockContentMediaChange_Link) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMediaChange_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Link) + copy(dAtA[i:], m.Link) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Link))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *BlockContentMediaChange_State) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockContentMediaChange_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintBlockChanges(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 + return len(dAtA) - i, nil +} +func (m *BlocksListSingleChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlocksListSingleChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Id) > 0 { + for iNdEx := len(m.Id) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Id[iNdEx]) + copy(dAtA[i:], m.Id[iNdEx]) + i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Id[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BlocksListSingleChange_Text) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Text != nil { + { + size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *BlocksListSingleChange_BlockHeader) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange_BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BlockHeader != nil { + { + size, err := m.BlockHeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *BlocksListSingleChange_BlockChildren) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange_BlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BlockChildren != nil { + { + size, err := m.BlockChildren.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *BlocksListSingleChange_Page) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Page != nil { + { + size, err := m.Page.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *BlocksListSingleChange_Dashboard) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Dashboard != nil { + { + size, err := m.Dashboard.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *BlocksListSingleChange_Media) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlocksListSingleChange_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Media != nil { + { + size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *BlockChanges) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockChanges) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockChanges) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintBlockChanges(dAtA []byte, offset int, v uint64) int { + offset -= sovBlockChanges(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *BlockContentTextChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlockContentTextChange_Text) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Text) + n += 1 + l + sovBlockChanges(uint64(l)) + return n +} +func (m *BlockContentTextChange_Style) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlockChanges(uint64(m.Style)) + return n +} +func (m *BlockContentTextChange_Marks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Marks != nil { + l = m.Marks.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlockContentTextChange_Toggleable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *BlockContentTextChange_MarkerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlockChanges(uint64(m.MarkerType)) + return n +} +func (m *BlockContentTextChange_Checkable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *BlockContentTextChange_Checked) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *BlockContentPageChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlockContentPageChange_Style) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlockChanges(uint64(m.Style)) + return n +} +func (m *BlockContentPageChange_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlockHeaderChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlockHeaderChange_Id) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + n += 1 + l + sovBlockChanges(uint64(l)) + return n +} +func (m *BlockHeaderChange_Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlockChanges(uint64(m.Type)) + return n +} +func (m *BlockHeaderChange_Name) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovBlockChanges(uint64(l)) + return n +} +func (m *BlockHeaderChange_Icon) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Icon) + n += 1 + l + sovBlockChanges(uint64(l)) + return n +} +func (m *BlockHeaderChange_Permissions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Permissions != nil { + l = m.Permissions.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlockChildrenChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Children) > 0 { + for _, s := range m.Children { + l = len(s) + n += 1 + l + sovBlockChanges(uint64(l)) + } + } + return n +} + +func (m *BlockContentDashboardChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlockContentDashboardChange_Style) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlockChanges(uint64(m.Style)) + return n +} +func (m *BlockContentDashboardChange_Header) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlockContentMediaChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlockContentMediaChange_Link) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Link) + n += 1 + l + sovBlockChanges(uint64(l)) + return n +} +func (m *BlockContentMediaChange_State) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovBlockChanges(uint64(m.State)) + return n +} +func (m *BlocksListSingleChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Id) > 0 { + for _, s := range m.Id { + l = len(s) + n += 1 + l + sovBlockChanges(uint64(l)) + } + } + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *BlocksListSingleChange_Text) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Text != nil { + l = m.Text.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlocksListSingleChange_BlockHeader) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeader != nil { + l = m.BlockHeader.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlocksListSingleChange_BlockChildren) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockChildren != nil { + l = m.BlockChildren.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlocksListSingleChange_Page) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Page != nil { + l = m.Page.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlocksListSingleChange_Dashboard) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dashboard != nil { + l = m.Dashboard.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlocksListSingleChange_Media) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Media != nil { + l = m.Media.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + return n +} +func (m *BlockChanges) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovBlockChanges(uint64(l)) + } + } + return n +} + +func sovBlockChanges(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBlockChanges(x uint64) (n int) { + return sovBlockChanges(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockContentTextChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockContentTextChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &BlockContentTextChange_Text{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + var v Block_ContentText_Style + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Block_ContentText_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockContentTextChange_Style{v} + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentText_Marks{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlockContentTextChange_Marks{v} + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Change = &BlockContentTextChange_Toggleable{b} + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) + } + var v Block_ContentText_MarkerType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Block_ContentText_MarkerType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockContentTextChange_MarkerType{v} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Change = &BlockContentTextChange_Checkable{b} + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Change = &BlockContentTextChange_Checked{b} + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockContentPageChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockContentPageChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + var v Block_ContentPage_Style + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Block_ContentPage_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockContentPageChange_Style{v} + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlockContentPageChange_Block{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHeaderChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHeaderChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &BlockHeaderChange_Id{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v Block_Header_Type + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Block_Header_Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockHeaderChange_Type{v} + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &BlockHeaderChange_Name{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &BlockHeaderChange_Icon{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_Header_Permissions{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlockHeaderChange_Permissions{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockChildrenChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockChildrenChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockContentDashboardChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockContentDashboardChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + var v Block_ContentDashboard_Style + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Block_ContentDashboard_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockContentDashboardChange_Style{v} + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_Header{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlockContentDashboardChange_Header{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockContentMediaChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockContentMediaChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &BlockContentMediaChange_Link{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var v Block_ContentMedia_State + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Block_ContentMedia_State(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &BlockContentMediaChange_State{v} + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlocksListSingleChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlocksListSingleChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = append(m.Id, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockContentTextChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlocksListSingleChange_Text{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeader", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockHeaderChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlocksListSingleChange_BlockHeader{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockChildren", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockChildrenChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlocksListSingleChange_BlockChildren{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockContentPageChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlocksListSingleChange_Page{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dashboard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockContentDashboardChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlocksListSingleChange_Dashboard{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BlockContentMediaChange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &BlocksListSingleChange_Media{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockChanges) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockChanges: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockChanges: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, &BlocksListSingleChange{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBlockChanges(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockChanges + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBlockChanges + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBlockChanges + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBlockChanges + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBlockChanges = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBlockChanges = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBlockChanges = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/block-commands.pb.go b/pb/block-commands.pb.go index f09e90552..4d9e2d208 100644 --- a/pb/block-commands.pb.go +++ b/pb/block-commands.pb.go @@ -339,7 +339,7 @@ func (m *BlockOpenRequest) GetId() string { type BlockOpenResponse struct { Error *BlockOpenResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockHeader *BlockHeader `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` + BlockHeader *Block_Header `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` } func (m *BlockOpenResponse) Reset() { *m = BlockOpenResponse{} } @@ -382,7 +382,7 @@ func (m *BlockOpenResponse) GetError() *BlockOpenResponse_Error { return nil } -func (m *BlockOpenResponse) GetBlockHeader() *BlockHeader { +func (m *BlockOpenResponse) GetBlockHeader() *Block_Header { if m != nil { return m.BlockHeader } @@ -442,8 +442,8 @@ func (m *BlockOpenResponse_Error) GetDescription() string { } type BlockCreateRequest struct { - Type BlockType `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.BlockType" json:"type,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` + Type Block_Header_Type `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.Block_Header_Type" json:"type,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` } func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } @@ -479,11 +479,11 @@ func (m *BlockCreateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_BlockCreateRequest proto.InternalMessageInfo -func (m *BlockCreateRequest) GetType() BlockType { +func (m *BlockCreateRequest) GetType() Block_Header_Type { if m != nil { return m.Type } - return BlockType_DASHBOARD + return Block_Header_DASHBOARD } func (m *BlockCreateRequest) GetContextBlockId() string { @@ -751,40 +751,41 @@ func init() { func init() { proto.RegisterFile("block-commands.proto", fileDescriptor_45d3ea291059030c) } var fileDescriptor_45d3ea291059030c = []byte{ - // 522 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0x33, 0xdb, 0xd4, 0xb6, 0x2f, 0x36, 0x6c, 0xc7, 0x8a, 0x21, 0xc8, 0x12, 0x06, 0x6c, - 0x7b, 0xd0, 0x15, 0x22, 0x14, 0x45, 0x04, 0x9b, 0x34, 0xd2, 0x62, 0xbb, 0x2b, 0x43, 0xa2, 0xe0, - 0x25, 0x6c, 0x76, 0x06, 0x5d, 0x34, 0x3b, 0xeb, 0xec, 0x5a, 0xcd, 0x87, 0x10, 0x3c, 0x8a, 0x07, - 0xbf, 0x83, 0xdf, 0xc2, 0x63, 0x8f, 0x1e, 0x25, 0xb9, 0xfa, 0x21, 0x64, 0x67, 0xb7, 0x71, 0x27, - 0x5a, 0x9a, 0x16, 0x7a, 0xdc, 0xf7, 0xfe, 0xef, 0xbd, 0xff, 0xfb, 0xcd, 0x63, 0x61, 0x7d, 0xf0, - 0x56, 0xf8, 0x6f, 0xee, 0xf8, 0x62, 0x38, 0xf4, 0x42, 0x16, 0xdb, 0x91, 0x14, 0x89, 0xc0, 0x4b, - 0x5e, 0x38, 0x4a, 0x46, 0x11, 0xaf, 0x57, 0x54, 0x3a, 0x8b, 0x92, 0x18, 0x6e, 0xb4, 0xd2, 0xcf, - 0xbd, 0x20, 0x4e, 0x84, 0x1c, 0x1d, 0x8a, 0x23, 0x4e, 0xf9, 0xbb, 0xf7, 0x3c, 0x4e, 0x70, 0x15, - 0x8c, 0x80, 0xd5, 0x50, 0x03, 0x6d, 0xad, 0x50, 0x23, 0x60, 0x78, 0x03, 0xaa, 0xbe, 0x08, 0x13, - 0xfe, 0x31, 0x51, 0x15, 0xfb, 0xac, 0x66, 0xa8, 0xdc, 0x4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 0x9b, 0x55, 0x9a, 0xeb, 0x33, 0x88, 0x54, 0x8e, 0x16, 0x85, 0xf5, 0x2f, 0x53, 0xba, 0x0f, 0x34, - 0xba, 0xb7, 0xce, 0x1a, 0x7c, 0x3e, 0xac, 0xcd, 0xf3, 0x63, 0x25, 0x0c, 0xb0, 0x9a, 0xdd, 0x96, - 0xdc, 0x4b, 0xa6, 0x47, 0xbc, 0x01, 0xe5, 0xd4, 0x56, 0x6e, 0x13, 0xeb, 0x36, 0xbb, 0xa3, 0x88, - 0x53, 0x95, 0x9f, 0xf7, 0xb8, 0xc9, 0x6f, 0x04, 0xd7, 0xb4, 0x31, 0xf9, 0x43, 0xdc, 0xd7, 0x1f, - 0x82, 0xe8, 0x83, 0x74, 0xb1, 0x7e, 0xb0, 0x5f, 0xa7, 0x48, 0x1f, 0x6a, 0x48, 0x37, 0xcf, 0x6e, - 0x71, 0xf9, 0x50, 0x3b, 0x39, 0xd4, 0x5e, 0xc4, 0x0a, 0x50, 0xef, 0xc2, 0x92, 0xff, 0xda, 0x0b, - 0x5f, 0xf1, 0x38, 0x5f, 0xf7, 0xfa, 0x8c, 0xd7, 0x2c, 0x49, 0x4f, 0x54, 0x7f, 0xa9, 0x9d, 0xf4, - 0x99, 0x8b, 0x9a, 0x2e, 0xbe, 0x10, 0xb5, 0xff, 0xb5, 0xb8, 0x74, 0x6a, 0xad, 0x9b, 0x3f, 0xc6, - 0x16, 0x3a, 0x1e, 0x5b, 0xe8, 0xd7, 0xd8, 0x42, 0x9f, 0x27, 0x56, 0xe9, 0x78, 0x62, 0x95, 0x7e, - 0x4e, 0xac, 0xd2, 0x4b, 0x23, 0x1a, 0x0c, 0xae, 0xa8, 0x3f, 0xef, 0xbd, 0x3f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x7c, 0x2e, 0x08, 0xca, 0xa7, 0x05, 0x00, 0x00, + // 530 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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0xfa, 0x65, 0x86, 0xf7, 0xa1, 0x81, 0xf7, 0xc6, 0x59, 0x93, 0xcf, + 0xc7, 0xb5, 0x7e, 0x7e, 0xae, 0xf8, 0x00, 0x90, 0x9a, 0xdd, 0x14, 0x2c, 0x94, 0xb3, 0x2b, 0xf6, + 0xa0, 0x98, 0xad, 0xa5, 0xd7, 0xac, 0x9e, 0x68, 0xd1, 0x6b, 0x0f, 0x13, 0x46, 0x94, 0x6e, 0xde, + 0x2b, 0xc7, 0xbf, 0x2d, 0x58, 0x37, 0xc6, 0xe9, 0x17, 0x79, 0x60, 0xbe, 0x08, 0x36, 0x07, 0x9a, + 0x62, 0xf3, 0x72, 0xbf, 0xce, 0xd0, 0x3e, 0x32, 0xd0, 0x6e, 0x9c, 0xdd, 0xe2, 0xe2, 0xe1, 0xb6, + 0x34, 0xdc, 0x4e, 0x42, 0x73, 0x70, 0xef, 0xc0, 0x92, 0xfe, 0x4e, 0xb4, 0xdd, 0x63, 0x27, 0xd4, + 0x9c, 0x24, 0xc9, 0x54, 0xf5, 0x97, 0xda, 0xb4, 0xcf, 0x5c, 0xd4, 0x4c, 0xf1, 0x7f, 0x51, 0x3b, + 0xa9, 0xc5, 0x85, 0x53, 0x6b, 0x5c, 0xff, 0x31, 0x72, 0xad, 0xa3, 0x91, 0x6b, 0xfd, 0x1a, 0xb9, + 0xd6, 0xe7, 0xb1, 0x5b, 0x38, 0x1a, 0xbb, 0x85, 0x9f, 0x63, 0xb7, 0xf0, 0xca, 0x4e, 0x7a, 0xbd, + 0x4b, 0xea, 0x0b, 0xbe, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0x87, 0x20, 0x42, 0x60, 0xcd, 0x05, + 0x00, 0x00, } func (m *BlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { @@ -1935,7 +1936,7 @@ func (m *BlockOpenResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockHeader == nil { - m.BlockHeader = &BlockHeader{} + m.BlockHeader = &Block_Header{} } if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2112,7 +2113,7 @@ func (m *BlockCreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= BlockType(b&0x7F) << shift + m.Type |= Block_Header_Type(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/block-content.pb.go b/pb/block-content.pb.go new file mode 100644 index 000000000..e05b62b6e --- /dev/null +++ b/pb/block-content.pb.go @@ -0,0 +1,4939 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: block-content.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Block_Header_Type int32 + +const ( + Block_Header_DASHBOARD Block_Header_Type = 0 + Block_Header_PAGE Block_Header_Type = 1 + Block_Header_DATAVIEW Block_Header_Type = 2 + Block_Header_TEXT Block_Header_Type = 3 + Block_Header_FILE Block_Header_Type = 4 + Block_Header_PICTURE Block_Header_Type = 5 + Block_Header_VIDEO Block_Header_Type = 6 + Block_Header_BOOKMARK Block_Header_Type = 7 + Block_Header_LAYOUT Block_Header_Type = 8 + Block_Header_DIV Block_Header_Type = 9 +) + +var Block_Header_Type_name = map[int32]string{ + 0: "DASHBOARD", + 1: "PAGE", + 2: "DATAVIEW", + 3: "TEXT", + 4: "FILE", + 5: "PICTURE", + 6: "VIDEO", + 7: "BOOKMARK", + 8: "LAYOUT", + 9: "DIV", +} + +var Block_Header_Type_value = map[string]int32{ + "DASHBOARD": 0, + "PAGE": 1, + "DATAVIEW": 2, + "TEXT": 3, + "FILE": 4, + "PICTURE": 5, + "VIDEO": 6, + "BOOKMARK": 7, + "LAYOUT": 8, + "DIV": 9, +} + +func (x Block_Header_Type) String() string { + return proto.EnumName(Block_Header_Type_name, int32(x)) +} + +func (Block_Header_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 0, 0} +} + +type Block_ContentLayout_Style int32 + +const ( + Block_ContentLayout_ROW Block_ContentLayout_Style = 0 + Block_ContentLayout_COLUMN Block_ContentLayout_Style = 1 +) + +var Block_ContentLayout_Style_name = map[int32]string{ + 0: "ROW", + 1: "COLUMN", +} + +var Block_ContentLayout_Style_value = map[string]int32{ + "ROW": 0, + "COLUMN": 1, +} + +func (x Block_ContentLayout_Style) String() string { + return proto.EnumName(Block_ContentLayout_Style_name, int32(x)) +} + +func (Block_ContentLayout_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 1, 0} +} + +type Block_ContentDashboard_Style int32 + +const ( + Block_ContentDashboard_MAIN_SCREEN Block_ContentDashboard_Style = 0 +) + +var Block_ContentDashboard_Style_name = map[int32]string{ + 0: "MAIN_SCREEN", +} + +var Block_ContentDashboard_Style_value = map[string]int32{ + "MAIN_SCREEN": 0, +} + +func (x Block_ContentDashboard_Style) String() string { + return proto.EnumName(Block_ContentDashboard_Style_name, int32(x)) +} + +func (Block_ContentDashboard_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 3, 0} +} + +type Block_ContentText_Style int32 + +const ( + Block_ContentText_p Block_ContentText_Style = 0 + Block_ContentText_h1 Block_ContentText_Style = 1 + Block_ContentText_h2 Block_ContentText_Style = 2 + Block_ContentText_h3 Block_ContentText_Style = 3 + Block_ContentText_h4 Block_ContentText_Style = 4 + Block_ContentText_quote Block_ContentText_Style = 5 + Block_ContentText_code Block_ContentText_Style = 6 +) + +var Block_ContentText_Style_name = map[int32]string{ + 0: "p", + 1: "h1", + 2: "h2", + 3: "h3", + 4: "h4", + 5: "quote", + 6: "code", +} + +var Block_ContentText_Style_value = map[string]int32{ + "p": 0, + "h1": 1, + "h2": 2, + "h3": 3, + "h4": 4, + "quote": 5, + "code": 6, +} + +func (x Block_ContentText_Style) String() string { + return proto.EnumName(Block_ContentText_Style_name, int32(x)) +} + +func (Block_ContentText_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 0} +} + +type Block_ContentText_MarkerType int32 + +const ( + Block_ContentText_none Block_ContentText_MarkerType = 0 + Block_ContentText_number Block_ContentText_MarkerType = 1 + Block_ContentText_bullet Block_ContentText_MarkerType = 2 +) + +var Block_ContentText_MarkerType_name = map[int32]string{ + 0: "none", + 1: "number", + 2: "bullet", +} + +var Block_ContentText_MarkerType_value = map[string]int32{ + "none": 0, + "number": 1, + "bullet": 2, +} + +func (x Block_ContentText_MarkerType) String() string { + return proto.EnumName(Block_ContentText_MarkerType_name, int32(x)) +} + +func (Block_ContentText_MarkerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 1} +} + +type Block_ContentText_Mark_Type int32 + +const ( + Block_ContentText_Mark_STRIKETHROUGH Block_ContentText_Mark_Type = 0 + Block_ContentText_Mark_KEYBOARD Block_ContentText_Mark_Type = 1 + Block_ContentText_Mark_ITALIC Block_ContentText_Mark_Type = 2 + Block_ContentText_Mark_BOLD Block_ContentText_Mark_Type = 3 + Block_ContentText_Mark_LINK Block_ContentText_Mark_Type = 4 +) + +var Block_ContentText_Mark_Type_name = map[int32]string{ + 0: "STRIKETHROUGH", + 1: "KEYBOARD", + 2: "ITALIC", + 3: "BOLD", + 4: "LINK", +} + +var Block_ContentText_Mark_Type_value = map[string]int32{ + "STRIKETHROUGH": 0, + "KEYBOARD": 1, + "ITALIC": 2, + "BOLD": 3, + "LINK": 4, +} + +func (x Block_ContentText_Mark_Type) String() string { + return proto.EnumName(Block_ContentText_Mark_Type_name, int32(x)) +} + +func (Block_ContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 1, 0} +} + +type Block_ContentMedia_State int32 + +const ( + Block_ContentMedia_EMPTY Block_ContentMedia_State = 0 + Block_ContentMedia_UPLOADING Block_ContentMedia_State = 1 + Block_ContentMedia_PREVIEW Block_ContentMedia_State = 2 + Block_ContentMedia_DOWNLOADING Block_ContentMedia_State = 3 + Block_ContentMedia_DONE Block_ContentMedia_State = 4 +) + +var Block_ContentMedia_State_name = map[int32]string{ + 0: "EMPTY", + 1: "UPLOADING", + 2: "PREVIEW", + 3: "DOWNLOADING", + 4: "DONE", +} + +var Block_ContentMedia_State_value = map[string]int32{ + "EMPTY": 0, + "UPLOADING": 1, + "PREVIEW": 2, + "DOWNLOADING": 3, + "DONE": 4, +} + +func (x Block_ContentMedia_State) String() string { + return proto.EnumName(Block_ContentMedia_State_name, int32(x)) +} + +func (Block_ContentMedia_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 0} +} + +type Block_ContentPage_Style int32 + +const ( + Block_ContentPage_EMPTY Block_ContentPage_Style = 0 + Block_ContentPage_TASK Block_ContentPage_Style = 1 + Block_ContentPage_BOOKMARK Block_ContentPage_Style = 2 + Block_ContentPage_SET Block_ContentPage_Style = 3 +) + +var Block_ContentPage_Style_name = map[int32]string{ + 0: "EMPTY", + 1: "TASK", + 2: "BOOKMARK", + 3: "SET", +} + +var Block_ContentPage_Style_value = map[string]int32{ + "EMPTY": 0, + "TASK": 1, + "BOOKMARK": 2, + "SET": 3, +} + +func (x Block_ContentPage_Style) String() string { + return proto.EnumName(Block_ContentPage_Style_name, int32(x)) +} + +func (Block_ContentPage_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 7, 0} +} + +type Block struct { + Header *Block_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` + // Types that are valid to be assigned to Content: + // *Block_Dashboard + // *Block_Page + // *Block_Dataview + // *Block_Text + // *Block_Media + // *Block_Layout + // *Block_Div + Content isBlock_Content `protobuf_oneof:"content"` +} + +func (m *Block) Reset() { *m = Block{} } +func (m *Block) String() string { return proto.CompactTextString(m) } +func (*Block) ProtoMessage() {} +func (*Block) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0} +} +func (m *Block) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block.Merge(m, src) +} +func (m *Block) XXX_Size() int { + return m.Size() +} +func (m *Block) XXX_DiscardUnknown() { + xxx_messageInfo_Block.DiscardUnknown(m) +} + +var xxx_messageInfo_Block proto.InternalMessageInfo + +type isBlock_Content interface { + isBlock_Content() + MarshalTo([]byte) (int, error) + Size() int +} + +type Block_Dashboard struct { + Dashboard *Block_ContentDashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` +} +type Block_Page struct { + Page *Block_ContentPage `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` +} +type Block_Dataview struct { + Dataview *Block_ContentDataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` +} +type Block_Text struct { + Text *Block_ContentText `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` +} +type Block_Media struct { + Media *Block_ContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` +} +type Block_Layout struct { + Layout *Block_ContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` +} +type Block_Div struct { + Div *Block_ContentDiv `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` +} + +func (*Block_Dashboard) isBlock_Content() {} +func (*Block_Page) isBlock_Content() {} +func (*Block_Dataview) isBlock_Content() {} +func (*Block_Text) isBlock_Content() {} +func (*Block_Media) isBlock_Content() {} +func (*Block_Layout) isBlock_Content() {} +func (*Block_Div) isBlock_Content() {} + +func (m *Block) GetContent() isBlock_Content { + if m != nil { + return m.Content + } + return nil +} + +func (m *Block) GetHeader() *Block_Header { + if m != nil { + return m.Header + } + return nil +} + +func (m *Block) GetChildren() []string { + if m != nil { + return m.Children + } + return nil +} + +func (m *Block) GetDashboard() *Block_ContentDashboard { + if x, ok := m.GetContent().(*Block_Dashboard); ok { + return x.Dashboard + } + return nil +} + +func (m *Block) GetPage() *Block_ContentPage { + if x, ok := m.GetContent().(*Block_Page); ok { + return x.Page + } + return nil +} + +func (m *Block) GetDataview() *Block_ContentDataview { + if x, ok := m.GetContent().(*Block_Dataview); ok { + return x.Dataview + } + return nil +} + +func (m *Block) GetText() *Block_ContentText { + if x, ok := m.GetContent().(*Block_Text); ok { + return x.Text + } + return nil +} + +func (m *Block) GetMedia() *Block_ContentMedia { + if x, ok := m.GetContent().(*Block_Media); ok { + return x.Media + } + return nil +} + +func (m *Block) GetLayout() *Block_ContentLayout { + if x, ok := m.GetContent().(*Block_Layout); ok { + return x.Layout + } + return nil +} + +func (m *Block) GetDiv() *Block_ContentDiv { + if x, ok := m.GetContent().(*Block_Div); ok { + return x.Div + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Block) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Block_Dashboard)(nil), + (*Block_Page)(nil), + (*Block_Dataview)(nil), + (*Block_Text)(nil), + (*Block_Media)(nil), + (*Block_Layout)(nil), + (*Block_Div)(nil), + } +} + +type Block_Header struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Block_Header_Type" json:"type,omitempty"` + Fields *Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + Permissions *Block_Header_Permissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` +} + +func (m *Block_Header) Reset() { *m = Block_Header{} } +func (m *Block_Header) String() string { return proto.CompactTextString(m) } +func (*Block_Header) ProtoMessage() {} +func (*Block_Header) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 0} +} +func (m *Block_Header) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_Header.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_Header.Merge(m, src) +} +func (m *Block_Header) XXX_Size() int { + return m.Size() +} +func (m *Block_Header) XXX_DiscardUnknown() { + xxx_messageInfo_Block_Header.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_Header proto.InternalMessageInfo + +func (m *Block_Header) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Block_Header) GetType() Block_Header_Type { + if m != nil { + return m.Type + } + return Block_Header_DASHBOARD +} + +func (m *Block_Header) GetFields() *Struct { + if m != nil { + return m.Fields + } + return nil +} + +func (m *Block_Header) GetPermissions() *Block_Header_Permissions { + if m != nil { + return m.Permissions + } + return nil +} + +type Block_Header_Permissions struct { + Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` + Edit bool `protobuf:"varint,2,opt,name=edit,proto3" json:"edit,omitempty"` + Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"` + Drag bool `protobuf:"varint,4,opt,name=drag,proto3" json:"drag,omitempty"` + DropOn bool `protobuf:"varint,5,opt,name=dropOn,proto3" json:"dropOn,omitempty"` +} + +func (m *Block_Header_Permissions) Reset() { *m = Block_Header_Permissions{} } +func (m *Block_Header_Permissions) String() string { return proto.CompactTextString(m) } +func (*Block_Header_Permissions) ProtoMessage() {} +func (*Block_Header_Permissions) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 0, 0} +} +func (m *Block_Header_Permissions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_Header_Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_Header_Permissions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_Header_Permissions) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_Header_Permissions.Merge(m, src) +} +func (m *Block_Header_Permissions) XXX_Size() int { + return m.Size() +} +func (m *Block_Header_Permissions) XXX_DiscardUnknown() { + xxx_messageInfo_Block_Header_Permissions.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_Header_Permissions proto.InternalMessageInfo + +func (m *Block_Header_Permissions) GetRead() bool { + if m != nil { + return m.Read + } + return false +} + +func (m *Block_Header_Permissions) GetEdit() bool { + if m != nil { + return m.Edit + } + return false +} + +func (m *Block_Header_Permissions) GetRemove() bool { + if m != nil { + return m.Remove + } + return false +} + +func (m *Block_Header_Permissions) GetDrag() bool { + if m != nil { + return m.Drag + } + return false +} + +func (m *Block_Header_Permissions) GetDropOn() bool { + if m != nil { + return m.DropOn + } + return false +} + +type Block_ContentLayout struct { + Style Block_ContentLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentLayout_Style" json:"style,omitempty"` +} + +func (m *Block_ContentLayout) Reset() { *m = Block_ContentLayout{} } +func (m *Block_ContentLayout) String() string { return proto.CompactTextString(m) } +func (*Block_ContentLayout) ProtoMessage() {} +func (*Block_ContentLayout) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 1} +} +func (m *Block_ContentLayout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentLayout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentLayout.Merge(m, src) +} +func (m *Block_ContentLayout) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentLayout) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentLayout.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentLayout proto.InternalMessageInfo + +func (m *Block_ContentLayout) GetStyle() Block_ContentLayout_Style { + if m != nil { + return m.Style + } + return Block_ContentLayout_ROW +} + +type Block_ContentDiv struct { +} + +func (m *Block_ContentDiv) Reset() { *m = Block_ContentDiv{} } +func (m *Block_ContentDiv) String() string { return proto.CompactTextString(m) } +func (*Block_ContentDiv) ProtoMessage() {} +func (*Block_ContentDiv) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 2} +} +func (m *Block_ContentDiv) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentDiv.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentDiv) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentDiv.Merge(m, src) +} +func (m *Block_ContentDiv) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentDiv) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentDiv.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentDiv proto.InternalMessageInfo + +type Block_ContentDashboard struct { + Style Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentDashboard_Style" json:"style,omitempty"` + Headers []*Block_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` +} + +func (m *Block_ContentDashboard) Reset() { *m = Block_ContentDashboard{} } +func (m *Block_ContentDashboard) String() string { return proto.CompactTextString(m) } +func (*Block_ContentDashboard) ProtoMessage() {} +func (*Block_ContentDashboard) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 3} +} +func (m *Block_ContentDashboard) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentDashboard.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentDashboard) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentDashboard.Merge(m, src) +} +func (m *Block_ContentDashboard) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentDashboard) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentDashboard.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentDashboard proto.InternalMessageInfo + +func (m *Block_ContentDashboard) GetStyle() Block_ContentDashboard_Style { + if m != nil { + return m.Style + } + return Block_ContentDashboard_MAIN_SCREEN +} + +func (m *Block_ContentDashboard) GetHeaders() []*Block_Header { + if m != nil { + return m.Headers + } + return nil +} + +type Block_ContentDataview struct { +} + +func (m *Block_ContentDataview) Reset() { *m = Block_ContentDataview{} } +func (m *Block_ContentDataview) String() string { return proto.CompactTextString(m) } +func (*Block_ContentDataview) ProtoMessage() {} +func (*Block_ContentDataview) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 4} +} +func (m *Block_ContentDataview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentDataview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentDataview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentDataview.Merge(m, src) +} +func (m *Block_ContentDataview) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentDataview) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentDataview.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentDataview proto.InternalMessageInfo + +type Block_ContentText struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Style Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Block_ContentText_Style" json:"style,omitempty"` + MarksList *Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` + Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` + MarkerType Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Block_ContentText_MarkerType" json:"markerType,omitempty"` + Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` + Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` +} + +func (m *Block_ContentText) Reset() { *m = Block_ContentText{} } +func (m *Block_ContentText) String() string { return proto.CompactTextString(m) } +func (*Block_ContentText) ProtoMessage() {} +func (*Block_ContentText) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5} +} +func (m *Block_ContentText) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentText.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentText) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentText.Merge(m, src) +} +func (m *Block_ContentText) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentText) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentText.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentText proto.InternalMessageInfo + +func (m *Block_ContentText) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *Block_ContentText) GetStyle() Block_ContentText_Style { + if m != nil { + return m.Style + } + return Block_ContentText_p +} + +func (m *Block_ContentText) GetMarksList() *Block_ContentText_Marks { + if m != nil { + return m.MarksList + } + return nil +} + +func (m *Block_ContentText) GetToggleable() bool { + if m != nil { + return m.Toggleable + } + return false +} + +func (m *Block_ContentText) GetMarkerType() Block_ContentText_MarkerType { + if m != nil { + return m.MarkerType + } + return Block_ContentText_none +} + +func (m *Block_ContentText) GetCheckable() bool { + if m != nil { + return m.Checkable + } + return false +} + +func (m *Block_ContentText) GetChecked() bool { + if m != nil { + return m.Checked + } + return false +} + +type Block_ContentText_Marks struct { + Marks []*Block_ContentText_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` +} + +func (m *Block_ContentText_Marks) Reset() { *m = Block_ContentText_Marks{} } +func (m *Block_ContentText_Marks) String() string { return proto.CompactTextString(m) } +func (*Block_ContentText_Marks) ProtoMessage() {} +func (*Block_ContentText_Marks) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 0} +} +func (m *Block_ContentText_Marks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentText_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentText_Marks.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentText_Marks) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentText_Marks.Merge(m, src) +} +func (m *Block_ContentText_Marks) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentText_Marks) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentText_Marks.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentText_Marks proto.InternalMessageInfo + +func (m *Block_ContentText_Marks) GetMarks() []*Block_ContentText_Mark { + if m != nil { + return m.Marks + } + return nil +} + +type Block_ContentText_Mark struct { + Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` + Type Block_ContentText_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Block_ContentText_Mark_Type" json:"type,omitempty"` + Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` +} + +func (m *Block_ContentText_Mark) Reset() { *m = Block_ContentText_Mark{} } +func (m *Block_ContentText_Mark) String() string { return proto.CompactTextString(m) } +func (*Block_ContentText_Mark) ProtoMessage() {} +func (*Block_ContentText_Mark) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 1} +} +func (m *Block_ContentText_Mark) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentText_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentText_Mark.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentText_Mark) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentText_Mark.Merge(m, src) +} +func (m *Block_ContentText_Mark) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentText_Mark) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentText_Mark.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentText_Mark proto.InternalMessageInfo + +func (m *Block_ContentText_Mark) GetRange() *Range { + if m != nil { + return m.Range + } + return nil +} + +func (m *Block_ContentText_Mark) GetType() Block_ContentText_Mark_Type { + if m != nil { + return m.Type + } + return Block_ContentText_Mark_STRIKETHROUGH +} + +func (m *Block_ContentText_Mark) GetParam() string { + if m != nil { + return m.Param + } + return "" +} + +type Block_ContentMedia struct { + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + State Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Block_ContentMedia_State" json:"state,omitempty"` + // Types that are valid to be assigned to Preview: + // *Block_ContentMedia_Video + // *Block_ContentMedia_Image + // *Block_ContentMedia_File + Preview isBlock_ContentMedia_Preview `protobuf_oneof:"preview"` +} + +func (m *Block_ContentMedia) Reset() { *m = Block_ContentMedia{} } +func (m *Block_ContentMedia) String() string { return proto.CompactTextString(m) } +func (*Block_ContentMedia) ProtoMessage() {} +func (*Block_ContentMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6} +} +func (m *Block_ContentMedia) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentMedia.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentMedia.Merge(m, src) +} +func (m *Block_ContentMedia) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentMedia) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentMedia.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentMedia proto.InternalMessageInfo + +type isBlock_ContentMedia_Preview interface { + isBlock_ContentMedia_Preview() + MarshalTo([]byte) (int, error) + Size() int +} + +type Block_ContentMedia_Video struct { + Video *Block_ContentMedia_VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` +} +type Block_ContentMedia_Image struct { + Image *Block_ContentMedia_ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` +} +type Block_ContentMedia_File struct { + File *Block_ContentMedia_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` +} + +func (*Block_ContentMedia_Video) isBlock_ContentMedia_Preview() {} +func (*Block_ContentMedia_Image) isBlock_ContentMedia_Preview() {} +func (*Block_ContentMedia_File) isBlock_ContentMedia_Preview() {} + +func (m *Block_ContentMedia) GetPreview() isBlock_ContentMedia_Preview { + if m != nil { + return m.Preview + } + return nil +} + +func (m *Block_ContentMedia) GetContent() []byte { + if m != nil { + return m.Content + } + return nil +} + +func (m *Block_ContentMedia) GetState() Block_ContentMedia_State { + if m != nil { + return m.State + } + return Block_ContentMedia_EMPTY +} + +func (m *Block_ContentMedia) GetVideo() *Block_ContentMedia_VideoPreview { + if x, ok := m.GetPreview().(*Block_ContentMedia_Video); ok { + return x.Video + } + return nil +} + +func (m *Block_ContentMedia) GetImage() *Block_ContentMedia_ImagePreview { + if x, ok := m.GetPreview().(*Block_ContentMedia_Image); ok { + return x.Image + } + return nil +} + +func (m *Block_ContentMedia) GetFile() *Block_ContentMedia_FilePreview { + if x, ok := m.GetPreview().(*Block_ContentMedia_File); ok { + return x.File + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Block_ContentMedia) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Block_ContentMedia_Video)(nil), + (*Block_ContentMedia_Image)(nil), + (*Block_ContentMedia_File)(nil), + } +} + +type Block_ContentMedia_VideoPreview struct { + Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *Block_ContentMedia_VideoPreview) Reset() { *m = Block_ContentMedia_VideoPreview{} } +func (m *Block_ContentMedia_VideoPreview) String() string { return proto.CompactTextString(m) } +func (*Block_ContentMedia_VideoPreview) ProtoMessage() {} +func (*Block_ContentMedia_VideoPreview) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 0} +} +func (m *Block_ContentMedia_VideoPreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentMedia_VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentMedia_VideoPreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentMedia_VideoPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentMedia_VideoPreview.Merge(m, src) +} +func (m *Block_ContentMedia_VideoPreview) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentMedia_VideoPreview) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentMedia_VideoPreview.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentMedia_VideoPreview proto.InternalMessageInfo + +func (m *Block_ContentMedia_VideoPreview) GetThumbnail() []byte { + if m != nil { + return m.Thumbnail + } + return nil +} + +func (m *Block_ContentMedia_VideoPreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Block_ContentMedia_VideoPreview) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type Block_ContentMedia_ImagePreview struct { + Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *Block_ContentMedia_ImagePreview) Reset() { *m = Block_ContentMedia_ImagePreview{} } +func (m *Block_ContentMedia_ImagePreview) String() string { return proto.CompactTextString(m) } +func (*Block_ContentMedia_ImagePreview) ProtoMessage() {} +func (*Block_ContentMedia_ImagePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 1} +} +func (m *Block_ContentMedia_ImagePreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentMedia_ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentMedia_ImagePreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentMedia_ImagePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentMedia_ImagePreview.Merge(m, src) +} +func (m *Block_ContentMedia_ImagePreview) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentMedia_ImagePreview) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentMedia_ImagePreview.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentMedia_ImagePreview proto.InternalMessageInfo + +func (m *Block_ContentMedia_ImagePreview) GetThumbnail() []byte { + if m != nil { + return m.Thumbnail + } + return nil +} + +func (m *Block_ContentMedia_ImagePreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Block_ContentMedia_ImagePreview) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type Block_ContentMedia_FilePreview struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` +} + +func (m *Block_ContentMedia_FilePreview) Reset() { *m = Block_ContentMedia_FilePreview{} } +func (m *Block_ContentMedia_FilePreview) String() string { return proto.CompactTextString(m) } +func (*Block_ContentMedia_FilePreview) ProtoMessage() {} +func (*Block_ContentMedia_FilePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 2} +} +func (m *Block_ContentMedia_FilePreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentMedia_FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentMedia_FilePreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentMedia_FilePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentMedia_FilePreview.Merge(m, src) +} +func (m *Block_ContentMedia_FilePreview) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentMedia_FilePreview) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentMedia_FilePreview.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentMedia_FilePreview proto.InternalMessageInfo + +func (m *Block_ContentMedia_FilePreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Block_ContentMedia_FilePreview) GetIcon() string { + if m != nil { + return m.Icon + } + return "" +} + +type Block_ContentPage struct { + Style Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentPage_Style" json:"style,omitempty"` + Blocks []*Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` +} + +func (m *Block_ContentPage) Reset() { *m = Block_ContentPage{} } +func (m *Block_ContentPage) String() string { return proto.CompactTextString(m) } +func (*Block_ContentPage) ProtoMessage() {} +func (*Block_ContentPage) Descriptor() ([]byte, []int) { + return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 7} +} +func (m *Block_ContentPage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Block_ContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Block_ContentPage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Block_ContentPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_Block_ContentPage.Merge(m, src) +} +func (m *Block_ContentPage) XXX_Size() int { + return m.Size() +} +func (m *Block_ContentPage) XXX_DiscardUnknown() { + xxx_messageInfo_Block_ContentPage.DiscardUnknown(m) +} + +var xxx_messageInfo_Block_ContentPage proto.InternalMessageInfo + +func (m *Block_ContentPage) GetStyle() Block_ContentPage_Style { + if m != nil { + return m.Style + } + return Block_ContentPage_EMPTY +} + +func (m *Block_ContentPage) GetBlocks() []*Block { + if m != nil { + return m.Blocks + } + return nil +} + +func init() { + proto.RegisterEnum("anytype.Block_Header_Type", Block_Header_Type_name, Block_Header_Type_value) + proto.RegisterEnum("anytype.Block_ContentLayout_Style", Block_ContentLayout_Style_name, Block_ContentLayout_Style_value) + proto.RegisterEnum("anytype.Block_ContentDashboard_Style", Block_ContentDashboard_Style_name, Block_ContentDashboard_Style_value) + proto.RegisterEnum("anytype.Block_ContentText_Style", Block_ContentText_Style_name, Block_ContentText_Style_value) + proto.RegisterEnum("anytype.Block_ContentText_MarkerType", Block_ContentText_MarkerType_name, Block_ContentText_MarkerType_value) + proto.RegisterEnum("anytype.Block_ContentText_Mark_Type", Block_ContentText_Mark_Type_name, Block_ContentText_Mark_Type_value) + proto.RegisterEnum("anytype.Block_ContentMedia_State", Block_ContentMedia_State_name, Block_ContentMedia_State_value) + proto.RegisterEnum("anytype.Block_ContentPage_Style", Block_ContentPage_Style_name, Block_ContentPage_Style_value) + proto.RegisterType((*Block)(nil), "anytype.Block") + proto.RegisterType((*Block_Header)(nil), "anytype.Block.Header") + proto.RegisterType((*Block_Header_Permissions)(nil), "anytype.Block.Header.Permissions") + proto.RegisterType((*Block_ContentLayout)(nil), "anytype.Block.ContentLayout") + proto.RegisterType((*Block_ContentDiv)(nil), "anytype.Block.ContentDiv") + proto.RegisterType((*Block_ContentDashboard)(nil), "anytype.Block.ContentDashboard") + proto.RegisterType((*Block_ContentDataview)(nil), "anytype.Block.ContentDataview") + proto.RegisterType((*Block_ContentText)(nil), "anytype.Block.ContentText") + proto.RegisterType((*Block_ContentText_Marks)(nil), "anytype.Block.ContentText.Marks") + proto.RegisterType((*Block_ContentText_Mark)(nil), "anytype.Block.ContentText.Mark") + proto.RegisterType((*Block_ContentMedia)(nil), "anytype.Block.ContentMedia") + proto.RegisterType((*Block_ContentMedia_VideoPreview)(nil), "anytype.Block.ContentMedia.VideoPreview") + proto.RegisterType((*Block_ContentMedia_ImagePreview)(nil), "anytype.Block.ContentMedia.ImagePreview") + proto.RegisterType((*Block_ContentMedia_FilePreview)(nil), "anytype.Block.ContentMedia.FilePreview") + proto.RegisterType((*Block_ContentPage)(nil), "anytype.Block.ContentPage") +} + +func init() { proto.RegisterFile("block-content.proto", fileDescriptor_7ca37ac4b5b7ef96) } + +var fileDescriptor_7ca37ac4b5b7ef96 = []byte{ + // 1253 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x73, 0xdb, 0x44, + 0x14, 0x97, 0x6c, 0xc9, 0x7f, 0x9e, 0x9d, 0x64, 0xbb, 0x14, 0x46, 0x88, 0x8c, 0x9b, 0x7a, 0x0a, + 0xcd, 0x25, 0x06, 0x1a, 0x5a, 0x3a, 0x03, 0x14, 0x1c, 0x5b, 0x8d, 0x35, 0x71, 0x2c, 0xcf, 0x5a, + 0x49, 0x29, 0x17, 0x46, 0xb6, 0xb6, 0xb6, 0xa6, 0xb2, 0x64, 0x64, 0x25, 0x6d, 0x66, 0xf8, 0x10, + 0x9c, 0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, 0xf5, + 0x62, 0x7e, 0x81, 0x12, 0xe1, 0x6b, 0xfc, 0x1e, 0x14, 0x22, 0x3a, 0x0d, 0xcf, 0x29, 0x77, 0xb2, + 0x44, 0x12, 0x89, 0x61, 0xdd, 0xc8, 0x19, 0x73, 0x67, 0x4a, 0x84, 0xaf, 0x19, 0xd6, 0x8d, 0xc2, + 0x99, 0x15, 0x68, 0xaa, 0xc0, 0x0a, 0xa9, 0xfe, 0x23, 0x28, 0xec, 0xda, 0x78, 0x03, 0xca, 0xed, + 0xe6, 0xa0, 0x73, 0x60, 0x35, 0x49, 0x1b, 0x49, 0xb8, 0x04, 0x4a, 0xbf, 0x79, 0x68, 0x20, 0x19, + 0x57, 0xa1, 0xd4, 0x6e, 0xda, 0xcd, 0x53, 0xd3, 0x78, 0x82, 0x72, 0x6c, 0xdf, 0x36, 0xbe, 0xb5, + 0x51, 0x9e, 0xad, 0x1e, 0x9b, 0x5d, 0x03, 0x29, 0xb8, 0x02, 0xc5, 0xbe, 0xd9, 0xb2, 0x4f, 0x88, + 0x81, 0x54, 0x5c, 0x06, 0xf5, 0xd4, 0x6c, 0x1b, 0x16, 0x2a, 0x30, 0xe6, 0x81, 0x65, 0x1d, 0x1d, + 0x37, 0xc9, 0x11, 0x2a, 0x62, 0x80, 0x42, 0xb7, 0xf9, 0xd4, 0x3a, 0xb1, 0x51, 0x09, 0x17, 0x21, + 0xdf, 0x36, 0x4f, 0x51, 0x59, 0x1f, 0xc3, 0xc6, 0x4a, 0xec, 0xf1, 0x43, 0x50, 0xe7, 0xf1, 0x85, + 0x4f, 0xf9, 0xdd, 0x37, 0xef, 0xd5, 0xd7, 0x25, 0x4a, 0x63, 0xc0, 0x90, 0x44, 0x10, 0xea, 0xdb, + 0xa0, 0x72, 0x99, 0x29, 0x27, 0xd6, 0x13, 0x24, 0x31, 0x8b, 0x2d, 0xab, 0x7b, 0x72, 0xdc, 0x43, + 0xb2, 0x5e, 0x05, 0x58, 0xe6, 0x8b, 0xfe,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 0x07, 0x3f, 0x82, 0x02, 0xff, + 0xa9, 0x4c, 0x1b, 0xf8, 0xe6, 0x2a, 0x91, 0x24, 0xa7, 0xf5, 0xfd, 0xb4, 0x90, 0x32, 0xb7, 0x60, + 0x53, 0xb1, 0x39, 0x38, 0x12, 0xd3, 0x72, 0x31, 0xf3, 0x72, 0x6c, 0x14, 0x0d, 0x0c, 0x1b, 0xe5, + 0x99, 0xbf, 0x49, 0xa2, 0x1f, 0x6c, 0xff, 0xf1, 0xba, 0x26, 0xbf, 0x7a, 0x5d, 0x93, 0xff, 0x7a, + 0x5d, 0x93, 0x7f, 0x7a, 0x53, 0x93, 0x5e, 0xbd, 0xa9, 0x49, 0x7f, 0xbe, 0xa9, 0x49, 0xdf, 0xe5, + 0x66, 0xc3, 0x61, 0x81, 0xff, 0x9d, 0xee, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x26, 0x74, 0x06, + 0x4a, 0xe1, 0x0a, 0x00, 0x00, +} + +func (m *Block) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Content != nil { + { + size := m.Content.Size() + i -= size + if _, err := m.Content.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Children[iNdEx]) + copy(dAtA[i:], m.Children[iNdEx]) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Children[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_Dashboard) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Dashboard != nil { + { + size, err := m.Dashboard.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + return len(dAtA) - i, nil +} +func (m *Block_Page) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Page != nil { + { + size, err := m.Page.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + return len(dAtA) - i, nil +} +func (m *Block_Dataview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Dataview != nil { + { + size, err := m.Dataview.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + return len(dAtA) - i, nil +} +func (m *Block_Text) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Text != nil { + { + size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + return len(dAtA) - i, nil +} +func (m *Block_Media) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Media != nil { + { + size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + return len(dAtA) - i, nil +} +func (m *Block_Layout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Layout != nil { + { + size, err := m.Layout.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + return len(dAtA) - i, nil +} +func (m *Block_Div) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Div != nil { + { + size, err := m.Div.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + return len(dAtA) - i, nil +} +func (m *Block_Header) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_Header) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permissions != nil { + { + size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Fields != nil { + { + size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Type != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_Header_Permissions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_Header_Permissions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DropOn { + i-- + if m.DropOn { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Drag { + i-- + if m.Drag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Remove { + i-- + if m.Remove { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Edit { + i-- + if m.Edit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Read { + i-- + if m.Read { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentLayout) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentLayout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentDiv) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentDiv) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Block_ContentDashboard) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentDashboard) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Headers) > 0 { + for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Headers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Style != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentDataview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentDataview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Block_ContentText) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Checked { + i-- + if m.Checked { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.Checkable { + i-- + if m.Checkable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.MarkerType != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.MarkerType)) + i-- + dAtA[i] = 0x28 + } + if m.Toggleable { + i-- + if m.Toggleable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.MarksList != nil { + { + size, err := m.MarksList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Style != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x10 + } + if len(m.Text) > 0 { + i -= len(m.Text) + copy(dAtA[i:], m.Text) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Text))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentText_Marks) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentText_Marks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentText_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Marks) > 0 { + for iNdEx := len(m.Marks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Marks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentText_Mark) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentText_Mark) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Param) > 0 { + i -= len(m.Param) + copy(dAtA[i:], m.Param) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Param))) + i-- + dAtA[i] = 0x1a + } + if m.Type != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentMedia) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentMedia) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Preview != nil { + { + size := m.Preview.Size() + i -= size + if _, err := m.Preview.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.State != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 + } + if len(m.Content) > 0 { + i -= len(m.Content) + copy(dAtA[i:], m.Content) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Content))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentMedia_Video) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Video != nil { + { + size, err := m.Video.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} +func (m *Block_ContentMedia_Image) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Image != nil { + { + size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb2 + } + return len(dAtA) - i, nil +} +func (m *Block_ContentMedia_File) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.File != nil { + { + size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} +func (m *Block_ContentMedia_VideoPreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentMedia_VideoPreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia_VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Thumbnail) > 0 { + i -= len(m.Thumbnail) + copy(dAtA[i:], m.Thumbnail) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Thumbnail))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentMedia_ImagePreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentMedia_ImagePreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia_ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Thumbnail) > 0 { + i -= len(m.Thumbnail) + copy(dAtA[i:], m.Thumbnail) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Thumbnail))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentMedia_FilePreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentMedia_FilePreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentMedia_FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Icon) > 0 { + i -= len(m.Icon) + copy(dAtA[i:], m.Icon) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Icon))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Block_ContentPage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Block_ContentPage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Block_ContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Blocks) > 0 { + for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockContent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Style != 0 { + i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintBlockContent(dAtA []byte, offset int, v uint64) int { + offset -= sovBlockContent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + if len(m.Children) > 0 { + for _, s := range m.Children { + l = len(s) + n += 1 + l + sovBlockContent(uint64(l)) + } + } + if m.Content != nil { + n += m.Content.Size() + } + return n +} + +func (m *Block_Dashboard) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dashboard != nil { + l = m.Dashboard.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Page) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Page != nil { + l = m.Page.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Dataview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dataview != nil { + l = m.Dataview.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Text) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Text != nil { + l = m.Text.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Media) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Media != nil { + l = m.Media.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Layout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Layout != nil { + l = m.Layout.Size() + n += 2 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Div) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Div != nil { + l = m.Div.Size() + n += 2 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_Header) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovBlockContent(uint64(m.Type)) + } + if m.Fields != nil { + l = m.Fields.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Permissions != nil { + l = m.Permissions.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} + +func (m *Block_Header_Permissions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Read { + n += 2 + } + if m.Edit { + n += 2 + } + if m.Remove { + n += 2 + } + if m.Drag { + n += 2 + } + if m.DropOn { + n += 2 + } + return n +} + +func (m *Block_ContentLayout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Style != 0 { + n += 1 + sovBlockContent(uint64(m.Style)) + } + return n +} + +func (m *Block_ContentDiv) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Block_ContentDashboard) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Style != 0 { + n += 1 + sovBlockContent(uint64(m.Style)) + } + if len(m.Headers) > 0 { + for _, e := range m.Headers { + l = e.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + } + return n +} + +func (m *Block_ContentDataview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Block_ContentText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Text) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Style != 0 { + n += 1 + sovBlockContent(uint64(m.Style)) + } + if m.MarksList != nil { + l = m.MarksList.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Toggleable { + n += 2 + } + if m.MarkerType != 0 { + n += 1 + sovBlockContent(uint64(m.MarkerType)) + } + if m.Checkable { + n += 2 + } + if m.Checked { + n += 2 + } + return n +} + +func (m *Block_ContentText_Marks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Marks) > 0 { + for _, e := range m.Marks { + l = e.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + } + return n +} + +func (m *Block_ContentText_Mark) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovBlockContent(uint64(m.Type)) + } + l = len(m.Param) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} + +func (m *Block_ContentMedia) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Content) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.State != 0 { + n += 1 + sovBlockContent(uint64(m.State)) + } + if m.Preview != nil { + n += m.Preview.Size() + } + return n +} + +func (m *Block_ContentMedia_Video) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Video != nil { + l = m.Video.Size() + n += 2 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_ContentMedia_Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Image != nil { + l = m.Image.Size() + n += 2 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_ContentMedia_File) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.File != nil { + l = m.File.Size() + n += 2 + l + sovBlockContent(uint64(l)) + } + return n +} +func (m *Block_ContentMedia_VideoPreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Thumbnail) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovBlockContent(uint64(m.Width)) + } + return n +} + +func (m *Block_ContentMedia_ImagePreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Thumbnail) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovBlockContent(uint64(m.Width)) + } + return n +} + +func (m *Block_ContentMedia_FilePreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + l = len(m.Icon) + if l > 0 { + n += 1 + l + sovBlockContent(uint64(l)) + } + return n +} + +func (m *Block_ContentPage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Style != 0 { + n += 1 + sovBlockContent(uint64(m.Style)) + } + if len(m.Blocks) > 0 { + for _, e := range m.Blocks { + l = e.Size() + n += 1 + l + sovBlockContent(uint64(l)) + } + } + return n +} + +func sovBlockContent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBlockContent(x uint64) (n int) { + return sovBlockContent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Block) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Block: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &Block_Header{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dashboard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentDashboard{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Dashboard{v} + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentPage{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Page{v} + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dataview", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentDataview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Dataview{v} + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentText{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Text{v} + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentMedia{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Media{v} + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentLayout{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Layout{v} + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Div", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentDiv{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Block_Div{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_Header) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Header: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Block_Header_Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fields == nil { + m.Fields = &Struct{} + } + if err := m.Fields.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Permissions == nil { + m.Permissions = &Block_Header_Permissions{} + } + if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_Header_Permissions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Permissions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Permissions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Read", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Read = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Edit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Edit = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Remove = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Drag", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Drag = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropOn", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropOn = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentLayout) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentLayout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentLayout: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Block_ContentLayout_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentDiv) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentDiv: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentDiv: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentDashboard) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentDashboard: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentDashboard: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Block_ContentDashboard_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Headers = append(m.Headers, &Block_Header{}) + if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentDataview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentDataview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentDataview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentText) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentText: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentText: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Text = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Block_ContentText_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarksList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MarksList == nil { + m.MarksList = &Block_ContentText_Marks{} + } + if err := m.MarksList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Toggleable = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) + } + m.MarkerType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MarkerType |= Block_ContentText_MarkerType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Checkable = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Checked = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentText_Marks) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Marks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Marks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Marks = append(m.Marks, &Block_ContentText_Mark{}) + if err := m.Marks[len(m.Marks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentText_Mark) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Mark: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Mark: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Range == nil { + m.Range = &Range{} + } + if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Block_ContentText_Mark_Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Param = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentMedia) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentMedia: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentMedia: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) + if m.Content == nil { + m.Content = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= Block_ContentMedia_State(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Video", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentMedia_VideoPreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &Block_ContentMedia_Video{v} + iNdEx = postIndex + case 102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentMedia_ImagePreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &Block_ContentMedia_Image{v} + iNdEx = postIndex + case 103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Block_ContentMedia_FilePreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &Block_ContentMedia_File{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentMedia_VideoPreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VideoPreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VideoPreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) + if m.Thumbnail == nil { + m.Thumbnail = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentMedia_ImagePreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImagePreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImagePreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) + if m.Thumbnail == nil { + m.Thumbnail = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentMedia_FilePreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FilePreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FilePreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Icon = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Block_ContentPage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentPage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentPage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Block_ContentPage_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockContent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockContent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockContent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Blocks = append(m.Blocks, &Block{}) + if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockContent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockContent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBlockContent(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockContent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockContent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockContent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBlockContent + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBlockContent + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBlockContent + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBlockContent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBlockContent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBlockContent = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/block-events.pb.go b/pb/block-events.pb.go new file mode 100644 index 000000000..c559a1668 --- /dev/null +++ b/pb/block-events.pb.go @@ -0,0 +1,692 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: block-events.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type BlockShow struct { + Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *BlockShow) Reset() { *m = BlockShow{} } +func (m *BlockShow) String() string { return proto.CompactTextString(m) } +func (*BlockShow) ProtoMessage() {} +func (*BlockShow) Descriptor() ([]byte, []int) { + return fileDescriptor_1dff1991648a316e, []int{0} +} +func (m *BlockShow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockShow.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockShow) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockShow.Merge(m, src) +} +func (m *BlockShow) XXX_Size() int { + return m.Size() +} +func (m *BlockShow) XXX_DiscardUnknown() { + xxx_messageInfo_BlockShow.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockShow proto.InternalMessageInfo + +func (m *BlockShow) GetBlock() *Block { + if m != nil { + return m.Block + } + return nil +} + +type BlockUpdate struct { + Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` +} + +func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } +func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } +func (*BlockUpdate) ProtoMessage() {} +func (*BlockUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_1dff1991648a316e, []int{1} +} +func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockUpdate.Merge(m, src) +} +func (m *BlockUpdate) XXX_Size() int { + return m.Size() +} +func (m *BlockUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_BlockUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockUpdate proto.InternalMessageInfo + +func (m *BlockUpdate) GetChanges() *BlockChanges { + if m != nil { + return m.Changes + } + return nil +} + +type BlockCreate struct { + Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *BlockCreate) Reset() { *m = BlockCreate{} } +func (m *BlockCreate) String() string { return proto.CompactTextString(m) } +func (*BlockCreate) ProtoMessage() {} +func (*BlockCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_1dff1991648a316e, []int{2} +} +func (m *BlockCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockCreate.Merge(m, src) +} +func (m *BlockCreate) XXX_Size() int { + return m.Size() +} +func (m *BlockCreate) XXX_DiscardUnknown() { + xxx_messageInfo_BlockCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockCreate proto.InternalMessageInfo + +func (m *BlockCreate) GetBlock() *Block { + if m != nil { + return m.Block + } + return nil +} + +func init() { + proto.RegisterType((*BlockShow)(nil), "anytype.BlockShow") + proto.RegisterType((*BlockUpdate)(nil), "anytype.BlockUpdate") + proto.RegisterType((*BlockCreate)(nil), "anytype.BlockCreate") +} + +func init() { proto.RegisterFile("block-events.proto", fileDescriptor_1dff1991648a316e) } + +var fileDescriptor_1dff1991648a316e = []byte{ + // 186 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0xca, 0xc9, 0x4f, + 0xce, 0xd6, 0x4d, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, + 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0x12, 0x86, 0x48, 0x26, 0xe7, 0xe7, 0x95, 0xa4, + 0xe6, 0x95, 0x40, 0x64, 0xe1, 0x82, 0x19, 0x89, 0x79, 0xe9, 0xa9, 0x50, 0x2d, 0x4a, 0x86, 0x5c, + 0x9c, 0x4e, 0x20, 0xe1, 0xe0, 0x8c, 0xfc, 0x72, 0x21, 0x15, 0x2e, 0x56, 0xb0, 0x1a, 0x09, 0x46, + 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x3e, 0x3d, 0xa8, 0x79, 0x7a, 0x60, 0x25, 0x41, 0x10, 0x49, 0x25, + 0x3b, 0x2e, 0x6e, 0x30, 0x3f, 0xb4, 0x20, 0x25, 0xb1, 0x24, 0x55, 0x48, 0x9f, 0x8b, 0x1d, 0x6a, + 0x24, 0x54, 0x9b, 0x28, 0xaa, 0x36, 0x67, 0x88, 0x64, 0x10, 0x4c, 0x95, 0x92, 0x31, 0x54, 0xbf, + 0x73, 0x51, 0x2a, 0x48, 0x3f, 0x51, 0x96, 0x3a, 0xc9, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, + 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, + 0xb1, 0x1c, 0x43, 0x14, 0x53, 0x41, 0x52, 0x12, 0x1b, 0xd8, 0x33, 0xc6, 0x80, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xb9, 0xc0, 0xb5, 0xce, 0x15, 0x01, 0x00, 0x00, +} + +func (m *BlockShow) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockShow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Changes != nil { + { + size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockCreate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBlockEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintBlockEvents(dAtA []byte, offset int, v uint64) int { + offset -= sovBlockEvents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *BlockShow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovBlockEvents(uint64(l)) + } + return n +} + +func (m *BlockUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Changes != nil { + l = m.Changes.Size() + n += 1 + l + sovBlockEvents(uint64(l)) + } + return n +} + +func (m *BlockCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovBlockEvents(uint64(l)) + } + return n +} + +func sovBlockEvents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBlockEvents(x uint64) (n int) { + return sovBlockEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *BlockShow) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockShow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockShow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Block == nil { + m.Block = &Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockUpdate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockUpdate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Changes == nil { + m.Changes = &BlockChanges{} + } + if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockCreate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockCreate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBlockEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBlockEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Block == nil { + m.Block = &Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBlockEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBlockEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBlockEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBlockEvents(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBlockEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBlockEvents + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBlockEvents + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBlockEvents + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBlockEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBlockEvents = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBlockEvents = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/block.pb.go b/pb/block.pb.go deleted file mode 100644 index f3d738e41..000000000 --- a/pb/block.pb.go +++ /dev/null @@ -1,9557 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: block.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type BlockType int32 - -const ( - BlockType_DASHBOARD BlockType = 0 - BlockType_PAGE BlockType = 1 - BlockType_DATAVIEW BlockType = 2 - BlockType_TEXT BlockType = 101 - BlockType_FILE BlockType = 102 - BlockType_PICTURE BlockType = 103 - BlockType_VIDEO BlockType = 104 - BlockType_BOOKMARK BlockType = 105 - BlockType_LAYOUT BlockType = 201 -) - -var BlockType_name = map[int32]string{ - 0: "DASHBOARD", - 1: "PAGE", - 2: "DATAVIEW", - 101: "TEXT", - 102: "FILE", - 103: "PICTURE", - 104: "VIDEO", - 105: "BOOKMARK", - 201: "LAYOUT", -} - -var BlockType_value = map[string]int32{ - "DASHBOARD": 0, - "PAGE": 1, - "DATAVIEW": 2, - "TEXT": 101, - "FILE": 102, - "PICTURE": 103, - "VIDEO": 104, - "BOOKMARK": 105, - "LAYOUT": 201, -} - -func (x BlockType) String() string { - return proto.EnumName(BlockType_name, int32(x)) -} - -func (BlockType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{0} -} - -type BlockContentLayout_Style int32 - -const ( - BlockContentLayout_ROW BlockContentLayout_Style = 0 - BlockContentLayout_COLUMN BlockContentLayout_Style = 1 -) - -var BlockContentLayout_Style_name = map[int32]string{ - 0: "ROW", - 1: "COLUMN", -} - -var BlockContentLayout_Style_value = map[string]int32{ - "ROW": 0, - "COLUMN": 1, -} - -func (x BlockContentLayout_Style) String() string { - return proto.EnumName(BlockContentLayout_Style_name, int32(x)) -} - -func (BlockContentLayout_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{13, 0} -} - -type BlockContentPage_Style int32 - -const ( - BlockContentPage_EMPTY BlockContentPage_Style = 0 - BlockContentPage_TASK BlockContentPage_Style = 1 - BlockContentPage_BOOKMARK BlockContentPage_Style = 2 - BlockContentPage_SET BlockContentPage_Style = 3 -) - -var BlockContentPage_Style_name = map[int32]string{ - 0: "EMPTY", - 1: "TASK", - 2: "BOOKMARK", - 3: "SET", -} - -var BlockContentPage_Style_value = map[string]int32{ - "EMPTY": 0, - "TASK": 1, - "BOOKMARK": 2, - "SET": 3, -} - -func (x BlockContentPage_Style) String() string { - return proto.EnumName(BlockContentPage_Style_name, int32(x)) -} - -func (BlockContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{17, 0} -} - -type BlockContentDashboard_Style int32 - -const ( - BlockContentDashboard_MAIN_SCREEN BlockContentDashboard_Style = 0 -) - -var BlockContentDashboard_Style_name = map[int32]string{ - 0: "MAIN_SCREEN", -} - -var BlockContentDashboard_Style_value = map[string]int32{ - "MAIN_SCREEN": 0, -} - -func (x BlockContentDashboard_Style) String() string { - return proto.EnumName(BlockContentDashboard_Style_name, int32(x)) -} - -func (BlockContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20, 0} -} - -type BlockContentText_Style int32 - -const ( - BlockContentText_p BlockContentText_Style = 0 - BlockContentText_h1 BlockContentText_Style = 1 - BlockContentText_h2 BlockContentText_Style = 2 - BlockContentText_h3 BlockContentText_Style = 3 - BlockContentText_h4 BlockContentText_Style = 4 - BlockContentText_quote BlockContentText_Style = 5 - BlockContentText_code BlockContentText_Style = 6 -) - -var BlockContentText_Style_name = map[int32]string{ - 0: "p", - 1: "h1", - 2: "h2", - 3: "h3", - 4: "h4", - 5: "quote", - 6: "code", -} - -var BlockContentText_Style_value = map[string]int32{ - "p": 0, - "h1": 1, - "h2": 2, - "h3": 3, - "h4": 4, - "quote": 5, - "code": 6, -} - -func (x BlockContentText_Style) String() string { - return proto.EnumName(BlockContentText_Style_name, int32(x)) -} - -func (BlockContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 0} -} - -type BlockContentText_MarkerType int32 - -const ( - BlockContentText_none BlockContentText_MarkerType = 0 - BlockContentText_number BlockContentText_MarkerType = 1 - BlockContentText_bullet BlockContentText_MarkerType = 2 -) - -var BlockContentText_MarkerType_name = map[int32]string{ - 0: "none", - 1: "number", - 2: "bullet", -} - -var BlockContentText_MarkerType_value = map[string]int32{ - "none": 0, - "number": 1, - "bullet": 2, -} - -func (x BlockContentText_MarkerType) String() string { - return proto.EnumName(BlockContentText_MarkerType_name, int32(x)) -} - -func (BlockContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 1} -} - -type BlockContentText_Mark_Type int32 - -const ( - BlockContentText_Mark_STRIKETHROUGH BlockContentText_Mark_Type = 0 - BlockContentText_Mark_KEYBOARD BlockContentText_Mark_Type = 1 - BlockContentText_Mark_ITALIC BlockContentText_Mark_Type = 2 - BlockContentText_Mark_BOLD BlockContentText_Mark_Type = 3 - BlockContentText_Mark_LINK BlockContentText_Mark_Type = 4 -) - -var BlockContentText_Mark_Type_name = map[int32]string{ - 0: "STRIKETHROUGH", - 1: "KEYBOARD", - 2: "ITALIC", - 3: "BOLD", - 4: "LINK", -} - -var BlockContentText_Mark_Type_value = map[string]int32{ - "STRIKETHROUGH": 0, - "KEYBOARD": 1, - "ITALIC": 2, - "BOLD": 3, - "LINK": 4, -} - -func (x BlockContentText_Mark_Type) String() string { - return proto.EnumName(BlockContentText_Mark_Type_name, int32(x)) -} - -func (BlockContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 1, 0} -} - -type BlockContentMedia_State int32 - -const ( - BlockContentMedia_EMPTY BlockContentMedia_State = 0 - BlockContentMedia_UPLOADING BlockContentMedia_State = 1 - BlockContentMedia_PREVIEW BlockContentMedia_State = 2 - BlockContentMedia_DOWNLOADING BlockContentMedia_State = 3 - BlockContentMedia_DONE BlockContentMedia_State = 4 -) - -var BlockContentMedia_State_name = map[int32]string{ - 0: "EMPTY", - 1: "UPLOADING", - 2: "PREVIEW", - 3: "DOWNLOADING", - 4: "DONE", -} - -var BlockContentMedia_State_value = map[string]int32{ - "EMPTY": 0, - "UPLOADING": 1, - "PREVIEW": 2, - "DOWNLOADING": 3, - "DONE": 4, -} - -func (x BlockContentMedia_State) String() string { - return proto.EnumName(BlockContentMedia_State_name, int32(x)) -} - -func (BlockContentMedia_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26, 0} -} - -// call -type BlockShow struct { - Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *BlockShow) Reset() { *m = BlockShow{} } -func (m *BlockShow) String() string { return proto.CompactTextString(m) } -func (*BlockShow) ProtoMessage() {} -func (*BlockShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{0} -} -func (m *BlockShow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockShow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockShow) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockShow.Merge(m, src) -} -func (m *BlockShow) XXX_Size() int { - return m.Size() -} -func (m *BlockShow) XXX_DiscardUnknown() { - xxx_messageInfo_BlockShow.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockShow proto.InternalMessageInfo - -func (m *BlockShow) GetBlock() *Block { - if m != nil { - return m.Block - } - return nil -} - -type BlockUpdate struct { - Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` -} - -func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } -func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } -func (*BlockUpdate) ProtoMessage() {} -func (*BlockUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{1} -} -func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdate.Merge(m, src) -} -func (m *BlockUpdate) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdate proto.InternalMessageInfo - -func (m *BlockUpdate) GetChanges() *BlockChanges { - if m != nil { - return m.Changes - } - return nil -} - -type BlockCreate struct { - Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *BlockCreate) Reset() { *m = BlockCreate{} } -func (m *BlockCreate) String() string { return proto.CompactTextString(m) } -func (*BlockCreate) ProtoMessage() {} -func (*BlockCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{2} -} -func (m *BlockCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreate.Merge(m, src) -} -func (m *BlockCreate) XXX_Size() int { - return m.Size() -} -func (m *BlockCreate) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreate proto.InternalMessageInfo - -func (m *BlockCreate) GetBlock() *Block { - if m != nil { - return m.Block - } - return nil -} - -type BlockStructureChange struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Children *BlockChildren `protobuf:"bytes,2,opt,name=children,proto3" json:"children,omitempty"` -} - -func (m *BlockStructureChange) Reset() { *m = BlockStructureChange{} } -func (m *BlockStructureChange) String() string { return proto.CompactTextString(m) } -func (*BlockStructureChange) ProtoMessage() {} -func (*BlockStructureChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{3} -} -func (m *BlockStructureChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockStructureChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockStructureChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockStructureChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockStructureChange.Merge(m, src) -} -func (m *BlockStructureChange) XXX_Size() int { - return m.Size() -} -func (m *BlockStructureChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockStructureChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockStructureChange proto.InternalMessageInfo - -func (m *BlockStructureChange) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *BlockStructureChange) GetChildren() *BlockChildren { - if m != nil { - return m.Children - } - return nil -} - -type BlockContentTextChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentTextChange_Text - // *BlockContentTextChange_Style - // *BlockContentTextChange_Marks - // *BlockContentTextChange_Toggleable - // *BlockContentTextChange_MarkerType - // *BlockContentTextChange_Checkable - // *BlockContentTextChange_Checked - Change isBlockContentTextChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockContentTextChange) Reset() { *m = BlockContentTextChange{} } -func (m *BlockContentTextChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentTextChange) ProtoMessage() {} -func (*BlockContentTextChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{4} -} -func (m *BlockContentTextChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentTextChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentTextChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentTextChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentTextChange.Merge(m, src) -} -func (m *BlockContentTextChange) XXX_Size() int { - return m.Size() -} -func (m *BlockContentTextChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentTextChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentTextChange proto.InternalMessageInfo - -type isBlockContentTextChange_Change interface { - isBlockContentTextChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockContentTextChange_Text struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` -} -type BlockContentTextChange_Style struct { - Style BlockContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.BlockContentText_Style,oneof" json:"style,omitempty"` -} -type BlockContentTextChange_Marks struct { - Marks *BlockContentText_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` -} -type BlockContentTextChange_Toggleable struct { - Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3,oneof" json:"toggleable,omitempty"` -} -type BlockContentTextChange_MarkerType struct { - MarkerType BlockContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.BlockContentText_MarkerType,oneof" json:"markerType,omitempty"` -} -type BlockContentTextChange_Checkable struct { - Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3,oneof" json:"checkable,omitempty"` -} -type BlockContentTextChange_Checked struct { - Checked bool `protobuf:"varint,7,opt,name=checked,proto3,oneof" json:"checked,omitempty"` -} - -func (*BlockContentTextChange_Text) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Style) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Marks) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Toggleable) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_MarkerType) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Checkable) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Checked) isBlockContentTextChange_Change() {} - -func (m *BlockContentTextChange) GetChange() isBlockContentTextChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockContentTextChange) GetText() string { - if x, ok := m.GetChange().(*BlockContentTextChange_Text); ok { - return x.Text - } - return "" -} - -func (m *BlockContentTextChange) GetStyle() BlockContentText_Style { - if x, ok := m.GetChange().(*BlockContentTextChange_Style); ok { - return x.Style - } - return BlockContentText_p -} - -func (m *BlockContentTextChange) GetMarks() *BlockContentText_Marks { - if x, ok := m.GetChange().(*BlockContentTextChange_Marks); ok { - return x.Marks - } - return nil -} - -func (m *BlockContentTextChange) GetToggleable() bool { - if x, ok := m.GetChange().(*BlockContentTextChange_Toggleable); ok { - return x.Toggleable - } - return false -} - -func (m *BlockContentTextChange) GetMarkerType() BlockContentText_MarkerType { - if x, ok := m.GetChange().(*BlockContentTextChange_MarkerType); ok { - return x.MarkerType - } - return BlockContentText_none -} - -func (m *BlockContentTextChange) GetCheckable() bool { - if x, ok := m.GetChange().(*BlockContentTextChange_Checkable); ok { - return x.Checkable - } - return false -} - -func (m *BlockContentTextChange) GetChecked() bool { - if x, ok := m.GetChange().(*BlockContentTextChange_Checked); ok { - return x.Checked - } - return false -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentTextChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentTextChange_Text)(nil), - (*BlockContentTextChange_Style)(nil), - (*BlockContentTextChange_Marks)(nil), - (*BlockContentTextChange_Toggleable)(nil), - (*BlockContentTextChange_MarkerType)(nil), - (*BlockContentTextChange_Checkable)(nil), - (*BlockContentTextChange_Checked)(nil), - } -} - -type BlockContentPageChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentPageChange_Style - // *BlockContentPageChange_StructureChange - // *BlockContentPageChange_Block - Change isBlockContentPageChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockContentPageChange) Reset() { *m = BlockContentPageChange{} } -func (m *BlockContentPageChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentPageChange) ProtoMessage() {} -func (*BlockContentPageChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{5} -} -func (m *BlockContentPageChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentPageChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentPageChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentPageChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentPageChange.Merge(m, src) -} -func (m *BlockContentPageChange) XXX_Size() int { - return m.Size() -} -func (m *BlockContentPageChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentPageChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentPageChange proto.InternalMessageInfo - -type isBlockContentPageChange_Change interface { - isBlockContentPageChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockContentPageChange_Style struct { - Style BlockContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentPage_Style,oneof" json:"style,omitempty"` -} -type BlockContentPageChange_StructureChange struct { - StructureChange *BlockStructureChange `protobuf:"bytes,2,opt,name=structureChange,proto3,oneof" json:"structureChange,omitempty"` -} -type BlockContentPageChange_Block struct { - Block *Block `protobuf:"bytes,3,opt,name=block,proto3,oneof" json:"block,omitempty"` -} - -func (*BlockContentPageChange_Style) isBlockContentPageChange_Change() {} -func (*BlockContentPageChange_StructureChange) isBlockContentPageChange_Change() {} -func (*BlockContentPageChange_Block) isBlockContentPageChange_Change() {} - -func (m *BlockContentPageChange) GetChange() isBlockContentPageChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockContentPageChange) GetStyle() BlockContentPage_Style { - if x, ok := m.GetChange().(*BlockContentPageChange_Style); ok { - return x.Style - } - return BlockContentPage_EMPTY -} - -func (m *BlockContentPageChange) GetStructureChange() *BlockStructureChange { - if x, ok := m.GetChange().(*BlockContentPageChange_StructureChange); ok { - return x.StructureChange - } - return nil -} - -func (m *BlockContentPageChange) GetBlock() *Block { - if x, ok := m.GetChange().(*BlockContentPageChange_Block); ok { - return x.Block - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentPageChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentPageChange_Style)(nil), - (*BlockContentPageChange_StructureChange)(nil), - (*BlockContentPageChange_Block)(nil), - } -} - -type BlockHeaderChange struct { - // Types that are valid to be assigned to Change: - // *BlockHeaderChange_Id - // *BlockHeaderChange_Type - // *BlockHeaderChange_Name - // *BlockHeaderChange_Icon - // *BlockHeaderChange_Permissions - Change isBlockHeaderChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockHeaderChange) Reset() { *m = BlockHeaderChange{} } -func (m *BlockHeaderChange) String() string { return proto.CompactTextString(m) } -func (*BlockHeaderChange) ProtoMessage() {} -func (*BlockHeaderChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{6} -} -func (m *BlockHeaderChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHeaderChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHeaderChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHeaderChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHeaderChange.Merge(m, src) -} -func (m *BlockHeaderChange) XXX_Size() int { - return m.Size() -} -func (m *BlockHeaderChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHeaderChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHeaderChange proto.InternalMessageInfo - -type isBlockHeaderChange_Change interface { - isBlockHeaderChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockHeaderChange_Id struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` -} -type BlockHeaderChange_Type struct { - Type BlockType `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.BlockType,oneof" json:"type,omitempty"` -} -type BlockHeaderChange_Name struct { - Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` -} -type BlockHeaderChange_Icon struct { - Icon string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` -} -type BlockHeaderChange_Permissions struct { - Permissions *BlockPermissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` -} - -func (*BlockHeaderChange_Id) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Type) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Name) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Icon) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Permissions) isBlockHeaderChange_Change() {} - -func (m *BlockHeaderChange) GetChange() isBlockHeaderChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockHeaderChange) GetId() string { - if x, ok := m.GetChange().(*BlockHeaderChange_Id); ok { - return x.Id - } - return "" -} - -func (m *BlockHeaderChange) GetType() BlockType { - if x, ok := m.GetChange().(*BlockHeaderChange_Type); ok { - return x.Type - } - return BlockType_DASHBOARD -} - -func (m *BlockHeaderChange) GetName() string { - if x, ok := m.GetChange().(*BlockHeaderChange_Name); ok { - return x.Name - } - return "" -} - -func (m *BlockHeaderChange) GetIcon() string { - if x, ok := m.GetChange().(*BlockHeaderChange_Icon); ok { - return x.Icon - } - return "" -} - -func (m *BlockHeaderChange) GetPermissions() *BlockPermissions { - if x, ok := m.GetChange().(*BlockHeaderChange_Permissions); ok { - return x.Permissions - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockHeaderChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockHeaderChange_Id)(nil), - (*BlockHeaderChange_Type)(nil), - (*BlockHeaderChange_Name)(nil), - (*BlockHeaderChange_Icon)(nil), - (*BlockHeaderChange_Permissions)(nil), - } -} - -type BlockContentDashboardChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentDashboardChange_Style - // *BlockContentDashboardChange_StructureChange - // *BlockContentDashboardChange_Header - Change isBlockContentDashboardChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockContentDashboardChange) Reset() { *m = BlockContentDashboardChange{} } -func (m *BlockContentDashboardChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentDashboardChange) ProtoMessage() {} -func (*BlockContentDashboardChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{7} -} -func (m *BlockContentDashboardChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentDashboardChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentDashboardChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentDashboardChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentDashboardChange.Merge(m, src) -} -func (m *BlockContentDashboardChange) XXX_Size() int { - return m.Size() -} -func (m *BlockContentDashboardChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentDashboardChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentDashboardChange proto.InternalMessageInfo - -type isBlockContentDashboardChange_Change interface { - isBlockContentDashboardChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockContentDashboardChange_Style struct { - Style BlockContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentDashboard_Style,oneof" json:"style,omitempty"` -} -type BlockContentDashboardChange_StructureChange struct { - StructureChange *BlockStructureChange `protobuf:"bytes,2,opt,name=structureChange,proto3,oneof" json:"structureChange,omitempty"` -} -type BlockContentDashboardChange_Header struct { - Header *BlockHeader `protobuf:"bytes,3,opt,name=header,proto3,oneof" json:"header,omitempty"` -} - -func (*BlockContentDashboardChange_Style) isBlockContentDashboardChange_Change() {} -func (*BlockContentDashboardChange_StructureChange) isBlockContentDashboardChange_Change() {} -func (*BlockContentDashboardChange_Header) isBlockContentDashboardChange_Change() {} - -func (m *BlockContentDashboardChange) GetChange() isBlockContentDashboardChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockContentDashboardChange) GetStyle() BlockContentDashboard_Style { - if x, ok := m.GetChange().(*BlockContentDashboardChange_Style); ok { - return x.Style - } - return BlockContentDashboard_MAIN_SCREEN -} - -func (m *BlockContentDashboardChange) GetStructureChange() *BlockStructureChange { - if x, ok := m.GetChange().(*BlockContentDashboardChange_StructureChange); ok { - return x.StructureChange - } - return nil -} - -func (m *BlockContentDashboardChange) GetHeader() *BlockHeader { - if x, ok := m.GetChange().(*BlockContentDashboardChange_Header); ok { - return x.Header - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentDashboardChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentDashboardChange_Style)(nil), - (*BlockContentDashboardChange_StructureChange)(nil), - (*BlockContentDashboardChange_Header)(nil), - } -} - -type BlockContentMediaChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentMediaChange_Link - // *BlockContentMediaChange_State - Change isBlockContentMediaChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockContentMediaChange) Reset() { *m = BlockContentMediaChange{} } -func (m *BlockContentMediaChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentMediaChange) ProtoMessage() {} -func (*BlockContentMediaChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{8} -} -func (m *BlockContentMediaChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentMediaChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentMediaChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentMediaChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentMediaChange.Merge(m, src) -} -func (m *BlockContentMediaChange) XXX_Size() int { - return m.Size() -} -func (m *BlockContentMediaChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentMediaChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentMediaChange proto.InternalMessageInfo - -type isBlockContentMediaChange_Change interface { - isBlockContentMediaChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockContentMediaChange_Link struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` -} -type BlockContentMediaChange_State struct { - State BlockContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.BlockContentMedia_State,oneof" json:"state,omitempty"` -} - -func (*BlockContentMediaChange_Link) isBlockContentMediaChange_Change() {} -func (*BlockContentMediaChange_State) isBlockContentMediaChange_Change() {} - -func (m *BlockContentMediaChange) GetChange() isBlockContentMediaChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockContentMediaChange) GetLink() string { - if x, ok := m.GetChange().(*BlockContentMediaChange_Link); ok { - return x.Link - } - return "" -} - -func (m *BlockContentMediaChange) GetState() BlockContentMedia_State { - if x, ok := m.GetChange().(*BlockContentMediaChange_State); ok { - return x.State - } - return BlockContentMedia_EMPTY -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentMediaChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentMediaChange_Link)(nil), - (*BlockContentMediaChange_State)(nil), - } -} - -type BlockAtomicChange struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Types that are valid to be assigned to Change: - // *BlockAtomicChange_Text - // *BlockAtomicChange_BlockHeader - // *BlockAtomicChange_Page - // *BlockAtomicChange_Dashboard - // *BlockAtomicChange_Media - Change isBlockAtomicChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockAtomicChange) Reset() { *m = BlockAtomicChange{} } -func (m *BlockAtomicChange) String() string { return proto.CompactTextString(m) } -func (*BlockAtomicChange) ProtoMessage() {} -func (*BlockAtomicChange) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{9} -} -func (m *BlockAtomicChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockAtomicChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockAtomicChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockAtomicChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockAtomicChange.Merge(m, src) -} -func (m *BlockAtomicChange) XXX_Size() int { - return m.Size() -} -func (m *BlockAtomicChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockAtomicChange.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockAtomicChange proto.InternalMessageInfo - -type isBlockAtomicChange_Change interface { - isBlockAtomicChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockAtomicChange_Text struct { - Text *BlockContentTextChange `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"` -} -type BlockAtomicChange_BlockHeader struct { - BlockHeader *BlockHeaderChange `protobuf:"bytes,3,opt,name=blockHeader,proto3,oneof" json:"blockHeader,omitempty"` -} -type BlockAtomicChange_Page struct { - Page *BlockContentPageChange `protobuf:"bytes,4,opt,name=page,proto3,oneof" json:"page,omitempty"` -} -type BlockAtomicChange_Dashboard struct { - Dashboard *BlockContentDashboardChange `protobuf:"bytes,5,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` -} -type BlockAtomicChange_Media struct { - Media *BlockContentMediaChange `protobuf:"bytes,6,opt,name=media,proto3,oneof" json:"media,omitempty"` -} - -func (*BlockAtomicChange_Text) isBlockAtomicChange_Change() {} -func (*BlockAtomicChange_BlockHeader) isBlockAtomicChange_Change() {} -func (*BlockAtomicChange_Page) isBlockAtomicChange_Change() {} -func (*BlockAtomicChange_Dashboard) isBlockAtomicChange_Change() {} -func (*BlockAtomicChange_Media) isBlockAtomicChange_Change() {} - -func (m *BlockAtomicChange) GetChange() isBlockAtomicChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockAtomicChange) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *BlockAtomicChange) GetText() *BlockContentTextChange { - if x, ok := m.GetChange().(*BlockAtomicChange_Text); ok { - return x.Text - } - return nil -} - -func (m *BlockAtomicChange) GetBlockHeader() *BlockHeaderChange { - if x, ok := m.GetChange().(*BlockAtomicChange_BlockHeader); ok { - return x.BlockHeader - } - return nil -} - -func (m *BlockAtomicChange) GetPage() *BlockContentPageChange { - if x, ok := m.GetChange().(*BlockAtomicChange_Page); ok { - return x.Page - } - return nil -} - -func (m *BlockAtomicChange) GetDashboard() *BlockContentDashboardChange { - if x, ok := m.GetChange().(*BlockAtomicChange_Dashboard); ok { - return x.Dashboard - } - return nil -} - -func (m *BlockAtomicChange) GetMedia() *BlockContentMediaChange { - if x, ok := m.GetChange().(*BlockAtomicChange_Media); ok { - return x.Media - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockAtomicChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockAtomicChange_Text)(nil), - (*BlockAtomicChange_BlockHeader)(nil), - (*BlockAtomicChange_Page)(nil), - (*BlockAtomicChange_Dashboard)(nil), - (*BlockAtomicChange_Media)(nil), - } -} - -type BlockChanges struct { - Changes []*BlockAtomicChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` -} - -func (m *BlockChanges) Reset() { *m = BlockChanges{} } -func (m *BlockChanges) String() string { return proto.CompactTextString(m) } -func (*BlockChanges) ProtoMessage() {} -func (*BlockChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{10} -} -func (m *BlockChanges) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockChanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockChanges.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockChanges) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockChanges.Merge(m, src) -} -func (m *BlockChanges) XXX_Size() int { - return m.Size() -} -func (m *BlockChanges) XXX_DiscardUnknown() { - xxx_messageInfo_BlockChanges.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockChanges proto.InternalMessageInfo - -func (m *BlockChanges) GetChanges() []*BlockAtomicChange { - if m != nil { - return m.Changes - } - return nil -} - -type Block struct { - Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // Types that are valid to be assigned to Content: - // *Block_Dashboard - // *Block_Page - // *Block_Dataview - // *Block_Text - // *Block_Media - // *Block_Layout - Content isBlock_Content `protobuf_oneof:"content"` -} - -func (m *Block) Reset() { *m = Block{} } -func (m *Block) String() string { return proto.CompactTextString(m) } -func (*Block) ProtoMessage() {} -func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{11} -} -func (m *Block) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block.Merge(m, src) -} -func (m *Block) XXX_Size() int { - return m.Size() -} -func (m *Block) XXX_DiscardUnknown() { - xxx_messageInfo_Block.DiscardUnknown(m) -} - -var xxx_messageInfo_Block proto.InternalMessageInfo - -type isBlock_Content interface { - isBlock_Content() - MarshalTo([]byte) (int, error) - Size() int -} - -type Block_Dashboard struct { - Dashboard *BlockContentDashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` -} -type Block_Page struct { - Page *BlockContentPage `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` -} -type Block_Dataview struct { - Dataview *BlockContentDataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` -} -type Block_Text struct { - Text *BlockContentText `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` -} -type Block_Media struct { - Media *BlockContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` -} -type Block_Layout struct { - Layout *BlockContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` -} - -func (*Block_Dashboard) isBlock_Content() {} -func (*Block_Page) isBlock_Content() {} -func (*Block_Dataview) isBlock_Content() {} -func (*Block_Text) isBlock_Content() {} -func (*Block_Media) isBlock_Content() {} -func (*Block_Layout) isBlock_Content() {} - -func (m *Block) GetContent() isBlock_Content { - if m != nil { - return m.Content - } - return nil -} - -func (m *Block) GetHeader() *BlockHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *Block) GetDashboard() *BlockContentDashboard { - if x, ok := m.GetContent().(*Block_Dashboard); ok { - return x.Dashboard - } - return nil -} - -func (m *Block) GetPage() *BlockContentPage { - if x, ok := m.GetContent().(*Block_Page); ok { - return x.Page - } - return nil -} - -func (m *Block) GetDataview() *BlockContentDataview { - if x, ok := m.GetContent().(*Block_Dataview); ok { - return x.Dataview - } - return nil -} - -func (m *Block) GetText() *BlockContentText { - if x, ok := m.GetContent().(*Block_Text); ok { - return x.Text - } - return nil -} - -func (m *Block) GetMedia() *BlockContentMedia { - if x, ok := m.GetContent().(*Block_Media); ok { - return x.Media - } - return nil -} - -func (m *Block) GetLayout() *BlockContentLayout { - if x, ok := m.GetContent().(*Block_Layout); ok { - return x.Layout - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Block) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Block_Dashboard)(nil), - (*Block_Page)(nil), - (*Block_Dataview)(nil), - (*Block_Text)(nil), - (*Block_Media)(nil), - (*Block_Layout)(nil), - } -} - -type BlockHeader struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type BlockType `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.BlockType" json:"type,omitempty"` - Fields *Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` - Permissions *BlockPermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (m *BlockHeader) Reset() { *m = BlockHeader{} } -func (m *BlockHeader) String() string { return proto.CompactTextString(m) } -func (*BlockHeader) ProtoMessage() {} -func (*BlockHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{12} -} -func (m *BlockHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHeader.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHeader.Merge(m, src) -} -func (m *BlockHeader) XXX_Size() int { - return m.Size() -} -func (m *BlockHeader) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHeader.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHeader proto.InternalMessageInfo - -func (m *BlockHeader) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *BlockHeader) GetType() BlockType { - if m != nil { - return m.Type - } - return BlockType_DASHBOARD -} - -func (m *BlockHeader) GetFields() *Struct { - if m != nil { - return m.Fields - } - return nil -} - -func (m *BlockHeader) GetPermissions() *BlockPermissions { - if m != nil { - return m.Permissions - } - return nil -} - -// row/column type specified in the header -type BlockContentLayout struct { - Style BlockContentLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentLayout_Style" json:"style,omitempty"` -} - -func (m *BlockContentLayout) Reset() { *m = BlockContentLayout{} } -func (m *BlockContentLayout) String() string { return proto.CompactTextString(m) } -func (*BlockContentLayout) ProtoMessage() {} -func (*BlockContentLayout) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{13} -} -func (m *BlockContentLayout) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentLayout.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentLayout) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentLayout.Merge(m, src) -} -func (m *BlockContentLayout) XXX_Size() int { - return m.Size() -} -func (m *BlockContentLayout) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentLayout.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentLayout proto.InternalMessageInfo - -func (m *BlockContentLayout) GetStyle() BlockContentLayout_Style { - if m != nil { - return m.Style - } - return BlockContentLayout_ROW -} - -type BlockPermissions struct { - Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` - Edit bool `protobuf:"varint,2,opt,name=edit,proto3" json:"edit,omitempty"` - Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"` - Drag bool `protobuf:"varint,4,opt,name=drag,proto3" json:"drag,omitempty"` - DropOn bool `protobuf:"varint,5,opt,name=dropOn,proto3" json:"dropOn,omitempty"` -} - -func (m *BlockPermissions) Reset() { *m = BlockPermissions{} } -func (m *BlockPermissions) String() string { return proto.CompactTextString(m) } -func (*BlockPermissions) ProtoMessage() {} -func (*BlockPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{14} -} -func (m *BlockPermissions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockPermissions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockPermissions) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockPermissions.Merge(m, src) -} -func (m *BlockPermissions) XXX_Size() int { - return m.Size() -} -func (m *BlockPermissions) XXX_DiscardUnknown() { - xxx_messageInfo_BlockPermissions.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockPermissions proto.InternalMessageInfo - -func (m *BlockPermissions) GetRead() bool { - if m != nil { - return m.Read - } - return false -} - -func (m *BlockPermissions) GetEdit() bool { - if m != nil { - return m.Edit - } - return false -} - -func (m *BlockPermissions) GetRemove() bool { - if m != nil { - return m.Remove - } - return false -} - -func (m *BlockPermissions) GetDrag() bool { - if m != nil { - return m.Drag - } - return false -} - -func (m *BlockPermissions) GetDropOn() bool { - if m != nil { - return m.DropOn - } - return false -} - -type BlockHeadersList struct { - Headers []*BlockHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` -} - -func (m *BlockHeadersList) Reset() { *m = BlockHeadersList{} } -func (m *BlockHeadersList) String() string { return proto.CompactTextString(m) } -func (*BlockHeadersList) ProtoMessage() {} -func (*BlockHeadersList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{15} -} -func (m *BlockHeadersList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHeadersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHeadersList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHeadersList) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHeadersList.Merge(m, src) -} -func (m *BlockHeadersList) XXX_Size() int { - return m.Size() -} -func (m *BlockHeadersList) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHeadersList.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHeadersList proto.InternalMessageInfo - -func (m *BlockHeadersList) GetHeaders() []*BlockHeader { - if m != nil { - return m.Headers - } - return nil -} - -type BlocksList struct { - Blocks []*Block `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` -} - -func (m *BlocksList) Reset() { *m = BlocksList{} } -func (m *BlocksList) String() string { return proto.CompactTextString(m) } -func (*BlocksList) ProtoMessage() {} -func (*BlocksList) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{16} -} -func (m *BlocksList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlocksList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlocksList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlocksList) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlocksList.Merge(m, src) -} -func (m *BlocksList) XXX_Size() int { - return m.Size() -} -func (m *BlocksList) XXX_DiscardUnknown() { - xxx_messageInfo_BlocksList.DiscardUnknown(m) -} - -var xxx_messageInfo_BlocksList proto.InternalMessageInfo - -func (m *BlocksList) GetBlocks() []*Block { - if m != nil { - return m.Blocks - } - return nil -} - -type BlockContentPage struct { - Style BlockContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentPage_Style" json:"style,omitempty"` - Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3" json:"structure,omitempty"` - Blocks *BlocksList `protobuf:"bytes,3,opt,name=blocks,proto3" json:"blocks,omitempty"` -} - -func (m *BlockContentPage) Reset() { *m = BlockContentPage{} } -func (m *BlockContentPage) String() string { return proto.CompactTextString(m) } -func (*BlockContentPage) ProtoMessage() {} -func (*BlockContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{17} -} -func (m *BlockContentPage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentPage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentPage.Merge(m, src) -} -func (m *BlockContentPage) XXX_Size() int { - return m.Size() -} -func (m *BlockContentPage) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentPage.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentPage proto.InternalMessageInfo - -func (m *BlockContentPage) GetStyle() BlockContentPage_Style { - if m != nil { - return m.Style - } - return BlockContentPage_EMPTY -} - -func (m *BlockContentPage) GetStructure() *BlockStructure { - if m != nil { - return m.Structure - } - return nil -} - -func (m *BlockContentPage) GetBlocks() *BlocksList { - if m != nil { - return m.Blocks - } - return nil -} - -type BlockStructure struct { - BlockIdToBlockChildren map[string]*BlockChildren `protobuf:"bytes,1,rep,name=blockIdToBlockChildren,proto3" json:"blockIdToBlockChildren,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *BlockStructure) Reset() { *m = BlockStructure{} } -func (m *BlockStructure) String() string { return proto.CompactTextString(m) } -func (*BlockStructure) ProtoMessage() {} -func (*BlockStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{18} -} -func (m *BlockStructure) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockStructure.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockStructure) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockStructure.Merge(m, src) -} -func (m *BlockStructure) XXX_Size() int { - return m.Size() -} -func (m *BlockStructure) XXX_DiscardUnknown() { - xxx_messageInfo_BlockStructure.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockStructure proto.InternalMessageInfo - -func (m *BlockStructure) GetBlockIdToBlockChildren() map[string]*BlockChildren { - if m != nil { - return m.BlockIdToBlockChildren - } - return nil -} - -type BlockChildren struct { - Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` -} - -func (m *BlockChildren) Reset() { *m = BlockChildren{} } -func (m *BlockChildren) String() string { return proto.CompactTextString(m) } -func (*BlockChildren) ProtoMessage() {} -func (*BlockChildren) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{19} -} -func (m *BlockChildren) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockChildren) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockChildren.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockChildren) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockChildren.Merge(m, src) -} -func (m *BlockChildren) XXX_Size() int { - return m.Size() -} -func (m *BlockChildren) XXX_DiscardUnknown() { - xxx_messageInfo_BlockChildren.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockChildren proto.InternalMessageInfo - -func (m *BlockChildren) GetChildren() []string { - if m != nil { - return m.Children - } - return nil -} - -type BlockContentDashboard struct { - Style BlockContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.BlockContentDashboard_Style" json:"style,omitempty"` - Structure *BlockStructure `protobuf:"bytes,2,opt,name=structure,proto3" json:"structure,omitempty"` - Headers *BlockHeadersList `protobuf:"bytes,3,opt,name=headers,proto3" json:"headers,omitempty"` -} - -func (m *BlockContentDashboard) Reset() { *m = BlockContentDashboard{} } -func (m *BlockContentDashboard) String() string { return proto.CompactTextString(m) } -func (*BlockContentDashboard) ProtoMessage() {} -func (*BlockContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{20} -} -func (m *BlockContentDashboard) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentDashboard.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentDashboard) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentDashboard.Merge(m, src) -} -func (m *BlockContentDashboard) XXX_Size() int { - return m.Size() -} -func (m *BlockContentDashboard) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentDashboard.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentDashboard proto.InternalMessageInfo - -func (m *BlockContentDashboard) GetStyle() BlockContentDashboard_Style { - if m != nil { - return m.Style - } - return BlockContentDashboard_MAIN_SCREEN -} - -func (m *BlockContentDashboard) GetStructure() *BlockStructure { - if m != nil { - return m.Structure - } - return nil -} - -func (m *BlockContentDashboard) GetHeaders() *BlockHeadersList { - if m != nil { - return m.Headers - } - return nil -} - -type BlockContentDataview struct { -} - -func (m *BlockContentDataview) Reset() { *m = BlockContentDataview{} } -func (m *BlockContentDataview) String() string { return proto.CompactTextString(m) } -func (*BlockContentDataview) ProtoMessage() {} -func (*BlockContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{21} -} -func (m *BlockContentDataview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentDataview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentDataview) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentDataview.Merge(m, src) -} -func (m *BlockContentDataview) XXX_Size() int { - return m.Size() -} -func (m *BlockContentDataview) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentDataview.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentDataview proto.InternalMessageInfo - -type BlockContentText struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Style BlockContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.BlockContentText_Style" json:"style,omitempty"` - MarksList *BlockContentText_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` - Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` - MarkerType BlockContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.BlockContentText_MarkerType" json:"markerType,omitempty"` - Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` - Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` -} - -func (m *BlockContentText) Reset() { *m = BlockContentText{} } -func (m *BlockContentText) String() string { return proto.CompactTextString(m) } -func (*BlockContentText) ProtoMessage() {} -func (*BlockContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22} -} -func (m *BlockContentText) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentText.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentText) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentText.Merge(m, src) -} -func (m *BlockContentText) XXX_Size() int { - return m.Size() -} -func (m *BlockContentText) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentText.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentText proto.InternalMessageInfo - -func (m *BlockContentText) GetText() string { - if m != nil { - return m.Text - } - return "" -} - -func (m *BlockContentText) GetStyle() BlockContentText_Style { - if m != nil { - return m.Style - } - return BlockContentText_p -} - -func (m *BlockContentText) GetMarksList() *BlockContentText_Marks { - if m != nil { - return m.MarksList - } - return nil -} - -func (m *BlockContentText) GetToggleable() bool { - if m != nil { - return m.Toggleable - } - return false -} - -func (m *BlockContentText) GetMarkerType() BlockContentText_MarkerType { - if m != nil { - return m.MarkerType - } - return BlockContentText_none -} - -func (m *BlockContentText) GetCheckable() bool { - if m != nil { - return m.Checkable - } - return false -} - -func (m *BlockContentText) GetChecked() bool { - if m != nil { - return m.Checked - } - return false -} - -type BlockContentText_Marks struct { - Marks []*BlockContentText_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` -} - -func (m *BlockContentText_Marks) Reset() { *m = BlockContentText_Marks{} } -func (m *BlockContentText_Marks) String() string { return proto.CompactTextString(m) } -func (*BlockContentText_Marks) ProtoMessage() {} -func (*BlockContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 0} -} -func (m *BlockContentText_Marks) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentText_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentText_Marks.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentText_Marks) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentText_Marks.Merge(m, src) -} -func (m *BlockContentText_Marks) XXX_Size() int { - return m.Size() -} -func (m *BlockContentText_Marks) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentText_Marks.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentText_Marks proto.InternalMessageInfo - -func (m *BlockContentText_Marks) GetMarks() []*BlockContentText_Mark { - if m != nil { - return m.Marks - } - return nil -} - -type BlockContentText_Mark struct { - Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` - Type BlockContentText_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.BlockContentText_Mark_Type" json:"type,omitempty"` - Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` -} - -func (m *BlockContentText_Mark) Reset() { *m = BlockContentText_Mark{} } -func (m *BlockContentText_Mark) String() string { return proto.CompactTextString(m) } -func (*BlockContentText_Mark) ProtoMessage() {} -func (*BlockContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{22, 1} -} -func (m *BlockContentText_Mark) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentText_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentText_Mark.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentText_Mark) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentText_Mark.Merge(m, src) -} -func (m *BlockContentText_Mark) XXX_Size() int { - return m.Size() -} -func (m *BlockContentText_Mark) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentText_Mark.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentText_Mark proto.InternalMessageInfo - -func (m *BlockContentText_Mark) GetRange() *Range { - if m != nil { - return m.Range - } - return nil -} - -func (m *BlockContentText_Mark) GetType() BlockContentText_Mark_Type { - if m != nil { - return m.Type - } - return BlockContentText_Mark_STRIKETHROUGH -} - -func (m *BlockContentText_Mark) GetParam() string { - if m != nil { - return m.Param - } - return "" -} - -type VideoPreview struct { - Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` -} - -func (m *VideoPreview) Reset() { *m = VideoPreview{} } -func (m *VideoPreview) String() string { return proto.CompactTextString(m) } -func (*VideoPreview) ProtoMessage() {} -func (*VideoPreview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{23} -} -func (m *VideoPreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VideoPreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VideoPreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_VideoPreview.Merge(m, src) -} -func (m *VideoPreview) XXX_Size() int { - return m.Size() -} -func (m *VideoPreview) XXX_DiscardUnknown() { - xxx_messageInfo_VideoPreview.DiscardUnknown(m) -} - -var xxx_messageInfo_VideoPreview proto.InternalMessageInfo - -func (m *VideoPreview) GetThumbnail() []byte { - if m != nil { - return m.Thumbnail - } - return nil -} - -func (m *VideoPreview) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *VideoPreview) GetWidth() int32 { - if m != nil { - return m.Width - } - return 0 -} - -type ImagePreview struct { - Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` -} - -func (m *ImagePreview) Reset() { *m = ImagePreview{} } -func (m *ImagePreview) String() string { return proto.CompactTextString(m) } -func (*ImagePreview) ProtoMessage() {} -func (*ImagePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{24} -} -func (m *ImagePreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImagePreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImagePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImagePreview.Merge(m, src) -} -func (m *ImagePreview) XXX_Size() int { - return m.Size() -} -func (m *ImagePreview) XXX_DiscardUnknown() { - xxx_messageInfo_ImagePreview.DiscardUnknown(m) -} - -var xxx_messageInfo_ImagePreview proto.InternalMessageInfo - -func (m *ImagePreview) GetThumbnail() []byte { - if m != nil { - return m.Thumbnail - } - return nil -} - -func (m *ImagePreview) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ImagePreview) GetWidth() int32 { - if m != nil { - return m.Width - } - return 0 -} - -type FilePreview struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` -} - -func (m *FilePreview) Reset() { *m = FilePreview{} } -func (m *FilePreview) String() string { return proto.CompactTextString(m) } -func (*FilePreview) ProtoMessage() {} -func (*FilePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{25} -} -func (m *FilePreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FilePreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FilePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_FilePreview.Merge(m, src) -} -func (m *FilePreview) XXX_Size() int { - return m.Size() -} -func (m *FilePreview) XXX_DiscardUnknown() { - xxx_messageInfo_FilePreview.DiscardUnknown(m) -} - -var xxx_messageInfo_FilePreview proto.InternalMessageInfo - -func (m *FilePreview) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *FilePreview) GetIcon() string { - if m != nil { - return m.Icon - } - return "" -} - -type BlockContentMedia struct { - Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - State BlockContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.BlockContentMedia_State" json:"state,omitempty"` - // Types that are valid to be assigned to Preview: - // *BlockContentMedia_Video - // *BlockContentMedia_Image - // *BlockContentMedia_File - Preview isBlockContentMedia_Preview `protobuf_oneof:"preview"` -} - -func (m *BlockContentMedia) Reset() { *m = BlockContentMedia{} } -func (m *BlockContentMedia) String() string { return proto.CompactTextString(m) } -func (*BlockContentMedia) ProtoMessage() {} -func (*BlockContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{26} -} -func (m *BlockContentMedia) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockContentMedia.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockContentMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentMedia.Merge(m, src) -} -func (m *BlockContentMedia) XXX_Size() int { - return m.Size() -} -func (m *BlockContentMedia) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentMedia.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockContentMedia proto.InternalMessageInfo - -type isBlockContentMedia_Preview interface { - isBlockContentMedia_Preview() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockContentMedia_Video struct { - Video *VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` -} -type BlockContentMedia_Image struct { - Image *ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` -} -type BlockContentMedia_File struct { - File *FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` -} - -func (*BlockContentMedia_Video) isBlockContentMedia_Preview() {} -func (*BlockContentMedia_Image) isBlockContentMedia_Preview() {} -func (*BlockContentMedia_File) isBlockContentMedia_Preview() {} - -func (m *BlockContentMedia) GetPreview() isBlockContentMedia_Preview { - if m != nil { - return m.Preview - } - return nil -} - -func (m *BlockContentMedia) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -func (m *BlockContentMedia) GetState() BlockContentMedia_State { - if m != nil { - return m.State - } - return BlockContentMedia_EMPTY -} - -func (m *BlockContentMedia) GetVideo() *VideoPreview { - if x, ok := m.GetPreview().(*BlockContentMedia_Video); ok { - return x.Video - } - return nil -} - -func (m *BlockContentMedia) GetImage() *ImagePreview { - if x, ok := m.GetPreview().(*BlockContentMedia_Image); ok { - return x.Image - } - return nil -} - -func (m *BlockContentMedia) GetFile() *FilePreview { - if x, ok := m.GetPreview().(*BlockContentMedia_File); ok { - return x.File - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentMedia) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentMedia_Video)(nil), - (*BlockContentMedia_Image)(nil), - (*BlockContentMedia_File)(nil), - } -} - -type Range struct { - From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` - To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` -} - -func (m *Range) Reset() { *m = Range{} } -func (m *Range) String() string { return proto.CompactTextString(m) } -func (*Range) ProtoMessage() {} -func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_8e550b1f5926e92d, []int{27} -} -func (m *Range) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Range.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Range) XXX_Merge(src proto.Message) { - xxx_messageInfo_Range.Merge(m, src) -} -func (m *Range) XXX_Size() int { - return m.Size() -} -func (m *Range) XXX_DiscardUnknown() { - xxx_messageInfo_Range.DiscardUnknown(m) -} - -var xxx_messageInfo_Range proto.InternalMessageInfo - -func (m *Range) GetFrom() int32 { - if m != nil { - return m.From - } - return 0 -} - -func (m *Range) GetTo() int32 { - if m != nil { - return m.To - } - return 0 -} - -func init() { - proto.RegisterEnum("anytype.BlockType", BlockType_name, BlockType_value) - proto.RegisterEnum("anytype.BlockContentLayout_Style", BlockContentLayout_Style_name, BlockContentLayout_Style_value) - proto.RegisterEnum("anytype.BlockContentPage_Style", BlockContentPage_Style_name, BlockContentPage_Style_value) - proto.RegisterEnum("anytype.BlockContentDashboard_Style", BlockContentDashboard_Style_name, BlockContentDashboard_Style_value) - proto.RegisterEnum("anytype.BlockContentText_Style", BlockContentText_Style_name, BlockContentText_Style_value) - proto.RegisterEnum("anytype.BlockContentText_MarkerType", BlockContentText_MarkerType_name, BlockContentText_MarkerType_value) - proto.RegisterEnum("anytype.BlockContentText_Mark_Type", BlockContentText_Mark_Type_name, BlockContentText_Mark_Type_value) - proto.RegisterEnum("anytype.BlockContentMedia_State", BlockContentMedia_State_name, BlockContentMedia_State_value) - proto.RegisterType((*BlockShow)(nil), "anytype.BlockShow") - proto.RegisterType((*BlockUpdate)(nil), "anytype.BlockUpdate") - proto.RegisterType((*BlockCreate)(nil), "anytype.BlockCreate") - proto.RegisterType((*BlockStructureChange)(nil), "anytype.BlockStructureChange") - proto.RegisterType((*BlockContentTextChange)(nil), "anytype.BlockContentTextChange") - proto.RegisterType((*BlockContentPageChange)(nil), "anytype.BlockContentPageChange") - proto.RegisterType((*BlockHeaderChange)(nil), "anytype.BlockHeaderChange") - proto.RegisterType((*BlockContentDashboardChange)(nil), "anytype.BlockContentDashboardChange") - proto.RegisterType((*BlockContentMediaChange)(nil), "anytype.BlockContentMediaChange") - proto.RegisterType((*BlockAtomicChange)(nil), "anytype.BlockAtomicChange") - proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") - proto.RegisterType((*Block)(nil), "anytype.Block") - proto.RegisterType((*BlockHeader)(nil), "anytype.BlockHeader") - proto.RegisterType((*BlockContentLayout)(nil), "anytype.BlockContentLayout") - proto.RegisterType((*BlockPermissions)(nil), "anytype.BlockPermissions") - proto.RegisterType((*BlockHeadersList)(nil), "anytype.BlockHeadersList") - proto.RegisterType((*BlocksList)(nil), "anytype.BlocksList") - proto.RegisterType((*BlockContentPage)(nil), "anytype.BlockContentPage") - proto.RegisterType((*BlockStructure)(nil), "anytype.BlockStructure") - proto.RegisterMapType((map[string]*BlockChildren)(nil), "anytype.BlockStructure.BlockIdToBlockChildrenEntry") - proto.RegisterType((*BlockChildren)(nil), "anytype.BlockChildren") - proto.RegisterType((*BlockContentDashboard)(nil), "anytype.BlockContentDashboard") - proto.RegisterType((*BlockContentDataview)(nil), "anytype.BlockContentDataview") - proto.RegisterType((*BlockContentText)(nil), "anytype.BlockContentText") - proto.RegisterType((*BlockContentText_Marks)(nil), "anytype.BlockContentText.Marks") - proto.RegisterType((*BlockContentText_Mark)(nil), "anytype.BlockContentText.Mark") - proto.RegisterType((*VideoPreview)(nil), "anytype.VideoPreview") - proto.RegisterType((*ImagePreview)(nil), "anytype.ImagePreview") - proto.RegisterType((*FilePreview)(nil), "anytype.FilePreview") - proto.RegisterType((*BlockContentMedia)(nil), "anytype.BlockContentMedia") - proto.RegisterType((*Range)(nil), "anytype.Range") -} - -func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5926e92d) } - -var fileDescriptor_8e550b1f5926e92d = []byte{ - // 1754 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x5b, 0x73, 0x22, 0xc7, - 0x15, 0x9e, 0x19, 0x18, 0x04, 0x07, 0x49, 0xdb, 0xee, 0xac, 0x65, 0x22, 0x2b, 0x44, 0x99, 0xb8, - 0x36, 0x2a, 0xaf, 0x83, 0xcb, 0xba, 0xc4, 0x2e, 0x3b, 0xbb, 0x55, 0x20, 0x58, 0x41, 0x09, 0x09, - 0x55, 0x83, 0xb4, 0x59, 0xbf, 0xa4, 0x06, 0xa6, 0x05, 0x53, 0x5c, 0x86, 0x0c, 0x83, 0xd6, 0xbc, - 0xe4, 0x07, 0xe4, 0x29, 0xff, 0x23, 0xcf, 0xf9, 0x07, 0x4e, 0x55, 0xf2, 0x92, 0xda, 0xc7, 0xa4, - 0xf2, 0xe2, 0xd2, 0xfe, 0x91, 0x54, 0x5f, 0xe6, 0x2a, 0x84, 0xbc, 0x4e, 0xfc, 0xc4, 0x74, 0xf7, - 0x39, 0xa7, 0x4f, 0x7f, 0xe7, 0x0e, 0xe4, 0xbb, 0x23, 0xa7, 0x37, 0x2c, 0x4d, 0x5d, 0xc7, 0x73, - 0xf0, 0x9a, 0x39, 0x59, 0x78, 0x8b, 0x29, 0xdd, 0x5e, 0x9f, 0x79, 0xee, 0xbc, 0xe7, 0x89, 0x6d, - 0xe3, 0x33, 0xc8, 0x55, 0x18, 0x55, 0x7b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 0x29, 0x77, 0xcc, 0x6a, 0xeb, 0xbc, - 0x86, 0xd2, 0xac, 0xc9, 0x9b, 0x0a, 0xe9, 0xc6, 0x53, 0xd0, 0x79, 0x2c, 0x31, 0x90, 0xaf, 0x5d, - 0x67, 0xcc, 0x71, 0xd3, 0x09, 0xff, 0x66, 0x1d, 0x9f, 0xe7, 0x70, 0xc4, 0x74, 0xa2, 0x79, 0xce, - 0xc7, 0x0b, 0xf9, 0x4f, 0x14, 0x77, 0xc5, 0x0d, 0xc8, 0x55, 0xcb, 0xed, 0xba, 0x08, 0x06, 0x5e, - 0x54, 0x2f, 0xca, 0x27, 0x35, 0x51, 0x54, 0xab, 0xe5, 0x4e, 0x59, 0xaa, 0xc1, 0x8a, 0x6d, 0xed, - 0x77, 0x1d, 0xc4, 0x7d, 0xf7, 0x45, 0xa3, 0x59, 0x43, 0xd7, 0x5c, 0xcf, 0xc6, 0x71, 0xe7, 0x92, - 0xd4, 0x50, 0x9f, 0x3d, 0xe7, 0xaa, 0x51, 0xad, 0xb5, 0xd0, 0x20, 0x56, 0x8e, 0x6d, 0x9c, 0x87, - 0x4c, 0xb3, 0xfc, 0xaa, 0x75, 0xd9, 0x41, 0xff, 0x50, 0x2b, 0x3b, 0x7f, 0xbf, 0x2d, 0xaa, 0x6f, - 0x6e, 0x8b, 0xea, 0x77, 0xb7, 0x45, 0xf5, 0xcf, 0x6f, 0x8b, 0xca, 0x9b, 0xb7, 0x45, 0xe5, 0x5f, - 0x6f, 0x8b, 0xca, 0xd7, 0xda, 0xb4, 0xdb, 0xcd, 0xf0, 0x7f, 0xca, 0x0e, 0xfe, 0x1b, 0x00, 0x00, - 0xff, 0xff, 0xe5, 0xaa, 0x95, 0xf2, 0x4f, 0x13, 0x00, 0x00, -} - -func (m *BlockShow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockShow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Changes != nil { - { - size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockStructureChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockStructureChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockStructureChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Children != nil { - { - size, err := m.Children.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockContentTextChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentTextChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentTextChange_Text) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Text) - copy(dAtA[i:], m.Text) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Text))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *BlockContentTextChange_Style) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x10 - return len(dAtA) - i, nil -} -func (m *BlockContentTextChange_Marks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Marks != nil { - { - size, err := m.Marks.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *BlockContentTextChange_Toggleable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_Toggleable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i-- - if m.Toggleable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - return len(dAtA) - i, nil -} -func (m *BlockContentTextChange_MarkerType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_MarkerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlock(dAtA, i, uint64(m.MarkerType)) - i-- - dAtA[i] = 0x28 - return len(dAtA) - i, nil -} -func (m *BlockContentTextChange_Checkable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_Checkable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i-- - if m.Checkable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - return len(dAtA) - i, nil -} -func (m *BlockContentTextChange_Checked) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentTextChange_Checked) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i-- - if m.Checked { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - return len(dAtA) - i, nil -} -func (m *BlockContentPageChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentPageChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentPageChange_Style) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} -func (m *BlockContentPageChange_StructureChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange_StructureChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StructureChange != nil { - { - size, err := m.StructureChange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *BlockContentPageChange_Block) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHeaderChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockHeaderChange_Id) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Type) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlock(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Name) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Name) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Icon) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Icon) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Icon) - copy(dAtA[i:], m.Icon) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Icon))) - i-- - dAtA[i] = 0x22 - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Permissions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *BlockContentDashboardChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentDashboardChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentDashboardChange_Style) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} -func (m *BlockContentDashboardChange_StructureChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange_StructureChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StructureChange != nil { - { - size, err := m.StructureChange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *BlockContentDashboardChange_Header) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *BlockContentMediaChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentMediaChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMediaChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentMediaChange_Link) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMediaChange_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Link) - copy(dAtA[i:], m.Link) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Link))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *BlockContentMediaChange_State) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMediaChange_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlock(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x10 - return len(dAtA) - i, nil -} -func (m *BlockAtomicChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockAtomicChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockAtomicChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockAtomicChange_Text) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockAtomicChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Text != nil { - { - size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *BlockAtomicChange_BlockHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockAtomicChange_BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BlockHeader != nil { - { - size, err := m.BlockHeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *BlockAtomicChange_Page) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockAtomicChange_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Page != nil { - { - size, err := m.Page.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *BlockAtomicChange_Dashboard) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockAtomicChange_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Dashboard != nil { - { - size, err := m.Dashboard.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *BlockAtomicChange_Media) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockAtomicChange_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Media != nil { - { - size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *BlockChanges) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockChanges) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockChanges) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Changes) > 0 { - for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Block) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Content != nil { - { - size := m.Content.Size() - i -= size - if _, err := m.Content.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_Dashboard) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Dashboard != nil { - { - size, err := m.Dashboard.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *Block_Page) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Page != nil { - { - size, err := m.Page.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *Block_Dataview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Dataview != nil { - { - size, err := m.Dataview.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *Block_Text) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Text != nil { - { - size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - return len(dAtA) - i, nil -} -func (m *Block_Media) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Media != nil { - { - size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - return len(dAtA) - i, nil -} -func (m *Block_Layout) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Layout != nil { - { - size, err := m.Layout.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - return len(dAtA) - i, nil -} -func (m *BlockHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Fields != nil { - { - size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Type != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockContentLayout) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentLayout) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockPermissions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockPermissions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DropOn { - i-- - if m.DropOn { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Drag { - i-- - if m.Drag { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Remove { - i-- - if m.Remove { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Edit { - i-- - if m.Edit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Read { - i-- - if m.Read { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockHeadersList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHeadersList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeadersList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Headers) > 0 { - for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Headers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *BlocksList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlocksList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlocksList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Blocks) > 0 { - for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentPage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentPage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Blocks != nil { - { - size, err := m.Blocks.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Structure != nil { - { - size, err := m.Structure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Style != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockStructure) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockStructure) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockStructure) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BlockIdToBlockChildren) > 0 { - for k := range m.BlockIdToBlockChildren { - v := m.BlockIdToBlockChildren[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintBlock(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintBlock(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *BlockChildren) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockChildren) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Children) > 0 { - for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Children[iNdEx]) - copy(dAtA[i:], m.Children[iNdEx]) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Children[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentDashboard) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentDashboard) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Headers != nil { - { - size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Structure != nil { - { - size, err := m.Structure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Style != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockContentDataview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentDataview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *BlockContentText) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentText) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Checked { - i-- - if m.Checked { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Checkable { - i-- - if m.Checkable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.MarkerType != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.MarkerType)) - i-- - dAtA[i] = 0x28 - } - if m.Toggleable { - i-- - if m.Toggleable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.MarksList != nil { - { - size, err := m.MarksList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Style != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x10 - } - if len(m.Text) > 0 { - i -= len(m.Text) - copy(dAtA[i:], m.Text) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Text))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockContentText_Marks) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentText_Marks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentText_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Marks) > 0 { - for iNdEx := len(m.Marks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Marks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentText_Mark) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentText_Mark) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Param) > 0 { - i -= len(m.Param) - copy(dAtA[i:], m.Param) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Param))) - i-- - dAtA[i] = 0x1a - } - if m.Type != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VideoPreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VideoPreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Width != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Width)) - i-- - dAtA[i] = 0x18 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Thumbnail) > 0 { - i -= len(m.Thumbnail) - copy(dAtA[i:], m.Thumbnail) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Thumbnail))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ImagePreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImagePreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Width != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.Width)) - i-- - dAtA[i] = 0x18 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Thumbnail) > 0 { - i -= len(m.Thumbnail) - copy(dAtA[i:], m.Thumbnail) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Thumbnail))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FilePreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FilePreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Icon) > 0 { - i -= len(m.Icon) - copy(dAtA[i:], m.Icon) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Icon))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockContentMedia) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentMedia) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Preview != nil { - { - size := m.Preview.Size() - i -= size - if _, err := m.Preview.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.State != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x10 - } - if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintBlock(dAtA, i, uint64(len(m.Content))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockContentMedia_Video) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Video != nil { - { - size, err := m.Video.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *BlockContentMedia_Image) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Image != nil { - { - size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *BlockContentMedia_File) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.File != nil { - { - size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} -func (m *Range) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Range) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.To != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.To)) - i-- - dAtA[i] = 0x10 - } - if m.From != 0 { - i = encodeVarintBlock(dAtA, i, uint64(m.From)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintBlock(dAtA []byte, offset int, v uint64) int { - offset -= sovBlock(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BlockShow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Changes != nil { - l = m.Changes.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockStructureChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.Children != nil { - l = m.Children.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockContentTextChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockContentTextChange_Text) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Text) - n += 1 + l + sovBlock(uint64(l)) - return n -} -func (m *BlockContentTextChange_Style) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlock(uint64(m.Style)) - return n -} -func (m *BlockContentTextChange_Marks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Marks != nil { - l = m.Marks.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentTextChange_Toggleable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *BlockContentTextChange_MarkerType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlock(uint64(m.MarkerType)) - return n -} -func (m *BlockContentTextChange_Checkable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *BlockContentTextChange_Checked) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *BlockContentPageChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockContentPageChange_Style) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlock(uint64(m.Style)) - return n -} -func (m *BlockContentPageChange_StructureChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StructureChange != nil { - l = m.StructureChange.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentPageChange_Block) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockHeaderChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockHeaderChange_Id) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - n += 1 + l + sovBlock(uint64(l)) - return n -} -func (m *BlockHeaderChange_Type) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlock(uint64(m.Type)) - return n -} -func (m *BlockHeaderChange_Name) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovBlock(uint64(l)) - return n -} -func (m *BlockHeaderChange_Icon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Icon) - n += 1 + l + sovBlock(uint64(l)) - return n -} -func (m *BlockHeaderChange_Permissions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Permissions != nil { - l = m.Permissions.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentDashboardChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockContentDashboardChange_Style) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlock(uint64(m.Style)) - return n -} -func (m *BlockContentDashboardChange_StructureChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StructureChange != nil { - l = m.StructureChange.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentDashboardChange_Header) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentMediaChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockContentMediaChange_Link) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Link) - n += 1 + l + sovBlock(uint64(l)) - return n -} -func (m *BlockContentMediaChange_State) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlock(uint64(m.State)) - return n -} -func (m *BlockAtomicChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockAtomicChange_Text) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Text != nil { - l = m.Text.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockAtomicChange_BlockHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BlockHeader != nil { - l = m.BlockHeader.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockAtomicChange_Page) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Page != nil { - l = m.Page.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockAtomicChange_Dashboard) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Dashboard != nil { - l = m.Dashboard.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockAtomicChange_Media) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Media != nil { - l = m.Media.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockChanges) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Changes) > 0 { - for _, e := range m.Changes { - l = e.Size() - n += 1 + l + sovBlock(uint64(l)) - } - } - return n -} - -func (m *Block) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.Content != nil { - n += m.Content.Size() - } - return n -} - -func (m *Block_Dashboard) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Dashboard != nil { - l = m.Dashboard.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *Block_Page) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Page != nil { - l = m.Page.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *Block_Dataview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Dataview != nil { - l = m.Dataview.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *Block_Text) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Text != nil { - l = m.Text.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *Block_Media) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Media != nil { - l = m.Media.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} -func (m *Block_Layout) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Layout != nil { - l = m.Layout.Size() - n += 2 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovBlock(uint64(m.Type)) - } - if m.Fields != nil { - l = m.Fields.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.Permissions != nil { - l = m.Permissions.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockContentLayout) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Style != 0 { - n += 1 + sovBlock(uint64(m.Style)) - } - return n -} - -func (m *BlockPermissions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Read { - n += 2 - } - if m.Edit { - n += 2 - } - if m.Remove { - n += 2 - } - if m.Drag { - n += 2 - } - if m.DropOn { - n += 2 - } - return n -} - -func (m *BlockHeadersList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Headers) > 0 { - for _, e := range m.Headers { - l = e.Size() - n += 1 + l + sovBlock(uint64(l)) - } - } - return n -} - -func (m *BlocksList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovBlock(uint64(l)) - } - } - return n -} - -func (m *BlockContentPage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Style != 0 { - n += 1 + sovBlock(uint64(m.Style)) - } - if m.Structure != nil { - l = m.Structure.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.Blocks != nil { - l = m.Blocks.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockStructure) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.BlockIdToBlockChildren) > 0 { - for k, v := range m.BlockIdToBlockChildren { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovBlock(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovBlock(uint64(len(k))) + l - n += mapEntrySize + 1 + sovBlock(uint64(mapEntrySize)) - } - } - return n -} - -func (m *BlockChildren) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Children) > 0 { - for _, s := range m.Children { - l = len(s) - n += 1 + l + sovBlock(uint64(l)) - } - } - return n -} - -func (m *BlockContentDashboard) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Style != 0 { - n += 1 + sovBlock(uint64(m.Style)) - } - if m.Structure != nil { - l = m.Structure.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.Headers != nil { - l = m.Headers.Size() - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockContentDataview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *BlockContentText) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Text) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.Style != 0 { - n += 1 + sovBlock(uint64(m.Style)) - } - if m.MarksList != nil { - l = m.MarksList.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.Toggleable { - n += 2 - } - if m.MarkerType != 0 { - n += 1 + sovBlock(uint64(m.MarkerType)) - } - if m.Checkable { - n += 2 - } - if m.Checked { - n += 2 - } - return n -} - -func (m *BlockContentText_Marks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Marks) > 0 { - for _, e := range m.Marks { - l = e.Size() - n += 1 + l + sovBlock(uint64(l)) - } - } - return n -} - -func (m *BlockContentText_Mark) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Range != nil { - l = m.Range.Size() - n += 1 + l + sovBlock(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovBlock(uint64(m.Type)) - } - l = len(m.Param) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *VideoPreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Thumbnail) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.Width != 0 { - n += 1 + sovBlock(uint64(m.Width)) - } - return n -} - -func (m *ImagePreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Thumbnail) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.Width != 0 { - n += 1 + sovBlock(uint64(m.Width)) - } - return n -} - -func (m *FilePreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - l = len(m.Icon) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - return n -} - -func (m *BlockContentMedia) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Content) - if l > 0 { - n += 1 + l + sovBlock(uint64(l)) - } - if m.State != 0 { - n += 1 + sovBlock(uint64(m.State)) - } - if m.Preview != nil { - n += m.Preview.Size() - } - return n -} - -func (m *BlockContentMedia_Video) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Video != nil { - l = m.Video.Size() - n += 2 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentMedia_Image) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Image != nil { - l = m.Image.Size() - n += 2 + l + sovBlock(uint64(l)) - } - return n -} -func (m *BlockContentMedia_File) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.File != nil { - l = m.File.Size() - n += 2 + l + sovBlock(uint64(l)) - } - return n -} -func (m *Range) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.From != 0 { - n += 1 + sovBlock(uint64(m.From)) - } - if m.To != 0 { - n += 1 + sovBlock(uint64(m.To)) - } - return n -} - -func sovBlock(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBlock(x uint64) (n int) { - return sovBlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *BlockShow) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockShow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockShow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Block == nil { - m.Block = &Block{} - } - if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockUpdate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Changes == nil { - m.Changes = &BlockChanges{} - } - if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockCreate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Block == nil { - m.Block = &Block{} - } - if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockStructureChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockStructureChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockStructureChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Children == nil { - m.Children = &BlockChildren{} - } - if err := m.Children.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentTextChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentTextChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Change = &BlockContentTextChange_Text{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - var v BlockContentText_Style - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= BlockContentText_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentTextChange_Style{v} - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentText_Marks{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentTextChange_Marks{v} - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Change = &BlockContentTextChange_Toggleable{b} - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) - } - var v BlockContentText_MarkerType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= BlockContentText_MarkerType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentTextChange_MarkerType{v} - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Change = &BlockContentTextChange_Checkable{b} - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Change = &BlockContentTextChange_Checked{b} - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentPageChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentPageChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - var v BlockContentPage_Style - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= BlockContentPage_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentPageChange_Style{v} - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StructureChange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockStructureChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentPageChange_StructureChange{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentPageChange_Block{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHeaderChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHeaderChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Change = &BlockHeaderChange_Id{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v BlockType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= BlockType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockHeaderChange_Type{v} - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Change = &BlockHeaderChange_Name{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Change = &BlockHeaderChange_Icon{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockPermissions{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockHeaderChange_Permissions{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentDashboardChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentDashboardChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - var v BlockContentDashboard_Style - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= BlockContentDashboard_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentDashboardChange_Style{v} - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StructureChange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockStructureChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentDashboardChange_StructureChange{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockHeader{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentDashboardChange_Header{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentMediaChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentMediaChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Change = &BlockContentMediaChange_Link{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var v BlockContentMedia_State - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= BlockContentMedia_State(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentMediaChange_State{v} - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockAtomicChange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockAtomicChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockAtomicChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentTextChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockAtomicChange_Text{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeader", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockHeaderChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockAtomicChange_BlockHeader{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentPageChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockAtomicChange_Page{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dashboard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentDashboardChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockAtomicChange_Dashboard{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentMediaChange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockAtomicChange_Media{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockChanges) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockChanges: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockChanges: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Changes = append(m.Changes, &BlockAtomicChange{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Block: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &BlockHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dashboard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentDashboard{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Dashboard{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentPage{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Page{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dataview", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentDataview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Dataview{v} - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentText{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Text{v} - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentMedia{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Media{v} - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockContentLayout{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Layout{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= BlockType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fields == nil { - m.Fields = &Struct{} - } - if err := m.Fields.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Permissions == nil { - m.Permissions = &BlockPermissions{} - } - if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentLayout) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentLayout: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentLayout: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= BlockContentLayout_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockPermissions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockPermissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockPermissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Read", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Read = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Edit", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Edit = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Remove = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Drag", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Drag = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropOn", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DropOn = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHeadersList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHeadersList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHeadersList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Headers = append(m.Headers, &BlockHeader{}) - if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlocksList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlocksList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlocksList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Blocks = append(m.Blocks, &Block{}) - if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentPage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentPage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentPage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= BlockContentPage_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Structure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Structure == nil { - m.Structure = &BlockStructure{} - } - if err := m.Structure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Blocks == nil { - m.Blocks = &BlocksList{} - } - if err := m.Blocks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockStructure) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockStructure: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockStructure: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIdToBlockChildren", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BlockIdToBlockChildren == nil { - m.BlockIdToBlockChildren = make(map[string]*BlockChildren) - } - var mapkey string - var mapvalue *BlockChildren - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - 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 ErrIntOverflowBlock - } - 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 ErrInvalidLengthBlock - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthBlock - } - 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 ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthBlock - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthBlock - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &BlockChildren{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.BlockIdToBlockChildren[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockChildren) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockChildren: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockChildren: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentDashboard) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentDashboard: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentDashboard: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= BlockContentDashboard_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Structure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Structure == nil { - m.Structure = &BlockStructure{} - } - if err := m.Structure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Headers == nil { - m.Headers = &BlockHeadersList{} - } - if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentDataview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentDataview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentDataview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentText) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentText: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentText: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Text = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= BlockContentText_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarksList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MarksList == nil { - m.MarksList = &BlockContentText_Marks{} - } - if err := m.MarksList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Toggleable = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) - } - m.MarkerType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MarkerType |= BlockContentText_MarkerType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Checkable = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Checked = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentText_Marks) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Marks: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Marks: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Marks = append(m.Marks, &BlockContentText_Mark{}) - if err := m.Marks[len(m.Marks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentText_Mark) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Mark: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Mark: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Range == nil { - m.Range = &Range{} - } - if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= BlockContentText_Mark_Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Param = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VideoPreview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VideoPreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VideoPreview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) - if m.Thumbnail == nil { - m.Thumbnail = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) - } - m.Width = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Width |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImagePreview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImagePreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImagePreview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) - if m.Thumbnail == nil { - m.Thumbnail = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) - } - m.Width = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Width |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FilePreview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FilePreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FilePreview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Icon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockContentMedia) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockContentMedia: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentMedia: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) - if m.Content == nil { - m.Content = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= BlockContentMedia_State(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 101: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Video", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &VideoPreview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Preview = &BlockContentMedia_Video{v} - iNdEx = postIndex - case 102: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ImagePreview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Preview = &BlockContentMedia_Image{v} - iNdEx = postIndex - case 103: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &FilePreview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Preview = &BlockContentMedia_File{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Range) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Range: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Range: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - m.From = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.From |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - m.To = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.To |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlock(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlock - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBlock(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlock - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlock - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlock - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBlock - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlock - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBlock - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBlock = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlock = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/edit.pb.go b/pb/edit.pb.go index 2be6d2a90..db00bc37c 100644 --- a/pb/edit.pb.go +++ b/pb/edit.pb.go @@ -310,24 +310,25 @@ func init() { func init() { proto.RegisterFile("edit.proto", fileDescriptor_f5013c7d48f38d97) } var fileDescriptor_f5013c7d48f38d97 = []byte{ - // 271 bytes of a gzipped FileDescriptorProto + // 283 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xc9, 0x2c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, - 0xe2, 0x4e, 0xca, 0xc9, 0x4f, 0xce, 0x86, 0x88, 0x4a, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, 0xe6, - 0x41, 0x15, 0x29, 0x59, 0x73, 0xf1, 0x86, 0x16, 0xa7, 0x16, 0x39, 0x81, 0x54, 0x78, 0xe5, 0x67, - 0xe6, 0x09, 0x69, 0x71, 0xb1, 0x43, 0x55, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe8, - 0x41, 0xcd, 0xd1, 0x73, 0x84, 0x88, 0x07, 0xc1, 0x14, 0xa0, 0x68, 0xf6, 0x49, 0x4d, 0x2b, 0x21, - 0x49, 0x73, 0x03, 0x23, 0x97, 0x10, 0x5c, 0x77, 0x48, 0x6a, 0x45, 0x49, 0x50, 0x62, 0x5e, 0x7a, - 0x2a, 0x29, 0x46, 0x08, 0x49, 0x70, 0xb1, 0x83, 0xbd, 0xe6, 0x99, 0x22, 0xc1, 0xa4, 0xc0, 0xa8, - 0xc1, 0x19, 0x04, 0xe3, 0x0a, 0xa9, 0x70, 0xb1, 0x16, 0x81, 0x8c, 0x93, 0x60, 0x06, 0x9b, 0xc1, - 0x07, 0x37, 0x03, 0x6c, 0x49, 0x10, 0x44, 0x52, 0x29, 0x83, 0x4b, 0x04, 0xee, 0x82, 0xe0, 0xd4, - 0x9c, 0xd4, 0x64, 0x32, 0xdc, 0xa0, 0xc2, 0xc5, 0x0b, 0xb5, 0xb4, 0xd8, 0xb1, 0xa8, 0x28, 0xb1, - 0x52, 0x82, 0x49, 0x81, 0x59, 0x83, 0x33, 0x08, 0x55, 0x50, 0xc9, 0x99, 0x8b, 0xdb, 0x2d, 0x33, - 0x27, 0xb5, 0x38, 0xb4, 0x20, 0x27, 0x3f, 0x31, 0x45, 0x48, 0x8a, 0x8b, 0x23, 0x2d, 0x33, 0x27, - 0x35, 0x20, 0xb1, 0x24, 0x43, 0x82, 0x11, 0xac, 0x1e, 0xce, 0xc7, 0xed, 0x29, 0x27, 0x99, 0x13, - 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, - 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x62, 0x2a, 0x48, 0x4a, 0x62, 0x03, 0x47, - 0xa8, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x7c, 0x5f, 0xf5, 0x03, 0x02, 0x00, 0x00, + 0x12, 0x49, 0x4f, 0xcd, 0x4b, 0x2d, 0x4a, 0xcc, 0xd1, 0xcd, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0x86, + 0x48, 0x4b, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, 0xe6, 0x41, 0x55, 0x2b, 0x59, 0x73, 0xf1, 0x86, + 0x16, 0xa7, 0x16, 0x39, 0xe5, 0xe4, 0x27, 0x67, 0x7b, 0xe5, 0x67, 0xe6, 0x09, 0x69, 0x71, 0xb1, + 0x43, 0x55, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe8, 0x41, 0x0d, 0xd4, 0x73, 0x84, + 0x88, 0x07, 0xc1, 0x14, 0xa0, 0x68, 0xf6, 0x49, 0x4d, 0x2b, 0x21, 0x49, 0x73, 0x03, 0x23, 0x97, + 0x10, 0x5c, 0x77, 0x48, 0x6a, 0x45, 0x49, 0x50, 0x62, 0x5e, 0x7a, 0x2a, 0x29, 0x46, 0x08, 0x49, + 0x70, 0xb1, 0x27, 0x81, 0x74, 0x7b, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, + 0x42, 0x2a, 0x5c, 0xac, 0x45, 0x20, 0xe3, 0x24, 0x98, 0xc1, 0x66, 0xf0, 0xc1, 0xcd, 0x00, 0x5b, + 0x12, 0x04, 0x91, 0x54, 0xca, 0xe0, 0x12, 0x81, 0xbb, 0x20, 0x38, 0x35, 0x27, 0x35, 0x99, 0x0c, + 0x37, 0xa8, 0x70, 0xf1, 0x42, 0x2d, 0x2d, 0x76, 0x2c, 0x2a, 0x4a, 0xac, 0x94, 0x60, 0x52, 0x60, + 0xd6, 0xe0, 0x0c, 0x42, 0x15, 0x54, 0x72, 0xe6, 0xe2, 0x76, 0xcb, 0xcc, 0x49, 0x2d, 0x0e, 0x2d, + 0xc8, 0xc9, 0x4f, 0x4c, 0x11, 0x92, 0xe2, 0xe2, 0x48, 0xcb, 0xcc, 0x49, 0x0d, 0x48, 0x2c, 0xc9, + 0x90, 0x60, 0x04, 0xab, 0x87, 0xf3, 0x71, 0x7b, 0xca, 0x49, 0xe6, 0xc4, 0x23, 0x39, 0xc6, 0x0b, + 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, + 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x11, 0x6a, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x9d, 0xb7, 0x83, 0x78, 0x0c, 0x02, 0x00, 0x00, } func (m *UserBlockJoin) Marshal() (dAtA []byte, err error) { diff --git a/pb/event.pb.go b/pb/event.pb.go index 027523713..11723e784 100644 --- a/pb/event.pb.go +++ b/pb/event.pb.go @@ -205,28 +205,29 @@ func init() { func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } var fileDescriptor_2d17a9d3f0ddf27e = []byte{ - // 336 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x3f, 0x4f, 0xc2, 0x40, - 0x18, 0xc6, 0xaf, 0xc8, 0x1f, 0xb9, 0x86, 0xe5, 0x42, 0xcc, 0x05, 0xf5, 0x62, 0x9c, 0x9c, 0x18, - 0x70, 0x71, 0x32, 0xb1, 0x46, 0xd3, 0x18, 0x5d, 0x0e, 0x59, 0xdc, 0x8e, 0xf2, 0x82, 0xc4, 0xda, - 0x6b, 0xe8, 0xa1, 0xf2, 0x2d, 0xfc, 0x58, 0x8e, 0xc4, 0xc9, 0xd1, 0xc0, 0x17, 0x31, 0x77, 0x94, - 0x6b, 0x81, 0x3a, 0xde, 0xfb, 0x3c, 0xbf, 0xdf, 0x9b, 0xbe, 0x29, 0x76, 0xe1, 0x0d, 0x22, 0xd5, - 0x8e, 0x27, 0x52, 0x49, 0x52, 0x13, 0xd1, 0x4c, 0xcd, 0x62, 0x68, 0x35, 0x44, 0x10, 0xc8, 0xe9, - 0x7a, 0xde, 0x72, 0xfb, 0xa1, 0x0c, 0x5e, 0xd2, 0x07, 0x86, 0xc1, 0x38, 0x0d, 0x4e, 0xbf, 0xcb, - 0xb8, 0x72, 0xa3, 0x05, 0xe4, 0x02, 0xbb, 0x29, 0xd3, 0x7d, 0x96, 0xef, 0xd4, 0x39, 0x71, 0xce, - 0xdc, 0x4e, 0xb3, 0x9d, 0x0a, 0xdb, 0x57, 0x59, 0xe6, 0x23, 0x9e, 0xaf, 0x92, 0x0e, 0xae, 0x1b, - 0xbd, 0xe1, 0x4a, 0x86, 0x23, 0x96, 0xf3, 0xd6, 0x89, 0x8f, 0x78, 0x56, 0xd3, 0xdb, 0xcc, 0xa3, - 0x17, 0x0f, 0x84, 0x02, 0xba, 0xb7, 0xb5, 0xcd, 0xcb, 0x32, 0xbd, 0x2d, 0x57, 0xb5, 0xe4, 0xf5, - 0x04, 0x34, 0x59, 0x2e, 0x22, 0x57, 0x99, 0x25, 0x57, 0x4f, 0xf2, 0x80, 0xc9, 0x34, 0x81, 0x89, - 0x69, 0x3c, 0xc2, 0x87, 0xe2, 0x22, 0x1a, 0x01, 0xad, 0x18, 0xc1, 0xa1, 0x15, 0xf4, 0x76, 0x2a, - 0x3e, 0xe2, 0x05, 0x20, 0xb9, 0xc4, 0x0d, 0x3b, 0xbd, 0x93, 0xe3, 0x88, 0x56, 0x8d, 0xe9, 0x60, - 0xd7, 0xa4, 0x53, 0x1f, 0xf1, 0xcd, 0xfa, 0x06, 0x7f, 0x0f, 0x43, 0x45, 0x6b, 0xff, 0xf1, 0x3a, - 0xdd, 0xe0, 0xf5, 0x80, 0x74, 0x71, 0xd3, 0x0e, 0xba, 0x10, 0x42, 0x90, 0x7e, 0xd0, 0xbe, 0xd1, - 0x1c, 0xef, 0x6a, 0x72, 0x25, 0x1f, 0xf1, 0x42, 0x58, 0x5f, 0x77, 0x38, 0x0e, 0x21, 0xe9, 0xc5, - 0xa1, 0x14, 0x03, 0x5a, 0xdf, 0xba, 0xee, 0x6d, 0x96, 0xe9, 0xeb, 0xe6, 0xaa, 0x5e, 0x1d, 0xd7, - 0x5e, 0x21, 0x49, 0xc4, 0x08, 0xbc, 0xa3, 0xaf, 0x05, 0x73, 0xe6, 0x0b, 0xe6, 0xfc, 0x2e, 0x98, - 0xf3, 0xb9, 0x64, 0x68, 0xbe, 0x64, 0xe8, 0x67, 0xc9, 0xd0, 0x53, 0x29, 0xee, 0xf7, 0xab, 0xe6, - 0xcf, 0x3b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x16, 0xfd, 0x5f, 0xb9, 0x02, 0x00, 0x00, + // 341 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc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86, 0xa9, 0x21, 0x1e, 0xe0, 0x5d, 0x71, 0x11, 0x8e, 0x81, 0x56, 0x4c, 0xc1, + 0xbe, 0x2d, 0xe8, 0xe7, 0x10, 0x0f, 0xf1, 0x02, 0x91, 0x5c, 0xe0, 0xa6, 0x9d, 0xde, 0xca, 0x49, + 0x48, 0xab, 0xa6, 0x69, 0x2f, 0xdf, 0xa4, 0x53, 0x0f, 0xf1, 0x6d, 0x7c, 0xcb, 0xbf, 0x83, 0x91, + 0xa2, 0xb5, 0xbf, 0x7c, 0x9d, 0x6e, 0xf9, 0x7a, 0x40, 0x7a, 0xb8, 0x65, 0x07, 0x3d, 0x08, 0xc0, + 0x4f, 0x3e, 0xe8, 0xbf, 0xa9, 0x39, 0xcc, 0xd7, 0x64, 0x20, 0x0f, 0xf1, 0x42, 0x59, 0x5f, 0x77, + 0x34, 0x09, 0x20, 0xee, 0x47, 0x81, 0x14, 0x43, 0x5a, 0xdf, 0xb9, 0xee, 0x4d, 0x9a, 0xe9, 0xeb, + 0x66, 0x50, 0xb7, 0x8e, 0x6b, 0x2f, 0x10, 0xc7, 0x62, 0x0c, 0xee, 0xc1, 0xe7, 0x92, 0x39, 0x8b, + 0x25, 0x73, 0x7e, 0x96, 0xcc, 0xf9, 0x58, 0x31, 0xb4, 0x58, 0x31, 0xf4, 0xbd, 0x62, 0xe8, 0xb1, + 0x14, 0x0d, 0x06, 0x55, 0xf3, 0xe7, 0x9d, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0x80, 0xe7, 0x22, + 0xa3, 0xc0, 0x02, 0x00, 0x00, } func (m *Event) Marshal() (dAtA []byte, err error) { diff --git a/pb/general-models.pb.go b/pb/general-models.pb.go new file mode 100644 index 000000000..08ad99367 --- /dev/null +++ b/pb/general-models.pb.go @@ -0,0 +1,335 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: general-models.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Range struct { + From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` + To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (m *Range) Reset() { *m = Range{} } +func (m *Range) String() string { return proto.CompactTextString(m) } +func (*Range) ProtoMessage() {} +func (*Range) Descriptor() ([]byte, []int) { + return fileDescriptor_568b6672563a50dc, []int{0} +} +func (m *Range) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Range.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Range) XXX_Merge(src proto.Message) { + xxx_messageInfo_Range.Merge(m, src) +} +func (m *Range) XXX_Size() int { + return m.Size() +} +func (m *Range) XXX_DiscardUnknown() { + xxx_messageInfo_Range.DiscardUnknown(m) +} + +var xxx_messageInfo_Range proto.InternalMessageInfo + +func (m *Range) GetFrom() int32 { + if m != nil { + return m.From + } + return 0 +} + +func (m *Range) GetTo() int32 { + if m != nil { + return m.To + } + return 0 +} + +func init() { + proto.RegisterType((*Range)(nil), "anytype.Range") +} + +func init() { proto.RegisterFile("general-models.proto", fileDescriptor_568b6672563a50dc) } + +var fileDescriptor_568b6672563a50dc = []byte{ + // 130 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4f, 0xcd, 0x4b, + 0x2d, 0x4a, 0xcc, 0xd1, 0xcd, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x55, 0xd2, 0xe6, 0x62, 0x0d, 0x4a, 0xcc, + 0x4b, 0x4f, 0x15, 0x12, 0xe2, 0x62, 0x49, 0x2b, 0xca, 0xcf, 0x95, 0x60, 0x54, 0x60, 0xd4, 0x60, + 0x0d, 0x02, 0xb3, 0x85, 0xf8, 0xb8, 0x98, 0x4a, 0xf2, 0x25, 0x98, 0xc0, 0x22, 0x4c, 0x25, 0xf9, + 0x4e, 0x32, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, + 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xc5, 0x54, 0x90, 0x94, + 0xc4, 0x06, 0x36, 0xda, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x58, 0x5d, 0xcf, 0x72, 0x00, + 0x00, 0x00, +} + +func (m *Range) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Range) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.To != 0 { + i = encodeVarintGeneralModels(dAtA, i, uint64(m.To)) + i-- + dAtA[i] = 0x10 + } + if m.From != 0 { + i = encodeVarintGeneralModels(dAtA, i, uint64(m.From)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintGeneralModels(dAtA []byte, offset int, v uint64) int { + offset -= sovGeneralModels(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Range) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.From != 0 { + n += 1 + sovGeneralModels(uint64(m.From)) + } + if m.To != 0 { + n += 1 + sovGeneralModels(uint64(m.To)) + } + return n +} + +func sovGeneralModels(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGeneralModels(x uint64) (n int) { + return sovGeneralModels(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Range) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGeneralModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Range: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Range: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + m.From = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGeneralModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.From |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + m.To = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGeneralModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.To |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGeneralModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGeneralModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGeneralModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGeneralModels(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGeneralModels + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGeneralModels + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGeneralModels + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGeneralModels + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGeneralModels + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGeneralModels + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGeneralModels = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGeneralModels = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGeneralModels = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/protos/block-changes.proto b/pb/protos/block-changes.proto new file mode 100644 index 000000000..754331bb2 --- /dev/null +++ b/pb/protos/block-changes.proto @@ -0,0 +1,70 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; +import "block-content.proto"; + +message BlockContentTextChange { + oneof change { + string text = 1; + Block.ContentText.Style style = 2; + Block.ContentText.Marks marks = 3; + + bool toggleable = 4; + Block.ContentText.MarkerType markerType = 5; + + bool checkable = 6; + bool checked = 7; + } +} + +message BlockContentPageChange { + oneof change { + Block.ContentPage.Style style = 1; + Block block = 2; + } +} + +message BlockHeaderChange { + oneof change { + string id = 1; + Block.Header.Type type = 2; + string name = 3; + string icon = 4; + + Block.Header.Permissions permissions = 5; + } +} + +message BlockChildrenChange { + repeated string children = 1; +} + +message BlockContentDashboardChange { + oneof change { + Block.ContentDashboard.Style style = 1; + Block.Header header = 2; // not a dashboard header – one of children + } +} + +message BlockContentMediaChange { + oneof change { + string link = 1; + Block.ContentMedia.State state = 2; + } +} + +message BlocksListSingleChange { + repeated string id = 1; + oneof change { + BlockContentTextChange text = 2; + BlockHeaderChange blockHeader = 3; + BlockChildrenChange blockChildren = 4; + BlockContentPageChange page = 5; + BlockContentDashboardChange dashboard = 6; + BlockContentMediaChange media = 7; + } +} + +message BlockChanges { + repeated BlocksListSingleChange changes = 1; +} \ No newline at end of file diff --git a/pb/protos/block-commands.proto b/pb/protos/block-commands.proto index aebf99a96..e932794e1 100644 --- a/pb/protos/block-commands.proto +++ b/pb/protos/block-commands.proto @@ -2,7 +2,8 @@ syntax="proto3"; package anytype; option go_package = "pb"; -import "block.proto"; +import "block-content.proto"; +import "block-changes.proto"; message BlockHistoryMoveRequest { string id = 1; @@ -33,7 +34,7 @@ message BlockOpenRequest { message BlockOpenResponse { Error error = 1; - BlockHeader blockHeader = 2; + Block.Header blockHeader = 2; message Error { Code code = 1; @@ -49,7 +50,7 @@ message BlockOpenResponse { } message BlockCreateRequest { - BlockType type = 1; + Block.Header.Type type = 1; string contextBlockId = 2; } diff --git a/pb/protos/block-content.proto b/pb/protos/block-content.proto new file mode 100644 index 000000000..f1d885112 --- /dev/null +++ b/pb/protos/block-content.proto @@ -0,0 +1,173 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + +import "struct.proto"; +import "general-models.proto"; + +message Block { + Header header = 1; + repeated string children = 2; + + oneof content { + ContentDashboard dashboard = 11; + ContentPage page = 12; + ContentDataview dataview = 13; + + ContentText text = 14; + ContentMedia media = 15; + ContentLayout layout = 16; + ContentDiv div = 17; + } + + message Header { + string id = 1; + Type type = 2; + Struct fields = 3; + Permissions permissions = 4; + + message Permissions { + bool read = 1; + bool edit = 2; + bool remove = 3; + bool drag = 4; + bool dropOn = 5; + } + + enum Type { + DASHBOARD = 0; + PAGE = 1; + DATAVIEW = 2; + + TEXT = 3; + FILE = 4; + PICTURE = 5; + VIDEO = 6; + BOOKMARK = 7; + + LAYOUT = 8; + DIV = 9; + } + } + + message ContentLayout { + Style style = 1; + + enum Style { + ROW = 0; + COLUMN = 1; + } + } + + message ContentDiv {} + + message ContentDashboard { + enum Style { + MAIN_SCREEN = 0; + // ... + } + + Style style = 1; + repeated Header headers = 2; + } + + message ContentDataview { + // ... + } + + message ContentText { + enum Style { + p = 0; + h1 = 1; + h2 = 2; + h3 = 3; + h4 = 4; + quote = 5; + code = 6; + } + + enum MarkerType { + none = 0; + number = 1; + bullet = 2; + } + + message Marks { + repeated Mark marks = 1; + } + + message Mark { + + enum Type { + STRIKETHROUGH = 0; + KEYBOARD = 1; + ITALIC = 2; + BOLD = 3; + LINK = 4; + } + + Range range = 1; + Type type = 2; + string param = 3; // link, color, etc + } + + string text = 1; + Style style = 2; + Marks marksList = 3; + + bool toggleable = 4; + MarkerType markerType = 5; + + bool checkable = 6; + bool checked = 7; + } + + message ContentMedia { + bytes content = 1; + State state = 2; + + oneof preview { + VideoPreview video = 101; + ImagePreview image = 102; + FilePreview file = 103; + } + + message VideoPreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; + } + + message ImagePreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; + } + + message FilePreview { + string name = 1; + string icon = 2; + } + + enum State { + EMPTY = 0; + UPLOADING = 1; + PREVIEW = 2; + DOWNLOADING = 3; + DONE = 4; + } + } + + message ContentPage { + enum Style { + EMPTY = 0; + TASK = 1; + BOOKMARK = 2; + SET = 3; + // ... + } + + Style style = 1; + repeated Block blocks = 2; + } +} diff --git a/pb/protos/block-events.proto b/pb/protos/block-events.proto new file mode 100644 index 000000000..4bee46656 --- /dev/null +++ b/pb/protos/block-events.proto @@ -0,0 +1,19 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + +import "block-content.proto"; +import "block-changes.proto"; + + +message BlockShow { + Block block = 1; +} + +message BlockUpdate { + BlockChanges changes = 1; +} + +message BlockCreate { + Block block = 1; +} diff --git a/pb/protos/block.proto b/pb/protos/block.proto deleted file mode 100644 index fbd5a09fc..000000000 --- a/pb/protos/block.proto +++ /dev/null @@ -1,339 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "struct.proto"; - -// call -message BlockShow { - Block block = 1; -} - -message BlockUpdate { - BlockChanges changes = 1; -} - -message BlockCreate { - Block block = 1; -} - -message BlockStructureChange { - string id = 1; - BlockChildren children = 2; -} - -message BlockContentTextChange { - oneof change { - string text = 1; - BlockContentText.Style style = 2; - BlockContentText.Marks marks = 3; - - bool toggleable = 4; - BlockContentText.MarkerType markerType = 5; - - bool checkable = 6; - bool checked = 7; - } -} - -message BlockContentPageChange { - oneof change { - BlockContentPage.Style style = 1; - BlockStructureChange structureChange = 2; - Block block = 3; - } -} - -message BlockHeaderChange { - oneof change { - string id = 1; - BlockType type = 2; - string name = 3; - string icon = 4; - - BlockPermissions permissions = 5; - } -} - -message BlockContentDashboardChange { - oneof change { - BlockContentDashboard.Style style = 1; - BlockStructureChange structureChange = 2; - BlockHeader header = 3; - } -} - -message BlockContentMediaChange { - oneof change { - string link = 1; - BlockContentMedia.State state = 2; - } -} - -message BlockAtomicChange { - string id = 1; - oneof change { - BlockContentTextChange text = 2; - BlockHeaderChange blockHeader = 3; - BlockContentPageChange page = 4; - BlockContentDashboardChange dashboard = 5; - BlockContentMediaChange media = 6; - } -} - -message BlockChanges { - repeated BlockAtomicChange changes = 1; -} - -// models -// - -message Block { - BlockHeader header = 1; - - oneof content { - BlockContentDashboard dashboard = 11; - BlockContentPage page = 12; - BlockContentDataview dataview = 13; - - BlockContentText text = 14; - BlockContentMedia media = 15; - BlockContentLayout layout = 16; - } -} - -message BlockHeader { - string id = 1; - BlockType type = 2; - Struct fields = 3; - BlockPermissions permissions = 4; -} - -// row/column type specified in the header -message BlockContentLayout { - Style style = 1; - - enum Style { - ROW = 0; - COLUMN = 1; - } -} - -message BlockPermissions { - bool read = 1; - bool edit = 2; - bool remove = 3; - bool drag = 4; - bool dropOn = 5; -} - -enum BlockType { - DASHBOARD = 0; - PAGE = 1; - DATAVIEW = 2; - - TEXT = 101; - FILE = 102; - PICTURE = 103; - VIDEO = 104; - BOOKMARK = 105; - - LAYOUT = 201; -} - -message BlockHeadersList { - repeated BlockHeader headers = 1; -} - -message BlocksList { - repeated Block blocks = 1; -} - -message BlockContentPage { - enum Style { - EMPTY = 0; - TASK = 1; - BOOKMARK = 2; - SET = 3; - // ... - } - - Style style = 1; - BlockStructure structure = 2; - BlocksList blocks = 3; -} - -message BlockStructure { - map blockIdToBlockChildren = 1; -} - -message BlockChildren { - repeated string children = 2; -} - -message BlockContentDashboard { - enum Style { - MAIN_SCREEN = 0; - // ... - } - - Style style = 1; - BlockStructure structure = 2; - BlockHeadersList headers = 3; -} - -message BlockContentDataview { - // ... -} - -message BlockContentText { - enum Style { - p = 0; - h1 = 1; - h2 = 2; - h3 = 3; - h4 = 4; - quote = 5; - code = 6; - } - - enum MarkerType { - none = 0; - number = 1; - bullet = 2; - } - - message Marks { - repeated Mark marks = 1; - } - - message Mark { - - enum Type { - STRIKETHROUGH = 0; - KEYBOARD = 1; - ITALIC = 2; - BOLD = 3; - LINK = 4; - } - - Range range = 1; - Type type = 2; - string param = 3; // link, color, etc - } - - string text = 1; - Style style = 2; - Marks marksList = 3; - - bool toggleable = 4; - MarkerType markerType = 5; - - bool checkable = 6; - bool checked = 7; -} - -message VideoPreview { - bytes thumbnail = 1; - string name = 2; - int32 width = 3; -} - -message ImagePreview { - bytes thumbnail = 1; - string name = 2; - int32 width = 3; -} - -message FilePreview { - string name = 1; - string icon = 2; -} - -message BlockContentMedia { - bytes content = 1; - State state = 2; - - oneof preview { - VideoPreview video = 101; - ImagePreview image = 102; - FilePreview file = 103; - } - - enum State { - EMPTY = 0; - UPLOADING = 1; - PREVIEW = 2; - DOWNLOADING = 3; - DONE = 4; - } -} - -message Range { - int32 from = 1; - int32 to = 2; -} - -/* -message Scheme { - oneof scheme { - PageScheme pageScheme = 1; - DataviewScheme dataviewScheme = 2; - } -} - -message DataviewScheme { - // ... -} - -message PageScheme { - BlockHeader header = 1; - BlockChildrenList structure = 2; - BlockHeadersList headers = 3; -} - -message BlockContentPreview { - oneof preview { - bool noPreview = 1; - ImagePreview imagePreview = 2; - VideoPreview videoPreview = 3; - FilePreview filePreview = 4; - TextPreview textPreview = 5; - EmptyPagePreview emptyPagePreview = 6; - TaskPagePreview taskPagePreview = 7; - } -} - -message ImagePreview { - string name = 1; - int32 height = 2; - int32 width = 3; -} - -message VideoPreview { - string name = 1; - int32 height = 2; - int32 width = 3; -} - -message FilePreview { - string name = 1; - string icon = 2; -} - -message TextPreview { - int32 symblos = 1; - BlockContentText.Style style = 2; -} - -message EmptyPagePreview { - string name = 1; - string icon = 2; -} - -message TaskPagePreview { - string header = 1; - string assignee = 2; - // ... -} -*/ \ No newline at end of file diff --git a/pb/protos/edit.proto b/pb/protos/edit.proto index 60169253c..183386569 100644 --- a/pb/protos/edit.proto +++ b/pb/protos/edit.proto @@ -2,7 +2,7 @@ syntax="proto3"; package anytype; option go_package = "pb"; -import "block.proto"; +import "general-models.proto"; import "account.proto"; /** diff --git a/pb/protos/event.proto b/pb/protos/event.proto index 9befb807b..1d47376b7 100644 --- a/pb/protos/event.proto +++ b/pb/protos/event.proto @@ -3,7 +3,7 @@ package anytype; option go_package = "pb"; import "account.proto"; -import "block.proto"; +import "block-events.proto"; import "edit.proto"; message Event { diff --git a/pb/protos/general-models.proto b/pb/protos/general-models.proto new file mode 100644 index 000000000..575d7a02c --- /dev/null +++ b/pb/protos/general-models.proto @@ -0,0 +1,9 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + + +message Range { + int32 from = 1; + int32 to = 2; +} From 037d741075863275593db1daed32898d1bebf7c1 Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 1 Nov 2019 18:58:49 +0100 Subject: [PATCH 15/24] #15.3: chenages && models refactoring --- core/block.go | 4 +- pb/block-commands.pb.go | 86 +- pb/block-content.pb.go | 4939 ------------------- pb/block-events.pb.go | 34 +- pb/{block-changes.pb.go => changes.pb.go} | 2889 ++++++----- pb/edit.pb.go | 44 +- pb/general-models.pb.go | 335 -- pb/models.pb.go | 5254 +++++++++++++++++++++ pb/module.pb.go | 1278 ----- pb/protos/block-changes.proto | 70 - pb/protos/block-commands.proto | 8 +- pb/protos/block-content.proto | 173 - pb/protos/block-events.proto | 8 +- pb/protos/changes.proto | 79 + pb/protos/edit.proto | 5 +- pb/protos/general-models.proto | 9 - pb/protos/models.proto | 180 + 17 files changed, 7236 insertions(+), 8159 deletions(-) delete mode 100644 pb/block-content.pb.go rename pb/{block-changes.pb.go => changes.pb.go} (50%) delete mode 100644 pb/general-models.pb.go create mode 100644 pb/models.pb.go delete mode 100644 pb/module.pb.go delete mode 100644 pb/protos/block-changes.proto delete mode 100644 pb/protos/block-content.proto create mode 100644 pb/protos/changes.proto delete mode 100644 pb/protos/general-models.proto create mode 100644 pb/protos/models.proto diff --git a/core/block.go b/core/block.go index 48d732bfe..5f7d9a142 100644 --- a/core/block.go +++ b/core/block.go @@ -14,7 +14,7 @@ func (mw *Middleware) BlockCreate(req *pb.BlockCreateRequest) *pb.BlockCreateRes return m } - block := &pb.Block{} // TODO + block := &pb.Model_Block{} // TODO m := &pb.Event{Message: &pb.Event_BlockCreate{&pb.BlockCreate{Block: block}}} @@ -35,7 +35,7 @@ func (mw *Middleware) BlockOpen(req *pb.BlockOpenRequest) *pb.BlockOpenResponse return m } - block := &pb.Block{} // TODO + block := &pb.Model_Block{} // TODO m := &pb.Event{Message: &pb.Event_BlockShow{&pb.BlockShow{Block: block}}} diff --git a/pb/block-commands.pb.go b/pb/block-commands.pb.go index 4d9e2d208..f3a5d96d8 100644 --- a/pb/block-commands.pb.go +++ b/pb/block-commands.pb.go @@ -339,7 +339,7 @@ func (m *BlockOpenRequest) GetId() string { type BlockOpenResponse struct { Error *BlockOpenResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockHeader *Block_Header `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` + BlockHeader *Model_Block_Header `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` } func (m *BlockOpenResponse) Reset() { *m = BlockOpenResponse{} } @@ -382,7 +382,7 @@ func (m *BlockOpenResponse) GetError() *BlockOpenResponse_Error { return nil } -func (m *BlockOpenResponse) GetBlockHeader() *Block_Header { +func (m *BlockOpenResponse) GetBlockHeader() *Model_Block_Header { if m != nil { return m.BlockHeader } @@ -442,8 +442,8 @@ func (m *BlockOpenResponse_Error) GetDescription() string { } type BlockCreateRequest struct { - Type Block_Header_Type `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.Block_Header_Type" json:"type,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` + Type Model_Block_Header_Type `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` } func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } @@ -479,11 +479,11 @@ func (m *BlockCreateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_BlockCreateRequest proto.InternalMessageInfo -func (m *BlockCreateRequest) GetType() Block_Header_Type { +func (m *BlockCreateRequest) GetType() Model_Block_Header_Type { if m != nil { return m.Type } - return Block_Header_DASHBOARD + return Model_Block_Header_DASHBOARD } func (m *BlockCreateRequest) GetContextBlockId() string { @@ -751,41 +751,41 @@ func init() { func init() { proto.RegisterFile("block-commands.proto", fileDescriptor_45d3ea291059030c) } var fileDescriptor_45d3ea291059030c = []byte{ - // 530 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x4d, 0x6b, 0x13, 0x41, - 0x18, 0xc7, 0xb3, 0xdb, 0xd4, 0xb6, 0x4f, 0x6c, 0xd8, 0x4e, 0x15, 0x43, 0x90, 0x25, 0x0c, 0x68, - 0x7b, 0xd0, 0x15, 0x22, 0xf8, 0x82, 0x08, 0x36, 0x69, 0xa4, 0xc5, 0x76, 0x57, 0x86, 0x44, 0xc1, - 0x4b, 0xd8, 0x64, 0x06, 0x5d, 0x6c, 0x76, 0xd6, 0xd9, 0xb1, 0x9a, 0x0f, 0x21, 0x78, 0x14, 0x2f, - 0x7e, 0x06, 0xbf, 0x85, 0xc7, 0x1e, 0x3d, 0x4a, 0x72, 0xf5, 0x43, 0xc8, 0x4e, 0x26, 0x71, 0xa7, - 0xb6, 0x34, 0x15, 0x7a, 0x7d, 0x9e, 0xff, 0xf3, 0xf2, 0xff, 0xcd, 0xc3, 0xc0, 0x95, 0xde, 0x01, - 0xef, 0xbf, 0xbd, 0xdd, 0xe7, 0x83, 0x41, 0x18, 0xd3, 0xd4, 0x4b, 0x04, 0x97, 0x1c, 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0x4c, 0xf1, 0x7f, 0x51, 0x3b, - 0xa9, 0xc5, 0x85, 0x53, 0x6b, 0x5c, 0xff, 0x31, 0x72, 0xad, 0xa3, 0x91, 0x6b, 0xfd, 0x1a, 0xb9, - 0xd6, 0xe7, 0xb1, 0x5b, 0x38, 0x1a, 0xbb, 0x85, 0x9f, 0x63, 0xb7, 0xf0, 0xca, 0x4e, 0x7a, 0xbd, - 0x4b, 0xea, 0x0b, 0xbe, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0x87, 0x20, 0x42, 0x60, 0xcd, 0x05, - 0x00, 0x00, + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x4f, 0x6b, 0x13, 0x41, + 0x18, 0xc6, 0xb3, 0xdb, 0xd4, 0xb6, 0x6f, 0x9a, 0xb0, 0x1d, 0x15, 0x43, 0x94, 0x25, 0x0c, 0x68, + 0x7b, 0xd0, 0x15, 0xa2, 0x88, 0x22, 0x05, 0x9b, 0x34, 0xd2, 0x62, 0xb3, 0x2b, 0x43, 0xa2, 0xe0, + 0x25, 0x6c, 0x76, 0x06, 0x5d, 0x6c, 0x76, 0xd6, 0xd9, 0xb5, 0x9a, 0x0f, 0x21, 0x78, 0x14, 0xef, + 0x7e, 0x00, 0xbf, 0x85, 0xc7, 0x1e, 0x3d, 0x4a, 0x72, 0xf5, 0x43, 0xc8, 0x4e, 0xa6, 0x71, 0xa7, + 0x5a, 0x9b, 0x0a, 0x3d, 0xce, 0x3b, 0xcf, 0xfb, 0xe7, 0xf9, 0xcd, 0xcb, 0xc0, 0xa5, 0xc1, 0x3e, + 0x0f, 0x5e, 0xdf, 0x0a, 0xf8, 0x70, 0xe8, 0x47, 0x34, 0x71, 0x62, 0xc1, 0x53, 0x8e, 0x96, 0xfc, + 0x68, 0x94, 0x8e, 0x62, 0x56, 0x5b, 0x1d, 0x72, 0xca, 0xf6, 0x55, 0xb8, 0x56, 0x0e, 0x5e, 0xf9, + 0xd1, 0x4b, 0xa6, 0x8e, 0x38, 0x81, 0x2b, 0xcd, 0x2c, 0x7b, 0x27, 0x4c, 0x52, 0x2e, 0x46, 0x1d, + 0x7e, 0xc0, 0x08, 0x7b, 0xf3, 0x96, 0x25, 0x29, 0xaa, 0x80, 0x19, 0xd2, 0xaa, 0x51, 0x37, 0x36, + 0x56, 0x88, 0x19, 0x52, 0x74, 0x03, 0x2a, 0x01, 0x8f, 0x52, 0xf6, 0x3e, 0x95, 0x19, 0xbb, 0xb4, + 0x6a, 0xca, 0xbb, 0x63, 0x51, 0x54, 0x87, 0xd2, 0x90, 0x1f, 0xb0, 0xc7, 0x5c, 0xbc, 0xf3, 0x05, + 0xad, 0x2e, 0xd4, 0x8d, 0x8d, 0x65, 0x92, 0x0f, 0xe1, 0x0f, 0x26, 0x54, 0xff, 0xec, 0x9a, 0xc4, + 0x3c, 0x4a, 0x18, 0xda, 0x84, 0x45, 0x26, 0x04, 0x17, 0xb2, 0x73, 0xa9, 0xb1, 0xee, 0x28, 0x1f, + 0xce, 0x49, 0x19, 0x4e, 0x3b, 0x93, 0x93, 0x69, 0x56, 0xed, 0xab, 0x01, 0x8b, 0x32, 0x80, 0x1e, + 0x41, 0x31, 0xe0, 0x94, 0xc9, 0x3a, 0x95, 0xc6, 0xcd, 0x39, 0xeb, 0x38, 0x2d, 0x4e, 0x19, 0x91, + 0x99, 0x99, 0x13, 0xca, 0x92, 0x40, 0x84, 0x71, 0x1a, 0xf2, 0x48, 0xd9, 0xcd, 0x87, 0xf0, 0x36, + 0x14, 0x33, 0x3d, 0x5a, 0x86, 0xa2, 0xdb, 0xdb, 0xdb, 0xb3, 0x0a, 0x68, 0x0d, 0xca, 0x3d, 0xf7, + 0x89, 0xeb, 0x3d, 0x77, 0xfb, 0x6d, 0x42, 0x3c, 0x62, 0x19, 0xa8, 0x0c, 0x2b, 0xcd, 0xad, 0xed, + 0xfe, 0xae, 0xfb,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, 0x9c, 0x3b, 0xb5, 0xe6, 0xb5, 0x6f, 0x63, 0xdb, + 0x38, 0x1c, 0xdb, 0xc6, 0x8f, 0xb1, 0x6d, 0x7c, 0x9c, 0xd8, 0x85, 0xc3, 0x89, 0x5d, 0xf8, 0x3e, + 0xb1, 0x0b, 0x2f, 0xcc, 0x78, 0x30, 0xb8, 0x20, 0xbf, 0xe3, 0x3b, 0xbf, 0x02, 0x00, 0x00, 0xff, + 0xff, 0xd7, 0x68, 0x12, 0xea, 0xcc, 0x05, 0x00, 0x00, } func (m *BlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { @@ -1936,7 +1936,7 @@ func (m *BlockOpenResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockHeader == nil { - m.BlockHeader = &Block_Header{} + m.BlockHeader = &Model_Block_Header{} } if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2113,7 +2113,7 @@ func (m *BlockCreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Block_Header_Type(b&0x7F) << shift + m.Type |= Model_Block_Header_Type(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/block-content.pb.go b/pb/block-content.pb.go deleted file mode 100644 index e05b62b6e..000000000 --- a/pb/block-content.pb.go +++ /dev/null @@ -1,4939 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: block-content.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Block_Header_Type int32 - -const ( - Block_Header_DASHBOARD Block_Header_Type = 0 - Block_Header_PAGE Block_Header_Type = 1 - Block_Header_DATAVIEW Block_Header_Type = 2 - Block_Header_TEXT Block_Header_Type = 3 - Block_Header_FILE Block_Header_Type = 4 - Block_Header_PICTURE Block_Header_Type = 5 - Block_Header_VIDEO Block_Header_Type = 6 - Block_Header_BOOKMARK Block_Header_Type = 7 - Block_Header_LAYOUT Block_Header_Type = 8 - Block_Header_DIV Block_Header_Type = 9 -) - -var Block_Header_Type_name = map[int32]string{ - 0: "DASHBOARD", - 1: "PAGE", - 2: "DATAVIEW", - 3: "TEXT", - 4: "FILE", - 5: "PICTURE", - 6: "VIDEO", - 7: "BOOKMARK", - 8: "LAYOUT", - 9: "DIV", -} - -var Block_Header_Type_value = map[string]int32{ - "DASHBOARD": 0, - "PAGE": 1, - "DATAVIEW": 2, - "TEXT": 3, - "FILE": 4, - "PICTURE": 5, - "VIDEO": 6, - "BOOKMARK": 7, - "LAYOUT": 8, - "DIV": 9, -} - -func (x Block_Header_Type) String() string { - return proto.EnumName(Block_Header_Type_name, int32(x)) -} - -func (Block_Header_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 0, 0} -} - -type Block_ContentLayout_Style int32 - -const ( - Block_ContentLayout_ROW Block_ContentLayout_Style = 0 - Block_ContentLayout_COLUMN Block_ContentLayout_Style = 1 -) - -var Block_ContentLayout_Style_name = map[int32]string{ - 0: "ROW", - 1: "COLUMN", -} - -var Block_ContentLayout_Style_value = map[string]int32{ - "ROW": 0, - "COLUMN": 1, -} - -func (x Block_ContentLayout_Style) String() string { - return proto.EnumName(Block_ContentLayout_Style_name, int32(x)) -} - -func (Block_ContentLayout_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 1, 0} -} - -type Block_ContentDashboard_Style int32 - -const ( - Block_ContentDashboard_MAIN_SCREEN Block_ContentDashboard_Style = 0 -) - -var Block_ContentDashboard_Style_name = map[int32]string{ - 0: "MAIN_SCREEN", -} - -var Block_ContentDashboard_Style_value = map[string]int32{ - "MAIN_SCREEN": 0, -} - -func (x Block_ContentDashboard_Style) String() string { - return proto.EnumName(Block_ContentDashboard_Style_name, int32(x)) -} - -func (Block_ContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 3, 0} -} - -type Block_ContentText_Style int32 - -const ( - Block_ContentText_p Block_ContentText_Style = 0 - Block_ContentText_h1 Block_ContentText_Style = 1 - Block_ContentText_h2 Block_ContentText_Style = 2 - Block_ContentText_h3 Block_ContentText_Style = 3 - Block_ContentText_h4 Block_ContentText_Style = 4 - Block_ContentText_quote Block_ContentText_Style = 5 - Block_ContentText_code Block_ContentText_Style = 6 -) - -var Block_ContentText_Style_name = map[int32]string{ - 0: "p", - 1: "h1", - 2: "h2", - 3: "h3", - 4: "h4", - 5: "quote", - 6: "code", -} - -var Block_ContentText_Style_value = map[string]int32{ - "p": 0, - "h1": 1, - "h2": 2, - "h3": 3, - "h4": 4, - "quote": 5, - "code": 6, -} - -func (x Block_ContentText_Style) String() string { - return proto.EnumName(Block_ContentText_Style_name, int32(x)) -} - -func (Block_ContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 0} -} - -type Block_ContentText_MarkerType int32 - -const ( - Block_ContentText_none Block_ContentText_MarkerType = 0 - Block_ContentText_number Block_ContentText_MarkerType = 1 - Block_ContentText_bullet Block_ContentText_MarkerType = 2 -) - -var Block_ContentText_MarkerType_name = map[int32]string{ - 0: "none", - 1: "number", - 2: "bullet", -} - -var Block_ContentText_MarkerType_value = map[string]int32{ - "none": 0, - "number": 1, - "bullet": 2, -} - -func (x Block_ContentText_MarkerType) String() string { - return proto.EnumName(Block_ContentText_MarkerType_name, int32(x)) -} - -func (Block_ContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 1} -} - -type Block_ContentText_Mark_Type int32 - -const ( - Block_ContentText_Mark_STRIKETHROUGH Block_ContentText_Mark_Type = 0 - Block_ContentText_Mark_KEYBOARD Block_ContentText_Mark_Type = 1 - Block_ContentText_Mark_ITALIC Block_ContentText_Mark_Type = 2 - Block_ContentText_Mark_BOLD Block_ContentText_Mark_Type = 3 - Block_ContentText_Mark_LINK Block_ContentText_Mark_Type = 4 -) - -var Block_ContentText_Mark_Type_name = map[int32]string{ - 0: "STRIKETHROUGH", - 1: "KEYBOARD", - 2: "ITALIC", - 3: "BOLD", - 4: "LINK", -} - -var Block_ContentText_Mark_Type_value = map[string]int32{ - "STRIKETHROUGH": 0, - "KEYBOARD": 1, - "ITALIC": 2, - "BOLD": 3, - "LINK": 4, -} - -func (x Block_ContentText_Mark_Type) String() string { - return proto.EnumName(Block_ContentText_Mark_Type_name, int32(x)) -} - -func (Block_ContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 1, 0} -} - -type Block_ContentMedia_State int32 - -const ( - Block_ContentMedia_EMPTY Block_ContentMedia_State = 0 - Block_ContentMedia_UPLOADING Block_ContentMedia_State = 1 - Block_ContentMedia_PREVIEW Block_ContentMedia_State = 2 - Block_ContentMedia_DOWNLOADING Block_ContentMedia_State = 3 - Block_ContentMedia_DONE Block_ContentMedia_State = 4 -) - -var Block_ContentMedia_State_name = map[int32]string{ - 0: "EMPTY", - 1: "UPLOADING", - 2: "PREVIEW", - 3: "DOWNLOADING", - 4: "DONE", -} - -var Block_ContentMedia_State_value = map[string]int32{ - "EMPTY": 0, - "UPLOADING": 1, - "PREVIEW": 2, - "DOWNLOADING": 3, - "DONE": 4, -} - -func (x Block_ContentMedia_State) String() string { - return proto.EnumName(Block_ContentMedia_State_name, int32(x)) -} - -func (Block_ContentMedia_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 0} -} - -type Block_ContentPage_Style int32 - -const ( - Block_ContentPage_EMPTY Block_ContentPage_Style = 0 - Block_ContentPage_TASK Block_ContentPage_Style = 1 - Block_ContentPage_BOOKMARK Block_ContentPage_Style = 2 - Block_ContentPage_SET Block_ContentPage_Style = 3 -) - -var Block_ContentPage_Style_name = map[int32]string{ - 0: "EMPTY", - 1: "TASK", - 2: "BOOKMARK", - 3: "SET", -} - -var Block_ContentPage_Style_value = map[string]int32{ - "EMPTY": 0, - "TASK": 1, - "BOOKMARK": 2, - "SET": 3, -} - -func (x Block_ContentPage_Style) String() string { - return proto.EnumName(Block_ContentPage_Style_name, int32(x)) -} - -func (Block_ContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 7, 0} -} - -type Block struct { - Header *Block_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` - // Types that are valid to be assigned to Content: - // *Block_Dashboard - // *Block_Page - // *Block_Dataview - // *Block_Text - // *Block_Media - // *Block_Layout - // *Block_Div - Content isBlock_Content `protobuf_oneof:"content"` -} - -func (m *Block) Reset() { *m = Block{} } -func (m *Block) String() string { return proto.CompactTextString(m) } -func (*Block) ProtoMessage() {} -func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0} -} -func (m *Block) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block.Merge(m, src) -} -func (m *Block) XXX_Size() int { - return m.Size() -} -func (m *Block) XXX_DiscardUnknown() { - xxx_messageInfo_Block.DiscardUnknown(m) -} - -var xxx_messageInfo_Block proto.InternalMessageInfo - -type isBlock_Content interface { - isBlock_Content() - MarshalTo([]byte) (int, error) - Size() int -} - -type Block_Dashboard struct { - Dashboard *Block_ContentDashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` -} -type Block_Page struct { - Page *Block_ContentPage `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` -} -type Block_Dataview struct { - Dataview *Block_ContentDataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` -} -type Block_Text struct { - Text *Block_ContentText `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` -} -type Block_Media struct { - Media *Block_ContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` -} -type Block_Layout struct { - Layout *Block_ContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` -} -type Block_Div struct { - Div *Block_ContentDiv `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` -} - -func (*Block_Dashboard) isBlock_Content() {} -func (*Block_Page) isBlock_Content() {} -func (*Block_Dataview) isBlock_Content() {} -func (*Block_Text) isBlock_Content() {} -func (*Block_Media) isBlock_Content() {} -func (*Block_Layout) isBlock_Content() {} -func (*Block_Div) isBlock_Content() {} - -func (m *Block) GetContent() isBlock_Content { - if m != nil { - return m.Content - } - return nil -} - -func (m *Block) GetHeader() *Block_Header { - if m != nil { - return m.Header - } - return nil -} - -func (m *Block) GetChildren() []string { - if m != nil { - return m.Children - } - return nil -} - -func (m *Block) GetDashboard() *Block_ContentDashboard { - if x, ok := m.GetContent().(*Block_Dashboard); ok { - return x.Dashboard - } - return nil -} - -func (m *Block) GetPage() *Block_ContentPage { - if x, ok := m.GetContent().(*Block_Page); ok { - return x.Page - } - return nil -} - -func (m *Block) GetDataview() *Block_ContentDataview { - if x, ok := m.GetContent().(*Block_Dataview); ok { - return x.Dataview - } - return nil -} - -func (m *Block) GetText() *Block_ContentText { - if x, ok := m.GetContent().(*Block_Text); ok { - return x.Text - } - return nil -} - -func (m *Block) GetMedia() *Block_ContentMedia { - if x, ok := m.GetContent().(*Block_Media); ok { - return x.Media - } - return nil -} - -func (m *Block) GetLayout() *Block_ContentLayout { - if x, ok := m.GetContent().(*Block_Layout); ok { - return x.Layout - } - return nil -} - -func (m *Block) GetDiv() *Block_ContentDiv { - if x, ok := m.GetContent().(*Block_Div); ok { - return x.Div - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Block) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Block_Dashboard)(nil), - (*Block_Page)(nil), - (*Block_Dataview)(nil), - (*Block_Text)(nil), - (*Block_Media)(nil), - (*Block_Layout)(nil), - (*Block_Div)(nil), - } -} - -type Block_Header struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Block_Header_Type" json:"type,omitempty"` - Fields *Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` - Permissions *Block_Header_Permissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (m *Block_Header) Reset() { *m = Block_Header{} } -func (m *Block_Header) String() string { return proto.CompactTextString(m) } -func (*Block_Header) ProtoMessage() {} -func (*Block_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 0} -} -func (m *Block_Header) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_Header.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_Header.Merge(m, src) -} -func (m *Block_Header) XXX_Size() int { - return m.Size() -} -func (m *Block_Header) XXX_DiscardUnknown() { - xxx_messageInfo_Block_Header.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_Header proto.InternalMessageInfo - -func (m *Block_Header) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Block_Header) GetType() Block_Header_Type { - if m != nil { - return m.Type - } - return Block_Header_DASHBOARD -} - -func (m *Block_Header) GetFields() *Struct { - if m != nil { - return m.Fields - } - return nil -} - -func (m *Block_Header) GetPermissions() *Block_Header_Permissions { - if m != nil { - return m.Permissions - } - return nil -} - -type Block_Header_Permissions struct { - Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` - Edit bool `protobuf:"varint,2,opt,name=edit,proto3" json:"edit,omitempty"` - Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"` - Drag bool `protobuf:"varint,4,opt,name=drag,proto3" json:"drag,omitempty"` - DropOn bool `protobuf:"varint,5,opt,name=dropOn,proto3" json:"dropOn,omitempty"` -} - -func (m *Block_Header_Permissions) Reset() { *m = Block_Header_Permissions{} } -func (m *Block_Header_Permissions) String() string { return proto.CompactTextString(m) } -func (*Block_Header_Permissions) ProtoMessage() {} -func (*Block_Header_Permissions) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 0, 0} -} -func (m *Block_Header_Permissions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_Header_Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_Header_Permissions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_Header_Permissions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_Header_Permissions.Merge(m, src) -} -func (m *Block_Header_Permissions) XXX_Size() int { - return m.Size() -} -func (m *Block_Header_Permissions) XXX_DiscardUnknown() { - xxx_messageInfo_Block_Header_Permissions.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_Header_Permissions proto.InternalMessageInfo - -func (m *Block_Header_Permissions) GetRead() bool { - if m != nil { - return m.Read - } - return false -} - -func (m *Block_Header_Permissions) GetEdit() bool { - if m != nil { - return m.Edit - } - return false -} - -func (m *Block_Header_Permissions) GetRemove() bool { - if m != nil { - return m.Remove - } - return false -} - -func (m *Block_Header_Permissions) GetDrag() bool { - if m != nil { - return m.Drag - } - return false -} - -func (m *Block_Header_Permissions) GetDropOn() bool { - if m != nil { - return m.DropOn - } - return false -} - -type Block_ContentLayout struct { - Style Block_ContentLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentLayout_Style" json:"style,omitempty"` -} - -func (m *Block_ContentLayout) Reset() { *m = Block_ContentLayout{} } -func (m *Block_ContentLayout) String() string { return proto.CompactTextString(m) } -func (*Block_ContentLayout) ProtoMessage() {} -func (*Block_ContentLayout) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 1} -} -func (m *Block_ContentLayout) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentLayout.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentLayout) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentLayout.Merge(m, src) -} -func (m *Block_ContentLayout) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentLayout) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentLayout.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentLayout proto.InternalMessageInfo - -func (m *Block_ContentLayout) GetStyle() Block_ContentLayout_Style { - if m != nil { - return m.Style - } - return Block_ContentLayout_ROW -} - -type Block_ContentDiv struct { -} - -func (m *Block_ContentDiv) Reset() { *m = Block_ContentDiv{} } -func (m *Block_ContentDiv) String() string { return proto.CompactTextString(m) } -func (*Block_ContentDiv) ProtoMessage() {} -func (*Block_ContentDiv) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 2} -} -func (m *Block_ContentDiv) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentDiv.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentDiv) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentDiv.Merge(m, src) -} -func (m *Block_ContentDiv) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentDiv) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentDiv.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentDiv proto.InternalMessageInfo - -type Block_ContentDashboard struct { - Style Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentDashboard_Style" json:"style,omitempty"` - Headers []*Block_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` -} - -func (m *Block_ContentDashboard) Reset() { *m = Block_ContentDashboard{} } -func (m *Block_ContentDashboard) String() string { return proto.CompactTextString(m) } -func (*Block_ContentDashboard) ProtoMessage() {} -func (*Block_ContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 3} -} -func (m *Block_ContentDashboard) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentDashboard.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentDashboard) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentDashboard.Merge(m, src) -} -func (m *Block_ContentDashboard) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentDashboard) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentDashboard.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentDashboard proto.InternalMessageInfo - -func (m *Block_ContentDashboard) GetStyle() Block_ContentDashboard_Style { - if m != nil { - return m.Style - } - return Block_ContentDashboard_MAIN_SCREEN -} - -func (m *Block_ContentDashboard) GetHeaders() []*Block_Header { - if m != nil { - return m.Headers - } - return nil -} - -type Block_ContentDataview struct { -} - -func (m *Block_ContentDataview) Reset() { *m = Block_ContentDataview{} } -func (m *Block_ContentDataview) String() string { return proto.CompactTextString(m) } -func (*Block_ContentDataview) ProtoMessage() {} -func (*Block_ContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 4} -} -func (m *Block_ContentDataview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentDataview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentDataview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentDataview.Merge(m, src) -} -func (m *Block_ContentDataview) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentDataview) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentDataview.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentDataview proto.InternalMessageInfo - -type Block_ContentText struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Style Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Block_ContentText_Style" json:"style,omitempty"` - MarksList *Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` - Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` - MarkerType Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Block_ContentText_MarkerType" json:"markerType,omitempty"` - Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` - Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` -} - -func (m *Block_ContentText) Reset() { *m = Block_ContentText{} } -func (m *Block_ContentText) String() string { return proto.CompactTextString(m) } -func (*Block_ContentText) ProtoMessage() {} -func (*Block_ContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5} -} -func (m *Block_ContentText) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentText.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentText) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentText.Merge(m, src) -} -func (m *Block_ContentText) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentText) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentText.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentText proto.InternalMessageInfo - -func (m *Block_ContentText) GetText() string { - if m != nil { - return m.Text - } - return "" -} - -func (m *Block_ContentText) GetStyle() Block_ContentText_Style { - if m != nil { - return m.Style - } - return Block_ContentText_p -} - -func (m *Block_ContentText) GetMarksList() *Block_ContentText_Marks { - if m != nil { - return m.MarksList - } - return nil -} - -func (m *Block_ContentText) GetToggleable() bool { - if m != nil { - return m.Toggleable - } - return false -} - -func (m *Block_ContentText) GetMarkerType() Block_ContentText_MarkerType { - if m != nil { - return m.MarkerType - } - return Block_ContentText_none -} - -func (m *Block_ContentText) GetCheckable() bool { - if m != nil { - return m.Checkable - } - return false -} - -func (m *Block_ContentText) GetChecked() bool { - if m != nil { - return m.Checked - } - return false -} - -type Block_ContentText_Marks struct { - Marks []*Block_ContentText_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` -} - -func (m *Block_ContentText_Marks) Reset() { *m = Block_ContentText_Marks{} } -func (m *Block_ContentText_Marks) String() string { return proto.CompactTextString(m) } -func (*Block_ContentText_Marks) ProtoMessage() {} -func (*Block_ContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 0} -} -func (m *Block_ContentText_Marks) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentText_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentText_Marks.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentText_Marks) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentText_Marks.Merge(m, src) -} -func (m *Block_ContentText_Marks) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentText_Marks) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentText_Marks.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentText_Marks proto.InternalMessageInfo - -func (m *Block_ContentText_Marks) GetMarks() []*Block_ContentText_Mark { - if m != nil { - return m.Marks - } - return nil -} - -type Block_ContentText_Mark struct { - Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` - Type Block_ContentText_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Block_ContentText_Mark_Type" json:"type,omitempty"` - Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` -} - -func (m *Block_ContentText_Mark) Reset() { *m = Block_ContentText_Mark{} } -func (m *Block_ContentText_Mark) String() string { return proto.CompactTextString(m) } -func (*Block_ContentText_Mark) ProtoMessage() {} -func (*Block_ContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 5, 1} -} -func (m *Block_ContentText_Mark) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentText_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentText_Mark.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentText_Mark) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentText_Mark.Merge(m, src) -} -func (m *Block_ContentText_Mark) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentText_Mark) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentText_Mark.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentText_Mark proto.InternalMessageInfo - -func (m *Block_ContentText_Mark) GetRange() *Range { - if m != nil { - return m.Range - } - return nil -} - -func (m *Block_ContentText_Mark) GetType() Block_ContentText_Mark_Type { - if m != nil { - return m.Type - } - return Block_ContentText_Mark_STRIKETHROUGH -} - -func (m *Block_ContentText_Mark) GetParam() string { - if m != nil { - return m.Param - } - return "" -} - -type Block_ContentMedia struct { - Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - State Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Block_ContentMedia_State" json:"state,omitempty"` - // Types that are valid to be assigned to Preview: - // *Block_ContentMedia_Video - // *Block_ContentMedia_Image - // *Block_ContentMedia_File - Preview isBlock_ContentMedia_Preview `protobuf_oneof:"preview"` -} - -func (m *Block_ContentMedia) Reset() { *m = Block_ContentMedia{} } -func (m *Block_ContentMedia) String() string { return proto.CompactTextString(m) } -func (*Block_ContentMedia) ProtoMessage() {} -func (*Block_ContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6} -} -func (m *Block_ContentMedia) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentMedia.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentMedia.Merge(m, src) -} -func (m *Block_ContentMedia) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentMedia) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentMedia.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentMedia proto.InternalMessageInfo - -type isBlock_ContentMedia_Preview interface { - isBlock_ContentMedia_Preview() - MarshalTo([]byte) (int, error) - Size() int -} - -type Block_ContentMedia_Video struct { - Video *Block_ContentMedia_VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` -} -type Block_ContentMedia_Image struct { - Image *Block_ContentMedia_ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` -} -type Block_ContentMedia_File struct { - File *Block_ContentMedia_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` -} - -func (*Block_ContentMedia_Video) isBlock_ContentMedia_Preview() {} -func (*Block_ContentMedia_Image) isBlock_ContentMedia_Preview() {} -func (*Block_ContentMedia_File) isBlock_ContentMedia_Preview() {} - -func (m *Block_ContentMedia) GetPreview() isBlock_ContentMedia_Preview { - if m != nil { - return m.Preview - } - return nil -} - -func (m *Block_ContentMedia) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -func (m *Block_ContentMedia) GetState() Block_ContentMedia_State { - if m != nil { - return m.State - } - return Block_ContentMedia_EMPTY -} - -func (m *Block_ContentMedia) GetVideo() *Block_ContentMedia_VideoPreview { - if x, ok := m.GetPreview().(*Block_ContentMedia_Video); ok { - return x.Video - } - return nil -} - -func (m *Block_ContentMedia) GetImage() *Block_ContentMedia_ImagePreview { - if x, ok := m.GetPreview().(*Block_ContentMedia_Image); ok { - return x.Image - } - return nil -} - -func (m *Block_ContentMedia) GetFile() *Block_ContentMedia_FilePreview { - if x, ok := m.GetPreview().(*Block_ContentMedia_File); ok { - return x.File - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Block_ContentMedia) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Block_ContentMedia_Video)(nil), - (*Block_ContentMedia_Image)(nil), - (*Block_ContentMedia_File)(nil), - } -} - -type Block_ContentMedia_VideoPreview struct { - Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` -} - -func (m *Block_ContentMedia_VideoPreview) Reset() { *m = Block_ContentMedia_VideoPreview{} } -func (m *Block_ContentMedia_VideoPreview) String() string { return proto.CompactTextString(m) } -func (*Block_ContentMedia_VideoPreview) ProtoMessage() {} -func (*Block_ContentMedia_VideoPreview) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 0} -} -func (m *Block_ContentMedia_VideoPreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentMedia_VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentMedia_VideoPreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentMedia_VideoPreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentMedia_VideoPreview.Merge(m, src) -} -func (m *Block_ContentMedia_VideoPreview) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentMedia_VideoPreview) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentMedia_VideoPreview.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentMedia_VideoPreview proto.InternalMessageInfo - -func (m *Block_ContentMedia_VideoPreview) GetThumbnail() []byte { - if m != nil { - return m.Thumbnail - } - return nil -} - -func (m *Block_ContentMedia_VideoPreview) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Block_ContentMedia_VideoPreview) GetWidth() int32 { - if m != nil { - return m.Width - } - return 0 -} - -type Block_ContentMedia_ImagePreview struct { - Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` -} - -func (m *Block_ContentMedia_ImagePreview) Reset() { *m = Block_ContentMedia_ImagePreview{} } -func (m *Block_ContentMedia_ImagePreview) String() string { return proto.CompactTextString(m) } -func (*Block_ContentMedia_ImagePreview) ProtoMessage() {} -func (*Block_ContentMedia_ImagePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 1} -} -func (m *Block_ContentMedia_ImagePreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentMedia_ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentMedia_ImagePreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentMedia_ImagePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentMedia_ImagePreview.Merge(m, src) -} -func (m *Block_ContentMedia_ImagePreview) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentMedia_ImagePreview) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentMedia_ImagePreview.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentMedia_ImagePreview proto.InternalMessageInfo - -func (m *Block_ContentMedia_ImagePreview) GetThumbnail() []byte { - if m != nil { - return m.Thumbnail - } - return nil -} - -func (m *Block_ContentMedia_ImagePreview) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Block_ContentMedia_ImagePreview) GetWidth() int32 { - if m != nil { - return m.Width - } - return 0 -} - -type Block_ContentMedia_FilePreview struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` -} - -func (m *Block_ContentMedia_FilePreview) Reset() { *m = Block_ContentMedia_FilePreview{} } -func (m *Block_ContentMedia_FilePreview) String() string { return proto.CompactTextString(m) } -func (*Block_ContentMedia_FilePreview) ProtoMessage() {} -func (*Block_ContentMedia_FilePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 6, 2} -} -func (m *Block_ContentMedia_FilePreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentMedia_FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentMedia_FilePreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentMedia_FilePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentMedia_FilePreview.Merge(m, src) -} -func (m *Block_ContentMedia_FilePreview) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentMedia_FilePreview) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentMedia_FilePreview.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentMedia_FilePreview proto.InternalMessageInfo - -func (m *Block_ContentMedia_FilePreview) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Block_ContentMedia_FilePreview) GetIcon() string { - if m != nil { - return m.Icon - } - return "" -} - -type Block_ContentPage struct { - Style Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentPage_Style" json:"style,omitempty"` - Blocks []*Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` -} - -func (m *Block_ContentPage) Reset() { *m = Block_ContentPage{} } -func (m *Block_ContentPage) String() string { return proto.CompactTextString(m) } -func (*Block_ContentPage) ProtoMessage() {} -func (*Block_ContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca37ac4b5b7ef96, []int{0, 7} -} -func (m *Block_ContentPage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block_ContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block_ContentPage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Block_ContentPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block_ContentPage.Merge(m, src) -} -func (m *Block_ContentPage) XXX_Size() int { - return m.Size() -} -func (m *Block_ContentPage) XXX_DiscardUnknown() { - xxx_messageInfo_Block_ContentPage.DiscardUnknown(m) -} - -var xxx_messageInfo_Block_ContentPage proto.InternalMessageInfo - -func (m *Block_ContentPage) GetStyle() Block_ContentPage_Style { - if m != nil { - return m.Style - } - return Block_ContentPage_EMPTY -} - -func (m *Block_ContentPage) GetBlocks() []*Block { - if m != nil { - return m.Blocks - } - return nil -} - -func init() { - proto.RegisterEnum("anytype.Block_Header_Type", Block_Header_Type_name, Block_Header_Type_value) - proto.RegisterEnum("anytype.Block_ContentLayout_Style", Block_ContentLayout_Style_name, Block_ContentLayout_Style_value) - proto.RegisterEnum("anytype.Block_ContentDashboard_Style", Block_ContentDashboard_Style_name, Block_ContentDashboard_Style_value) - proto.RegisterEnum("anytype.Block_ContentText_Style", Block_ContentText_Style_name, Block_ContentText_Style_value) - proto.RegisterEnum("anytype.Block_ContentText_MarkerType", Block_ContentText_MarkerType_name, Block_ContentText_MarkerType_value) - proto.RegisterEnum("anytype.Block_ContentText_Mark_Type", Block_ContentText_Mark_Type_name, Block_ContentText_Mark_Type_value) - proto.RegisterEnum("anytype.Block_ContentMedia_State", Block_ContentMedia_State_name, Block_ContentMedia_State_value) - proto.RegisterEnum("anytype.Block_ContentPage_Style", Block_ContentPage_Style_name, Block_ContentPage_Style_value) - proto.RegisterType((*Block)(nil), "anytype.Block") - proto.RegisterType((*Block_Header)(nil), "anytype.Block.Header") - proto.RegisterType((*Block_Header_Permissions)(nil), "anytype.Block.Header.Permissions") - proto.RegisterType((*Block_ContentLayout)(nil), "anytype.Block.ContentLayout") - proto.RegisterType((*Block_ContentDiv)(nil), "anytype.Block.ContentDiv") - proto.RegisterType((*Block_ContentDashboard)(nil), "anytype.Block.ContentDashboard") - proto.RegisterType((*Block_ContentDataview)(nil), "anytype.Block.ContentDataview") - proto.RegisterType((*Block_ContentText)(nil), "anytype.Block.ContentText") - proto.RegisterType((*Block_ContentText_Marks)(nil), "anytype.Block.ContentText.Marks") - proto.RegisterType((*Block_ContentText_Mark)(nil), "anytype.Block.ContentText.Mark") - proto.RegisterType((*Block_ContentMedia)(nil), "anytype.Block.ContentMedia") - proto.RegisterType((*Block_ContentMedia_VideoPreview)(nil), "anytype.Block.ContentMedia.VideoPreview") - proto.RegisterType((*Block_ContentMedia_ImagePreview)(nil), "anytype.Block.ContentMedia.ImagePreview") - proto.RegisterType((*Block_ContentMedia_FilePreview)(nil), "anytype.Block.ContentMedia.FilePreview") - proto.RegisterType((*Block_ContentPage)(nil), "anytype.Block.ContentPage") -} - -func init() { proto.RegisterFile("block-content.proto", fileDescriptor_7ca37ac4b5b7ef96) } - -var fileDescriptor_7ca37ac4b5b7ef96 = []byte{ - // 1253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x97, 0x6c, 0xc9, 0x7f, 0x9e, 0x9d, 0x64, 0xbb, 0x14, 0x46, 0x88, 0x8c, 0x9b, 0x7a, 0x0a, - 0xcd, 0x25, 0x06, 0x1a, 0x5a, 0x3a, 0x03, 0x14, 0x1c, 0x5b, 0x8d, 0x35, 0x71, 0x2c, 0xcf, 0x5a, - 0x49, 0x29, 0x17, 0x46, 0xb6, 0xb6, 0xb6, 0xa6, 0xb2, 0x64, 0x64, 0x25, 0x6d, 0x66, 0xf8, 0x10, - 0x9c, 0x39, 0xf2, 0x05, 0x38, 0xf1, 0x11, 0x98, 0xe1, 0xd8, 0x23, 0x47, 0x68, 0xbf, 0x03, 0x67, - 0x66, 0x77, 0x25, 0x5b, 0x2e, 0x89, 0x73, 0xe1, 0xa4, 0x7d, 0xbb, 0xbf, 0xdf, 0x7b, 0x6f, 0xf7, - 0xfd, 0x13, 0xbc, 0x33, 0xf4, 0xc3, 0xd1, 0xf3, 0xbd, 0x51, 0x18, 0xc4, 0x34, 0x88, 0x1b, 0xb3, - 0x28, 0x8c, 0x43, 0x5c, 0x74, 0x82, 0x8b, 0xf8, 0x62, 0x46, 0xf5, 0xea, 0x3c, 0x8e, 0xce, 0x46, - 0xc9, 0xb6, 0x7e, 0x73, 0x4c, 0x03, 0x1a, 0x39, 0xfe, 0xde, 0x34, 0x74, 0xa9, 0x3f, 0x17, 0xbb, - 0xf5, 0x7f, 0x6e, 0x82, 0x7a, 0xc0, 0x94, 0xe0, 0x3d, 0x28, 0x4c, 0xa8, 0xe3, 0xd2, 0x48, 0x93, - 0x77, 0xe4, 0xdd, 0xca, 0xbd, 0x77, 0x1b, 0x89, 0x9e, 0x06, 0x3f,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- 0xa1, 0x4f, 0x93, 0x94, 0xcb, 0xec, 0x60, 0x03, 0x80, 0x81, 0x69, 0xc4, 0xd2, 0x8c, 0x27, 0xdf, - 0x95, 0x6f, 0xbb, 0x30, 0x20, 0xc0, 0x24, 0x43, 0xc4, 0xdb, 0x50, 0x1e, 0x4d, 0xe8, 0xe8, 0x39, - 0xb7, 0x52, 0xe0, 0x56, 0x96, 0x1b, 0x58, 0x83, 0x22, 0x17, 0xa8, 0xab, 0x15, 0xf9, 0x59, 0x2a, - 0xea, 0x8f, 0x40, 0xe5, 0x2e, 0xe3, 0xfb, 0xa0, 0x72, 0xa7, 0x35, 0x99, 0xc7, 0xe7, 0xd6, 0x35, - 0x2e, 0x10, 0x81, 0xd6, 0x7f, 0x97, 0x41, 0x61, 0x32, 0xbe, 0x03, 0x6a, 0xe4, 0x04, 0x63, 0x9a, - 0x4c, 0x89, 0xcd, 0x05, 0x9f, 0xb0, 0x5d, 0x22, 0x0e, 0xf1, 0xc3, 0x95, 0x3e, 0x73, 0xe7, 0x1a, - 0x23, 0xd9, 0x8e, 0x73, 0x13, 0xd4, 0x99, 0x13, 0x39, 0x53, 0x1e, 0x83, 0x32, 0x11, 0x42, 0xfd, - 0x30, 0x29, 0xcf, 0x1b, 0xb0, 0x31, 0xb0, 0x89, 0x79, 0x64, 0xd8, 0x1d, 0x62, 0x9d, 0x1c, 0x76, - 0x90, 0xc4, 0xca, 0xeb, 0xc8, 0x78, 0x2a, 0x0a, 0x56, 0x66, 0xc9, 0x6e, 0xda, 0xcd, 0xae, 0xd9, - 0x12, 0x45, 0x7a, 0x60, 0x75, 0xdb, 0xa2, 0x48, 0xbb, 0x66, 0xef, 0x08, 0x29, 0xf5, 0x56, 0x9a, - 0x6f, 0x2a, 0xc8, 0x33, 0x24, 0xe1, 0x02, 0xe4, 0x26, 0x9f, 0x22, 0x99, 0x7f, 0xef, 0xa1, 0x1c, - 0xff, 0xee, 0xa3, 0x3c, 0xff, 0x7e, 0x86, 0x14, 0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 0x31, 0x28, - 0xde, 0x28, 0x0c, 0x52, 0x65, 0x6c, 0x5d, 0x37, 0x59, 0x0a, 0xb2, 0x90, 0x95, 0x41, 0x35, 0x8e, - 0xfb, 0xf6, 0x53, 0x24, 0xb1, 0xb1, 0x73, 0xd2, 0xef, 0x5a, 0xcd, 0xb6, 0xd9, 0x3b, 0x44, 0x32, - 0x1f, 0x25, 0xc4, 0x48, 0x66, 0xcd, 0x16, 0x54, 0xda, 0xd6, 0x93, 0x5e, 0x7a, 0xca, 0xb3, 0xb9, - 0x6d, 0xf5, 0x0c, 0xa4, 0x1c, 0x94, 0xa1, 0x38, 0x13, 0xd6, 0xf5, 0x5f, 0xe4, 0x45, 0x6f, 0x64, - 0x3f, 0x46, 0xcb, 0x3e, 0x28, 0xaf, 0xeb, 0x83, 0x0c, 0xba, 0xda, 0x07, 0x3f, 0x82, 0x02, 0xff, - 0xa9, 0x4c, 0x1b, 0xf8, 0xe6, 0x2a, 0x91, 0x24, 0xa7, 0xf5, 0xfd, 0xb4, 0x90, 0x32, 0xb7, 0x60, - 0x53, 0xb1, 0x39, 0x38, 0x12, 0xd3, 0x72, 0x31, 0xf3, 0x72, 0x6c, 0x14, 0x0d, 0x0c, 0x1b, 0xe5, - 0x99, 0xbf, 0x49, 0xa2, 0x1f, 0x6c, 0xff, 0xf1, 0xba, 0x26, 0xbf, 0x7a, 0x5d, 0x93, 0xff, 0x7a, - 0x5d, 0x93, 0x7f, 0x7a, 0x53, 0x93, 0x5e, 0xbd, 0xa9, 0x49, 0x7f, 0xbe, 0xa9, 0x49, 0xdf, 0xe5, - 0x66, 0xc3, 0x61, 0x81, 0xff, 0x9d, 0xee, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x26, 0x74, 0x06, - 0x4a, 0xe1, 0x0a, 0x00, 0x00, -} - -func (m *Block) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Content != nil { - { - size := m.Content.Size() - i -= size - if _, err := m.Content.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if len(m.Children) > 0 { - for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Children[iNdEx]) - copy(dAtA[i:], m.Children[iNdEx]) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Children[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_Dashboard) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Dashboard != nil { - { - size, err := m.Dashboard.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *Block_Page) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Page != nil { - { - size, err := m.Page.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *Block_Dataview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Dataview != nil { - { - size, err := m.Dataview.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *Block_Text) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Text != nil { - { - size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - return len(dAtA) - i, nil -} -func (m *Block_Media) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Media != nil { - { - size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - return len(dAtA) - i, nil -} -func (m *Block_Layout) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Layout != nil { - { - size, err := m.Layout.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - return len(dAtA) - i, nil -} -func (m *Block_Div) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Div != nil { - { - size, err := m.Div.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - return len(dAtA) - i, nil -} -func (m *Block_Header) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_Header) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Fields != nil { - { - size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Type != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_Header_Permissions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_Header_Permissions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DropOn { - i-- - if m.DropOn { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Drag { - i-- - if m.Drag { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Remove { - i-- - if m.Remove { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Edit { - i-- - if m.Edit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Read { - i-- - if m.Read { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentLayout) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentLayout) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentDiv) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentDiv) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *Block_ContentDashboard) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentDashboard) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Headers) > 0 { - for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Headers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Style != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentDataview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentDataview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *Block_ContentText) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentText) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Checked { - i-- - if m.Checked { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Checkable { - i-- - if m.Checkable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.MarkerType != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.MarkerType)) - i-- - dAtA[i] = 0x28 - } - if m.Toggleable { - i-- - if m.Toggleable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.MarksList != nil { - { - size, err := m.MarksList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Style != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x10 - } - if len(m.Text) > 0 { - i -= len(m.Text) - copy(dAtA[i:], m.Text) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Text))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentText_Marks) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentText_Marks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentText_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Marks) > 0 { - for iNdEx := len(m.Marks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Marks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentText_Mark) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentText_Mark) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Param) > 0 { - i -= len(m.Param) - copy(dAtA[i:], m.Param) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Param))) - i-- - dAtA[i] = 0x1a - } - if m.Type != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentMedia) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentMedia) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Preview != nil { - { - size := m.Preview.Size() - i -= size - if _, err := m.Preview.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.State != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x10 - } - if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Content))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentMedia_Video) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Video != nil { - { - size, err := m.Video.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *Block_ContentMedia_Image) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Image != nil { - { - size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *Block_ContentMedia_File) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.File != nil { - { - size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} -func (m *Block_ContentMedia_VideoPreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentMedia_VideoPreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia_VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Width != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Width)) - i-- - dAtA[i] = 0x18 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Thumbnail) > 0 { - i -= len(m.Thumbnail) - copy(dAtA[i:], m.Thumbnail) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Thumbnail))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentMedia_ImagePreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentMedia_ImagePreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia_ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Width != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Width)) - i-- - dAtA[i] = 0x18 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Thumbnail) > 0 { - i -= len(m.Thumbnail) - copy(dAtA[i:], m.Thumbnail) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Thumbnail))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentMedia_FilePreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentMedia_FilePreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentMedia_FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Icon) > 0 { - i -= len(m.Icon) - copy(dAtA[i:], m.Icon) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Icon))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlockContent(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Block_ContentPage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Block_ContentPage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Block_ContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Blocks) > 0 { - for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockContent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Style != 0 { - i = encodeVarintBlockContent(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintBlockContent(dAtA []byte, offset int, v uint64) int { - offset -= sovBlockContent(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Block) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - if len(m.Children) > 0 { - for _, s := range m.Children { - l = len(s) - n += 1 + l + sovBlockContent(uint64(l)) - } - } - if m.Content != nil { - n += m.Content.Size() - } - return n -} - -func (m *Block_Dashboard) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Dashboard != nil { - l = m.Dashboard.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Page) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Page != nil { - l = m.Page.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Dataview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Dataview != nil { - l = m.Dataview.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Text) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Text != nil { - l = m.Text.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Media) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Media != nil { - l = m.Media.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Layout) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Layout != nil { - l = m.Layout.Size() - n += 2 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Div) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Div != nil { - l = m.Div.Size() - n += 2 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_Header) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovBlockContent(uint64(m.Type)) - } - if m.Fields != nil { - l = m.Fields.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Permissions != nil { - l = m.Permissions.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} - -func (m *Block_Header_Permissions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Read { - n += 2 - } - if m.Edit { - n += 2 - } - if m.Remove { - n += 2 - } - if m.Drag { - n += 2 - } - if m.DropOn { - n += 2 - } - return n -} - -func (m *Block_ContentLayout) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Style != 0 { - n += 1 + sovBlockContent(uint64(m.Style)) - } - return n -} - -func (m *Block_ContentDiv) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *Block_ContentDashboard) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Style != 0 { - n += 1 + sovBlockContent(uint64(m.Style)) - } - if len(m.Headers) > 0 { - for _, e := range m.Headers { - l = e.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - } - return n -} - -func (m *Block_ContentDataview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *Block_ContentText) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Text) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Style != 0 { - n += 1 + sovBlockContent(uint64(m.Style)) - } - if m.MarksList != nil { - l = m.MarksList.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Toggleable { - n += 2 - } - if m.MarkerType != 0 { - n += 1 + sovBlockContent(uint64(m.MarkerType)) - } - if m.Checkable { - n += 2 - } - if m.Checked { - n += 2 - } - return n -} - -func (m *Block_ContentText_Marks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Marks) > 0 { - for _, e := range m.Marks { - l = e.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - } - return n -} - -func (m *Block_ContentText_Mark) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Range != nil { - l = m.Range.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovBlockContent(uint64(m.Type)) - } - l = len(m.Param) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} - -func (m *Block_ContentMedia) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Content) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.State != 0 { - n += 1 + sovBlockContent(uint64(m.State)) - } - if m.Preview != nil { - n += m.Preview.Size() - } - return n -} - -func (m *Block_ContentMedia_Video) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Video != nil { - l = m.Video.Size() - n += 2 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_ContentMedia_Image) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Image != nil { - l = m.Image.Size() - n += 2 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_ContentMedia_File) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.File != nil { - l = m.File.Size() - n += 2 + l + sovBlockContent(uint64(l)) - } - return n -} -func (m *Block_ContentMedia_VideoPreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Thumbnail) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Width != 0 { - n += 1 + sovBlockContent(uint64(m.Width)) - } - return n -} - -func (m *Block_ContentMedia_ImagePreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Thumbnail) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - if m.Width != 0 { - n += 1 + sovBlockContent(uint64(m.Width)) - } - return n -} - -func (m *Block_ContentMedia_FilePreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - l = len(m.Icon) - if l > 0 { - n += 1 + l + sovBlockContent(uint64(l)) - } - return n -} - -func (m *Block_ContentPage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Style != 0 { - n += 1 + sovBlockContent(uint64(m.Style)) - } - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovBlockContent(uint64(l)) - } - } - return n -} - -func sovBlockContent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBlockContent(x uint64) (n int) { - return sovBlockContent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Block) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Block: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Block_Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dashboard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentDashboard{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Dashboard{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentPage{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Page{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dataview", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentDataview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Dataview{v} - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentText{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Text{v} - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentMedia{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Media{v} - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentLayout{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Layout{v} - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Div", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentDiv{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Content = &Block_Div{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_Header) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Header: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= Block_Header_Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fields == nil { - m.Fields = &Struct{} - } - if err := m.Fields.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Permissions == nil { - m.Permissions = &Block_Header_Permissions{} - } - if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_Header_Permissions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Permissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Permissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Read", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Read = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Edit", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Edit = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Remove = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Drag", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Drag = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DropOn", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DropOn = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentLayout) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentLayout: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentLayout: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= Block_ContentLayout_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentDiv) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentDiv: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentDiv: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentDashboard) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentDashboard: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentDashboard: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= Block_ContentDashboard_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Headers = append(m.Headers, &Block_Header{}) - if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentDataview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentDataview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentDataview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentText) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentText: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentText: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Text = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= Block_ContentText_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarksList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MarksList == nil { - m.MarksList = &Block_ContentText_Marks{} - } - if err := m.MarksList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Toggleable = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) - } - m.MarkerType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MarkerType |= Block_ContentText_MarkerType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Checkable = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Checked = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentText_Marks) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Marks: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Marks: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Marks = append(m.Marks, &Block_ContentText_Mark{}) - if err := m.Marks[len(m.Marks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentText_Mark) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Mark: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Mark: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Range == nil { - m.Range = &Range{} - } - if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= Block_ContentText_Mark_Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Param = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentMedia) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentMedia: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentMedia: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) - if m.Content == nil { - m.Content = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= Block_ContentMedia_State(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 101: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Video", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentMedia_VideoPreview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Preview = &Block_ContentMedia_Video{v} - iNdEx = postIndex - case 102: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentMedia_ImagePreview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Preview = &Block_ContentMedia_Image{v} - iNdEx = postIndex - case 103: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentMedia_FilePreview{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Preview = &Block_ContentMedia_File{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentMedia_VideoPreview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VideoPreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VideoPreview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) - if m.Thumbnail == nil { - m.Thumbnail = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) - } - m.Width = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Width |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentMedia_ImagePreview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImagePreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImagePreview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) - if m.Thumbnail == nil { - m.Thumbnail = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) - } - m.Width = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Width |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentMedia_FilePreview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FilePreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FilePreview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Icon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block_ContentPage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContentPage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContentPage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - m.Style = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= Block_ContentPage_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockContent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockContent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockContent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Blocks = append(m.Blocks, &Block{}) - if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockContent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockContent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBlockContent(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockContent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockContent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockContent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBlockContent - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlockContent - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBlockContent - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBlockContent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlockContent = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlockContent = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/block-events.pb.go b/pb/block-events.pb.go index c559a1668..87a8d24c1 100644 --- a/pb/block-events.pb.go +++ b/pb/block-events.pb.go @@ -23,7 +23,7 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type BlockShow struct { - Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` } func (m *BlockShow) Reset() { *m = BlockShow{} } @@ -59,7 +59,7 @@ func (m *BlockShow) XXX_DiscardUnknown() { var xxx_messageInfo_BlockShow proto.InternalMessageInfo -func (m *BlockShow) GetBlock() *Block { +func (m *BlockShow) GetBlock() *Model_Block { if m != nil { return m.Block } @@ -111,7 +111,7 @@ func (m *BlockUpdate) GetChanges() *BlockChanges { } type BlockCreate struct { - Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` } func (m *BlockCreate) Reset() { *m = BlockCreate{} } @@ -147,7 +147,7 @@ func (m *BlockCreate) XXX_DiscardUnknown() { var xxx_messageInfo_BlockCreate proto.InternalMessageInfo -func (m *BlockCreate) GetBlock() *Block { +func (m *BlockCreate) GetBlock() *Model_Block { if m != nil { return m.Block } @@ -163,19 +163,19 @@ func init() { func init() { proto.RegisterFile("block-events.proto", fileDescriptor_1dff1991648a316e) } var fileDescriptor_1dff1991648a316e = []byte{ - // 186 bytes of a gzipped FileDescriptorProto + // 189 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0xca, 0xc9, 0x4f, 0xce, 0xd6, 0x4d, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, - 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0x12, 0x86, 0x48, 0x26, 0xe7, 0xe7, 0x95, 0xa4, - 0xe6, 0x95, 0x40, 0x64, 0xe1, 0x82, 0x19, 0x89, 0x79, 0xe9, 0xa9, 0x50, 0x2d, 0x4a, 0x86, 0x5c, - 0x9c, 0x4e, 0x20, 0xe1, 0xe0, 0x8c, 0xfc, 0x72, 0x21, 0x15, 0x2e, 0x56, 0xb0, 0x1a, 0x09, 0x46, - 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x3e, 0x3d, 0xa8, 0x79, 0x7a, 0x60, 0x25, 0x41, 0x10, 0x49, 0x25, - 0x3b, 0x2e, 0x6e, 0x30, 0x3f, 0xb4, 0x20, 0x25, 0xb1, 0x24, 0x55, 0x48, 0x9f, 0x8b, 0x1d, 0x6a, - 0x24, 0x54, 0x9b, 0x28, 0xaa, 0x36, 0x67, 0x88, 0x64, 0x10, 0x4c, 0x95, 0x92, 0x31, 0x54, 0xbf, - 0x73, 0x51, 0x2a, 0x48, 0x3f, 0x51, 0x96, 0x3a, 0xc9, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, - 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, - 0xb1, 0x1c, 0x43, 0x14, 0x53, 0x41, 0x52, 0x12, 0x1b, 0xd8, 0x33, 0xc6, 0x80, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xb9, 0xc0, 0xb5, 0xce, 0x15, 0x01, 0x00, 0x00, + 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0xe2, 0xc9, 0xcd, 0x4f, 0x49, 0xcd, 0x81, 0x0a, + 0x4b, 0xf1, 0x26, 0x67, 0x24, 0xe6, 0xa5, 0xa7, 0x42, 0xb9, 0x4a, 0xe6, 0x5c, 0x9c, 0x4e, 0x20, + 0xbd, 0xc1, 0x19, 0xf9, 0xe5, 0x42, 0x5a, 0x5c, 0xac, 0x60, 0x83, 0x24, 0x18, 0x15, 0x18, 0x35, + 0xb8, 0x8d, 0x44, 0xf4, 0xa0, 0x46, 0xe8, 0xf9, 0x82, 0x4c, 0xd0, 0x03, 0x2b, 0x0c, 0x82, 0x28, + 0x51, 0xb2, 0xe3, 0xe2, 0x06, 0xf3, 0x43, 0x0b, 0x52, 0x12, 0x4b, 0x52, 0x85, 0xf4, 0xb9, 0xd8, + 0xa1, 0x06, 0x43, 0x35, 0x8b, 0xc2, 0x35, 0x83, 0x95, 0x39, 0x43, 0x24, 0x83, 0x60, 0xaa, 0x94, + 0x2c, 0xa1, 0xfa, 0x9d, 0x8b, 0x52, 0x41, 0xfa, 0x49, 0xb0, 0xda, 0x49, 0xe6, 0xc4, 0x23, 0x39, + 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, + 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x1e, 0x33, 0x06, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xa9, 0xe8, 0x92, 0xed, 0x14, 0x01, 0x00, 0x00, } func (m *BlockShow) Marshal() (dAtA []byte, err error) { @@ -398,7 +398,7 @@ func (m *BlockShow) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &Block{} + m.Block = &Model_Block{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -576,7 +576,7 @@ func (m *BlockCreate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &Block{} + m.Block = &Model_Block{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/pb/block-changes.pb.go b/pb/changes.pb.go similarity index 50% rename from pb/block-changes.pb.go rename to pb/changes.pb.go index 07b2e7500..62dc5d764 100644 --- a/pb/block-changes.pb.go +++ b/pb/changes.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: block-changes.proto +// source: changes.proto package pb @@ -22,30 +22,21 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type BlockContentTextChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentTextChange_Text - // *BlockContentTextChange_Style - // *BlockContentTextChange_Marks - // *BlockContentTextChange_Toggleable - // *BlockContentTextChange_MarkerType - // *BlockContentTextChange_Checkable - // *BlockContentTextChange_Checked - Change isBlockContentTextChange_Change `protobuf_oneof:"change"` +type Change struct { } -func (m *BlockContentTextChange) Reset() { *m = BlockContentTextChange{} } -func (m *BlockContentTextChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentTextChange) ProtoMessage() {} -func (*BlockContentTextChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{0} +func (m *Change) Reset() { *m = Change{} } +func (m *Change) String() string { return proto.CompactTextString(m) } +func (*Change) ProtoMessage() {} +func (*Change) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0} } -func (m *BlockContentTextChange) XXX_Unmarshal(b []byte) error { +func (m *Change) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockContentTextChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockContentTextChange.Marshal(b, m, deterministic) + return xxx_messageInfo_Change.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -55,142 +46,33 @@ func (m *BlockContentTextChange) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *BlockContentTextChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentTextChange.Merge(m, src) +func (m *Change) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change.Merge(m, src) } -func (m *BlockContentTextChange) XXX_Size() int { +func (m *Change) XXX_Size() int { return m.Size() } -func (m *BlockContentTextChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentTextChange.DiscardUnknown(m) +func (m *Change) XXX_DiscardUnknown() { + xxx_messageInfo_Change.DiscardUnknown(m) } -var xxx_messageInfo_BlockContentTextChange proto.InternalMessageInfo +var xxx_messageInfo_Change proto.InternalMessageInfo -type isBlockContentTextChange_Change interface { - isBlockContentTextChange_Change() - MarshalTo([]byte) (int, error) - Size() int +type Change_Block struct { } -type BlockContentTextChange_Text struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` +func (m *Change_Block) Reset() { *m = Change_Block{} } +func (m *Change_Block) String() string { return proto.CompactTextString(m) } +func (*Change_Block) ProtoMessage() {} +func (*Change_Block) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0} } -type BlockContentTextChange_Style struct { - Style Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Block_ContentText_Style,oneof" json:"style,omitempty"` -} -type BlockContentTextChange_Marks struct { - Marks *Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` -} -type BlockContentTextChange_Toggleable struct { - Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3,oneof" json:"toggleable,omitempty"` -} -type BlockContentTextChange_MarkerType struct { - MarkerType Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Block_ContentText_MarkerType,oneof" json:"markerType,omitempty"` -} -type BlockContentTextChange_Checkable struct { - Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3,oneof" json:"checkable,omitempty"` -} -type BlockContentTextChange_Checked struct { - Checked bool `protobuf:"varint,7,opt,name=checked,proto3,oneof" json:"checked,omitempty"` -} - -func (*BlockContentTextChange_Text) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Style) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Marks) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Toggleable) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_MarkerType) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Checkable) isBlockContentTextChange_Change() {} -func (*BlockContentTextChange_Checked) isBlockContentTextChange_Change() {} - -func (m *BlockContentTextChange) GetChange() isBlockContentTextChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockContentTextChange) GetText() string { - if x, ok := m.GetChange().(*BlockContentTextChange_Text); ok { - return x.Text - } - return "" -} - -func (m *BlockContentTextChange) GetStyle() Block_ContentText_Style { - if x, ok := m.GetChange().(*BlockContentTextChange_Style); ok { - return x.Style - } - return Block_ContentText_p -} - -func (m *BlockContentTextChange) GetMarks() *Block_ContentText_Marks { - if x, ok := m.GetChange().(*BlockContentTextChange_Marks); ok { - return x.Marks - } - return nil -} - -func (m *BlockContentTextChange) GetToggleable() bool { - if x, ok := m.GetChange().(*BlockContentTextChange_Toggleable); ok { - return x.Toggleable - } - return false -} - -func (m *BlockContentTextChange) GetMarkerType() Block_ContentText_MarkerType { - if x, ok := m.GetChange().(*BlockContentTextChange_MarkerType); ok { - return x.MarkerType - } - return Block_ContentText_none -} - -func (m *BlockContentTextChange) GetCheckable() bool { - if x, ok := m.GetChange().(*BlockContentTextChange_Checkable); ok { - return x.Checkable - } - return false -} - -func (m *BlockContentTextChange) GetChecked() bool { - if x, ok := m.GetChange().(*BlockContentTextChange_Checked); ok { - return x.Checked - } - return false -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentTextChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentTextChange_Text)(nil), - (*BlockContentTextChange_Style)(nil), - (*BlockContentTextChange_Marks)(nil), - (*BlockContentTextChange_Toggleable)(nil), - (*BlockContentTextChange_MarkerType)(nil), - (*BlockContentTextChange_Checkable)(nil), - (*BlockContentTextChange_Checked)(nil), - } -} - -type BlockContentPageChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentPageChange_Style - // *BlockContentPageChange_Block - Change isBlockContentPageChange_Change `protobuf_oneof:"change"` -} - -func (m *BlockContentPageChange) Reset() { *m = BlockContentPageChange{} } -func (m *BlockContentPageChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentPageChange) ProtoMessage() {} -func (*BlockContentPageChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{1} -} -func (m *BlockContentPageChange) XXX_Unmarshal(b []byte) error { +func (m *Change_Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockContentPageChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Change_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockContentPageChange.Marshal(b, m, deterministic) + return xxx_messageInfo_Change_Block.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -200,85 +82,40 @@ func (m *BlockContentPageChange) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *BlockContentPageChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentPageChange.Merge(m, src) +func (m *Change_Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block.Merge(m, src) } -func (m *BlockContentPageChange) XXX_Size() int { +func (m *Change_Block) XXX_Size() int { return m.Size() } -func (m *BlockContentPageChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentPageChange.DiscardUnknown(m) +func (m *Change_Block) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block.DiscardUnknown(m) } -var xxx_messageInfo_BlockContentPageChange proto.InternalMessageInfo +var xxx_messageInfo_Change_Block proto.InternalMessageInfo -type isBlockContentPageChange_Change interface { - isBlockContentPageChange_Change() - MarshalTo([]byte) (int, error) - Size() int -} - -type BlockContentPageChange_Style struct { - Style Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentPage_Style,oneof" json:"style,omitempty"` -} -type BlockContentPageChange_Block struct { - Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` -} - -func (*BlockContentPageChange_Style) isBlockContentPageChange_Change() {} -func (*BlockContentPageChange_Block) isBlockContentPageChange_Change() {} - -func (m *BlockContentPageChange) GetChange() isBlockContentPageChange_Change { - if m != nil { - return m.Change - } - return nil -} - -func (m *BlockContentPageChange) GetStyle() Block_ContentPage_Style { - if x, ok := m.GetChange().(*BlockContentPageChange_Style); ok { - return x.Style - } - return Block_ContentPage_EMPTY -} - -func (m *BlockContentPageChange) GetBlock() *Block { - if x, ok := m.GetChange().(*BlockContentPageChange_Block); ok { - return x.Block - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentPageChange) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BlockContentPageChange_Style)(nil), - (*BlockContentPageChange_Block)(nil), - } -} - -type BlockHeaderChange struct { +type Change_Block_Header struct { // Types that are valid to be assigned to Change: - // *BlockHeaderChange_Id - // *BlockHeaderChange_Type - // *BlockHeaderChange_Name - // *BlockHeaderChange_Icon - // *BlockHeaderChange_Permissions - Change isBlockHeaderChange_Change `protobuf_oneof:"change"` + // *Change_Block_Header_Id + // *Change_Block_Header_Type + // *Change_Block_Header_Name + // *Change_Block_Header_Icon + // *Change_Block_Header_Permissions + Change isChange_Block_Header_Change `protobuf_oneof:"change"` } -func (m *BlockHeaderChange) Reset() { *m = BlockHeaderChange{} } -func (m *BlockHeaderChange) String() string { return proto.CompactTextString(m) } -func (*BlockHeaderChange) ProtoMessage() {} -func (*BlockHeaderChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{2} +func (m *Change_Block_Header) Reset() { *m = Change_Block_Header{} } +func (m *Change_Block_Header) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Header) ProtoMessage() {} +func (*Change_Block_Header) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 0} } -func (m *BlockHeaderChange) XXX_Unmarshal(b []byte) error { +func (m *Change_Block_Header) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockHeaderChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Change_Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockHeaderChange.Marshal(b, m, deterministic) + return xxx_messageInfo_Change_Block_Header.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -288,115 +125,115 @@ func (m *BlockHeaderChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *BlockHeaderChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHeaderChange.Merge(m, src) +func (m *Change_Block_Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Header.Merge(m, src) } -func (m *BlockHeaderChange) XXX_Size() int { +func (m *Change_Block_Header) XXX_Size() int { return m.Size() } -func (m *BlockHeaderChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHeaderChange.DiscardUnknown(m) +func (m *Change_Block_Header) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Header.DiscardUnknown(m) } -var xxx_messageInfo_BlockHeaderChange proto.InternalMessageInfo +var xxx_messageInfo_Change_Block_Header proto.InternalMessageInfo -type isBlockHeaderChange_Change interface { - isBlockHeaderChange_Change() +type isChange_Block_Header_Change interface { + isChange_Block_Header_Change() MarshalTo([]byte) (int, error) Size() int } -type BlockHeaderChange_Id struct { +type Change_Block_Header_Id struct { Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` } -type BlockHeaderChange_Type struct { - Type Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Block_Header_Type,oneof" json:"type,omitempty"` +type Change_Block_Header_Type struct { + Type Model_Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type,oneof" json:"type,omitempty"` } -type BlockHeaderChange_Name struct { +type Change_Block_Header_Name struct { Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` } -type BlockHeaderChange_Icon struct { +type Change_Block_Header_Icon struct { Icon string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` } -type BlockHeaderChange_Permissions struct { - Permissions *Block_Header_Permissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` +type Change_Block_Header_Permissions struct { + Permissions *Model_Block_Header_Permissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` } -func (*BlockHeaderChange_Id) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Type) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Name) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Icon) isBlockHeaderChange_Change() {} -func (*BlockHeaderChange_Permissions) isBlockHeaderChange_Change() {} +func (*Change_Block_Header_Id) isChange_Block_Header_Change() {} +func (*Change_Block_Header_Type) isChange_Block_Header_Change() {} +func (*Change_Block_Header_Name) isChange_Block_Header_Change() {} +func (*Change_Block_Header_Icon) isChange_Block_Header_Change() {} +func (*Change_Block_Header_Permissions) isChange_Block_Header_Change() {} -func (m *BlockHeaderChange) GetChange() isBlockHeaderChange_Change { +func (m *Change_Block_Header) GetChange() isChange_Block_Header_Change { if m != nil { return m.Change } return nil } -func (m *BlockHeaderChange) GetId() string { - if x, ok := m.GetChange().(*BlockHeaderChange_Id); ok { +func (m *Change_Block_Header) GetId() string { + if x, ok := m.GetChange().(*Change_Block_Header_Id); ok { return x.Id } return "" } -func (m *BlockHeaderChange) GetType() Block_Header_Type { - if x, ok := m.GetChange().(*BlockHeaderChange_Type); ok { +func (m *Change_Block_Header) GetType() Model_Block_Header_Type { + if x, ok := m.GetChange().(*Change_Block_Header_Type); ok { return x.Type } - return Block_Header_DASHBOARD + return Model_Block_Header_DASHBOARD } -func (m *BlockHeaderChange) GetName() string { - if x, ok := m.GetChange().(*BlockHeaderChange_Name); ok { +func (m *Change_Block_Header) GetName() string { + if x, ok := m.GetChange().(*Change_Block_Header_Name); ok { return x.Name } return "" } -func (m *BlockHeaderChange) GetIcon() string { - if x, ok := m.GetChange().(*BlockHeaderChange_Icon); ok { +func (m *Change_Block_Header) GetIcon() string { + if x, ok := m.GetChange().(*Change_Block_Header_Icon); ok { return x.Icon } return "" } -func (m *BlockHeaderChange) GetPermissions() *Block_Header_Permissions { - if x, ok := m.GetChange().(*BlockHeaderChange_Permissions); ok { +func (m *Change_Block_Header) GetPermissions() *Model_Block_Header_Permissions { + if x, ok := m.GetChange().(*Change_Block_Header_Permissions); ok { return x.Permissions } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockHeaderChange) XXX_OneofWrappers() []interface{} { +func (*Change_Block_Header) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*BlockHeaderChange_Id)(nil), - (*BlockHeaderChange_Type)(nil), - (*BlockHeaderChange_Name)(nil), - (*BlockHeaderChange_Icon)(nil), - (*BlockHeaderChange_Permissions)(nil), + (*Change_Block_Header_Id)(nil), + (*Change_Block_Header_Type)(nil), + (*Change_Block_Header_Name)(nil), + (*Change_Block_Header_Icon)(nil), + (*Change_Block_Header_Permissions)(nil), } } -type BlockChildrenChange struct { +type Change_Block_Children struct { Children []string `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` } -func (m *BlockChildrenChange) Reset() { *m = BlockChildrenChange{} } -func (m *BlockChildrenChange) String() string { return proto.CompactTextString(m) } -func (*BlockChildrenChange) ProtoMessage() {} -func (*BlockChildrenChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{3} +func (m *Change_Block_Children) Reset() { *m = Change_Block_Children{} } +func (m *Change_Block_Children) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Children) ProtoMessage() {} +func (*Change_Block_Children) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 1} } -func (m *BlockChildrenChange) XXX_Unmarshal(b []byte) error { +func (m *Change_Block_Children) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockChildrenChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Change_Block_Children) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockChildrenChange.Marshal(b, m, deterministic) + return xxx_messageInfo_Change_Block_Children.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -406,44 +243,40 @@ func (m *BlockChildrenChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *BlockChildrenChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockChildrenChange.Merge(m, src) +func (m *Change_Block_Children) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Children.Merge(m, src) } -func (m *BlockChildrenChange) XXX_Size() int { +func (m *Change_Block_Children) XXX_Size() int { return m.Size() } -func (m *BlockChildrenChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockChildrenChange.DiscardUnknown(m) +func (m *Change_Block_Children) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Children.DiscardUnknown(m) } -var xxx_messageInfo_BlockChildrenChange proto.InternalMessageInfo +var xxx_messageInfo_Change_Block_Children proto.InternalMessageInfo -func (m *BlockChildrenChange) GetChildren() []string { +func (m *Change_Block_Children) GetChildren() []string { if m != nil { return m.Children } return nil } -type BlockContentDashboardChange struct { - // Types that are valid to be assigned to Change: - // *BlockContentDashboardChange_Style - // *BlockContentDashboardChange_Header - Change isBlockContentDashboardChange_Change `protobuf_oneof:"change"` +type Change_Block_Content struct { } -func (m *BlockContentDashboardChange) Reset() { *m = BlockContentDashboardChange{} } -func (m *BlockContentDashboardChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentDashboardChange) ProtoMessage() {} -func (*BlockContentDashboardChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{4} +func (m *Change_Block_Content) Reset() { *m = Change_Block_Content{} } +func (m *Change_Block_Content) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Content) ProtoMessage() {} +func (*Change_Block_Content) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2} } -func (m *BlockContentDashboardChange) XXX_Unmarshal(b []byte) error { +func (m *Change_Block_Content) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockContentDashboardChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Change_Block_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockContentDashboardChange.Marshal(b, m, deterministic) + return xxx_messageInfo_Change_Block_Content.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -453,82 +286,207 @@ func (m *BlockContentDashboardChange) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *BlockContentDashboardChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentDashboardChange.Merge(m, src) +func (m *Change_Block_Content) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Content.Merge(m, src) } -func (m *BlockContentDashboardChange) XXX_Size() int { +func (m *Change_Block_Content) XXX_Size() int { return m.Size() } -func (m *BlockContentDashboardChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentDashboardChange.DiscardUnknown(m) +func (m *Change_Block_Content) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Content.DiscardUnknown(m) } -var xxx_messageInfo_BlockContentDashboardChange proto.InternalMessageInfo +var xxx_messageInfo_Change_Block_Content proto.InternalMessageInfo -type isBlockContentDashboardChange_Change interface { - isBlockContentDashboardChange_Change() +type Change_Block_Content_Page struct { + // Types that are valid to be assigned to Change: + // *Change_Block_Content_Page_Style + // *Change_Block_Content_Page_Block + Change isChange_Block_Content_Page_Change `protobuf_oneof:"change"` +} + +func (m *Change_Block_Content_Page) Reset() { *m = Change_Block_Content_Page{} } +func (m *Change_Block_Content_Page) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Content_Page) ProtoMessage() {} +func (*Change_Block_Content_Page) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 0} +} +func (m *Change_Block_Content_Page) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Change_Block_Content_Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Change_Block_Content_Page.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Change_Block_Content_Page) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Content_Page.Merge(m, src) +} +func (m *Change_Block_Content_Page) XXX_Size() int { + return m.Size() +} +func (m *Change_Block_Content_Page) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Content_Page.DiscardUnknown(m) +} + +var xxx_messageInfo_Change_Block_Content_Page proto.InternalMessageInfo + +type isChange_Block_Content_Page_Change interface { + isChange_Block_Content_Page_Change() MarshalTo([]byte) (int, error) Size() int } -type BlockContentDashboardChange_Style struct { - Style Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Block_ContentDashboard_Style,oneof" json:"style,omitempty"` +type Change_Block_Content_Page_Style struct { + Style Model_Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentPage_Style,oneof" json:"style,omitempty"` } -type BlockContentDashboardChange_Header struct { - Header *Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` +type Change_Block_Content_Page_Block struct { + Block *Change_Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` } -func (*BlockContentDashboardChange_Style) isBlockContentDashboardChange_Change() {} -func (*BlockContentDashboardChange_Header) isBlockContentDashboardChange_Change() {} +func (*Change_Block_Content_Page_Style) isChange_Block_Content_Page_Change() {} +func (*Change_Block_Content_Page_Block) isChange_Block_Content_Page_Change() {} -func (m *BlockContentDashboardChange) GetChange() isBlockContentDashboardChange_Change { +func (m *Change_Block_Content_Page) GetChange() isChange_Block_Content_Page_Change { if m != nil { return m.Change } return nil } -func (m *BlockContentDashboardChange) GetStyle() Block_ContentDashboard_Style { - if x, ok := m.GetChange().(*BlockContentDashboardChange_Style); ok { +func (m *Change_Block_Content_Page) GetStyle() Model_Block_ContentPage_Style { + if x, ok := m.GetChange().(*Change_Block_Content_Page_Style); ok { return x.Style } - return Block_ContentDashboard_MAIN_SCREEN + return Model_Block_ContentPage_EMPTY } -func (m *BlockContentDashboardChange) GetHeader() *Block_Header { - if x, ok := m.GetChange().(*BlockContentDashboardChange_Header); ok { +func (m *Change_Block_Content_Page) GetBlock() *Change_Block { + if x, ok := m.GetChange().(*Change_Block_Content_Page_Block); ok { + return x.Block + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Change_Block_Content_Page) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Change_Block_Content_Page_Style)(nil), + (*Change_Block_Content_Page_Block)(nil), + } +} + +type Change_Block_Content_Dashboard struct { + // Types that are valid to be assigned to Change: + // *Change_Block_Content_Dashboard_Style + // *Change_Block_Content_Dashboard_Header + Change isChange_Block_Content_Dashboard_Change `protobuf_oneof:"change"` +} + +func (m *Change_Block_Content_Dashboard) Reset() { *m = Change_Block_Content_Dashboard{} } +func (m *Change_Block_Content_Dashboard) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Content_Dashboard) ProtoMessage() {} +func (*Change_Block_Content_Dashboard) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 1} +} +func (m *Change_Block_Content_Dashboard) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Change_Block_Content_Dashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Change_Block_Content_Dashboard.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Change_Block_Content_Dashboard) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Content_Dashboard.Merge(m, src) +} +func (m *Change_Block_Content_Dashboard) XXX_Size() int { + return m.Size() +} +func (m *Change_Block_Content_Dashboard) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Content_Dashboard.DiscardUnknown(m) +} + +var xxx_messageInfo_Change_Block_Content_Dashboard proto.InternalMessageInfo + +type isChange_Block_Content_Dashboard_Change interface { + isChange_Block_Content_Dashboard_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type Change_Block_Content_Dashboard_Style struct { + Style Model_Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentDashboard_Style,oneof" json:"style,omitempty"` +} +type Change_Block_Content_Dashboard_Header struct { + Header *Change_Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` +} + +func (*Change_Block_Content_Dashboard_Style) isChange_Block_Content_Dashboard_Change() {} +func (*Change_Block_Content_Dashboard_Header) isChange_Block_Content_Dashboard_Change() {} + +func (m *Change_Block_Content_Dashboard) GetChange() isChange_Block_Content_Dashboard_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *Change_Block_Content_Dashboard) GetStyle() Model_Block_ContentDashboard_Style { + if x, ok := m.GetChange().(*Change_Block_Content_Dashboard_Style); ok { + return x.Style + } + return Model_Block_ContentDashboard_MAIN_SCREEN +} + +func (m *Change_Block_Content_Dashboard) GetHeader() *Change_Block_Header { + if x, ok := m.GetChange().(*Change_Block_Content_Dashboard_Header); ok { return x.Header } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentDashboardChange) XXX_OneofWrappers() []interface{} { +func (*Change_Block_Content_Dashboard) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*BlockContentDashboardChange_Style)(nil), - (*BlockContentDashboardChange_Header)(nil), + (*Change_Block_Content_Dashboard_Style)(nil), + (*Change_Block_Content_Dashboard_Header)(nil), } } -type BlockContentMediaChange struct { +type Change_Block_Content_Media struct { // Types that are valid to be assigned to Change: - // *BlockContentMediaChange_Link - // *BlockContentMediaChange_State - Change isBlockContentMediaChange_Change `protobuf_oneof:"change"` + // *Change_Block_Content_Media_Link + // *Change_Block_Content_Media_State + Change isChange_Block_Content_Media_Change `protobuf_oneof:"change"` } -func (m *BlockContentMediaChange) Reset() { *m = BlockContentMediaChange{} } -func (m *BlockContentMediaChange) String() string { return proto.CompactTextString(m) } -func (*BlockContentMediaChange) ProtoMessage() {} -func (*BlockContentMediaChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{5} +func (m *Change_Block_Content_Media) Reset() { *m = Change_Block_Content_Media{} } +func (m *Change_Block_Content_Media) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Content_Media) ProtoMessage() {} +func (*Change_Block_Content_Media) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 2} } -func (m *BlockContentMediaChange) XXX_Unmarshal(b []byte) error { +func (m *Change_Block_Content_Media) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *BlockContentMediaChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Change_Block_Content_Media) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_BlockContentMediaChange.Marshal(b, m, deterministic) + return xxx_messageInfo_Change_Block_Content_Media.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -538,60 +496,210 @@ func (m *BlockContentMediaChange) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *BlockContentMediaChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockContentMediaChange.Merge(m, src) +func (m *Change_Block_Content_Media) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Content_Media.Merge(m, src) } -func (m *BlockContentMediaChange) XXX_Size() int { +func (m *Change_Block_Content_Media) XXX_Size() int { return m.Size() } -func (m *BlockContentMediaChange) XXX_DiscardUnknown() { - xxx_messageInfo_BlockContentMediaChange.DiscardUnknown(m) +func (m *Change_Block_Content_Media) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Content_Media.DiscardUnknown(m) } -var xxx_messageInfo_BlockContentMediaChange proto.InternalMessageInfo +var xxx_messageInfo_Change_Block_Content_Media proto.InternalMessageInfo -type isBlockContentMediaChange_Change interface { - isBlockContentMediaChange_Change() +type isChange_Block_Content_Media_Change interface { + isChange_Block_Content_Media_Change() MarshalTo([]byte) (int, error) Size() int } -type BlockContentMediaChange_Link struct { +type Change_Block_Content_Media_Link struct { Link string `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` } -type BlockContentMediaChange_State struct { - State Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Block_ContentMedia_State,oneof" json:"state,omitempty"` +type Change_Block_Content_Media_State struct { + State Model_Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_ContentMedia_State,oneof" json:"state,omitempty"` } -func (*BlockContentMediaChange_Link) isBlockContentMediaChange_Change() {} -func (*BlockContentMediaChange_State) isBlockContentMediaChange_Change() {} +func (*Change_Block_Content_Media_Link) isChange_Block_Content_Media_Change() {} +func (*Change_Block_Content_Media_State) isChange_Block_Content_Media_Change() {} -func (m *BlockContentMediaChange) GetChange() isBlockContentMediaChange_Change { +func (m *Change_Block_Content_Media) GetChange() isChange_Block_Content_Media_Change { if m != nil { return m.Change } return nil } -func (m *BlockContentMediaChange) GetLink() string { - if x, ok := m.GetChange().(*BlockContentMediaChange_Link); ok { +func (m *Change_Block_Content_Media) GetLink() string { + if x, ok := m.GetChange().(*Change_Block_Content_Media_Link); ok { return x.Link } return "" } -func (m *BlockContentMediaChange) GetState() Block_ContentMedia_State { - if x, ok := m.GetChange().(*BlockContentMediaChange_State); ok { +func (m *Change_Block_Content_Media) GetState() Model_Block_ContentMedia_State { + if x, ok := m.GetChange().(*Change_Block_Content_Media_State); ok { return x.State } - return Block_ContentMedia_EMPTY + return Model_Block_ContentMedia_EMPTY } // XXX_OneofWrappers is for the internal use of the proto package. -func (*BlockContentMediaChange) XXX_OneofWrappers() []interface{} { +func (*Change_Block_Content_Media) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*BlockContentMediaChange_Link)(nil), - (*BlockContentMediaChange_State)(nil), + (*Change_Block_Content_Media_Link)(nil), + (*Change_Block_Content_Media_State)(nil), + } +} + +type Change_Block_Content_Text struct { + // Types that are valid to be assigned to Change: + // *Change_Block_Content_Text_Text + // *Change_Block_Content_Text_Style + // *Change_Block_Content_Text_Marks + // *Change_Block_Content_Text_Toggleable + // *Change_Block_Content_Text_MarkerType + // *Change_Block_Content_Text_Checkable + // *Change_Block_Content_Text_Checked + Change isChange_Block_Content_Text_Change `protobuf_oneof:"change"` +} + +func (m *Change_Block_Content_Text) Reset() { *m = Change_Block_Content_Text{} } +func (m *Change_Block_Content_Text) String() string { return proto.CompactTextString(m) } +func (*Change_Block_Content_Text) ProtoMessage() {} +func (*Change_Block_Content_Text) Descriptor() ([]byte, []int) { + return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 3} +} +func (m *Change_Block_Content_Text) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Change_Block_Content_Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Change_Block_Content_Text.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Change_Block_Content_Text) XXX_Merge(src proto.Message) { + xxx_messageInfo_Change_Block_Content_Text.Merge(m, src) +} +func (m *Change_Block_Content_Text) XXX_Size() int { + return m.Size() +} +func (m *Change_Block_Content_Text) XXX_DiscardUnknown() { + xxx_messageInfo_Change_Block_Content_Text.DiscardUnknown(m) +} + +var xxx_messageInfo_Change_Block_Content_Text proto.InternalMessageInfo + +type isChange_Block_Content_Text_Change interface { + isChange_Block_Content_Text_Change() + MarshalTo([]byte) (int, error) + Size() int +} + +type Change_Block_Content_Text_Text struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` +} +type Change_Block_Content_Text_Style struct { + Style Model_Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_ContentText_Style,oneof" json:"style,omitempty"` +} +type Change_Block_Content_Text_Marks struct { + Marks *Model_Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` +} +type Change_Block_Content_Text_Toggleable struct { + Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3,oneof" json:"toggleable,omitempty"` +} +type Change_Block_Content_Text_MarkerType struct { + MarkerType Model_Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_ContentText_MarkerType,oneof" json:"markerType,omitempty"` +} +type Change_Block_Content_Text_Checkable struct { + Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3,oneof" json:"checkable,omitempty"` +} +type Change_Block_Content_Text_Checked struct { + Checked bool `protobuf:"varint,7,opt,name=checked,proto3,oneof" json:"checked,omitempty"` +} + +func (*Change_Block_Content_Text_Text) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_Style) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_Marks) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_Toggleable) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_MarkerType) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_Checkable) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_Checked) isChange_Block_Content_Text_Change() {} + +func (m *Change_Block_Content_Text) GetChange() isChange_Block_Content_Text_Change { + if m != nil { + return m.Change + } + return nil +} + +func (m *Change_Block_Content_Text) GetText() string { + if x, ok := m.GetChange().(*Change_Block_Content_Text_Text); ok { + return x.Text + } + return "" +} + +func (m *Change_Block_Content_Text) GetStyle() Model_Block_ContentText_Style { + if x, ok := m.GetChange().(*Change_Block_Content_Text_Style); ok { + return x.Style + } + return Model_Block_ContentText_p +} + +func (m *Change_Block_Content_Text) GetMarks() *Model_Block_ContentText_Marks { + if x, ok := m.GetChange().(*Change_Block_Content_Text_Marks); ok { + return x.Marks + } + return nil +} + +func (m *Change_Block_Content_Text) GetToggleable() bool { + if x, ok := m.GetChange().(*Change_Block_Content_Text_Toggleable); ok { + return x.Toggleable + } + return false +} + +func (m *Change_Block_Content_Text) GetMarkerType() Model_Block_ContentText_MarkerType { + if x, ok := m.GetChange().(*Change_Block_Content_Text_MarkerType); ok { + return x.MarkerType + } + return Model_Block_ContentText_none +} + +func (m *Change_Block_Content_Text) GetCheckable() bool { + if x, ok := m.GetChange().(*Change_Block_Content_Text_Checkable); ok { + return x.Checkable + } + return false +} + +func (m *Change_Block_Content_Text) GetChecked() bool { + if x, ok := m.GetChange().(*Change_Block_Content_Text_Checked); ok { + return x.Checked + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Change_Block_Content_Text) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Change_Block_Content_Text_Text)(nil), + (*Change_Block_Content_Text_Style)(nil), + (*Change_Block_Content_Text_Marks)(nil), + (*Change_Block_Content_Text_Toggleable)(nil), + (*Change_Block_Content_Text_MarkerType)(nil), + (*Change_Block_Content_Text_Checkable)(nil), + (*Change_Block_Content_Text_Checked)(nil), } } @@ -611,7 +719,7 @@ func (m *BlocksListSingleChange) Reset() { *m = BlocksListSingleChange{} func (m *BlocksListSingleChange) String() string { return proto.CompactTextString(m) } func (*BlocksListSingleChange) ProtoMessage() {} func (*BlocksListSingleChange) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{6} + return fileDescriptor_b16a38c6509bd894, []int{1} } func (m *BlocksListSingleChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -647,22 +755,22 @@ type isBlocksListSingleChange_Change interface { } type BlocksListSingleChange_Text struct { - Text *BlockContentTextChange `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"` + Text *Change_Block_Content_Text `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"` } type BlocksListSingleChange_BlockHeader struct { - BlockHeader *BlockHeaderChange `protobuf:"bytes,3,opt,name=blockHeader,proto3,oneof" json:"blockHeader,omitempty"` + BlockHeader *Change_Block_Header `protobuf:"bytes,3,opt,name=blockHeader,proto3,oneof" json:"blockHeader,omitempty"` } type BlocksListSingleChange_BlockChildren struct { - BlockChildren *BlockChildrenChange `protobuf:"bytes,4,opt,name=blockChildren,proto3,oneof" json:"blockChildren,omitempty"` + BlockChildren *Change_Block_Children `protobuf:"bytes,4,opt,name=blockChildren,proto3,oneof" json:"blockChildren,omitempty"` } type BlocksListSingleChange_Page struct { - Page *BlockContentPageChange `protobuf:"bytes,5,opt,name=page,proto3,oneof" json:"page,omitempty"` + Page *Change_Block_Content_Page `protobuf:"bytes,5,opt,name=page,proto3,oneof" json:"page,omitempty"` } type BlocksListSingleChange_Dashboard struct { - Dashboard *BlockContentDashboardChange `protobuf:"bytes,6,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` + Dashboard *Change_Block_Content_Dashboard `protobuf:"bytes,6,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` } type BlocksListSingleChange_Media struct { - Media *BlockContentMediaChange `protobuf:"bytes,7,opt,name=media,proto3,oneof" json:"media,omitempty"` + Media *Change_Block_Content_Media `protobuf:"bytes,7,opt,name=media,proto3,oneof" json:"media,omitempty"` } func (*BlocksListSingleChange_Text) isBlocksListSingleChange_Change() {} @@ -686,42 +794,42 @@ func (m *BlocksListSingleChange) GetId() []string { return nil } -func (m *BlocksListSingleChange) GetText() *BlockContentTextChange { +func (m *BlocksListSingleChange) GetText() *Change_Block_Content_Text { if x, ok := m.GetChange().(*BlocksListSingleChange_Text); ok { return x.Text } return nil } -func (m *BlocksListSingleChange) GetBlockHeader() *BlockHeaderChange { +func (m *BlocksListSingleChange) GetBlockHeader() *Change_Block_Header { if x, ok := m.GetChange().(*BlocksListSingleChange_BlockHeader); ok { return x.BlockHeader } return nil } -func (m *BlocksListSingleChange) GetBlockChildren() *BlockChildrenChange { +func (m *BlocksListSingleChange) GetBlockChildren() *Change_Block_Children { if x, ok := m.GetChange().(*BlocksListSingleChange_BlockChildren); ok { return x.BlockChildren } return nil } -func (m *BlocksListSingleChange) GetPage() *BlockContentPageChange { +func (m *BlocksListSingleChange) GetPage() *Change_Block_Content_Page { if x, ok := m.GetChange().(*BlocksListSingleChange_Page); ok { return x.Page } return nil } -func (m *BlocksListSingleChange) GetDashboard() *BlockContentDashboardChange { +func (m *BlocksListSingleChange) GetDashboard() *Change_Block_Content_Dashboard { if x, ok := m.GetChange().(*BlocksListSingleChange_Dashboard); ok { return x.Dashboard } return nil } -func (m *BlocksListSingleChange) GetMedia() *BlockContentMediaChange { +func (m *BlocksListSingleChange) GetMedia() *Change_Block_Content_Media { if x, ok := m.GetChange().(*BlocksListSingleChange_Media); ok { return x.Media } @@ -748,7 +856,7 @@ func (m *BlockChanges) Reset() { *m = BlockChanges{} } func (m *BlockChanges) String() string { return proto.CompactTextString(m) } func (*BlockChanges) ProtoMessage() {} func (*BlockChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_789b3a42aa974be8, []int{7} + return fileDescriptor_b16a38c6509bd894, []int{2} } func (m *BlockChanges) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -785,65 +893,69 @@ func (m *BlockChanges) GetChanges() []*BlocksListSingleChange { } func init() { - proto.RegisterType((*BlockContentTextChange)(nil), "anytype.BlockContentTextChange") - proto.RegisterType((*BlockContentPageChange)(nil), "anytype.BlockContentPageChange") - proto.RegisterType((*BlockHeaderChange)(nil), "anytype.BlockHeaderChange") - proto.RegisterType((*BlockChildrenChange)(nil), "anytype.BlockChildrenChange") - proto.RegisterType((*BlockContentDashboardChange)(nil), "anytype.BlockContentDashboardChange") - proto.RegisterType((*BlockContentMediaChange)(nil), "anytype.BlockContentMediaChange") + proto.RegisterType((*Change)(nil), "anytype.Change") + proto.RegisterType((*Change_Block)(nil), "anytype.Change.Block") + proto.RegisterType((*Change_Block_Header)(nil), "anytype.Change.Block.Header") + proto.RegisterType((*Change_Block_Children)(nil), "anytype.Change.Block.Children") + proto.RegisterType((*Change_Block_Content)(nil), "anytype.Change.Block.Content") + proto.RegisterType((*Change_Block_Content_Page)(nil), "anytype.Change.Block.Content.Page") + proto.RegisterType((*Change_Block_Content_Dashboard)(nil), "anytype.Change.Block.Content.Dashboard") + proto.RegisterType((*Change_Block_Content_Media)(nil), "anytype.Change.Block.Content.Media") + proto.RegisterType((*Change_Block_Content_Text)(nil), "anytype.Change.Block.Content.Text") proto.RegisterType((*BlocksListSingleChange)(nil), "anytype.BlocksListSingleChange") proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") } -func init() { proto.RegisterFile("block-changes.proto", fileDescriptor_789b3a42aa974be8) } +func init() { proto.RegisterFile("changes.proto", fileDescriptor_b16a38c6509bd894) } -var fileDescriptor_789b3a42aa974be8 = []byte{ - // 669 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x55, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xf6, 0xa6, 0x6d, 0xda, 0x8c, 0x7f, 0xbf, 0x0a, 0xb6, 0xfc, 0xb1, 0x42, 0x65, 0xdc, 0x0a, - 0x50, 0x2e, 0x18, 0x08, 0x42, 0xa2, 0x07, 0x38, 0xb4, 0x45, 0x04, 0x89, 0x4a, 0x95, 0xdb, 0x13, - 0xb7, 0x75, 0xbc, 0x4a, 0xac, 0xb8, 0x76, 0x64, 0xef, 0xa1, 0xb9, 0xf3, 0x00, 0xdc, 0x78, 0x03, - 0x9e, 0x85, 0x63, 0x25, 0x38, 0x70, 0x44, 0xcd, 0x8b, 0xa0, 0x19, 0x6f, 0xe2, 0x8d, 0x13, 0xca, - 0x2d, 0x33, 0x3b, 0xdf, 0xfc, 0xfb, 0x3e, 0x4f, 0x60, 0x27, 0x4c, 0xb2, 0xfe, 0xe8, 0x69, 0x7f, - 0x28, 0xd2, 0x81, 0x2c, 0xfc, 0x71, 0x9e, 0xa9, 0x8c, 0x6f, 0x8a, 0x74, 0xa2, 0x26, 0x63, 0xd9, - 0x9e, 0xbd, 0x66, 0xa9, 0x92, 0xa9, 0x2a, 0x5f, 0xf7, 0x7f, 0x34, 0xe0, 0xde, 0x21, 0xfa, 0x8f, - 0x4a, 0xf7, 0xb9, 0xbc, 0x54, 0x47, 0x84, 0xe7, 0x77, 0x60, 0x5d, 0xc9, 0x4b, 0xe5, 0x30, 0x8f, - 0x75, 0x5a, 0x3d, 0x2b, 0x20, 0x8b, 0xbf, 0x86, 0x8d, 0x42, 0x4d, 0x12, 0xe9, 0x34, 0x3c, 0xd6, - 0xd9, 0xee, 0x7a, 0xbe, 0x4e, 0xef, 0x53, 0x16, 0xdf, 0x48, 0xe3, 0x9f, 0x61, 0x5c, 0xcf, 0x0a, - 0x4a, 0x00, 0x22, 0x2f, 0x44, 0x3e, 0x2a, 0x9c, 0x35, 0x8f, 0x75, 0xec, 0x1b, 0x91, 0x27, 0x18, - 0x87, 0x48, 0x02, 0x70, 0x0f, 0x40, 0x65, 0x83, 0x41, 0x22, 0x45, 0x98, 0x48, 0x67, 0xdd, 0x63, - 0x9d, 0xad, 0x9e, 0x15, 0x18, 0x3e, 0xfe, 0x1e, 0x00, 0x43, 0x65, 0x7e, 0x3e, 0x19, 0x4b, 0x67, - 0x83, 0x5a, 0x7b, 0xfc, 0x8f, 0x02, 0x65, 0x30, 0x26, 0xaa, 0xa0, 0xdc, 0x85, 0x56, 0x7f, 0x28, - 0xfb, 0x23, 0xaa, 0xd4, 0xd4, 0x95, 0x2a, 0x17, 0x6f, 0xc3, 0x26, 0x19, 0x32, 0x72, 0x36, 0xf5, - 0xeb, 0xcc, 0x71, 0xb8, 0x05, 0xcd, 0x72, 0xf5, 0xfb, 0x9f, 0xd9, 0xe2, 0x56, 0x4f, 0xc5, 0x40, - 0xea, 0xad, 0xce, 0xf7, 0xc7, 0x6e, 0xda, 0x1f, 0x02, 0xea, 0xfb, 0x7b, 0x02, 0x1b, 0xc4, 0x20, - 0x6d, 0xde, 0xee, 0x6e, 0x2f, 0x22, 0x31, 0x8e, 0x9e, 0x8d, 0x36, 0x7e, 0x32, 0xb8, 0x5d, 0x3e, - 0x4a, 0x11, 0xc9, 0x5c, 0x77, 0x70, 0x0b, 0x1a, 0x71, 0x34, 0x67, 0xb5, 0x11, 0x47, 0xfc, 0x39, - 0xac, 0x63, 0x22, 0x4d, 0x69, 0xbb, 0xd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 0x17, 0xcb, - 0x2d, 0x5d, 0x8d, 0xf9, 0x9d, 0x78, 0x0b, 0x76, 0x58, 0x49, 0x4f, 0x7f, 0xf3, 0x35, 0x69, 0x99, - 0xb2, 0x44, 0xba, 0x0d, 0x00, 0x3f, 0x86, 0xff, 0x43, 0x93, 0x64, 0x12, 0x95, 0xdd, 0xdd, 0xad, - 0xd5, 0x5f, 0x90, 0x40, 0xcf, 0x0a, 0x16, 0x41, 0xd8, 0xfc, 0x58, 0x0c, 0xa4, 0x16, 0xdd, 0xea, - 0xe6, 0xab, 0x8f, 0x13, 0x9b, 0xc7, 0x70, 0x7e, 0x0c, 0xad, 0x68, 0xc6, 0x35, 0x5d, 0x01, 0xbb, - 0xfb, 0x68, 0x25, 0xb6, 0xa6, 0x23, 0xbc, 0x15, 0x73, 0x20, 0x1d, 0x3c, 0xa4, 0x81, 0x2e, 0xc5, - 0xd2, 0xc1, 0x5b, 0x26, 0x9c, 0x0e, 0x1e, 0x9a, 0x06, 0x51, 0x1f, 0xe0, 0x3f, 0x3d, 0x28, 0xdd, - 0x74, 0x7e, 0x80, 0xf7, 0x87, 0x7e, 0x12, 0x45, 0x4b, 0x33, 0x2d, 0xf1, 0x19, 0xcc, 0xe2, 0x0f, - 0x77, 0xbf, 0x5f, 0xbb, 0xec, 0xea, 0xda, 0x65, 0xbf, 0xaf, 0x5d, 0xf6, 0x65, 0xea, 0x5a, 0x57, - 0x53, 0xd7, 0xfa, 0x35, 0x75, 0xad, 0x4f, 0x8d, 0x71, 0x18, 0x36, 0xe9, 0xff, 0xe0, 0xe5, 0x9f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xc0, 0xbc, 0xfc, 0x44, 0x06, 0x00, 0x00, +var fileDescriptor_b16a38c6509bd894 = []byte{ + // 688 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x4f, 0x8b, 0xd3, 0x50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xd2, 0xf0, 0x0e, 0x73, 0x3e, 0x16, 0xf2, 0x21, 0xd9, 0x72, 0x07, 0xdc, 0x5e, + 0xbc, 0x03, 0x32, 0xd8, 0x1b, 0x68, 0xfb, 0xab, 0x35, 0xa2, 0x76, 0x57, 0xdf, 0xa1, 0xb5, 0xf4, + 0x62, 0xeb, 0x70, 0x2e, 0x05, 0x97, 0x3d, 0x07, 0x6d, 0x86, 0x4e, 0xa7, 0xa9, 0xe8, 0xce, 0xc3, + 0xcd, 0x49, 0x68, 0x29, 0xc8, 0x65, 0xf8, 0x51, 0x19, 0xdc, 0x5b, 0xd8, 0xed, 0xe5, 0x57, 0xa3, + 0xc7, 0x9d, 0x3d, 0xc3, 0x71, 0xd3, 0x27, 0x8d, 0x4c, 0x77, 0x1e, 0x14, 0x89, 0xd7, 0xcf, 0xd7, + 0x5b, 0xe1, 0x7b, 0x07, 0x5f, 0xaf, 0x2d, 0xf5, 0xea, 0xda, 0x52, 0x7f, 0x5d, 0x5b, 0xea, 0xa7, + 0xa5, 0xa5, 0x5c, 0x2d, 0x2d, 0xe5, 0xc7, 0xd2, 0x52, 0x3e, 0xd4, 0xe6, 0xc3, 0x61, 0x83, 0xfe, + 0x1f, 0x9e, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x92, 0xb7, 0x86, 0x94, 0x47, 0x06, 0x00, 0x00, } -func (m *BlockContentTextChange) Marshal() (dAtA []byte, err error) { +func (m *Change) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -853,12 +965,58 @@ func (m *BlockContentTextChange) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BlockContentTextChange) MarshalTo(dAtA []byte) (int, error) { +func (m *Change) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Change_Block) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Change_Block_Header) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Header) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -875,38 +1033,388 @@ func (m *BlockContentTextChange) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *BlockContentTextChange_Text) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Header_Id) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Header_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - i -= len(m.Text) - copy(dAtA[i:], m.Text) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Text))) + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *BlockContentTextChange_Style) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Header_Type) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Header_Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - i = encodeVarintBlockChanges(dAtA, i, uint64(m.Style)) + i = encodeVarintChanges(dAtA, i, uint64(m.Type)) i-- dAtA[i] = 0x10 return len(dAtA) - i, nil } -func (m *BlockContentTextChange_Marks) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Header_Name) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Header_Name) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *Change_Block_Header_Icon) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Header_Icon) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Icon) + copy(dAtA[i:], m.Icon) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Icon))) + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil +} +func (m *Change_Block_Header_Permissions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Permissions != nil { + { + size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *Change_Block_Children) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Children) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Children) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Children[iNdEx]) + copy(dAtA[i:], m.Children[iNdEx]) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Children[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Change_Block_Content) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Content) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Change_Block_Content_Page) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Content_Page) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Change_Block_Content_Page_Style) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Page_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintChanges(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Page_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Page_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Dashboard) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Content_Dashboard) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Change_Block_Content_Dashboard_Style) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Dashboard_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintChanges(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Dashboard_Header) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Dashboard_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChanges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Media) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Content_Media) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Change_Block_Content_Media_Link) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Media_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Link) + copy(dAtA[i:], m.Link) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Link))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Media_State) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Media_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintChanges(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Text) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Change_Block_Content_Text) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Change != nil { + { + size := m.Change.Size() + i -= size + if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Change_Block_Content_Text_Text) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Text_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Text) + copy(dAtA[i:], m.Text) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Text))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Text_Style) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Text_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintChanges(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x10 + return len(dAtA) - i, nil +} +func (m *Change_Block_Content_Text_Marks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Change_Block_Content_Text_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Marks != nil { { @@ -915,19 +1423,19 @@ func (m *BlockContentTextChange_Marks) MarshalToSizedBuffer(dAtA []byte) (int, e return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } -func (m *BlockContentTextChange_Toggleable) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_Toggleable) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_Toggleable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_Toggleable) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Toggleable { @@ -939,24 +1447,24 @@ func (m *BlockContentTextChange_Toggleable) MarshalToSizedBuffer(dAtA []byte) (i dAtA[i] = 0x20 return len(dAtA) - i, nil } -func (m *BlockContentTextChange_MarkerType) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_MarkerType) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_MarkerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_MarkerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - i = encodeVarintBlockChanges(dAtA, i, uint64(m.MarkerType)) + i = encodeVarintChanges(dAtA, i, uint64(m.MarkerType)) i-- dAtA[i] = 0x28 return len(dAtA) - i, nil } -func (m *BlockContentTextChange_Checkable) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_Checkable) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_Checkable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_Checkable) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Checkable { @@ -968,12 +1476,12 @@ func (m *BlockContentTextChange_Checkable) MarshalToSizedBuffer(dAtA []byte) (in dAtA[i] = 0x30 return len(dAtA) - i, nil } -func (m *BlockContentTextChange_Checked) MarshalTo(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_Checked) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlockContentTextChange_Checked) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Change_Block_Content_Text_Checked) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Checked { @@ -985,333 +1493,6 @@ func (m *BlockContentTextChange_Checked) MarshalToSizedBuffer(dAtA []byte) (int, dAtA[i] = 0x38 return len(dAtA) - i, nil } -func (m *BlockContentPageChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentPageChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentPageChange_Style) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlockChanges(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} -func (m *BlockContentPageChange_Block) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentPageChange_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHeaderChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockHeaderChange_Id) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Type) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlockChanges(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Name) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Name) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Icon) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Icon) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Icon) - copy(dAtA[i:], m.Icon) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Icon))) - i-- - dAtA[i] = 0x22 - return len(dAtA) - i, nil -} -func (m *BlockHeaderChange_Permissions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHeaderChange_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *BlockChildrenChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockChildrenChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockChildrenChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Children) > 0 { - for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Children[iNdEx]) - copy(dAtA[i:], m.Children[iNdEx]) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Children[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentDashboardChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentDashboardChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentDashboardChange_Style) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlockChanges(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} -func (m *BlockContentDashboardChange_Header) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentDashboardChange_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *BlockContentMediaChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockContentMediaChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMediaChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Change != nil { - { - size := m.Change.Size() - i -= size - if _, err := m.Change.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *BlockContentMediaChange_Link) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMediaChange_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Link) - copy(dAtA[i:], m.Link) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Link))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *BlockContentMediaChange_State) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockContentMediaChange_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintBlockChanges(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x10 - return len(dAtA) - i, nil -} func (m *BlocksListSingleChange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1345,7 +1526,7 @@ func (m *BlocksListSingleChange) MarshalToSizedBuffer(dAtA []byte) (int, error) for iNdEx := len(m.Id) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Id[iNdEx]) copy(dAtA[i:], m.Id[iNdEx]) - i = encodeVarintBlockChanges(dAtA, i, uint64(len(m.Id[iNdEx]))) + i = encodeVarintChanges(dAtA, i, uint64(len(m.Id[iNdEx]))) i-- dAtA[i] = 0xa } @@ -1367,7 +1548,7 @@ func (m *BlocksListSingleChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -1388,7 +1569,7 @@ func (m *BlocksListSingleChange_BlockHeader) MarshalToSizedBuffer(dAtA []byte) ( return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -1409,7 +1590,7 @@ func (m *BlocksListSingleChange_BlockChildren) MarshalToSizedBuffer(dAtA []byte) return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -1430,7 +1611,7 @@ func (m *BlocksListSingleChange_Page) MarshalToSizedBuffer(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a @@ -1451,7 +1632,7 @@ func (m *BlocksListSingleChange_Dashboard) MarshalToSizedBuffer(dAtA []byte) (in return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 @@ -1472,7 +1653,7 @@ func (m *BlocksListSingleChange_Media) MarshalToSizedBuffer(dAtA []byte) (int, e return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a @@ -1507,7 +1688,7 @@ func (m *BlockChanges) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintBlockChanges(dAtA, i, uint64(size)) + i = encodeVarintChanges(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1516,8 +1697,8 @@ func (m *BlockChanges) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintBlockChanges(dAtA []byte, offset int, v uint64) int { - offset -= sovBlockChanges(v) +func encodeVarintChanges(dAtA []byte, offset int, v uint64) int { + offset -= sovChanges(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1527,7 +1708,25 @@ func encodeVarintBlockChanges(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *BlockContentTextChange) Size() (n int) { +func (m *Change) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Change_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Change_Block_Header) Size() (n int) { if m == nil { return 0 } @@ -1539,158 +1738,46 @@ func (m *BlockContentTextChange) Size() (n int) { return n } -func (m *BlockContentTextChange_Text) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Text) - n += 1 + l + sovBlockChanges(uint64(l)) - return n -} -func (m *BlockContentTextChange_Style) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlockChanges(uint64(m.Style)) - return n -} -func (m *BlockContentTextChange_Marks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Marks != nil { - l = m.Marks.Size() - n += 1 + l + sovBlockChanges(uint64(l)) - } - return n -} -func (m *BlockContentTextChange_Toggleable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *BlockContentTextChange_MarkerType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlockChanges(uint64(m.MarkerType)) - return n -} -func (m *BlockContentTextChange_Checkable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *BlockContentTextChange_Checked) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *BlockContentPageChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockContentPageChange_Style) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovBlockChanges(uint64(m.Style)) - return n -} -func (m *BlockContentPageChange_Block) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovBlockChanges(uint64(l)) - } - return n -} -func (m *BlockHeaderChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Change != nil { - n += m.Change.Size() - } - return n -} - -func (m *BlockHeaderChange_Id) Size() (n int) { +func (m *Change_Block_Header_Id) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) return n } -func (m *BlockHeaderChange_Type) Size() (n int) { +func (m *Change_Block_Header_Type) Size() (n int) { if m == nil { return 0 } var l int _ = l - n += 1 + sovBlockChanges(uint64(m.Type)) + n += 1 + sovChanges(uint64(m.Type)) return n } -func (m *BlockHeaderChange_Name) Size() (n int) { +func (m *Change_Block_Header_Name) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) return n } -func (m *BlockHeaderChange_Icon) Size() (n int) { +func (m *Change_Block_Header_Icon) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Icon) - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) return n } -func (m *BlockHeaderChange_Permissions) Size() (n int) { +func (m *Change_Block_Header_Permissions) Size() (n int) { if m == nil { return 0 } @@ -1698,11 +1785,11 @@ func (m *BlockHeaderChange_Permissions) Size() (n int) { _ = l if m.Permissions != nil { l = m.Permissions.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } -func (m *BlockChildrenChange) Size() (n int) { +func (m *Change_Block_Children) Size() (n int) { if m == nil { return 0 } @@ -1711,13 +1798,22 @@ func (m *BlockChildrenChange) Size() (n int) { if len(m.Children) > 0 { for _, s := range m.Children { l = len(s) - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } } return n } -func (m *BlockContentDashboardChange) Size() (n int) { +func (m *Change_Block_Content) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Change_Block_Content_Page) Size() (n int) { if m == nil { return 0 } @@ -1729,16 +1825,49 @@ func (m *BlockContentDashboardChange) Size() (n int) { return n } -func (m *BlockContentDashboardChange_Style) Size() (n int) { +func (m *Change_Block_Content_Page_Style) Size() (n int) { if m == nil { return 0 } var l int _ = l - n += 1 + sovBlockChanges(uint64(m.Style)) + n += 1 + sovChanges(uint64(m.Style)) return n } -func (m *BlockContentDashboardChange_Header) Size() (n int) { +func (m *Change_Block_Content_Page_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovChanges(uint64(l)) + } + return n +} +func (m *Change_Block_Content_Dashboard) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *Change_Block_Content_Dashboard_Style) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovChanges(uint64(m.Style)) + return n +} +func (m *Change_Block_Content_Dashboard_Header) Size() (n int) { if m == nil { return 0 } @@ -1746,11 +1875,11 @@ func (m *BlockContentDashboardChange_Header) Size() (n int) { _ = l if m.Header != nil { l = m.Header.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } -func (m *BlockContentMediaChange) Size() (n int) { +func (m *Change_Block_Content_Media) Size() (n int) { if m == nil { return 0 } @@ -1762,23 +1891,102 @@ func (m *BlockContentMediaChange) Size() (n int) { return n } -func (m *BlockContentMediaChange_Link) Size() (n int) { +func (m *Change_Block_Content_Media_Link) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Link) - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) return n } -func (m *BlockContentMediaChange_State) Size() (n int) { +func (m *Change_Block_Content_Media_State) Size() (n int) { if m == nil { return 0 } var l int _ = l - n += 1 + sovBlockChanges(uint64(m.State)) + n += 1 + sovChanges(uint64(m.State)) + return n +} +func (m *Change_Block_Content_Text) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Change != nil { + n += m.Change.Size() + } + return n +} + +func (m *Change_Block_Content_Text_Text) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Text) + n += 1 + l + sovChanges(uint64(l)) + return n +} +func (m *Change_Block_Content_Text_Style) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovChanges(uint64(m.Style)) + return n +} +func (m *Change_Block_Content_Text_Marks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Marks != nil { + l = m.Marks.Size() + n += 1 + l + sovChanges(uint64(l)) + } + return n +} +func (m *Change_Block_Content_Text_Toggleable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *Change_Block_Content_Text_MarkerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovChanges(uint64(m.MarkerType)) + return n +} +func (m *Change_Block_Content_Text_Checkable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *Change_Block_Content_Text_Checked) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 return n } func (m *BlocksListSingleChange) Size() (n int) { @@ -1790,7 +1998,7 @@ func (m *BlocksListSingleChange) Size() (n int) { if len(m.Id) > 0 { for _, s := range m.Id { l = len(s) - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } } if m.Change != nil { @@ -1807,7 +2015,7 @@ func (m *BlocksListSingleChange_Text) Size() (n int) { _ = l if m.Text != nil { l = m.Text.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } @@ -1819,7 +2027,7 @@ func (m *BlocksListSingleChange_BlockHeader) Size() (n int) { _ = l if m.BlockHeader != nil { l = m.BlockHeader.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } @@ -1831,7 +2039,7 @@ func (m *BlocksListSingleChange_BlockChildren) Size() (n int) { _ = l if m.BlockChildren != nil { l = m.BlockChildren.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } @@ -1843,7 +2051,7 @@ func (m *BlocksListSingleChange_Page) Size() (n int) { _ = l if m.Page != nil { l = m.Page.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } @@ -1855,7 +2063,7 @@ func (m *BlocksListSingleChange_Dashboard) Size() (n int) { _ = l if m.Dashboard != nil { l = m.Dashboard.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } @@ -1867,7 +2075,7 @@ func (m *BlocksListSingleChange_Media) Size() (n int) { _ = l if m.Media != nil { l = m.Media.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } return n } @@ -1880,19 +2088,19 @@ func (m *BlockChanges) Size() (n int) { if len(m.Changes) > 0 { for _, e := range m.Changes { l = e.Size() - n += 1 + l + sovBlockChanges(uint64(l)) + n += 1 + l + sovChanges(uint64(l)) } } return n } -func sovBlockChanges(x uint64) (n int) { +func sovChanges(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozBlockChanges(x uint64) (n int) { - return sovBlockChanges(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozChanges(x uint64) (n int) { + return sovChanges(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { +func (m *Change) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1900,7 +2108,7 @@ func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1915,193 +2123,23 @@ func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockContentTextChange: wiretype end group for non-group") + return fmt.Errorf("proto: Change: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentTextChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Change: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockChanges - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockChanges - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Change = &BlockContentTextChange_Text{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - var v Block_ContentText_Style - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= Block_ContentText_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentTextChange_Style{v} - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockChanges - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockChanges - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block_ContentText_Marks{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentTextChange_Marks{v} - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Change = &BlockContentTextChange_Toggleable{b} - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) - } - var v Block_ContentText_MarkerType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= Block_ContentText_MarkerType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentTextChange_MarkerType{v} - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Change = &BlockContentTextChange_Checkable{b} - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Change = &BlockContentTextChange_Checked{b} default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2115,7 +2153,7 @@ func (m *BlockContentTextChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { +func (m *Change_Block) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2123,7 +2161,7 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2138,78 +2176,23 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockContentPageChange: wiretype end group for non-group") + return fmt.Errorf("proto: Block: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentPageChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) - } - var v Block_ContentPage_Style - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= Block_ContentPage_Style(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Change = &BlockContentPageChange_Style{v} - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockChanges - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockChanges - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockChanges - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Block{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Change = &BlockContentPageChange_Block{v} - iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2223,7 +2206,7 @@ func (m *BlockContentPageChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { +func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2231,7 +2214,7 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2246,10 +2229,10 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockHeaderChange: wiretype end group for non-group") + return fmt.Errorf("proto: Header: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHeaderChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2259,7 +2242,7 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2273,37 +2256,37 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &BlockHeaderChange_Id{string(dAtA[iNdEx:postIndex])} + m.Change = &Change_Block_Header_Id{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - var v Block_Header_Type + var v Model_Block_Header_Type for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - v |= Block_Header_Type(b&0x7F) << shift + v |= Model_Block_Header_Type(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &BlockHeaderChange_Type{v} + m.Change = &Change_Block_Header_Type{v} case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) @@ -2311,7 +2294,7 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2325,16 +2308,16 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &BlockHeaderChange_Name{string(dAtA[iNdEx:postIndex])} + m.Change = &Change_Block_Header_Name{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 2 { @@ -2343,7 +2326,7 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2357,16 +2340,16 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &BlockHeaderChange_Icon{string(dAtA[iNdEx:postIndex])} + m.Change = &Change_Block_Header_Icon{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 5: if wireType != 2 { @@ -2375,7 +2358,7 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2388,32 +2371,32 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &Block_Header_Permissions{} + v := &Model_Block_Header_Permissions{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlockHeaderChange_Permissions{v} + m.Change = &Change_Block_Header_Permissions{v} iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2427,7 +2410,7 @@ func (m *BlockHeaderChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { +func (m *Change_Block_Children) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2435,7 +2418,7 @@ func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2450,10 +2433,10 @@ func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockChildrenChange: wiretype end group for non-group") + return fmt.Errorf("proto: Children: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockChildrenChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Children: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2463,7 +2446,7 @@ func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2477,11 +2460,11 @@ func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF @@ -2490,15 +2473,15 @@ func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2512,7 +2495,7 @@ func (m *BlockChildrenChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { +func (m *Change_Block_Content) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2520,7 +2503,7 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2535,40 +2518,93 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockContentDashboardChange: wiretype end group for non-group") + return fmt.Errorf("proto: Content: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentDashboardChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Content: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Page: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Page: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Block_ContentDashboard_Style + var v Model_Block_ContentPage_Style for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - v |= Block_ContentDashboard_Style(b&0x7F) << shift + v |= Model_Block_ContentPage_Style(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &BlockContentDashboardChange_Style{v} + m.Change = &Change_Block_Content_Page_Style{v} case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2581,32 +2617,32 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &Block_Header{} + v := &Change_Block{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlockContentDashboardChange_Header{v} + m.Change = &Change_Block_Content_Page_Block{v} iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2620,7 +2656,7 @@ func (m *BlockContentDashboardChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { +func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2628,7 +2664,7 @@ func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2643,10 +2679,118 @@ func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockContentMediaChange: wiretype end group for non-group") + return fmt.Errorf("proto: Dashboard: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockContentMediaChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Dashboard: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + var v Model_Block_ContentDashboard_Style + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Block_ContentDashboard_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &Change_Block_Content_Dashboard_Style{v} + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Change_Block_Header{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &Change_Block_Content_Dashboard_Header{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Media: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Media: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2656,7 +2800,7 @@ func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2670,48 +2814,271 @@ func (m *BlockContentMediaChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &BlockContentMediaChange_Link{string(dAtA[iNdEx:postIndex])} + m.Change = &Change_Block_Content_Media_Link{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } - var v Block_ContentMedia_State + var v Model_Block_ContentMedia_State for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - v |= Block_ContentMedia_State(b&0x7F) << shift + v |= Model_Block_ContentMedia_State(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &BlockContentMediaChange_State{v} + m.Change = &Change_Block_Content_Media_State{v} default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Text: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Text: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChanges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Change = &Change_Block_Content_Text_Text{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + var v Model_Block_ContentText_Style + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Block_ContentText_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &Change_Block_Content_Text_Style{v} + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChanges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChanges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentText_Marks{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Change = &Change_Block_Content_Text_Marks{v} + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Change = &Change_Block_Content_Text_Toggleable{b} + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) + } + var v Model_Block_ContentText_MarkerType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Block_ContentText_MarkerType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Change = &Change_Block_Content_Text_MarkerType{v} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Change = &Change_Block_Content_Text_Checkable{b} + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChanges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Change = &Change_Block_Content_Text_Checked{b} + default: + iNdEx = preIndex + skippy, err := skipChanges(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChanges + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2733,7 +3100,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2761,7 +3128,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2775,11 +3142,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF @@ -2793,7 +3160,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2806,16 +3173,16 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockContentTextChange{} + v := &Change_Block_Content_Text{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2828,7 +3195,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2841,16 +3208,16 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockHeaderChange{} + v := &Change_Block_Header{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2863,7 +3230,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2876,16 +3243,16 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockChildrenChange{} + v := &Change_Block_Children{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2898,7 +3265,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2911,16 +3278,16 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockContentPageChange{} + v := &Change_Block_Content_Page{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2933,7 +3300,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2946,16 +3313,16 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockContentDashboardChange{} + v := &Change_Block_Content_Dashboard{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2968,7 +3335,7 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2981,16 +3348,16 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF } - v := &BlockContentMediaChange{} + v := &Change_Block_Content_Media{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2998,15 +3365,15 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3028,7 +3395,7 @@ func (m *BlockChanges) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3056,7 +3423,7 @@ func (m *BlockChanges) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBlockChanges + return ErrIntOverflowChanges } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3069,11 +3436,11 @@ func (m *BlockChanges) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if postIndex > l { return io.ErrUnexpectedEOF @@ -3085,15 +3452,15 @@ func (m *BlockChanges) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBlockChanges(dAtA[iNdEx:]) + skippy, err := skipChanges(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockChanges + return ErrInvalidLengthChanges } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3107,7 +3474,7 @@ func (m *BlockChanges) Unmarshal(dAtA []byte) error { } return nil } -func skipBlockChanges(dAtA []byte) (n int, err error) { +func skipChanges(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -3115,7 +3482,7 @@ func skipBlockChanges(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowBlockChanges + return 0, ErrIntOverflowChanges } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3132,7 +3499,7 @@ func skipBlockChanges(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowBlockChanges + return 0, ErrIntOverflowChanges } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3148,7 +3515,7 @@ func skipBlockChanges(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowBlockChanges + return 0, ErrIntOverflowChanges } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3161,14 +3528,14 @@ func skipBlockChanges(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthBlockChanges + return 0, ErrInvalidLengthChanges } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlockChanges + return 0, ErrUnexpectedEndOfGroupChanges } depth-- case 5: @@ -3177,7 +3544,7 @@ func skipBlockChanges(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthBlockChanges + return 0, ErrInvalidLengthChanges } if depth == 0 { return iNdEx, nil @@ -3187,7 +3554,7 @@ func skipBlockChanges(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthBlockChanges = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlockChanges = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlockChanges = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthChanges = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowChanges = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupChanges = fmt.Errorf("proto: unexpected end of group") ) diff --git a/pb/edit.pb.go b/pb/edit.pb.go index db00bc37c..5396898b7 100644 --- a/pb/edit.pb.go +++ b/pb/edit.pb.go @@ -126,9 +126,9 @@ func (m *UserBlockLeft) GetAccount() *Account { // 1. User B sets cursor or selects a text region into a text block // 2. User A receives a message about p.1 type UserBlockTextRange struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Range *Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` + Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Range *Model_Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` } func (m *UserBlockTextRange) Reset() { *m = UserBlockTextRange{} } @@ -178,7 +178,7 @@ func (m *UserBlockTextRange) GetBlockId() string { return "" } -func (m *UserBlockTextRange) GetRange() *Range { +func (m *UserBlockTextRange) GetRange() *Model_Range { if m != nil { return m.Range } @@ -310,25 +310,25 @@ func init() { func init() { proto.RegisterFile("edit.proto", fileDescriptor_f5013c7d48f38d97) } var fileDescriptor_f5013c7d48f38d97 = []byte{ - // 283 bytes of a gzipped FileDescriptorProto + // 280 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xc9, 0x2c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, - 0x12, 0x49, 0x4f, 0xcd, 0x4b, 0x2d, 0x4a, 0xcc, 0xd1, 0xcd, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0x86, - 0x48, 0x4b, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, 0xe6, 0x41, 0x55, 0x2b, 0x59, 0x73, 0xf1, 0x86, - 0x16, 0xa7, 0x16, 0x39, 0xe5, 0xe4, 0x27, 0x67, 0x7b, 0xe5, 0x67, 0xe6, 0x09, 0x69, 0x71, 0xb1, - 0x43, 0x55, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe8, 0x41, 0x0d, 0xd4, 0x73, 0x84, - 0x88, 0x07, 0xc1, 0x14, 0xa0, 0x68, 0xf6, 0x49, 0x4d, 0x2b, 0x21, 0x49, 0x73, 0x03, 0x23, 0x97, - 0x10, 0x5c, 0x77, 0x48, 0x6a, 0x45, 0x49, 0x50, 0x62, 0x5e, 0x7a, 0x2a, 0x29, 0x46, 0x08, 0x49, - 0x70, 0xb1, 0x27, 0x81, 0x74, 0x7b, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, - 0x42, 0x2a, 0x5c, 0xac, 0x45, 0x20, 0xe3, 0x24, 0x98, 0xc1, 0x66, 0xf0, 0xc1, 0xcd, 0x00, 0x5b, - 0x12, 0x04, 0x91, 0x54, 0xca, 0xe0, 0x12, 0x81, 0xbb, 0x20, 0x38, 0x35, 0x27, 0x35, 0x99, 0x0c, - 0x37, 0xa8, 0x70, 0xf1, 0x42, 0x2d, 0x2d, 0x76, 0x2c, 0x2a, 0x4a, 0xac, 0x94, 0x60, 0x52, 0x60, - 0xd6, 0xe0, 0x0c, 0x42, 0x15, 0x54, 0x72, 0xe6, 0xe2, 0x76, 0xcb, 0xcc, 0x49, 0x2d, 0x0e, 0x2d, - 0xc8, 0xc9, 0x4f, 0x4c, 0x11, 0x92, 0xe2, 0xe2, 0x48, 0xcb, 0xcc, 0x49, 0x0d, 0x48, 0x2c, 0xc9, - 0x90, 0x60, 0x04, 0xab, 0x87, 0xf3, 0x71, 0x7b, 0xca, 0x49, 0xe6, 0xc4, 0x23, 0x39, 0xc6, 0x0b, - 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, - 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x11, 0x6a, 0x0c, 0x08, 0x00, - 0x00, 0xff, 0xff, 0x9d, 0xb7, 0x83, 0x78, 0x0c, 0x02, 0x00, 0x00, + 0xe2, 0xc9, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0x86, 0x08, 0x4b, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, + 0xe6, 0x41, 0x55, 0x29, 0x59, 0x73, 0xf1, 0x86, 0x16, 0xa7, 0x16, 0x39, 0xe5, 0xe4, 0x27, 0x67, + 0x7b, 0xe5, 0x67, 0xe6, 0x09, 0x69, 0x71, 0xb1, 0x43, 0x55, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, + 0x1b, 0x09, 0xe8, 0x41, 0x0d, 0xd2, 0x73, 0x84, 0x88, 0x07, 0xc1, 0x14, 0xa0, 0x68, 0xf6, 0x49, + 0x4d, 0x2b, 0x21, 0x49, 0x73, 0x1b, 0x23, 0x97, 0x10, 0x5c, 0x77, 0x48, 0x6a, 0x45, 0x49, 0x50, + 0x62, 0x5e, 0x7a, 0x2a, 0x29, 0x46, 0x08, 0x49, 0x70, 0xb1, 0x27, 0x81, 0x74, 0x7b, 0xa6, 0x48, + 0x30, 0x29, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x42, 0x5a, 0x5c, 0xac, 0x45, 0x20, 0xe3, 0x24, + 0x98, 0xc1, 0x66, 0x88, 0xc0, 0xcd, 0xf0, 0x05, 0x85, 0x85, 0x1e, 0xd8, 0xaa, 0x20, 0x88, 0x12, + 0xa5, 0x0c, 0x2e, 0x11, 0xb8, 0x3b, 0x82, 0x53, 0x73, 0x52, 0x93, 0xc9, 0x70, 0x89, 0x0a, 0x17, + 0x2f, 0xd4, 0xea, 0x62, 0xc7, 0xa2, 0xa2, 0xc4, 0x4a, 0x09, 0x26, 0x05, 0x66, 0x0d, 0xce, 0x20, + 0x54, 0x41, 0x25, 0x67, 0x2e, 0x6e, 0xb7, 0xcc, 0x9c, 0xd4, 0xe2, 0xd0, 0x82, 0x9c, 0xfc, 0xc4, + 0x14, 0x21, 0x29, 0x2e, 0x8e, 0xb4, 0xcc, 0x9c, 0xd4, 0x80, 0xc4, 0x92, 0x0c, 0x09, 0x46, 0xb0, + 0x7a, 0x38, 0x1f, 0xb7, 0xd7, 0x9c, 0x64, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, + 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, + 0x21, 0x8a, 0xa9, 0x20, 0x29, 0x89, 0x0d, 0x1c, 0xad, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x4f, 0xb6, 0x5b, 0x3d, 0x0a, 0x02, 0x00, 0x00, } func (m *UserBlockJoin) Marshal() (dAtA []byte, err error) { @@ -945,7 +945,7 @@ func (m *UserBlockTextRange) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Range == nil { - m.Range = &Range{} + m.Range = &Model_Range{} } if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/pb/general-models.pb.go b/pb/general-models.pb.go deleted file mode 100644 index 08ad99367..000000000 --- a/pb/general-models.pb.go +++ /dev/null @@ -1,335 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: general-models.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Range struct { - From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` - To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` -} - -func (m *Range) Reset() { *m = Range{} } -func (m *Range) String() string { return proto.CompactTextString(m) } -func (*Range) ProtoMessage() {} -func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_568b6672563a50dc, []int{0} -} -func (m *Range) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Range.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Range) XXX_Merge(src proto.Message) { - xxx_messageInfo_Range.Merge(m, src) -} -func (m *Range) XXX_Size() int { - return m.Size() -} -func (m *Range) XXX_DiscardUnknown() { - xxx_messageInfo_Range.DiscardUnknown(m) -} - -var xxx_messageInfo_Range proto.InternalMessageInfo - -func (m *Range) GetFrom() int32 { - if m != nil { - return m.From - } - return 0 -} - -func (m *Range) GetTo() int32 { - if m != nil { - return m.To - } - return 0 -} - -func init() { - proto.RegisterType((*Range)(nil), "anytype.Range") -} - -func init() { proto.RegisterFile("general-models.proto", fileDescriptor_568b6672563a50dc) } - -var fileDescriptor_568b6672563a50dc = []byte{ - // 130 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4f, 0xcd, 0x4b, - 0x2d, 0x4a, 0xcc, 0xd1, 0xcd, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x55, 0xd2, 0xe6, 0x62, 0x0d, 0x4a, 0xcc, - 0x4b, 0x4f, 0x15, 0x12, 0xe2, 0x62, 0x49, 0x2b, 0xca, 0xcf, 0x95, 0x60, 0x54, 0x60, 0xd4, 0x60, - 0x0d, 0x02, 0xb3, 0x85, 0xf8, 0xb8, 0x98, 0x4a, 0xf2, 0x25, 0x98, 0xc0, 0x22, 0x4c, 0x25, 0xf9, - 0x4e, 0x32, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, - 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xc5, 0x54, 0x90, 0x94, - 0xc4, 0x06, 0x36, 0xda, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x58, 0x5d, 0xcf, 0x72, 0x00, - 0x00, 0x00, -} - -func (m *Range) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Range) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.To != 0 { - i = encodeVarintGeneralModels(dAtA, i, uint64(m.To)) - i-- - dAtA[i] = 0x10 - } - if m.From != 0 { - i = encodeVarintGeneralModels(dAtA, i, uint64(m.From)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintGeneralModels(dAtA []byte, offset int, v uint64) int { - offset -= sovGeneralModels(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Range) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.From != 0 { - n += 1 + sovGeneralModels(uint64(m.From)) - } - if m.To != 0 { - n += 1 + sovGeneralModels(uint64(m.To)) - } - return n -} - -func sovGeneralModels(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGeneralModels(x uint64) (n int) { - return sovGeneralModels(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Range) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralModels - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Range: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Range: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - m.From = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralModels - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.From |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - m.To = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralModels - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.To |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGeneralModels(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGeneralModels - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGeneralModels - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGeneralModels(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGeneralModels - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGeneralModels - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGeneralModels - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGeneralModels - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGeneralModels - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGeneralModels - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGeneralModels = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGeneralModels = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGeneralModels = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/models.pb.go b/pb/models.pb.go new file mode 100644 index 000000000..acd10fc7f --- /dev/null +++ b/pb/models.pb.go @@ -0,0 +1,5254 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: models.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Model_Block_Header_Type int32 + +const ( + Model_Block_Header_DASHBOARD Model_Block_Header_Type = 0 + Model_Block_Header_PAGE Model_Block_Header_Type = 1 + Model_Block_Header_DATAVIEW Model_Block_Header_Type = 2 + Model_Block_Header_TEXT Model_Block_Header_Type = 3 + Model_Block_Header_FILE Model_Block_Header_Type = 4 + Model_Block_Header_PICTURE Model_Block_Header_Type = 5 + Model_Block_Header_VIDEO Model_Block_Header_Type = 6 + Model_Block_Header_BOOKMARK Model_Block_Header_Type = 7 + Model_Block_Header_LAYOUT Model_Block_Header_Type = 8 + Model_Block_Header_DIV Model_Block_Header_Type = 9 +) + +var Model_Block_Header_Type_name = map[int32]string{ + 0: "DASHBOARD", + 1: "PAGE", + 2: "DATAVIEW", + 3: "TEXT", + 4: "FILE", + 5: "PICTURE", + 6: "VIDEO", + 7: "BOOKMARK", + 8: "LAYOUT", + 9: "DIV", +} + +var Model_Block_Header_Type_value = map[string]int32{ + "DASHBOARD": 0, + "PAGE": 1, + "DATAVIEW": 2, + "TEXT": 3, + "FILE": 4, + "PICTURE": 5, + "VIDEO": 6, + "BOOKMARK": 7, + "LAYOUT": 8, + "DIV": 9, +} + +func (x Model_Block_Header_Type) String() string { + return proto.EnumName(Model_Block_Header_Type_name, int32(x)) +} + +func (Model_Block_Header_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 0, 0} +} + +type Model_Block_ContentLayout_Style int32 + +const ( + Model_Block_ContentLayout_ROW Model_Block_ContentLayout_Style = 0 + Model_Block_ContentLayout_COLUMN Model_Block_ContentLayout_Style = 1 +) + +var Model_Block_ContentLayout_Style_name = map[int32]string{ + 0: "ROW", + 1: "COLUMN", +} + +var Model_Block_ContentLayout_Style_value = map[string]int32{ + "ROW": 0, + "COLUMN": 1, +} + +func (x Model_Block_ContentLayout_Style) String() string { + return proto.EnumName(Model_Block_ContentLayout_Style_name, int32(x)) +} + +func (Model_Block_ContentLayout_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 0} +} + +type Model_Block_ContentDashboard_Style int32 + +const ( + Model_Block_ContentDashboard_MAIN_SCREEN Model_Block_ContentDashboard_Style = 0 +) + +var Model_Block_ContentDashboard_Style_name = map[int32]string{ + 0: "MAIN_SCREEN", +} + +var Model_Block_ContentDashboard_Style_value = map[string]int32{ + "MAIN_SCREEN": 0, +} + +func (x Model_Block_ContentDashboard_Style) String() string { + return proto.EnumName(Model_Block_ContentDashboard_Style_name, int32(x)) +} + +func (Model_Block_ContentDashboard_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 3, 0} +} + +type Model_Block_ContentText_Style int32 + +const ( + Model_Block_ContentText_p Model_Block_ContentText_Style = 0 + Model_Block_ContentText_h1 Model_Block_ContentText_Style = 1 + Model_Block_ContentText_h2 Model_Block_ContentText_Style = 2 + Model_Block_ContentText_h3 Model_Block_ContentText_Style = 3 + Model_Block_ContentText_h4 Model_Block_ContentText_Style = 4 + Model_Block_ContentText_quote Model_Block_ContentText_Style = 5 + Model_Block_ContentText_code Model_Block_ContentText_Style = 6 +) + +var Model_Block_ContentText_Style_name = map[int32]string{ + 0: "p", + 1: "h1", + 2: "h2", + 3: "h3", + 4: "h4", + 5: "quote", + 6: "code", +} + +var Model_Block_ContentText_Style_value = map[string]int32{ + "p": 0, + "h1": 1, + "h2": 2, + "h3": 3, + "h4": 4, + "quote": 5, + "code": 6, +} + +func (x Model_Block_ContentText_Style) String() string { + return proto.EnumName(Model_Block_ContentText_Style_name, int32(x)) +} + +func (Model_Block_ContentText_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 0} +} + +type Model_Block_ContentText_MarkerType int32 + +const ( + Model_Block_ContentText_none Model_Block_ContentText_MarkerType = 0 + Model_Block_ContentText_number Model_Block_ContentText_MarkerType = 1 + Model_Block_ContentText_bullet Model_Block_ContentText_MarkerType = 2 +) + +var Model_Block_ContentText_MarkerType_name = map[int32]string{ + 0: "none", + 1: "number", + 2: "bullet", +} + +var Model_Block_ContentText_MarkerType_value = map[string]int32{ + "none": 0, + "number": 1, + "bullet": 2, +} + +func (x Model_Block_ContentText_MarkerType) String() string { + return proto.EnumName(Model_Block_ContentText_MarkerType_name, int32(x)) +} + +func (Model_Block_ContentText_MarkerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 1} +} + +type Model_Block_ContentText_Mark_Type int32 + +const ( + Model_Block_ContentText_Mark_STRIKETHROUGH Model_Block_ContentText_Mark_Type = 0 + Model_Block_ContentText_Mark_KEYBOARD Model_Block_ContentText_Mark_Type = 1 + Model_Block_ContentText_Mark_ITALIC Model_Block_ContentText_Mark_Type = 2 + Model_Block_ContentText_Mark_BOLD Model_Block_ContentText_Mark_Type = 3 + Model_Block_ContentText_Mark_LINK Model_Block_ContentText_Mark_Type = 4 +) + +var Model_Block_ContentText_Mark_Type_name = map[int32]string{ + 0: "STRIKETHROUGH", + 1: "KEYBOARD", + 2: "ITALIC", + 3: "BOLD", + 4: "LINK", +} + +var Model_Block_ContentText_Mark_Type_value = map[string]int32{ + "STRIKETHROUGH": 0, + "KEYBOARD": 1, + "ITALIC": 2, + "BOLD": 3, + "LINK": 4, +} + +func (x Model_Block_ContentText_Mark_Type) String() string { + return proto.EnumName(Model_Block_ContentText_Mark_Type_name, int32(x)) +} + +func (Model_Block_ContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 1, 0} +} + +type Model_Block_ContentMedia_State int32 + +const ( + Model_Block_ContentMedia_EMPTY Model_Block_ContentMedia_State = 0 + Model_Block_ContentMedia_UPLOADING Model_Block_ContentMedia_State = 1 + Model_Block_ContentMedia_PREVIEW Model_Block_ContentMedia_State = 2 + Model_Block_ContentMedia_DOWNLOADING Model_Block_ContentMedia_State = 3 + Model_Block_ContentMedia_DONE Model_Block_ContentMedia_State = 4 +) + +var Model_Block_ContentMedia_State_name = map[int32]string{ + 0: "EMPTY", + 1: "UPLOADING", + 2: "PREVIEW", + 3: "DOWNLOADING", + 4: "DONE", +} + +var Model_Block_ContentMedia_State_value = map[string]int32{ + "EMPTY": 0, + "UPLOADING": 1, + "PREVIEW": 2, + "DOWNLOADING": 3, + "DONE": 4, +} + +func (x Model_Block_ContentMedia_State) String() string { + return proto.EnumName(Model_Block_ContentMedia_State_name, int32(x)) +} + +func (Model_Block_ContentMedia_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 0} +} + +type Model_Block_ContentPage_Style int32 + +const ( + Model_Block_ContentPage_EMPTY Model_Block_ContentPage_Style = 0 + Model_Block_ContentPage_TASK Model_Block_ContentPage_Style = 1 + Model_Block_ContentPage_BOOKMARK Model_Block_ContentPage_Style = 2 + Model_Block_ContentPage_SET Model_Block_ContentPage_Style = 3 +) + +var Model_Block_ContentPage_Style_name = map[int32]string{ + 0: "EMPTY", + 1: "TASK", + 2: "BOOKMARK", + 3: "SET", +} + +var Model_Block_ContentPage_Style_value = map[string]int32{ + "EMPTY": 0, + "TASK": 1, + "BOOKMARK": 2, + "SET": 3, +} + +func (x Model_Block_ContentPage_Style) String() string { + return proto.EnumName(Model_Block_ContentPage_Style_name, int32(x)) +} + +func (Model_Block_ContentPage_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 7, 0} +} + +type Model struct { +} + +func (m *Model) Reset() { *m = Model{} } +func (m *Model) String() string { return proto.CompactTextString(m) } +func (*Model) ProtoMessage() {} +func (*Model) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0} +} +func (m *Model) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model.Merge(m, src) +} +func (m *Model) XXX_Size() int { + return m.Size() +} +func (m *Model) XXX_DiscardUnknown() { + xxx_messageInfo_Model.DiscardUnknown(m) +} + +var xxx_messageInfo_Model proto.InternalMessageInfo + +type Model_Block struct { + Header *Model_Block_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` + // Types that are valid to be assigned to Content: + // *Model_Block_Dashboard + // *Model_Block_Page + // *Model_Block_Dataview + // *Model_Block_Text + // *Model_Block_Media + // *Model_Block_Layout + // *Model_Block_Div + Content isModel_Block_Content `protobuf_oneof:"content"` +} + +func (m *Model_Block) Reset() { *m = Model_Block{} } +func (m *Model_Block) String() string { return proto.CompactTextString(m) } +func (*Model_Block) ProtoMessage() {} +func (*Model_Block) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0} +} +func (m *Model_Block) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block.Merge(m, src) +} +func (m *Model_Block) XXX_Size() int { + return m.Size() +} +func (m *Model_Block) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block proto.InternalMessageInfo + +type isModel_Block_Content interface { + isModel_Block_Content() + MarshalTo([]byte) (int, error) + Size() int +} + +type Model_Block_Dashboard struct { + Dashboard *Model_Block_ContentDashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` +} +type Model_Block_Page struct { + Page *Model_Block_ContentPage `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` +} +type Model_Block_Dataview struct { + Dataview *Model_Block_ContentDataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` +} +type Model_Block_Text struct { + Text *Model_Block_ContentText `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` +} +type Model_Block_Media struct { + Media *Model_Block_ContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` +} +type Model_Block_Layout struct { + Layout *Model_Block_ContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` +} +type Model_Block_Div struct { + Div *Model_Block_ContentDiv `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` +} + +func (*Model_Block_Dashboard) isModel_Block_Content() {} +func (*Model_Block_Page) isModel_Block_Content() {} +func (*Model_Block_Dataview) isModel_Block_Content() {} +func (*Model_Block_Text) isModel_Block_Content() {} +func (*Model_Block_Media) isModel_Block_Content() {} +func (*Model_Block_Layout) isModel_Block_Content() {} +func (*Model_Block_Div) isModel_Block_Content() {} + +func (m *Model_Block) GetContent() isModel_Block_Content { + if m != nil { + return m.Content + } + return nil +} + +func (m *Model_Block) GetHeader() *Model_Block_Header { + if m != nil { + return m.Header + } + return nil +} + +func (m *Model_Block) GetChildren() []string { + if m != nil { + return m.Children + } + return nil +} + +func (m *Model_Block) GetDashboard() *Model_Block_ContentDashboard { + if x, ok := m.GetContent().(*Model_Block_Dashboard); ok { + return x.Dashboard + } + return nil +} + +func (m *Model_Block) GetPage() *Model_Block_ContentPage { + if x, ok := m.GetContent().(*Model_Block_Page); ok { + return x.Page + } + return nil +} + +func (m *Model_Block) GetDataview() *Model_Block_ContentDataview { + if x, ok := m.GetContent().(*Model_Block_Dataview); ok { + return x.Dataview + } + return nil +} + +func (m *Model_Block) GetText() *Model_Block_ContentText { + if x, ok := m.GetContent().(*Model_Block_Text); ok { + return x.Text + } + return nil +} + +func (m *Model_Block) GetMedia() *Model_Block_ContentMedia { + if x, ok := m.GetContent().(*Model_Block_Media); ok { + return x.Media + } + return nil +} + +func (m *Model_Block) GetLayout() *Model_Block_ContentLayout { + if x, ok := m.GetContent().(*Model_Block_Layout); ok { + return x.Layout + } + return nil +} + +func (m *Model_Block) GetDiv() *Model_Block_ContentDiv { + if x, ok := m.GetContent().(*Model_Block_Div); ok { + return x.Div + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Model_Block) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Model_Block_Dashboard)(nil), + (*Model_Block_Page)(nil), + (*Model_Block_Dataview)(nil), + (*Model_Block_Text)(nil), + (*Model_Block_Media)(nil), + (*Model_Block_Layout)(nil), + (*Model_Block_Div)(nil), + } +} + +type Model_Block_Header struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type Model_Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` + Fields *Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + Permissions *Model_Block_Header_Permissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` +} + +func (m *Model_Block_Header) Reset() { *m = Model_Block_Header{} } +func (m *Model_Block_Header) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Header) ProtoMessage() {} +func (*Model_Block_Header) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 0} +} +func (m *Model_Block_Header) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_Header.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Header.Merge(m, src) +} +func (m *Model_Block_Header) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_Header) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Header.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_Header proto.InternalMessageInfo + +func (m *Model_Block_Header) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Model_Block_Header) GetType() Model_Block_Header_Type { + if m != nil { + return m.Type + } + return Model_Block_Header_DASHBOARD +} + +func (m *Model_Block_Header) GetFields() *Struct { + if m != nil { + return m.Fields + } + return nil +} + +func (m *Model_Block_Header) GetPermissions() *Model_Block_Header_Permissions { + if m != nil { + return m.Permissions + } + return nil +} + +type Model_Block_Header_Permissions struct { + Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` + Edit bool `protobuf:"varint,2,opt,name=edit,proto3" json:"edit,omitempty"` + Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"` + Drag bool `protobuf:"varint,4,opt,name=drag,proto3" json:"drag,omitempty"` + DropOn bool `protobuf:"varint,5,opt,name=dropOn,proto3" json:"dropOn,omitempty"` +} + +func (m *Model_Block_Header_Permissions) Reset() { *m = Model_Block_Header_Permissions{} } +func (m *Model_Block_Header_Permissions) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Header_Permissions) ProtoMessage() {} +func (*Model_Block_Header_Permissions) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 0, 0} +} +func (m *Model_Block_Header_Permissions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_Header_Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_Header_Permissions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_Header_Permissions) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Header_Permissions.Merge(m, src) +} +func (m *Model_Block_Header_Permissions) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_Header_Permissions) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Header_Permissions.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_Header_Permissions proto.InternalMessageInfo + +func (m *Model_Block_Header_Permissions) GetRead() bool { + if m != nil { + return m.Read + } + return false +} + +func (m *Model_Block_Header_Permissions) GetEdit() bool { + if m != nil { + return m.Edit + } + return false +} + +func (m *Model_Block_Header_Permissions) GetRemove() bool { + if m != nil { + return m.Remove + } + return false +} + +func (m *Model_Block_Header_Permissions) GetDrag() bool { + if m != nil { + return m.Drag + } + return false +} + +func (m *Model_Block_Header_Permissions) GetDropOn() bool { + if m != nil { + return m.DropOn + } + return false +} + +type Model_Block_ContentLayout struct { + Style Model_Block_ContentLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentLayout_Style" json:"style,omitempty"` +} + +func (m *Model_Block_ContentLayout) Reset() { *m = Model_Block_ContentLayout{} } +func (m *Model_Block_ContentLayout) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentLayout) ProtoMessage() {} +func (*Model_Block_ContentLayout) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1} +} +func (m *Model_Block_ContentLayout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentLayout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentLayout.Merge(m, src) +} +func (m *Model_Block_ContentLayout) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentLayout) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentLayout.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentLayout proto.InternalMessageInfo + +func (m *Model_Block_ContentLayout) GetStyle() Model_Block_ContentLayout_Style { + if m != nil { + return m.Style + } + return Model_Block_ContentLayout_ROW +} + +type Model_Block_ContentDiv struct { +} + +func (m *Model_Block_ContentDiv) Reset() { *m = Model_Block_ContentDiv{} } +func (m *Model_Block_ContentDiv) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentDiv) ProtoMessage() {} +func (*Model_Block_ContentDiv) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 2} +} +func (m *Model_Block_ContentDiv) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentDiv.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentDiv) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentDiv.Merge(m, src) +} +func (m *Model_Block_ContentDiv) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentDiv) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentDiv.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentDiv proto.InternalMessageInfo + +type Model_Block_ContentDashboard struct { + Style Model_Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentDashboard_Style" json:"style,omitempty"` + Headers []*Model_Block_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` +} + +func (m *Model_Block_ContentDashboard) Reset() { *m = Model_Block_ContentDashboard{} } +func (m *Model_Block_ContentDashboard) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentDashboard) ProtoMessage() {} +func (*Model_Block_ContentDashboard) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 3} +} +func (m *Model_Block_ContentDashboard) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentDashboard.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentDashboard) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentDashboard.Merge(m, src) +} +func (m *Model_Block_ContentDashboard) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentDashboard) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentDashboard.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentDashboard proto.InternalMessageInfo + +func (m *Model_Block_ContentDashboard) GetStyle() Model_Block_ContentDashboard_Style { + if m != nil { + return m.Style + } + return Model_Block_ContentDashboard_MAIN_SCREEN +} + +func (m *Model_Block_ContentDashboard) GetHeaders() []*Model_Block_Header { + if m != nil { + return m.Headers + } + return nil +} + +type Model_Block_ContentDataview struct { +} + +func (m *Model_Block_ContentDataview) Reset() { *m = Model_Block_ContentDataview{} } +func (m *Model_Block_ContentDataview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentDataview) ProtoMessage() {} +func (*Model_Block_ContentDataview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 4} +} +func (m *Model_Block_ContentDataview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentDataview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentDataview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentDataview.Merge(m, src) +} +func (m *Model_Block_ContentDataview) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentDataview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentDataview.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentDataview proto.InternalMessageInfo + +type Model_Block_ContentText struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Style Model_Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_ContentText_Style" json:"style,omitempty"` + MarksList *Model_Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` + Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` + MarkerType Model_Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_ContentText_MarkerType" json:"markerType,omitempty"` + Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` + Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` +} + +func (m *Model_Block_ContentText) Reset() { *m = Model_Block_ContentText{} } +func (m *Model_Block_ContentText) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentText) ProtoMessage() {} +func (*Model_Block_ContentText) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 5} +} +func (m *Model_Block_ContentText) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentText.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentText) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentText.Merge(m, src) +} +func (m *Model_Block_ContentText) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentText) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentText.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentText proto.InternalMessageInfo + +func (m *Model_Block_ContentText) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *Model_Block_ContentText) GetStyle() Model_Block_ContentText_Style { + if m != nil { + return m.Style + } + return Model_Block_ContentText_p +} + +func (m *Model_Block_ContentText) GetMarksList() *Model_Block_ContentText_Marks { + if m != nil { + return m.MarksList + } + return nil +} + +func (m *Model_Block_ContentText) GetToggleable() bool { + if m != nil { + return m.Toggleable + } + return false +} + +func (m *Model_Block_ContentText) GetMarkerType() Model_Block_ContentText_MarkerType { + if m != nil { + return m.MarkerType + } + return Model_Block_ContentText_none +} + +func (m *Model_Block_ContentText) GetCheckable() bool { + if m != nil { + return m.Checkable + } + return false +} + +func (m *Model_Block_ContentText) GetChecked() bool { + if m != nil { + return m.Checked + } + return false +} + +type Model_Block_ContentText_Marks struct { + Marks []*Model_Block_ContentText_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` +} + +func (m *Model_Block_ContentText_Marks) Reset() { *m = Model_Block_ContentText_Marks{} } +func (m *Model_Block_ContentText_Marks) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentText_Marks) ProtoMessage() {} +func (*Model_Block_ContentText_Marks) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 0} +} +func (m *Model_Block_ContentText_Marks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentText_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentText_Marks.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentText_Marks) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentText_Marks.Merge(m, src) +} +func (m *Model_Block_ContentText_Marks) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentText_Marks) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentText_Marks.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentText_Marks proto.InternalMessageInfo + +func (m *Model_Block_ContentText_Marks) GetMarks() []*Model_Block_ContentText_Mark { + if m != nil { + return m.Marks + } + return nil +} + +type Model_Block_ContentText_Mark struct { + Range *Model_Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` + Type Model_Block_ContentText_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_ContentText_Mark_Type" json:"type,omitempty"` + Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` +} + +func (m *Model_Block_ContentText_Mark) Reset() { *m = Model_Block_ContentText_Mark{} } +func (m *Model_Block_ContentText_Mark) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentText_Mark) ProtoMessage() {} +func (*Model_Block_ContentText_Mark) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 1} +} +func (m *Model_Block_ContentText_Mark) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentText_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentText_Mark.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentText_Mark) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentText_Mark.Merge(m, src) +} +func (m *Model_Block_ContentText_Mark) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentText_Mark) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentText_Mark.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentText_Mark proto.InternalMessageInfo + +func (m *Model_Block_ContentText_Mark) GetRange() *Model_Range { + if m != nil { + return m.Range + } + return nil +} + +func (m *Model_Block_ContentText_Mark) GetType() Model_Block_ContentText_Mark_Type { + if m != nil { + return m.Type + } + return Model_Block_ContentText_Mark_STRIKETHROUGH +} + +func (m *Model_Block_ContentText_Mark) GetParam() string { + if m != nil { + return m.Param + } + return "" +} + +type Model_Block_ContentMedia struct { + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + State Model_Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_ContentMedia_State" json:"state,omitempty"` + // Types that are valid to be assigned to Preview: + // *Model_Block_ContentMedia_Video + // *Model_Block_ContentMedia_Image + // *Model_Block_ContentMedia_File + Preview isModel_Block_ContentMedia_Preview `protobuf_oneof:"preview"` +} + +func (m *Model_Block_ContentMedia) Reset() { *m = Model_Block_ContentMedia{} } +func (m *Model_Block_ContentMedia) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentMedia) ProtoMessage() {} +func (*Model_Block_ContentMedia) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 6} +} +func (m *Model_Block_ContentMedia) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentMedia.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentMedia.Merge(m, src) +} +func (m *Model_Block_ContentMedia) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentMedia) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentMedia.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentMedia proto.InternalMessageInfo + +type isModel_Block_ContentMedia_Preview interface { + isModel_Block_ContentMedia_Preview() + MarshalTo([]byte) (int, error) + Size() int +} + +type Model_Block_ContentMedia_Video struct { + Video *Model_Block_ContentMedia_VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` +} +type Model_Block_ContentMedia_Image struct { + Image *Model_Block_ContentMedia_ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` +} +type Model_Block_ContentMedia_File struct { + File *Model_Block_ContentMedia_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` +} + +func (*Model_Block_ContentMedia_Video) isModel_Block_ContentMedia_Preview() {} +func (*Model_Block_ContentMedia_Image) isModel_Block_ContentMedia_Preview() {} +func (*Model_Block_ContentMedia_File) isModel_Block_ContentMedia_Preview() {} + +func (m *Model_Block_ContentMedia) GetPreview() isModel_Block_ContentMedia_Preview { + if m != nil { + return m.Preview + } + return nil +} + +func (m *Model_Block_ContentMedia) GetContent() []byte { + if m != nil { + return m.Content + } + return nil +} + +func (m *Model_Block_ContentMedia) GetState() Model_Block_ContentMedia_State { + if m != nil { + return m.State + } + return Model_Block_ContentMedia_EMPTY +} + +func (m *Model_Block_ContentMedia) GetVideo() *Model_Block_ContentMedia_VideoPreview { + if x, ok := m.GetPreview().(*Model_Block_ContentMedia_Video); ok { + return x.Video + } + return nil +} + +func (m *Model_Block_ContentMedia) GetImage() *Model_Block_ContentMedia_ImagePreview { + if x, ok := m.GetPreview().(*Model_Block_ContentMedia_Image); ok { + return x.Image + } + return nil +} + +func (m *Model_Block_ContentMedia) GetFile() *Model_Block_ContentMedia_FilePreview { + if x, ok := m.GetPreview().(*Model_Block_ContentMedia_File); ok { + return x.File + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Model_Block_ContentMedia) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Model_Block_ContentMedia_Video)(nil), + (*Model_Block_ContentMedia_Image)(nil), + (*Model_Block_ContentMedia_File)(nil), + } +} + +type Model_Block_ContentMedia_VideoPreview struct { + Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *Model_Block_ContentMedia_VideoPreview) Reset() { *m = Model_Block_ContentMedia_VideoPreview{} } +func (m *Model_Block_ContentMedia_VideoPreview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentMedia_VideoPreview) ProtoMessage() {} +func (*Model_Block_ContentMedia_VideoPreview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 0} +} +func (m *Model_Block_ContentMedia_VideoPreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentMedia_VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentMedia_VideoPreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentMedia_VideoPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentMedia_VideoPreview.Merge(m, src) +} +func (m *Model_Block_ContentMedia_VideoPreview) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentMedia_VideoPreview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentMedia_VideoPreview.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentMedia_VideoPreview proto.InternalMessageInfo + +func (m *Model_Block_ContentMedia_VideoPreview) GetThumbnail() []byte { + if m != nil { + return m.Thumbnail + } + return nil +} + +func (m *Model_Block_ContentMedia_VideoPreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Model_Block_ContentMedia_VideoPreview) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type Model_Block_ContentMedia_ImagePreview struct { + Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *Model_Block_ContentMedia_ImagePreview) Reset() { *m = Model_Block_ContentMedia_ImagePreview{} } +func (m *Model_Block_ContentMedia_ImagePreview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentMedia_ImagePreview) ProtoMessage() {} +func (*Model_Block_ContentMedia_ImagePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 1} +} +func (m *Model_Block_ContentMedia_ImagePreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentMedia_ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentMedia_ImagePreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentMedia_ImagePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentMedia_ImagePreview.Merge(m, src) +} +func (m *Model_Block_ContentMedia_ImagePreview) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentMedia_ImagePreview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentMedia_ImagePreview.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentMedia_ImagePreview proto.InternalMessageInfo + +func (m *Model_Block_ContentMedia_ImagePreview) GetThumbnail() []byte { + if m != nil { + return m.Thumbnail + } + return nil +} + +func (m *Model_Block_ContentMedia_ImagePreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Model_Block_ContentMedia_ImagePreview) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type Model_Block_ContentMedia_FilePreview struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` +} + +func (m *Model_Block_ContentMedia_FilePreview) Reset() { *m = Model_Block_ContentMedia_FilePreview{} } +func (m *Model_Block_ContentMedia_FilePreview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentMedia_FilePreview) ProtoMessage() {} +func (*Model_Block_ContentMedia_FilePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 2} +} +func (m *Model_Block_ContentMedia_FilePreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentMedia_FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentMedia_FilePreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentMedia_FilePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentMedia_FilePreview.Merge(m, src) +} +func (m *Model_Block_ContentMedia_FilePreview) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentMedia_FilePreview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentMedia_FilePreview.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentMedia_FilePreview proto.InternalMessageInfo + +func (m *Model_Block_ContentMedia_FilePreview) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Model_Block_ContentMedia_FilePreview) GetIcon() string { + if m != nil { + return m.Icon + } + return "" +} + +type Model_Block_ContentPage struct { + Style Model_Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentPage_Style" json:"style,omitempty"` + Blocks []*Model_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` +} + +func (m *Model_Block_ContentPage) Reset() { *m = Model_Block_ContentPage{} } +func (m *Model_Block_ContentPage) String() string { return proto.CompactTextString(m) } +func (*Model_Block_ContentPage) ProtoMessage() {} +func (*Model_Block_ContentPage) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 7} +} +func (m *Model_Block_ContentPage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_ContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_ContentPage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_ContentPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_ContentPage.Merge(m, src) +} +func (m *Model_Block_ContentPage) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_ContentPage) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_ContentPage.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_ContentPage proto.InternalMessageInfo + +func (m *Model_Block_ContentPage) GetStyle() Model_Block_ContentPage_Style { + if m != nil { + return m.Style + } + return Model_Block_ContentPage_EMPTY +} + +func (m *Model_Block_ContentPage) GetBlocks() []*Model_Block { + if m != nil { + return m.Blocks + } + return nil +} + +type Model_Range struct { + From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` + To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` +} + +func (m *Model_Range) Reset() { *m = Model_Range{} } +func (m *Model_Range) String() string { return proto.CompactTextString(m) } +func (*Model_Range) ProtoMessage() {} +func (*Model_Range) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 1} +} +func (m *Model_Range) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Range.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Range) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Range.Merge(m, src) +} +func (m *Model_Range) XXX_Size() int { + return m.Size() +} +func (m *Model_Range) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Range.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Range proto.InternalMessageInfo + +func (m *Model_Range) GetFrom() int32 { + if m != nil { + return m.From + } + return 0 +} + +func (m *Model_Range) GetTo() int32 { + if m != nil { + return m.To + } + return 0 +} + +func init() { + proto.RegisterEnum("anytype.Model_Block_Header_Type", Model_Block_Header_Type_name, Model_Block_Header_Type_value) + proto.RegisterEnum("anytype.Model_Block_ContentLayout_Style", Model_Block_ContentLayout_Style_name, Model_Block_ContentLayout_Style_value) + proto.RegisterEnum("anytype.Model_Block_ContentDashboard_Style", Model_Block_ContentDashboard_Style_name, Model_Block_ContentDashboard_Style_value) + proto.RegisterEnum("anytype.Model_Block_ContentText_Style", Model_Block_ContentText_Style_name, Model_Block_ContentText_Style_value) + proto.RegisterEnum("anytype.Model_Block_ContentText_MarkerType", Model_Block_ContentText_MarkerType_name, Model_Block_ContentText_MarkerType_value) + proto.RegisterEnum("anytype.Model_Block_ContentText_Mark_Type", Model_Block_ContentText_Mark_Type_name, Model_Block_ContentText_Mark_Type_value) + proto.RegisterEnum("anytype.Model_Block_ContentMedia_State", Model_Block_ContentMedia_State_name, Model_Block_ContentMedia_State_value) + proto.RegisterEnum("anytype.Model_Block_ContentPage_Style", Model_Block_ContentPage_Style_name, Model_Block_ContentPage_Style_value) + proto.RegisterType((*Model)(nil), "anytype.Model") + proto.RegisterType((*Model_Block)(nil), "anytype.Model.Block") + proto.RegisterType((*Model_Block_Header)(nil), "anytype.Model.Block.Header") + proto.RegisterType((*Model_Block_Header_Permissions)(nil), "anytype.Model.Block.Header.Permissions") + proto.RegisterType((*Model_Block_ContentLayout)(nil), "anytype.Model.Block.ContentLayout") + proto.RegisterType((*Model_Block_ContentDiv)(nil), "anytype.Model.Block.ContentDiv") + proto.RegisterType((*Model_Block_ContentDashboard)(nil), "anytype.Model.Block.ContentDashboard") + proto.RegisterType((*Model_Block_ContentDataview)(nil), "anytype.Model.Block.ContentDataview") + proto.RegisterType((*Model_Block_ContentText)(nil), "anytype.Model.Block.ContentText") + proto.RegisterType((*Model_Block_ContentText_Marks)(nil), "anytype.Model.Block.ContentText.Marks") + proto.RegisterType((*Model_Block_ContentText_Mark)(nil), "anytype.Model.Block.ContentText.Mark") + proto.RegisterType((*Model_Block_ContentMedia)(nil), "anytype.Model.Block.ContentMedia") + proto.RegisterType((*Model_Block_ContentMedia_VideoPreview)(nil), "anytype.Model.Block.ContentMedia.VideoPreview") + proto.RegisterType((*Model_Block_ContentMedia_ImagePreview)(nil), "anytype.Model.Block.ContentMedia.ImagePreview") + proto.RegisterType((*Model_Block_ContentMedia_FilePreview)(nil), "anytype.Model.Block.ContentMedia.FilePreview") + proto.RegisterType((*Model_Block_ContentPage)(nil), "anytype.Model.Block.ContentPage") + proto.RegisterType((*Model_Range)(nil), "anytype.Model.Range") +} + +func init() { proto.RegisterFile("models.proto", fileDescriptor_0b5431a010549573) } + +var fileDescriptor_0b5431a010549573 = []byte{ + // 1274 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x8f, 0xdb, 0x44, + 0x18, 0xb6, 0x13, 0x3b, 0x1f, 0x6f, 0xb2, 0xbb, 0xd3, 0x51, 0x55, 0x59, 0xa6, 0x0a, 0x4b, 0x44, + 0xe9, 0xaa, 0x85, 0x48, 0x74, 0x5b, 0x24, 0x44, 0xa9, 0x94, 0x0f, 0x77, 0x63, 0xe5, 0x53, 0x93, + 0xec, 0x96, 0x72, 0x41, 0x4e, 0x3c, 0x9b, 0x58, 0x4d, 0xec, 0xe0, 0x78, 0xb7, 0x5d, 0x89, 0x9f, + 0xc0, 0x81, 0x5f, 0xc1, 0x91, 0x3f, 0xc0, 0x91, 0x0b, 0xc7, 0x72, 0x83, 0x1b, 0x6a, 0x7f, 0x05, + 0x37, 0x34, 0xef, 0x38, 0x89, 0xb7, 0x2a, 0x9b, 0x3d, 0x70, 0xf2, 0xbc, 0x33, 0xcf, 0xf3, 0x7e, + 0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x25, 0xc6, 0xdb, 0xc0, 0x1a, 0x92, 0xb4, 0xf0, 0x3d, 0x2e, 0x06, + 0xf3, 0x3e, 0xe8, 0xd8, 0x5b, 0xc4, 0x75, 0x9d, 0x86, 0xc1, 0x1c, 0x7d, 0xd6, 0x19, 0xae, 0xc5, + 0xcf, 0x51, 0x14, 0xe0, 0x05, 0xea, 0x2c, 0x15, 0x05, 0xb5, 0xdb, 0xbf, 0xbf, 0x29, 0xa9, 0xaf, + 0xdf, 0x94, 0xd4, 0xbf, 0xdf, 0x94, 0xd4, 0x9f, 0xde, 0x96, 0x94, 0xd7, 0x6f, 0x4b, 0xca, 0x9f, + 0x6f, 0x4b, 0xca, 0xb7, 0xa9, 0xc5, 0x68, 0x94, 0xc1, 0x5f, 0xed, 0xc3, 0x7f, 0x03, 0x00, 0x00, + 0xff, 0xff, 0x0c, 0x3d, 0xcc, 0x16, 0x91, 0x0b, 0x00, 0x00, +} + +func (m *Model) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Model_Block) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Content != nil { + { + size := m.Content.Size() + i -= size + if _, err := m.Content.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Children[iNdEx]) + copy(dAtA[i:], m.Children[iNdEx]) + i = encodeVarintModels(dAtA, i, uint64(len(m.Children[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_Dashboard) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Dashboard != nil { + { + size, err := m.Dashboard.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Page) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Page != nil { + { + size, err := m.Page.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Dataview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Dataview != nil { + { + size, err := m.Dataview.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Text) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Text != nil { + { + size, err := m.Text.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Media) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Media != nil { + { + size, err := m.Media.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Layout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Layout != nil { + { + size, err := m.Layout.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Div) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Div != nil { + { + size, err := m.Div.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + return len(dAtA) - i, nil +} +func (m *Model_Block_Header) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_Header) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Permissions != nil { + { + size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Fields != nil { + { + size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Type != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintModels(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_Header_Permissions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_Header_Permissions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DropOn { + i-- + if m.DropOn { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Drag { + i-- + if m.Drag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Remove { + i-- + if m.Remove { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Edit { + i-- + if m.Edit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Read { + i-- + if m.Read { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentLayout) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentLayout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentDiv) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentDiv) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentDashboard) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentDashboard) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Headers) > 0 { + for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Headers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Style != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentDataview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentDataview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentText) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Checked { + i-- + if m.Checked { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.Checkable { + i-- + if m.Checkable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.MarkerType != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.MarkerType)) + i-- + dAtA[i] = 0x28 + } + if m.Toggleable { + i-- + if m.Toggleable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.MarksList != nil { + { + size, err := m.MarksList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Style != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x10 + } + if len(m.Text) > 0 { + i -= len(m.Text) + copy(dAtA[i:], m.Text) + i = encodeVarintModels(dAtA, i, uint64(len(m.Text))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentText_Marks) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentText_Marks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentText_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Marks) > 0 { + for iNdEx := len(m.Marks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Marks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentText_Mark) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentText_Mark) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Param) > 0 { + i -= len(m.Param) + copy(dAtA[i:], m.Param) + i = encodeVarintModels(dAtA, i, uint64(len(m.Param))) + i-- + dAtA[i] = 0x1a + } + if m.Type != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentMedia) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentMedia) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Preview != nil { + { + size := m.Preview.Size() + i -= size + if _, err := m.Preview.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.State != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 + } + if len(m.Content) > 0 { + i -= len(m.Content) + copy(dAtA[i:], m.Content) + i = encodeVarintModels(dAtA, i, uint64(len(m.Content))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentMedia_Video) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Video != nil { + { + size, err := m.Video.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} +func (m *Model_Block_ContentMedia_Image) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Image != nil { + { + size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb2 + } + return len(dAtA) - i, nil +} +func (m *Model_Block_ContentMedia_File) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.File != nil { + { + size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} +func (m *Model_Block_ContentMedia_VideoPreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentMedia_VideoPreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia_VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintModels(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Thumbnail) > 0 { + i -= len(m.Thumbnail) + copy(dAtA[i:], m.Thumbnail) + i = encodeVarintModels(dAtA, i, uint64(len(m.Thumbnail))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentMedia_ImagePreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentMedia_ImagePreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia_ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintModels(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Thumbnail) > 0 { + i -= len(m.Thumbnail) + copy(dAtA[i:], m.Thumbnail) + i = encodeVarintModels(dAtA, i, uint64(len(m.Thumbnail))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentMedia_FilePreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentMedia_FilePreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentMedia_FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Icon) > 0 { + i -= len(m.Icon) + copy(dAtA[i:], m.Icon) + i = encodeVarintModels(dAtA, i, uint64(len(m.Icon))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintModels(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Block_ContentPage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_ContentPage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_ContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Blocks) > 0 { + for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Style != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Model_Range) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Range) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.To != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.To)) + i-- + dAtA[i] = 0x10 + } + if m.From != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.From)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintModels(dAtA []byte, offset int, v uint64) int { + offset -= sovModels(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Model) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Model_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovModels(uint64(l)) + } + if len(m.Children) > 0 { + for _, s := range m.Children { + l = len(s) + n += 1 + l + sovModels(uint64(l)) + } + } + if m.Content != nil { + n += m.Content.Size() + } + return n +} + +func (m *Model_Block_Dashboard) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dashboard != nil { + l = m.Dashboard.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Page) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Page != nil { + l = m.Page.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Dataview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dataview != nil { + l = m.Dataview.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Text) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Text != nil { + l = m.Text.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Media) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Media != nil { + l = m.Media.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Layout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Layout != nil { + l = m.Layout.Size() + n += 2 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Div) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Div != nil { + l = m.Div.Size() + n += 2 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_Header) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovModels(uint64(m.Type)) + } + if m.Fields != nil { + l = m.Fields.Size() + n += 1 + l + sovModels(uint64(l)) + } + if m.Permissions != nil { + l = m.Permissions.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} + +func (m *Model_Block_Header_Permissions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Read { + n += 2 + } + if m.Edit { + n += 2 + } + if m.Remove { + n += 2 + } + if m.Drag { + n += 2 + } + if m.DropOn { + n += 2 + } + return n +} + +func (m *Model_Block_ContentLayout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Style != 0 { + n += 1 + sovModels(uint64(m.Style)) + } + return n +} + +func (m *Model_Block_ContentDiv) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Model_Block_ContentDashboard) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Style != 0 { + n += 1 + sovModels(uint64(m.Style)) + } + if len(m.Headers) > 0 { + for _, e := range m.Headers { + l = e.Size() + n += 1 + l + sovModels(uint64(l)) + } + } + return n +} + +func (m *Model_Block_ContentDataview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Model_Block_ContentText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Text) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if m.Style != 0 { + n += 1 + sovModels(uint64(m.Style)) + } + if m.MarksList != nil { + l = m.MarksList.Size() + n += 1 + l + sovModels(uint64(l)) + } + if m.Toggleable { + n += 2 + } + if m.MarkerType != 0 { + n += 1 + sovModels(uint64(m.MarkerType)) + } + if m.Checkable { + n += 2 + } + if m.Checked { + n += 2 + } + return n +} + +func (m *Model_Block_ContentText_Marks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Marks) > 0 { + for _, e := range m.Marks { + l = e.Size() + n += 1 + l + sovModels(uint64(l)) + } + } + return n +} + +func (m *Model_Block_ContentText_Mark) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovModels(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovModels(uint64(m.Type)) + } + l = len(m.Param) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + return n +} + +func (m *Model_Block_ContentMedia) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Content) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if m.State != 0 { + n += 1 + sovModels(uint64(m.State)) + } + if m.Preview != nil { + n += m.Preview.Size() + } + return n +} + +func (m *Model_Block_ContentMedia_Video) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Video != nil { + l = m.Video.Size() + n += 2 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_ContentMedia_Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Image != nil { + l = m.Image.Size() + n += 2 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_ContentMedia_File) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.File != nil { + l = m.File.Size() + n += 2 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Block_ContentMedia_VideoPreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Thumbnail) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovModels(uint64(m.Width)) + } + return n +} + +func (m *Model_Block_ContentMedia_ImagePreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Thumbnail) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovModels(uint64(m.Width)) + } + return n +} + +func (m *Model_Block_ContentMedia_FilePreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.Icon) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + return n +} + +func (m *Model_Block_ContentPage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Style != 0 { + n += 1 + sovModels(uint64(m.Style)) + } + if len(m.Blocks) > 0 { + for _, e := range m.Blocks { + l = e.Size() + n += 1 + l + sovModels(uint64(l)) + } + } + return n +} + +func (m *Model_Range) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.From != 0 { + n += 1 + sovModels(uint64(m.From)) + } + if m.To != 0 { + n += 1 + sovModels(uint64(m.To)) + } + return n +} + +func sovModels(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozModels(x uint64) (n int) { + return sovModels(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Model) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Model: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Model: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Block: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &Model_Block_Header{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dashboard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentDashboard{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Dashboard{v} + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentPage{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Page{v} + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dataview", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentDataview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Dataview{v} + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentText{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Text{v} + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentMedia{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Media{v} + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentLayout{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Layout{v} + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Div", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentDiv{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Content = &Model_Block_Div{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Header: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Model_Block_Header_Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fields == nil { + m.Fields = &Struct{} + } + if err := m.Fields.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Permissions == nil { + m.Permissions = &Model_Block_Header_Permissions{} + } + if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_Header_Permissions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Permissions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Permissions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Read", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Read = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Edit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Edit = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Remove = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Drag", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Drag = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropOn", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropOn = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentLayout) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentLayout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentLayout: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Model_Block_ContentLayout_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentDiv) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentDiv: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentDiv: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentDashboard) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentDashboard: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentDashboard: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Model_Block_ContentDashboard_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Headers = append(m.Headers, &Model_Block_Header{}) + if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentDataview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentDataview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentDataview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentText: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentText: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Text = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Model_Block_ContentText_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarksList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MarksList == nil { + m.MarksList = &Model_Block_ContentText_Marks{} + } + if err := m.MarksList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Toggleable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Toggleable = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) + } + m.MarkerType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MarkerType |= Model_Block_ContentText_MarkerType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Checkable = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Checked = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentText_Marks) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Marks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Marks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Marks = append(m.Marks, &Model_Block_ContentText_Mark{}) + if err := m.Marks[len(m.Marks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentText_Mark) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Mark: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Mark: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Range == nil { + m.Range = &Model_Range{} + } + if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Model_Block_ContentText_Mark_Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Param = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentMedia: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentMedia: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) + if m.Content == nil { + m.Content = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= Model_Block_ContentMedia_State(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Video", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentMedia_VideoPreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &Model_Block_ContentMedia_Video{v} + iNdEx = postIndex + case 102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentMedia_ImagePreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &Model_Block_ContentMedia_Image{v} + iNdEx = postIndex + case 103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Block_ContentMedia_FilePreview{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Preview = &Model_Block_ContentMedia_File{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentMedia_VideoPreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VideoPreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VideoPreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) + if m.Thumbnail == nil { + m.Thumbnail = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentMedia_ImagePreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImagePreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImagePreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Thumbnail", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Thumbnail = append(m.Thumbnail[:0], dAtA[iNdEx:postIndex]...) + if m.Thumbnail == nil { + m.Thumbnail = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentMedia_FilePreview) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FilePreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FilePreview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Icon = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_ContentPage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContentPage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContentPage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + m.Style = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= Model_Block_ContentPage_Style(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Blocks = append(m.Blocks, &Model_Block{}) + if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Range) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Range: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Range: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + m.From = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.From |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + m.To = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.To |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipModels(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModels + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModels + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowModels + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthModels + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupModels + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthModels + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/module.pb.go b/pb/module.pb.go deleted file mode 100644 index bf9b5e3da..000000000 --- a/pb/module.pb.go +++ /dev/null @@ -1,1278 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: module.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type ModuleType int32 - -const ( - ModuleType_DASHBOARD ModuleType = 0 - ModuleType_PAGE ModuleType = 1 - ModuleType_ARCHIVE ModuleType = 2 -) - -var ModuleType_name = map[int32]string{ - 0: "DASHBOARD", - 1: "PAGE", - 2: "ARCHIVE", -} - -var ModuleType_value = map[string]int32{ - "DASHBOARD": 0, - "PAGE": 1, - "ARCHIVE": 2, -} - -func (x ModuleType) String() string { - return proto.EnumName(ModuleType_name, int32(x)) -} - -func (ModuleType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{0} -} - -type ModuleOpenResponse_Error_Code int32 - -const ( - ModuleOpenResponse_Error_NULL ModuleOpenResponse_Error_Code = 0 - ModuleOpenResponse_Error_UNKNOWN_ERROR ModuleOpenResponse_Error_Code = 1 - ModuleOpenResponse_Error_BAD_INPUT ModuleOpenResponse_Error_Code = 2 - // ... - ModuleOpenResponse_Error_MODULE_NOT_FOUND ModuleOpenResponse_Error_Code = 101 -) - -var ModuleOpenResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "MODULE_NOT_FOUND", -} - -var ModuleOpenResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "MODULE_NOT_FOUND": 101, -} - -func (x ModuleOpenResponse_Error_Code) String() string { - return proto.EnumName(ModuleOpenResponse_Error_Code_name, int32(x)) -} - -func (ModuleOpenResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{3, 0, 0} -} - -type ModuleHeader struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type ModuleType `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.ModuleType" json:"type,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` -} - -func (m *ModuleHeader) Reset() { *m = ModuleHeader{} } -func (m *ModuleHeader) String() string { return proto.CompactTextString(m) } -func (*ModuleHeader) ProtoMessage() {} -func (*ModuleHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{0} -} -func (m *ModuleHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModuleHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModuleHeader.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ModuleHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModuleHeader.Merge(m, src) -} -func (m *ModuleHeader) XXX_Size() int { - return m.Size() -} -func (m *ModuleHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ModuleHeader.DiscardUnknown(m) -} - -var xxx_messageInfo_ModuleHeader proto.InternalMessageInfo - -func (m *ModuleHeader) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ModuleHeader) GetType() ModuleType { - if m != nil { - return m.Type - } - return ModuleType_DASHBOARD -} - -func (m *ModuleHeader) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ModuleHeader) GetIcon() string { - if m != nil { - return m.Icon - } - return "" -} - -type Modules struct { - Modules []*ModuleHeader `protobuf:"bytes,1,rep,name=Modules,proto3" json:"Modules,omitempty"` -} - -func (m *Modules) Reset() { *m = Modules{} } -func (m *Modules) String() string { return proto.CompactTextString(m) } -func (*Modules) ProtoMessage() {} -func (*Modules) Descriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{1} -} -func (m *Modules) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Modules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Modules.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Modules) XXX_Merge(src proto.Message) { - xxx_messageInfo_Modules.Merge(m, src) -} -func (m *Modules) XXX_Size() int { - return m.Size() -} -func (m *Modules) XXX_DiscardUnknown() { - xxx_messageInfo_Modules.DiscardUnknown(m) -} - -var xxx_messageInfo_Modules proto.InternalMessageInfo - -func (m *Modules) GetModules() []*ModuleHeader { - if m != nil { - return m.Modules - } - return nil -} - -type ModuleOpenRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *ModuleOpenRequest) Reset() { *m = ModuleOpenRequest{} } -func (m *ModuleOpenRequest) String() string { return proto.CompactTextString(m) } -func (*ModuleOpenRequest) ProtoMessage() {} -func (*ModuleOpenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{2} -} -func (m *ModuleOpenRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModuleOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModuleOpenRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ModuleOpenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModuleOpenRequest.Merge(m, src) -} -func (m *ModuleOpenRequest) XXX_Size() int { - return m.Size() -} -func (m *ModuleOpenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModuleOpenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ModuleOpenRequest proto.InternalMessageInfo - -func (m *ModuleOpenRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type ModuleOpenResponse struct { - Error *ModuleOpenResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *ModuleOpenResponse) Reset() { *m = ModuleOpenResponse{} } -func (m *ModuleOpenResponse) String() string { return proto.CompactTextString(m) } -func (*ModuleOpenResponse) ProtoMessage() {} -func (*ModuleOpenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{3} -} -func (m *ModuleOpenResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModuleOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModuleOpenResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ModuleOpenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModuleOpenResponse.Merge(m, src) -} -func (m *ModuleOpenResponse) XXX_Size() int { - return m.Size() -} -func (m *ModuleOpenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ModuleOpenResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ModuleOpenResponse proto.InternalMessageInfo - -func (m *ModuleOpenResponse) GetError() *ModuleOpenResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type ModuleOpenResponse_Error struct { - Code ModuleOpenResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.ModuleOpenResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *ModuleOpenResponse_Error) Reset() { *m = ModuleOpenResponse_Error{} } -func (m *ModuleOpenResponse_Error) String() string { return proto.CompactTextString(m) } -func (*ModuleOpenResponse_Error) ProtoMessage() {} -func (*ModuleOpenResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_ae7704718fb7daeb, []int{3, 0} -} -func (m *ModuleOpenResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModuleOpenResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModuleOpenResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ModuleOpenResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModuleOpenResponse_Error.Merge(m, src) -} -func (m *ModuleOpenResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *ModuleOpenResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_ModuleOpenResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_ModuleOpenResponse_Error proto.InternalMessageInfo - -func (m *ModuleOpenResponse_Error) GetCode() ModuleOpenResponse_Error_Code { - if m != nil { - return m.Code - } - return ModuleOpenResponse_Error_NULL -} - -func (m *ModuleOpenResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func init() { - proto.RegisterEnum("anytype.ModuleType", ModuleType_name, ModuleType_value) - proto.RegisterEnum("anytype.ModuleOpenResponse_Error_Code", ModuleOpenResponse_Error_Code_name, ModuleOpenResponse_Error_Code_value) - proto.RegisterType((*ModuleHeader)(nil), "anytype.ModuleHeader") - proto.RegisterType((*Modules)(nil), "anytype.Modules") - proto.RegisterType((*ModuleOpenRequest)(nil), "anytype.ModuleOpenRequest") - proto.RegisterType((*ModuleOpenResponse)(nil), "anytype.ModuleOpenResponse") - proto.RegisterType((*ModuleOpenResponse_Error)(nil), "anytype.ModuleOpenResponse.Error") -} - -func init() { proto.RegisterFile("module.proto", fileDescriptor_ae7704718fb7daeb) } - -var fileDescriptor_ae7704718fb7daeb = []byte{ - // 398 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0xae, 0xd2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, 0x9b, 0xcd, 0x03, 0xb1, 0x35, 0x6f, - 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xec, 0x37, 0x42, 0x45, 0x02, 0x00, 0x00, -} - -func (m *ModuleHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModuleHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModuleHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Icon) > 0 { - i -= len(m.Icon) - copy(dAtA[i:], m.Icon) - i = encodeVarintModule(dAtA, i, uint64(len(m.Icon))) - i-- - dAtA[i] = 0x22 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintModule(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if m.Type != 0 { - i = encodeVarintModule(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintModule(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Modules) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Modules) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Modules) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Modules) > 0 { - for iNdEx := len(m.Modules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Modules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintModule(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ModuleOpenRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModuleOpenRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModuleOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintModule(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ModuleOpenResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModuleOpenResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModuleOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintModule(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ModuleOpenResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModuleOpenResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModuleOpenResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintModule(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintModule(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintModule(dAtA []byte, offset int, v uint64) int { - offset -= sovModule(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ModuleHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovModule(uint64(m.Type)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - l = len(m.Icon) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - return n -} - -func (m *Modules) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Modules) > 0 { - for _, e := range m.Modules { - l = e.Size() - n += 1 + l + sovModule(uint64(l)) - } - } - return n -} - -func (m *ModuleOpenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - return n -} - -func (m *ModuleOpenResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovModule(uint64(l)) - } - return n -} - -func (m *ModuleOpenResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovModule(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - return n -} - -func sovModule(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozModule(x uint64) (n int) { - return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ModuleHeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModuleHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModuleHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= ModuleType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Icon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Modules) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Modules: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Modules: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Modules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Modules = append(m.Modules, &ModuleHeader{}) - if err := m.Modules[len(m.Modules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ModuleOpenRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModuleOpenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModuleOpenRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ModuleOpenResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModuleOpenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModuleOpenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &ModuleOpenResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ModuleOpenResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= ModuleOpenResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipModule(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthModule - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupModule - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthModule - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/protos/block-changes.proto b/pb/protos/block-changes.proto deleted file mode 100644 index 754331bb2..000000000 --- a/pb/protos/block-changes.proto +++ /dev/null @@ -1,70 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; -import "block-content.proto"; - -message BlockContentTextChange { - oneof change { - string text = 1; - Block.ContentText.Style style = 2; - Block.ContentText.Marks marks = 3; - - bool toggleable = 4; - Block.ContentText.MarkerType markerType = 5; - - bool checkable = 6; - bool checked = 7; - } -} - -message BlockContentPageChange { - oneof change { - Block.ContentPage.Style style = 1; - Block block = 2; - } -} - -message BlockHeaderChange { - oneof change { - string id = 1; - Block.Header.Type type = 2; - string name = 3; - string icon = 4; - - Block.Header.Permissions permissions = 5; - } -} - -message BlockChildrenChange { - repeated string children = 1; -} - -message BlockContentDashboardChange { - oneof change { - Block.ContentDashboard.Style style = 1; - Block.Header header = 2; // not a dashboard header – one of children - } -} - -message BlockContentMediaChange { - oneof change { - string link = 1; - Block.ContentMedia.State state = 2; - } -} - -message BlocksListSingleChange { - repeated string id = 1; - oneof change { - BlockContentTextChange text = 2; - BlockHeaderChange blockHeader = 3; - BlockChildrenChange blockChildren = 4; - BlockContentPageChange page = 5; - BlockContentDashboardChange dashboard = 6; - BlockContentMediaChange media = 7; - } -} - -message BlockChanges { - repeated BlocksListSingleChange changes = 1; -} \ No newline at end of file diff --git a/pb/protos/block-commands.proto b/pb/protos/block-commands.proto index e932794e1..eb7208a40 100644 --- a/pb/protos/block-commands.proto +++ b/pb/protos/block-commands.proto @@ -2,8 +2,8 @@ syntax="proto3"; package anytype; option go_package = "pb"; -import "block-content.proto"; -import "block-changes.proto"; +import "models.proto"; +import "changes.proto"; message BlockHistoryMoveRequest { string id = 1; @@ -34,7 +34,7 @@ message BlockOpenRequest { message BlockOpenResponse { Error error = 1; - Block.Header blockHeader = 2; + Model.Block.Header blockHeader = 2; message Error { Code code = 1; @@ -50,7 +50,7 @@ message BlockOpenResponse { } message BlockCreateRequest { - Block.Header.Type type = 1; + Model.Block.Header.Type type = 1; string contextBlockId = 2; } diff --git a/pb/protos/block-content.proto b/pb/protos/block-content.proto deleted file mode 100644 index f1d885112..000000000 --- a/pb/protos/block-content.proto +++ /dev/null @@ -1,173 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "struct.proto"; -import "general-models.proto"; - -message Block { - Header header = 1; - repeated string children = 2; - - oneof content { - ContentDashboard dashboard = 11; - ContentPage page = 12; - ContentDataview dataview = 13; - - ContentText text = 14; - ContentMedia media = 15; - ContentLayout layout = 16; - ContentDiv div = 17; - } - - message Header { - string id = 1; - Type type = 2; - Struct fields = 3; - Permissions permissions = 4; - - message Permissions { - bool read = 1; - bool edit = 2; - bool remove = 3; - bool drag = 4; - bool dropOn = 5; - } - - enum Type { - DASHBOARD = 0; - PAGE = 1; - DATAVIEW = 2; - - TEXT = 3; - FILE = 4; - PICTURE = 5; - VIDEO = 6; - BOOKMARK = 7; - - LAYOUT = 8; - DIV = 9; - } - } - - message ContentLayout { - Style style = 1; - - enum Style { - ROW = 0; - COLUMN = 1; - } - } - - message ContentDiv {} - - message ContentDashboard { - enum Style { - MAIN_SCREEN = 0; - // ... - } - - Style style = 1; - repeated Header headers = 2; - } - - message ContentDataview { - // ... - } - - message ContentText { - enum Style { - p = 0; - h1 = 1; - h2 = 2; - h3 = 3; - h4 = 4; - quote = 5; - code = 6; - } - - enum MarkerType { - none = 0; - number = 1; - bullet = 2; - } - - message Marks { - repeated Mark marks = 1; - } - - message Mark { - - enum Type { - STRIKETHROUGH = 0; - KEYBOARD = 1; - ITALIC = 2; - BOLD = 3; - LINK = 4; - } - - Range range = 1; - Type type = 2; - string param = 3; // link, color, etc - } - - string text = 1; - Style style = 2; - Marks marksList = 3; - - bool toggleable = 4; - MarkerType markerType = 5; - - bool checkable = 6; - bool checked = 7; - } - - message ContentMedia { - bytes content = 1; - State state = 2; - - oneof preview { - VideoPreview video = 101; - ImagePreview image = 102; - FilePreview file = 103; - } - - message VideoPreview { - bytes thumbnail = 1; - string name = 2; - int32 width = 3; - } - - message ImagePreview { - bytes thumbnail = 1; - string name = 2; - int32 width = 3; - } - - message FilePreview { - string name = 1; - string icon = 2; - } - - enum State { - EMPTY = 0; - UPLOADING = 1; - PREVIEW = 2; - DOWNLOADING = 3; - DONE = 4; - } - } - - message ContentPage { - enum Style { - EMPTY = 0; - TASK = 1; - BOOKMARK = 2; - SET = 3; - // ... - } - - Style style = 1; - repeated Block blocks = 2; - } -} diff --git a/pb/protos/block-events.proto b/pb/protos/block-events.proto index 4bee46656..7c88ee170 100644 --- a/pb/protos/block-events.proto +++ b/pb/protos/block-events.proto @@ -2,12 +2,12 @@ syntax="proto3"; package anytype; option go_package = "pb"; -import "block-content.proto"; -import "block-changes.proto"; +import "models.proto"; +import "changes.proto"; message BlockShow { - Block block = 1; + Model.Block block = 1; } message BlockUpdate { @@ -15,5 +15,5 @@ message BlockUpdate { } message BlockCreate { - Block block = 1; + Model.Block block = 1; } diff --git a/pb/protos/changes.proto b/pb/protos/changes.proto new file mode 100644 index 000000000..cdf04043c --- /dev/null +++ b/pb/protos/changes.proto @@ -0,0 +1,79 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; +import "models.proto"; + + +message Change { + message Block { + message Header { + oneof change { + string id = 1; + Model.Block.Header.Type type = 2; + string name = 3; + string icon = 4; + + Model.Block.Header.Permissions permissions = 5; + } + } + + message Children { + repeated string children = 1; + } + + message Content { + + message Page { + oneof change { + Model.Block.ContentPage.Style style = 1; + Block block = 2; + } + } + + message Dashboard { + oneof change { + Model.Block.ContentDashboard.Style style = 1; + Block.Header header = 2; // not a dashboard header – one of children + } + } + + message Media { + oneof change { + string link = 1; + Model.Block.ContentMedia.State state = 2; + } + } + + message Text { + oneof change { + string text = 1; + Model.Block.ContentText.Style style = 2; + Model.Block.ContentText.Marks marks = 3; + + bool toggleable = 4; + Model.Block.ContentText.MarkerType markerType = 5; + + bool checkable = 6; + bool checked = 7; + } + } + } + } + + +} +message BlocksListSingleChange { + repeated string id = 1; + oneof change { + Change.Block.Content.Text text = 2; + Change.Block.Header blockHeader = 3; + Change.Block.Children blockChildren = 4; + Change.Block.Content.Page page = 5; + Change.Block.Content.Dashboard dashboard = 6; + Change.Block.Content.Media media = 7; + } +} + +message BlockChanges { + repeated BlocksListSingleChange changes = 1; +} \ No newline at end of file diff --git a/pb/protos/edit.proto b/pb/protos/edit.proto index 183386569..1a4c08597 100644 --- a/pb/protos/edit.proto +++ b/pb/protos/edit.proto @@ -2,9 +2,10 @@ syntax="proto3"; package anytype; option go_package = "pb"; -import "general-models.proto"; +import "models.proto"; import "account.proto"; + /** * Middleware to front end event message, that will be sent in this scenario: * Precondition: user A opened a block @@ -34,7 +35,7 @@ message UserBlockLeft { message UserBlockTextRange { Account account = 1; // Account of the user, that selected a text string blockId = 2; // Id of the text block, that have a selection - Range range = 3; // Range of the selection + Model.Range range = 3; // Range of the selection } /** diff --git a/pb/protos/general-models.proto b/pb/protos/general-models.proto deleted file mode 100644 index 575d7a02c..000000000 --- a/pb/protos/general-models.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - - -message Range { - int32 from = 1; - int32 to = 2; -} diff --git a/pb/protos/models.proto b/pb/protos/models.proto new file mode 100644 index 000000000..d0574b19a --- /dev/null +++ b/pb/protos/models.proto @@ -0,0 +1,180 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + +import "struct.proto"; + +message Model { + message Block { + Header header = 1; + repeated string children = 2; + + oneof content { + ContentDashboard dashboard = 11; + ContentPage page = 12; + ContentDataview dataview = 13; + + ContentText text = 14; + ContentMedia media = 15; + ContentLayout layout = 16; + ContentDiv div = 17; + } + + message Header { + string id = 1; + Type type = 2; + Struct fields = 3; + Permissions permissions = 4; + + message Permissions { + bool read = 1; + bool edit = 2; + bool remove = 3; + bool drag = 4; + bool dropOn = 5; + } + + enum Type { + DASHBOARD = 0; + PAGE = 1; + DATAVIEW = 2; + + TEXT = 3; + FILE = 4; + PICTURE = 5; + VIDEO = 6; + BOOKMARK = 7; + + LAYOUT = 8; + DIV = 9; + } + } + + message ContentLayout { + Style style = 1; + + enum Style { + ROW = 0; + COLUMN = 1; + } + } + + message ContentDiv {} + + message ContentDashboard { + enum Style { + MAIN_SCREEN = 0; + // ... + } + + Style style = 1; + repeated Header headers = 2; + } + + message ContentDataview { + // ... + } + + message ContentText { + enum Style { + p = 0; + h1 = 1; + h2 = 2; + h3 = 3; + h4 = 4; + quote = 5; + code = 6; + } + + enum MarkerType { + none = 0; + number = 1; + bullet = 2; + } + + message Marks { + repeated Mark marks = 1; + } + + message Mark { + + enum Type { + STRIKETHROUGH = 0; + KEYBOARD = 1; + ITALIC = 2; + BOLD = 3; + LINK = 4; + } + + Range range = 1; + Type type = 2; + string param = 3; // link, color, etc + } + + string text = 1; + Style style = 2; + Marks marksList = 3; + + bool toggleable = 4; + MarkerType markerType = 5; + + bool checkable = 6; + bool checked = 7; + } + + message ContentMedia { + bytes content = 1; + State state = 2; + + oneof preview { + VideoPreview video = 101; + ImagePreview image = 102; + FilePreview file = 103; + } + + message VideoPreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; + } + + message ImagePreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; + } + + message FilePreview { + string name = 1; + string icon = 2; + } + + enum State { + EMPTY = 0; + UPLOADING = 1; + PREVIEW = 2; + DOWNLOADING = 3; + DONE = 4; + } + } + + message ContentPage { + enum Style { + EMPTY = 0; + TASK = 1; + BOOKMARK = 2; + SET = 3; + // ... + } + + Style style = 1; + repeated Block blocks = 2; + } + } + + message Range { + int32 from = 1; + int32 to = 2; + } +} + From af3d51cccfcfe03c9f04a0f17a311c6b0fa5fb55 Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 1 Nov 2019 19:02:28 +0100 Subject: [PATCH 16/24] #15.3: block.content --- pb/changes.pb.go | 156 ++--- pb/models.pb.go | 1229 +++++++++++++++++++++------------------ pb/protos/changes.proto | 16 +- pb/protos/models.proto | 236 ++++---- 4 files changed, 883 insertions(+), 754 deletions(-) diff --git a/pb/changes.pb.go b/pb/changes.pb.go index 62dc5d764..2fd4574ab 100644 --- a/pb/changes.pb.go +++ b/pb/changes.pb.go @@ -345,10 +345,10 @@ type isChange_Block_Content_Page_Change interface { } type Change_Block_Content_Page_Style struct { - Style Model_Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentPage_Style,oneof" json:"style,omitempty"` + Style Model_Block_Content_Page_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Page_Style,oneof" json:"style,omitempty"` } type Change_Block_Content_Page_Block struct { - Block *Change_Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` + Block *Model_Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` } func (*Change_Block_Content_Page_Style) isChange_Block_Content_Page_Change() {} @@ -361,14 +361,14 @@ func (m *Change_Block_Content_Page) GetChange() isChange_Block_Content_Page_Chan return nil } -func (m *Change_Block_Content_Page) GetStyle() Model_Block_ContentPage_Style { +func (m *Change_Block_Content_Page) GetStyle() Model_Block_Content_Page_Style { if x, ok := m.GetChange().(*Change_Block_Content_Page_Style); ok { return x.Style } - return Model_Block_ContentPage_EMPTY + return Model_Block_Content_Page_EMPTY } -func (m *Change_Block_Content_Page) GetBlock() *Change_Block { +func (m *Change_Block_Content_Page) GetBlock() *Model_Block { if x, ok := m.GetChange().(*Change_Block_Content_Page_Block); ok { return x.Block } @@ -430,10 +430,10 @@ type isChange_Block_Content_Dashboard_Change interface { } type Change_Block_Content_Dashboard_Style struct { - Style Model_Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentDashboard_Style,oneof" json:"style,omitempty"` + Style Model_Block_Content_Dashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Dashboard_Style,oneof" json:"style,omitempty"` } type Change_Block_Content_Dashboard_Header struct { - Header *Change_Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` + Header *Model_Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` } func (*Change_Block_Content_Dashboard_Style) isChange_Block_Content_Dashboard_Change() {} @@ -446,14 +446,14 @@ func (m *Change_Block_Content_Dashboard) GetChange() isChange_Block_Content_Dash return nil } -func (m *Change_Block_Content_Dashboard) GetStyle() Model_Block_ContentDashboard_Style { +func (m *Change_Block_Content_Dashboard) GetStyle() Model_Block_Content_Dashboard_Style { if x, ok := m.GetChange().(*Change_Block_Content_Dashboard_Style); ok { return x.Style } - return Model_Block_ContentDashboard_MAIN_SCREEN + return Model_Block_Content_Dashboard_MAIN_SCREEN } -func (m *Change_Block_Content_Dashboard) GetHeader() *Change_Block_Header { +func (m *Change_Block_Content_Dashboard) GetHeader() *Model_Block_Header { if x, ok := m.GetChange().(*Change_Block_Content_Dashboard_Header); ok { return x.Header } @@ -518,7 +518,7 @@ type Change_Block_Content_Media_Link struct { Link string `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` } type Change_Block_Content_Media_State struct { - State Model_Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_ContentMedia_State,oneof" json:"state,omitempty"` + State Model_Block_Content_Media_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_Content_Media_State,oneof" json:"state,omitempty"` } func (*Change_Block_Content_Media_Link) isChange_Block_Content_Media_Change() {} @@ -538,11 +538,11 @@ func (m *Change_Block_Content_Media) GetLink() string { return "" } -func (m *Change_Block_Content_Media) GetState() Model_Block_ContentMedia_State { +func (m *Change_Block_Content_Media) GetState() Model_Block_Content_Media_State { if x, ok := m.GetChange().(*Change_Block_Content_Media_State); ok { return x.State } - return Model_Block_ContentMedia_EMPTY + return Model_Block_Content_Media_EMPTY } // XXX_OneofWrappers is for the internal use of the proto package. @@ -608,16 +608,16 @@ type Change_Block_Content_Text_Text struct { Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` } type Change_Block_Content_Text_Style struct { - Style Model_Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_ContentText_Style,oneof" json:"style,omitempty"` + Style Model_Block_Content_Text_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_Content_Text_Style,oneof" json:"style,omitempty"` } type Change_Block_Content_Text_Marks struct { - Marks *Model_Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` + Marks *Model_Block_Content_Text_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` } type Change_Block_Content_Text_Toggleable struct { Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3,oneof" json:"toggleable,omitempty"` } type Change_Block_Content_Text_MarkerType struct { - MarkerType Model_Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_ContentText_MarkerType,oneof" json:"markerType,omitempty"` + MarkerType Model_Block_Content_Text_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_Content_Text_MarkerType,oneof" json:"markerType,omitempty"` } type Change_Block_Content_Text_Checkable struct { Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3,oneof" json:"checkable,omitempty"` @@ -648,14 +648,14 @@ func (m *Change_Block_Content_Text) GetText() string { return "" } -func (m *Change_Block_Content_Text) GetStyle() Model_Block_ContentText_Style { +func (m *Change_Block_Content_Text) GetStyle() Model_Block_Content_Text_Style { if x, ok := m.GetChange().(*Change_Block_Content_Text_Style); ok { return x.Style } - return Model_Block_ContentText_p + return Model_Block_Content_Text_p } -func (m *Change_Block_Content_Text) GetMarks() *Model_Block_ContentText_Marks { +func (m *Change_Block_Content_Text) GetMarks() *Model_Block_Content_Text_Marks { if x, ok := m.GetChange().(*Change_Block_Content_Text_Marks); ok { return x.Marks } @@ -669,11 +669,11 @@ func (m *Change_Block_Content_Text) GetToggleable() bool { return false } -func (m *Change_Block_Content_Text) GetMarkerType() Model_Block_ContentText_MarkerType { +func (m *Change_Block_Content_Text) GetMarkerType() Model_Block_Content_Text_MarkerType { if x, ok := m.GetChange().(*Change_Block_Content_Text_MarkerType); ok { return x.MarkerType } - return Model_Block_ContentText_none + return Model_Block_Content_Text_none } func (m *Change_Block_Content_Text) GetCheckable() bool { @@ -909,50 +909,50 @@ func init() { func init() { proto.RegisterFile("changes.proto", fileDescriptor_b16a38c6509bd894) } var fileDescriptor_b16a38c6509bd894 = []byte{ - // 688 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x4f, 0x8b, 0xd3, 0x50, - 0x10, 0x4f, 0xba, 0x4d, 0xff, 0x4c, 0x76, 0x17, 0x79, 0xa8, 0x84, 0xb0, 0xc4, 0xb2, 0xc2, 0x6e, - 0x41, 0xcc, 0x21, 0xc2, 0xa2, 0x08, 0xab, 0xb4, 0xa2, 0x11, 0x2d, 0x2c, 0xd9, 0x3d, 0x79, 0x7b, - 0x6d, 0x1e, 0x6d, 0x68, 0x9a, 0x94, 0x24, 0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xa7, 0xa9, 0xe8, 0xce, 0xc3, - 0xcd, 0x49, 0x68, 0x29, 0xc8, 0x65, 0xf8, 0x51, 0x19, 0xdc, 0x5b, 0xd8, 0xed, 0xe5, 0x57, 0xa3, - 0xc7, 0x9d, 0x3d, 0xc3, 0x71, 0xd3, 0x27, 0x8d, 0x4c, 0x77, 0x1e, 0x14, 0x89, 0xd7, 0xcf, 0xd7, - 0x5b, 0xe1, 0x7b, 0x07, 0x5f, 0xaf, 0x2d, 0xf5, 0xea, 0xda, 0x52, 0x7f, 0x5d, 0x5b, 0xea, 0xa7, - 0xa5, 0xa5, 0x5c, 0x2d, 0x2d, 0xe5, 0xc7, 0xd2, 0x52, 0x3e, 0xd4, 0xe6, 0xc3, 0x61, 0x83, 0xfe, - 0x1f, 0x9e, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x92, 0xb7, 0x86, 0x94, 0x47, 0x06, 0x00, 0x00, + // 682 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x3d, 0x6f, 0xd3, 0x50, + 0x14, 0xb5, 0xd3, 0x38, 0x1f, 0xd7, 0x6d, 0x85, 0x9e, 0x2a, 0x64, 0x99, 0xca, 0x44, 0x45, 0x82, + 0x0c, 0x95, 0x87, 0x20, 0x10, 0x88, 0xa1, 0x55, 0x5a, 0x81, 0x11, 0x14, 0x55, 0x6e, 0x27, 0xb6, + 0x97, 0xf8, 0x29, 0xb1, 0xe2, 0xd8, 0x91, 0xfd, 0x86, 0x66, 0xe2, 0x2f, 0x20, 0x7e, 0x0c, 0xbf, + 0x81, 0xb1, 0x0b, 0x88, 0x11, 0x35, 0x33, 0x3b, 0x23, 0xba, 0xd7, 0x2f, 0xb6, 0x5b, 0xa5, 0x69, + 0x37, 0xdf, 0x97, 0x73, 0xce, 0x3d, 0xef, 0x7e, 0xbc, 0xc0, 0xd6, 0x70, 0xcc, 0xe3, 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x24, 0xa8, 0x16, 0xdb, 0xb7, 0x98, 0x51, 0x24, 0x17, 0x19, 0xee, 0x19, + 0xc2, 0x3d, 0xcd, 0xcf, 0x79, 0x6c, 0x1f, 0x8c, 0x01, 0x82, 0xa8, 0x70, 0x66, 0x6f, 0x67, 0x95, + 0x00, 0xa2, 0x09, 0x54, 0x31, 0xfd, 0x4d, 0x87, 0xf6, 0x31, 0xcf, 0xc6, 0x83, 0x84, 0xa7, 0x01, + 0x3b, 0xbe, 0x6e, 0x63, 0x7f, 0xad, 0x8d, 0x82, 0x76, 0xd3, 0xcb, 0x0b, 0x68, 0x8c, 0xa9, 0x6e, + 0xca, 0xcc, 0xa3, 0x35, 0xa5, 0xf5, 0x34, 0x5f, 0x81, 0x2b, 0xa6, 0x42, 0x30, 0x4e, 0x44, 0x10, + 0x72, 0xec, 0x5f, 0x14, 0xc6, 0x93, 0x62, 0x42, 0x28, 0x62, 0x87, 0xe8, 0x92, 0xcb, 0xe5, 0x90, + 0x74, 0xd7, 0xba, 0x24, 0x21, 0xf7, 0x0c, 0xf1, 0xb9, 0x43, 0x2e, 0x45, 0x25, 0xd5, 0xaf, 0x1a, + 0xd4, 0xcf, 0xc5, 0x85, 0xc4, 0x54, 0x52, 0x5c, 0xc8, 0x32, 0x15, 0x46, 0x65, 0x5f, 0x6a, 0xf7, + 0xe8, 0x0b, 0xea, 0xdc, 0xac, 0xc5, 0x01, 0x18, 0x53, 0x9e, 0x4e, 0x32, 0x1a, 0x4c, 0xf3, 0x3e, + 0x02, 0x27, 0x08, 0x47, 0x01, 0xe2, 0xb1, 0x0e, 0x80, 0x4c, 0x46, 0xa3, 0x48, 0xf0, 0x41, 0x24, + 0x68, 0x90, 0x5b, 0x9e, 0xe6, 0x57, 0xce, 0xd8, 0x27, 0x00, 0x84, 0x8a, 0x14, 0x17, 0x82, 0xa6, + 0xf9, 0xae, 0xce, 0x15, 0x79, 0x72, 0x0e, 0xea, 0x95, 0x0a, 0xcc, 0x81, 0xf6, 0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cb, 0x2b, 0x47, 0xff, 0x73, 0xe5, 0xe8, 0x5f, 0x17, 0x8e, 0x76, 0xb9, 0x70, 0xb4, + 0xdf, 0x0b, 0x47, 0xfb, 0x5c, 0x9b, 0x0d, 0x06, 0x0d, 0xfa, 0x8f, 0x78, 0xfe, 0x3f, 0x00, 0x00, + 0xff, 0xff, 0x47, 0xbe, 0x47, 0xc0, 0x4b, 0x06, 0x00, 0x00, } func (m *Change) Marshal() (dAtA []byte, err error) { @@ -2581,7 +2581,7 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Model_Block_ContentPage_Style + var v Model_Block_Content_Page_Style for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2591,7 +2591,7 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_ContentPage_Style(b&0x7F) << shift + v |= Model_Block_Content_Page_Style(b&0x7F) << shift if b < 0x80 { break } @@ -2626,7 +2626,7 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block{} + v := &Model_Block{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2689,7 +2689,7 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Model_Block_ContentDashboard_Style + var v Model_Block_Content_Dashboard_Style for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2699,7 +2699,7 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_ContentDashboard_Style(b&0x7F) << shift + v |= Model_Block_Content_Dashboard_Style(b&0x7F) << shift if b < 0x80 { break } @@ -2734,7 +2734,7 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Header{} + v := &Model_Block_Header{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2829,7 +2829,7 @@ func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } - var v Model_Block_ContentMedia_State + var v Model_Block_Content_Media_State for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2839,7 +2839,7 @@ func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_ContentMedia_State(b&0x7F) << shift + v |= Model_Block_Content_Media_State(b&0x7F) << shift if b < 0x80 { break } @@ -2934,7 +2934,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Model_Block_ContentText_Style + var v Model_Block_Content_Text_Style for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2944,7 +2944,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_ContentText_Style(b&0x7F) << shift + v |= Model_Block_Content_Text_Style(b&0x7F) << shift if b < 0x80 { break } @@ -2979,7 +2979,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentText_Marks{} + v := &Model_Block_Content_Text_Marks{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3010,7 +3010,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) } - var v Model_Block_ContentText_MarkerType + var v Model_Block_Content_Text_MarkerType for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -3020,7 +3020,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_ContentText_MarkerType(b&0x7F) << shift + v |= Model_Block_Content_Text_MarkerType(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/models.pb.go b/pb/models.pb.go index acd10fc7f..d6ed91007 100644 --- a/pb/models.pb.go +++ b/pb/models.pb.go @@ -71,66 +71,66 @@ func (Model_Block_Header_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 0, 0} } -type Model_Block_ContentLayout_Style int32 +type Model_Block_Content_Layout_Style int32 const ( - Model_Block_ContentLayout_ROW Model_Block_ContentLayout_Style = 0 - Model_Block_ContentLayout_COLUMN Model_Block_ContentLayout_Style = 1 + Model_Block_Content_Layout_ROW Model_Block_Content_Layout_Style = 0 + Model_Block_Content_Layout_COLUMN Model_Block_Content_Layout_Style = 1 ) -var Model_Block_ContentLayout_Style_name = map[int32]string{ +var Model_Block_Content_Layout_Style_name = map[int32]string{ 0: "ROW", 1: "COLUMN", } -var Model_Block_ContentLayout_Style_value = map[string]int32{ +var Model_Block_Content_Layout_Style_value = map[string]int32{ "ROW": 0, "COLUMN": 1, } -func (x Model_Block_ContentLayout_Style) String() string { - return proto.EnumName(Model_Block_ContentLayout_Style_name, int32(x)) +func (x Model_Block_Content_Layout_Style) String() string { + return proto.EnumName(Model_Block_Content_Layout_Style_name, int32(x)) } -func (Model_Block_ContentLayout_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 0} +func (Model_Block_Content_Layout_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 0, 0} } -type Model_Block_ContentDashboard_Style int32 +type Model_Block_Content_Dashboard_Style int32 const ( - Model_Block_ContentDashboard_MAIN_SCREEN Model_Block_ContentDashboard_Style = 0 + Model_Block_Content_Dashboard_MAIN_SCREEN Model_Block_Content_Dashboard_Style = 0 ) -var Model_Block_ContentDashboard_Style_name = map[int32]string{ +var Model_Block_Content_Dashboard_Style_name = map[int32]string{ 0: "MAIN_SCREEN", } -var Model_Block_ContentDashboard_Style_value = map[string]int32{ +var Model_Block_Content_Dashboard_Style_value = map[string]int32{ "MAIN_SCREEN": 0, } -func (x Model_Block_ContentDashboard_Style) String() string { - return proto.EnumName(Model_Block_ContentDashboard_Style_name, int32(x)) +func (x Model_Block_Content_Dashboard_Style) String() string { + return proto.EnumName(Model_Block_Content_Dashboard_Style_name, int32(x)) } -func (Model_Block_ContentDashboard_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 3, 0} +func (Model_Block_Content_Dashboard_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 2, 0} } -type Model_Block_ContentText_Style int32 +type Model_Block_Content_Text_Style int32 const ( - Model_Block_ContentText_p Model_Block_ContentText_Style = 0 - Model_Block_ContentText_h1 Model_Block_ContentText_Style = 1 - Model_Block_ContentText_h2 Model_Block_ContentText_Style = 2 - Model_Block_ContentText_h3 Model_Block_ContentText_Style = 3 - Model_Block_ContentText_h4 Model_Block_ContentText_Style = 4 - Model_Block_ContentText_quote Model_Block_ContentText_Style = 5 - Model_Block_ContentText_code Model_Block_ContentText_Style = 6 + Model_Block_Content_Text_p Model_Block_Content_Text_Style = 0 + Model_Block_Content_Text_h1 Model_Block_Content_Text_Style = 1 + Model_Block_Content_Text_h2 Model_Block_Content_Text_Style = 2 + Model_Block_Content_Text_h3 Model_Block_Content_Text_Style = 3 + Model_Block_Content_Text_h4 Model_Block_Content_Text_Style = 4 + Model_Block_Content_Text_quote Model_Block_Content_Text_Style = 5 + Model_Block_Content_Text_code Model_Block_Content_Text_Style = 6 ) -var Model_Block_ContentText_Style_name = map[int32]string{ +var Model_Block_Content_Text_Style_name = map[int32]string{ 0: "p", 1: "h1", 2: "h2", @@ -140,7 +140,7 @@ var Model_Block_ContentText_Style_name = map[int32]string{ 6: "code", } -var Model_Block_ContentText_Style_value = map[string]int32{ +var Model_Block_Content_Text_Style_value = map[string]int32{ "p": 0, "h1": 1, "h2": 2, @@ -150,53 +150,53 @@ var Model_Block_ContentText_Style_value = map[string]int32{ "code": 6, } -func (x Model_Block_ContentText_Style) String() string { - return proto.EnumName(Model_Block_ContentText_Style_name, int32(x)) +func (x Model_Block_Content_Text_Style) String() string { + return proto.EnumName(Model_Block_Content_Text_Style_name, int32(x)) } -func (Model_Block_ContentText_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 0} +func (Model_Block_Content_Text_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 0} } -type Model_Block_ContentText_MarkerType int32 +type Model_Block_Content_Text_MarkerType int32 const ( - Model_Block_ContentText_none Model_Block_ContentText_MarkerType = 0 - Model_Block_ContentText_number Model_Block_ContentText_MarkerType = 1 - Model_Block_ContentText_bullet Model_Block_ContentText_MarkerType = 2 + Model_Block_Content_Text_none Model_Block_Content_Text_MarkerType = 0 + Model_Block_Content_Text_number Model_Block_Content_Text_MarkerType = 1 + Model_Block_Content_Text_bullet Model_Block_Content_Text_MarkerType = 2 ) -var Model_Block_ContentText_MarkerType_name = map[int32]string{ +var Model_Block_Content_Text_MarkerType_name = map[int32]string{ 0: "none", 1: "number", 2: "bullet", } -var Model_Block_ContentText_MarkerType_value = map[string]int32{ +var Model_Block_Content_Text_MarkerType_value = map[string]int32{ "none": 0, "number": 1, "bullet": 2, } -func (x Model_Block_ContentText_MarkerType) String() string { - return proto.EnumName(Model_Block_ContentText_MarkerType_name, int32(x)) +func (x Model_Block_Content_Text_MarkerType) String() string { + return proto.EnumName(Model_Block_Content_Text_MarkerType_name, int32(x)) } -func (Model_Block_ContentText_MarkerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 1} +func (Model_Block_Content_Text_MarkerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 1} } -type Model_Block_ContentText_Mark_Type int32 +type Model_Block_Content_Text_Mark_Type int32 const ( - Model_Block_ContentText_Mark_STRIKETHROUGH Model_Block_ContentText_Mark_Type = 0 - Model_Block_ContentText_Mark_KEYBOARD Model_Block_ContentText_Mark_Type = 1 - Model_Block_ContentText_Mark_ITALIC Model_Block_ContentText_Mark_Type = 2 - Model_Block_ContentText_Mark_BOLD Model_Block_ContentText_Mark_Type = 3 - Model_Block_ContentText_Mark_LINK Model_Block_ContentText_Mark_Type = 4 + Model_Block_Content_Text_Mark_STRIKETHROUGH Model_Block_Content_Text_Mark_Type = 0 + Model_Block_Content_Text_Mark_KEYBOARD Model_Block_Content_Text_Mark_Type = 1 + Model_Block_Content_Text_Mark_ITALIC Model_Block_Content_Text_Mark_Type = 2 + Model_Block_Content_Text_Mark_BOLD Model_Block_Content_Text_Mark_Type = 3 + Model_Block_Content_Text_Mark_LINK Model_Block_Content_Text_Mark_Type = 4 ) -var Model_Block_ContentText_Mark_Type_name = map[int32]string{ +var Model_Block_Content_Text_Mark_Type_name = map[int32]string{ 0: "STRIKETHROUGH", 1: "KEYBOARD", 2: "ITALIC", @@ -204,7 +204,7 @@ var Model_Block_ContentText_Mark_Type_name = map[int32]string{ 4: "LINK", } -var Model_Block_ContentText_Mark_Type_value = map[string]int32{ +var Model_Block_Content_Text_Mark_Type_value = map[string]int32{ "STRIKETHROUGH": 0, "KEYBOARD": 1, "ITALIC": 2, @@ -212,25 +212,25 @@ var Model_Block_ContentText_Mark_Type_value = map[string]int32{ "LINK": 4, } -func (x Model_Block_ContentText_Mark_Type) String() string { - return proto.EnumName(Model_Block_ContentText_Mark_Type_name, int32(x)) +func (x Model_Block_Content_Text_Mark_Type) String() string { + return proto.EnumName(Model_Block_Content_Text_Mark_Type_name, int32(x)) } -func (Model_Block_ContentText_Mark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 1, 0} +func (Model_Block_Content_Text_Mark_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 1, 0} } -type Model_Block_ContentMedia_State int32 +type Model_Block_Content_Media_State int32 const ( - Model_Block_ContentMedia_EMPTY Model_Block_ContentMedia_State = 0 - Model_Block_ContentMedia_UPLOADING Model_Block_ContentMedia_State = 1 - Model_Block_ContentMedia_PREVIEW Model_Block_ContentMedia_State = 2 - Model_Block_ContentMedia_DOWNLOADING Model_Block_ContentMedia_State = 3 - Model_Block_ContentMedia_DONE Model_Block_ContentMedia_State = 4 + Model_Block_Content_Media_EMPTY Model_Block_Content_Media_State = 0 + Model_Block_Content_Media_UPLOADING Model_Block_Content_Media_State = 1 + Model_Block_Content_Media_PREVIEW Model_Block_Content_Media_State = 2 + Model_Block_Content_Media_DOWNLOADING Model_Block_Content_Media_State = 3 + Model_Block_Content_Media_DONE Model_Block_Content_Media_State = 4 ) -var Model_Block_ContentMedia_State_name = map[int32]string{ +var Model_Block_Content_Media_State_name = map[int32]string{ 0: "EMPTY", 1: "UPLOADING", 2: "PREVIEW", @@ -238,7 +238,7 @@ var Model_Block_ContentMedia_State_name = map[int32]string{ 4: "DONE", } -var Model_Block_ContentMedia_State_value = map[string]int32{ +var Model_Block_Content_Media_State_value = map[string]int32{ "EMPTY": 0, "UPLOADING": 1, "PREVIEW": 2, @@ -246,43 +246,43 @@ var Model_Block_ContentMedia_State_value = map[string]int32{ "DONE": 4, } -func (x Model_Block_ContentMedia_State) String() string { - return proto.EnumName(Model_Block_ContentMedia_State_name, int32(x)) +func (x Model_Block_Content_Media_State) String() string { + return proto.EnumName(Model_Block_Content_Media_State_name, int32(x)) } -func (Model_Block_ContentMedia_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 0} +func (Model_Block_Content_Media_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 0} } -type Model_Block_ContentPage_Style int32 +type Model_Block_Content_Page_Style int32 const ( - Model_Block_ContentPage_EMPTY Model_Block_ContentPage_Style = 0 - Model_Block_ContentPage_TASK Model_Block_ContentPage_Style = 1 - Model_Block_ContentPage_BOOKMARK Model_Block_ContentPage_Style = 2 - Model_Block_ContentPage_SET Model_Block_ContentPage_Style = 3 + Model_Block_Content_Page_EMPTY Model_Block_Content_Page_Style = 0 + Model_Block_Content_Page_TASK Model_Block_Content_Page_Style = 1 + Model_Block_Content_Page_BOOKMARK Model_Block_Content_Page_Style = 2 + Model_Block_Content_Page_SET Model_Block_Content_Page_Style = 3 ) -var Model_Block_ContentPage_Style_name = map[int32]string{ +var Model_Block_Content_Page_Style_name = map[int32]string{ 0: "EMPTY", 1: "TASK", 2: "BOOKMARK", 3: "SET", } -var Model_Block_ContentPage_Style_value = map[string]int32{ +var Model_Block_Content_Page_Style_value = map[string]int32{ "EMPTY": 0, "TASK": 1, "BOOKMARK": 2, "SET": 3, } -func (x Model_Block_ContentPage_Style) String() string { - return proto.EnumName(Model_Block_ContentPage_Style_name, int32(x)) +func (x Model_Block_Content_Page_Style) String() string { + return proto.EnumName(Model_Block_Content_Page_Style_name, int32(x)) } -func (Model_Block_ContentPage_Style) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 7, 0} +func (Model_Block_Content_Page_Style) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 6, 0} } type Model struct { @@ -375,25 +375,25 @@ type isModel_Block_Content interface { } type Model_Block_Dashboard struct { - Dashboard *Model_Block_ContentDashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` + Dashboard *Model_Block_Content_Dashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` } type Model_Block_Page struct { - Page *Model_Block_ContentPage `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` + Page *Model_Block_Content_Page `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` } type Model_Block_Dataview struct { - Dataview *Model_Block_ContentDataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` + Dataview *Model_Block_Content_Dataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` } type Model_Block_Text struct { - Text *Model_Block_ContentText `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` + Text *Model_Block_Content_Text `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` } type Model_Block_Media struct { - Media *Model_Block_ContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` + Media *Model_Block_Content_Media `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` } type Model_Block_Layout struct { - Layout *Model_Block_ContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` + Layout *Model_Block_Content_Layout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` } type Model_Block_Div struct { - Div *Model_Block_ContentDiv `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` + Div *Model_Block_Content_Div `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` } func (*Model_Block_Dashboard) isModel_Block_Content() {} @@ -425,49 +425,49 @@ func (m *Model_Block) GetChildren() []string { return nil } -func (m *Model_Block) GetDashboard() *Model_Block_ContentDashboard { +func (m *Model_Block) GetDashboard() *Model_Block_Content_Dashboard { if x, ok := m.GetContent().(*Model_Block_Dashboard); ok { return x.Dashboard } return nil } -func (m *Model_Block) GetPage() *Model_Block_ContentPage { +func (m *Model_Block) GetPage() *Model_Block_Content_Page { if x, ok := m.GetContent().(*Model_Block_Page); ok { return x.Page } return nil } -func (m *Model_Block) GetDataview() *Model_Block_ContentDataview { +func (m *Model_Block) GetDataview() *Model_Block_Content_Dataview { if x, ok := m.GetContent().(*Model_Block_Dataview); ok { return x.Dataview } return nil } -func (m *Model_Block) GetText() *Model_Block_ContentText { +func (m *Model_Block) GetText() *Model_Block_Content_Text { if x, ok := m.GetContent().(*Model_Block_Text); ok { return x.Text } return nil } -func (m *Model_Block) GetMedia() *Model_Block_ContentMedia { +func (m *Model_Block) GetMedia() *Model_Block_Content_Media { if x, ok := m.GetContent().(*Model_Block_Media); ok { return x.Media } return nil } -func (m *Model_Block) GetLayout() *Model_Block_ContentLayout { +func (m *Model_Block) GetLayout() *Model_Block_Content_Layout { if x, ok := m.GetContent().(*Model_Block_Layout); ok { return x.Layout } return nil } -func (m *Model_Block) GetDiv() *Model_Block_ContentDiv { +func (m *Model_Block) GetDiv() *Model_Block_Content_Div { if x, ok := m.GetContent().(*Model_Block_Div); ok { return x.Div } @@ -631,22 +631,21 @@ func (m *Model_Block_Header_Permissions) GetDropOn() bool { return false } -type Model_Block_ContentLayout struct { - Style Model_Block_ContentLayout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentLayout_Style" json:"style,omitempty"` +type Model_Block_Content struct { } -func (m *Model_Block_ContentLayout) Reset() { *m = Model_Block_ContentLayout{} } -func (m *Model_Block_ContentLayout) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentLayout) ProtoMessage() {} -func (*Model_Block_ContentLayout) Descriptor() ([]byte, []int) { +func (m *Model_Block_Content) Reset() { *m = Model_Block_Content{} } +func (m *Model_Block_Content) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content) ProtoMessage() {} +func (*Model_Block_Content) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1} } -func (m *Model_Block_ContentLayout) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentLayout.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -656,40 +655,77 @@ func (m *Model_Block_ContentLayout) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Model_Block_ContentLayout) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentLayout.Merge(m, src) +func (m *Model_Block_Content) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content.Merge(m, src) } -func (m *Model_Block_ContentLayout) XXX_Size() int { +func (m *Model_Block_Content) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentLayout) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentLayout.DiscardUnknown(m) +func (m *Model_Block_Content) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentLayout proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content proto.InternalMessageInfo -func (m *Model_Block_ContentLayout) GetStyle() Model_Block_ContentLayout_Style { +type Model_Block_Content_Layout struct { + Style Model_Block_Content_Layout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Layout_Style" json:"style,omitempty"` +} + +func (m *Model_Block_Content_Layout) Reset() { *m = Model_Block_Content_Layout{} } +func (m *Model_Block_Content_Layout) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Layout) ProtoMessage() {} +func (*Model_Block_Content_Layout) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 0} +} +func (m *Model_Block_Content_Layout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Block_Content_Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Block_Content_Layout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Block_Content_Layout) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Layout.Merge(m, src) +} +func (m *Model_Block_Content_Layout) XXX_Size() int { + return m.Size() +} +func (m *Model_Block_Content_Layout) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Layout.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Block_Content_Layout proto.InternalMessageInfo + +func (m *Model_Block_Content_Layout) GetStyle() Model_Block_Content_Layout_Style { if m != nil { return m.Style } - return Model_Block_ContentLayout_ROW + return Model_Block_Content_Layout_ROW } -type Model_Block_ContentDiv struct { +type Model_Block_Content_Div struct { } -func (m *Model_Block_ContentDiv) Reset() { *m = Model_Block_ContentDiv{} } -func (m *Model_Block_ContentDiv) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentDiv) ProtoMessage() {} -func (*Model_Block_ContentDiv) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 2} +func (m *Model_Block_Content_Div) Reset() { *m = Model_Block_Content_Div{} } +func (m *Model_Block_Content_Div) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Div) ProtoMessage() {} +func (*Model_Block_Content_Div) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 1} } -func (m *Model_Block_ContentDiv) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Div) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Div) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentDiv.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Div.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -699,35 +735,35 @@ func (m *Model_Block_ContentDiv) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *Model_Block_ContentDiv) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentDiv.Merge(m, src) +func (m *Model_Block_Content_Div) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Div.Merge(m, src) } -func (m *Model_Block_ContentDiv) XXX_Size() int { +func (m *Model_Block_Content_Div) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentDiv) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentDiv.DiscardUnknown(m) +func (m *Model_Block_Content_Div) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Div.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentDiv proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Div proto.InternalMessageInfo -type Model_Block_ContentDashboard struct { - Style Model_Block_ContentDashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentDashboard_Style" json:"style,omitempty"` - Headers []*Model_Block_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` +type Model_Block_Content_Dashboard struct { + Style Model_Block_Content_Dashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Dashboard_Style" json:"style,omitempty"` + Headers []*Model_Block_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` } -func (m *Model_Block_ContentDashboard) Reset() { *m = Model_Block_ContentDashboard{} } -func (m *Model_Block_ContentDashboard) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentDashboard) ProtoMessage() {} -func (*Model_Block_ContentDashboard) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 3} +func (m *Model_Block_Content_Dashboard) Reset() { *m = Model_Block_Content_Dashboard{} } +func (m *Model_Block_Content_Dashboard) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Dashboard) ProtoMessage() {} +func (*Model_Block_Content_Dashboard) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 2} } -func (m *Model_Block_ContentDashboard) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Dashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Dashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentDashboard.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Dashboard.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -737,47 +773,47 @@ func (m *Model_Block_ContentDashboard) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Model_Block_ContentDashboard) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentDashboard.Merge(m, src) +func (m *Model_Block_Content_Dashboard) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Dashboard.Merge(m, src) } -func (m *Model_Block_ContentDashboard) XXX_Size() int { +func (m *Model_Block_Content_Dashboard) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentDashboard) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentDashboard.DiscardUnknown(m) +func (m *Model_Block_Content_Dashboard) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Dashboard.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentDashboard proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Dashboard proto.InternalMessageInfo -func (m *Model_Block_ContentDashboard) GetStyle() Model_Block_ContentDashboard_Style { +func (m *Model_Block_Content_Dashboard) GetStyle() Model_Block_Content_Dashboard_Style { if m != nil { return m.Style } - return Model_Block_ContentDashboard_MAIN_SCREEN + return Model_Block_Content_Dashboard_MAIN_SCREEN } -func (m *Model_Block_ContentDashboard) GetHeaders() []*Model_Block_Header { +func (m *Model_Block_Content_Dashboard) GetHeaders() []*Model_Block_Header { if m != nil { return m.Headers } return nil } -type Model_Block_ContentDataview struct { +type Model_Block_Content_Dataview struct { } -func (m *Model_Block_ContentDataview) Reset() { *m = Model_Block_ContentDataview{} } -func (m *Model_Block_ContentDataview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentDataview) ProtoMessage() {} -func (*Model_Block_ContentDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 4} +func (m *Model_Block_Content_Dataview) Reset() { *m = Model_Block_Content_Dataview{} } +func (m *Model_Block_Content_Dataview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Dataview) ProtoMessage() {} +func (*Model_Block_Content_Dataview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 3} } -func (m *Model_Block_ContentDataview) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Dataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Dataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentDataview.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Dataview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -787,40 +823,40 @@ func (m *Model_Block_ContentDataview) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Model_Block_ContentDataview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentDataview.Merge(m, src) +func (m *Model_Block_Content_Dataview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Dataview.Merge(m, src) } -func (m *Model_Block_ContentDataview) XXX_Size() int { +func (m *Model_Block_Content_Dataview) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentDataview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentDataview.DiscardUnknown(m) +func (m *Model_Block_Content_Dataview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Dataview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentDataview proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Dataview proto.InternalMessageInfo -type Model_Block_ContentText struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Style Model_Block_ContentText_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_ContentText_Style" json:"style,omitempty"` - MarksList *Model_Block_ContentText_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` - Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` - MarkerType Model_Block_ContentText_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_ContentText_MarkerType" json:"markerType,omitempty"` - Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` - Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` +type Model_Block_Content_Text struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Style Model_Block_Content_Text_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_Content_Text_Style" json:"style,omitempty"` + MarksList *Model_Block_Content_Text_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` + Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` + MarkerType Model_Block_Content_Text_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_Content_Text_MarkerType" json:"markerType,omitempty"` + Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` + Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` } -func (m *Model_Block_ContentText) Reset() { *m = Model_Block_ContentText{} } -func (m *Model_Block_ContentText) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentText) ProtoMessage() {} -func (*Model_Block_ContentText) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 5} +func (m *Model_Block_Content_Text) Reset() { *m = Model_Block_Content_Text{} } +func (m *Model_Block_Content_Text) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Text) ProtoMessage() {} +func (*Model_Block_Content_Text) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4} } -func (m *Model_Block_ContentText) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Text) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentText.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Text.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -830,83 +866,83 @@ func (m *Model_Block_ContentText) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *Model_Block_ContentText) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentText.Merge(m, src) +func (m *Model_Block_Content_Text) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Text.Merge(m, src) } -func (m *Model_Block_ContentText) XXX_Size() int { +func (m *Model_Block_Content_Text) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentText) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentText.DiscardUnknown(m) +func (m *Model_Block_Content_Text) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Text.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentText proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Text proto.InternalMessageInfo -func (m *Model_Block_ContentText) GetText() string { +func (m *Model_Block_Content_Text) GetText() string { if m != nil { return m.Text } return "" } -func (m *Model_Block_ContentText) GetStyle() Model_Block_ContentText_Style { +func (m *Model_Block_Content_Text) GetStyle() Model_Block_Content_Text_Style { if m != nil { return m.Style } - return Model_Block_ContentText_p + return Model_Block_Content_Text_p } -func (m *Model_Block_ContentText) GetMarksList() *Model_Block_ContentText_Marks { +func (m *Model_Block_Content_Text) GetMarksList() *Model_Block_Content_Text_Marks { if m != nil { return m.MarksList } return nil } -func (m *Model_Block_ContentText) GetToggleable() bool { +func (m *Model_Block_Content_Text) GetToggleable() bool { if m != nil { return m.Toggleable } return false } -func (m *Model_Block_ContentText) GetMarkerType() Model_Block_ContentText_MarkerType { +func (m *Model_Block_Content_Text) GetMarkerType() Model_Block_Content_Text_MarkerType { if m != nil { return m.MarkerType } - return Model_Block_ContentText_none + return Model_Block_Content_Text_none } -func (m *Model_Block_ContentText) GetCheckable() bool { +func (m *Model_Block_Content_Text) GetCheckable() bool { if m != nil { return m.Checkable } return false } -func (m *Model_Block_ContentText) GetChecked() bool { +func (m *Model_Block_Content_Text) GetChecked() bool { if m != nil { return m.Checked } return false } -type Model_Block_ContentText_Marks struct { - Marks []*Model_Block_ContentText_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` +type Model_Block_Content_Text_Marks struct { + Marks []*Model_Block_Content_Text_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` } -func (m *Model_Block_ContentText_Marks) Reset() { *m = Model_Block_ContentText_Marks{} } -func (m *Model_Block_ContentText_Marks) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentText_Marks) ProtoMessage() {} -func (*Model_Block_ContentText_Marks) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 0} +func (m *Model_Block_Content_Text_Marks) Reset() { *m = Model_Block_Content_Text_Marks{} } +func (m *Model_Block_Content_Text_Marks) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Text_Marks) ProtoMessage() {} +func (*Model_Block_Content_Text_Marks) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 0} } -func (m *Model_Block_ContentText_Marks) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Text_Marks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentText_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Text_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentText_Marks.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Text_Marks.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -916,43 +952,43 @@ func (m *Model_Block_ContentText_Marks) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *Model_Block_ContentText_Marks) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentText_Marks.Merge(m, src) +func (m *Model_Block_Content_Text_Marks) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Text_Marks.Merge(m, src) } -func (m *Model_Block_ContentText_Marks) XXX_Size() int { +func (m *Model_Block_Content_Text_Marks) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentText_Marks) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentText_Marks.DiscardUnknown(m) +func (m *Model_Block_Content_Text_Marks) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Text_Marks.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentText_Marks proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Text_Marks proto.InternalMessageInfo -func (m *Model_Block_ContentText_Marks) GetMarks() []*Model_Block_ContentText_Mark { +func (m *Model_Block_Content_Text_Marks) GetMarks() []*Model_Block_Content_Text_Mark { if m != nil { return m.Marks } return nil } -type Model_Block_ContentText_Mark struct { - Range *Model_Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` - Type Model_Block_ContentText_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_ContentText_Mark_Type" json:"type,omitempty"` - Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` +type Model_Block_Content_Text_Mark struct { + Range *Model_Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` + Type Model_Block_Content_Text_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Content_Text_Mark_Type" json:"type,omitempty"` + Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` } -func (m *Model_Block_ContentText_Mark) Reset() { *m = Model_Block_ContentText_Mark{} } -func (m *Model_Block_ContentText_Mark) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentText_Mark) ProtoMessage() {} -func (*Model_Block_ContentText_Mark) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 5, 1} +func (m *Model_Block_Content_Text_Mark) Reset() { *m = Model_Block_Content_Text_Mark{} } +func (m *Model_Block_Content_Text_Mark) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Text_Mark) ProtoMessage() {} +func (*Model_Block_Content_Text_Mark) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 1} } -func (m *Model_Block_ContentText_Mark) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Text_Mark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentText_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Text_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentText_Mark.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Text_Mark.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -962,61 +998,61 @@ func (m *Model_Block_ContentText_Mark) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Model_Block_ContentText_Mark) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentText_Mark.Merge(m, src) +func (m *Model_Block_Content_Text_Mark) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Text_Mark.Merge(m, src) } -func (m *Model_Block_ContentText_Mark) XXX_Size() int { +func (m *Model_Block_Content_Text_Mark) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentText_Mark) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentText_Mark.DiscardUnknown(m) +func (m *Model_Block_Content_Text_Mark) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Text_Mark.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentText_Mark proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Text_Mark proto.InternalMessageInfo -func (m *Model_Block_ContentText_Mark) GetRange() *Model_Range { +func (m *Model_Block_Content_Text_Mark) GetRange() *Model_Range { if m != nil { return m.Range } return nil } -func (m *Model_Block_ContentText_Mark) GetType() Model_Block_ContentText_Mark_Type { +func (m *Model_Block_Content_Text_Mark) GetType() Model_Block_Content_Text_Mark_Type { if m != nil { return m.Type } - return Model_Block_ContentText_Mark_STRIKETHROUGH + return Model_Block_Content_Text_Mark_STRIKETHROUGH } -func (m *Model_Block_ContentText_Mark) GetParam() string { +func (m *Model_Block_Content_Text_Mark) GetParam() string { if m != nil { return m.Param } return "" } -type Model_Block_ContentMedia struct { - Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - State Model_Block_ContentMedia_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_ContentMedia_State" json:"state,omitempty"` +type Model_Block_Content_Media struct { + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + State Model_Block_Content_Media_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_Content_Media_State" json:"state,omitempty"` // Types that are valid to be assigned to Preview: - // *Model_Block_ContentMedia_Video - // *Model_Block_ContentMedia_Image - // *Model_Block_ContentMedia_File - Preview isModel_Block_ContentMedia_Preview `protobuf_oneof:"preview"` + // *Model_Block_Content_Media_Video + // *Model_Block_Content_Media_Image + // *Model_Block_Content_Media_File + Preview isModel_Block_Content_Media_Preview `protobuf_oneof:"preview"` } -func (m *Model_Block_ContentMedia) Reset() { *m = Model_Block_ContentMedia{} } -func (m *Model_Block_ContentMedia) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentMedia) ProtoMessage() {} -func (*Model_Block_ContentMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 6} +func (m *Model_Block_Content_Media) Reset() { *m = Model_Block_Content_Media{} } +func (m *Model_Block_Content_Media) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Media) ProtoMessage() {} +func (*Model_Block_Content_Media) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5} } -func (m *Model_Block_ContentMedia) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Media) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Media) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentMedia.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Media.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1026,107 +1062,109 @@ func (m *Model_Block_ContentMedia) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Model_Block_ContentMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentMedia.Merge(m, src) +func (m *Model_Block_Content_Media) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Media.Merge(m, src) } -func (m *Model_Block_ContentMedia) XXX_Size() int { +func (m *Model_Block_Content_Media) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentMedia) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentMedia.DiscardUnknown(m) +func (m *Model_Block_Content_Media) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Media.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentMedia proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Media proto.InternalMessageInfo -type isModel_Block_ContentMedia_Preview interface { - isModel_Block_ContentMedia_Preview() +type isModel_Block_Content_Media_Preview interface { + isModel_Block_Content_Media_Preview() MarshalTo([]byte) (int, error) Size() int } -type Model_Block_ContentMedia_Video struct { - Video *Model_Block_ContentMedia_VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` +type Model_Block_Content_Media_Video struct { + Video *Model_Block_Content_Media_VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` } -type Model_Block_ContentMedia_Image struct { - Image *Model_Block_ContentMedia_ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` +type Model_Block_Content_Media_Image struct { + Image *Model_Block_Content_Media_ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` } -type Model_Block_ContentMedia_File struct { - File *Model_Block_ContentMedia_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` +type Model_Block_Content_Media_File struct { + File *Model_Block_Content_Media_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` } -func (*Model_Block_ContentMedia_Video) isModel_Block_ContentMedia_Preview() {} -func (*Model_Block_ContentMedia_Image) isModel_Block_ContentMedia_Preview() {} -func (*Model_Block_ContentMedia_File) isModel_Block_ContentMedia_Preview() {} +func (*Model_Block_Content_Media_Video) isModel_Block_Content_Media_Preview() {} +func (*Model_Block_Content_Media_Image) isModel_Block_Content_Media_Preview() {} +func (*Model_Block_Content_Media_File) isModel_Block_Content_Media_Preview() {} -func (m *Model_Block_ContentMedia) GetPreview() isModel_Block_ContentMedia_Preview { +func (m *Model_Block_Content_Media) GetPreview() isModel_Block_Content_Media_Preview { if m != nil { return m.Preview } return nil } -func (m *Model_Block_ContentMedia) GetContent() []byte { +func (m *Model_Block_Content_Media) GetContent() []byte { if m != nil { return m.Content } return nil } -func (m *Model_Block_ContentMedia) GetState() Model_Block_ContentMedia_State { +func (m *Model_Block_Content_Media) GetState() Model_Block_Content_Media_State { if m != nil { return m.State } - return Model_Block_ContentMedia_EMPTY + return Model_Block_Content_Media_EMPTY } -func (m *Model_Block_ContentMedia) GetVideo() *Model_Block_ContentMedia_VideoPreview { - if x, ok := m.GetPreview().(*Model_Block_ContentMedia_Video); ok { +func (m *Model_Block_Content_Media) GetVideo() *Model_Block_Content_Media_VideoPreview { + if x, ok := m.GetPreview().(*Model_Block_Content_Media_Video); ok { return x.Video } return nil } -func (m *Model_Block_ContentMedia) GetImage() *Model_Block_ContentMedia_ImagePreview { - if x, ok := m.GetPreview().(*Model_Block_ContentMedia_Image); ok { +func (m *Model_Block_Content_Media) GetImage() *Model_Block_Content_Media_ImagePreview { + if x, ok := m.GetPreview().(*Model_Block_Content_Media_Image); ok { return x.Image } return nil } -func (m *Model_Block_ContentMedia) GetFile() *Model_Block_ContentMedia_FilePreview { - if x, ok := m.GetPreview().(*Model_Block_ContentMedia_File); ok { +func (m *Model_Block_Content_Media) GetFile() *Model_Block_Content_Media_FilePreview { + if x, ok := m.GetPreview().(*Model_Block_Content_Media_File); ok { return x.File } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Model_Block_ContentMedia) XXX_OneofWrappers() []interface{} { +func (*Model_Block_Content_Media) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Model_Block_ContentMedia_Video)(nil), - (*Model_Block_ContentMedia_Image)(nil), - (*Model_Block_ContentMedia_File)(nil), + (*Model_Block_Content_Media_Video)(nil), + (*Model_Block_Content_Media_Image)(nil), + (*Model_Block_Content_Media_File)(nil), } } -type Model_Block_ContentMedia_VideoPreview struct { +type Model_Block_Content_Media_VideoPreview struct { Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` } -func (m *Model_Block_ContentMedia_VideoPreview) Reset() { *m = Model_Block_ContentMedia_VideoPreview{} } -func (m *Model_Block_ContentMedia_VideoPreview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentMedia_VideoPreview) ProtoMessage() {} -func (*Model_Block_ContentMedia_VideoPreview) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 0} +func (m *Model_Block_Content_Media_VideoPreview) Reset() { + *m = Model_Block_Content_Media_VideoPreview{} } -func (m *Model_Block_ContentMedia_VideoPreview) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Media_VideoPreview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Media_VideoPreview) ProtoMessage() {} +func (*Model_Block_Content_Media_VideoPreview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 0} +} +func (m *Model_Block_Content_Media_VideoPreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentMedia_VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Media_VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentMedia_VideoPreview.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Media_VideoPreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1136,57 +1174,59 @@ func (m *Model_Block_ContentMedia_VideoPreview) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *Model_Block_ContentMedia_VideoPreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentMedia_VideoPreview.Merge(m, src) +func (m *Model_Block_Content_Media_VideoPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Media_VideoPreview.Merge(m, src) } -func (m *Model_Block_ContentMedia_VideoPreview) XXX_Size() int { +func (m *Model_Block_Content_Media_VideoPreview) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentMedia_VideoPreview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentMedia_VideoPreview.DiscardUnknown(m) +func (m *Model_Block_Content_Media_VideoPreview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Media_VideoPreview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentMedia_VideoPreview proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Media_VideoPreview proto.InternalMessageInfo -func (m *Model_Block_ContentMedia_VideoPreview) GetThumbnail() []byte { +func (m *Model_Block_Content_Media_VideoPreview) GetThumbnail() []byte { if m != nil { return m.Thumbnail } return nil } -func (m *Model_Block_ContentMedia_VideoPreview) GetName() string { +func (m *Model_Block_Content_Media_VideoPreview) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Block_ContentMedia_VideoPreview) GetWidth() int32 { +func (m *Model_Block_Content_Media_VideoPreview) GetWidth() int32 { if m != nil { return m.Width } return 0 } -type Model_Block_ContentMedia_ImagePreview struct { +type Model_Block_Content_Media_ImagePreview struct { Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` } -func (m *Model_Block_ContentMedia_ImagePreview) Reset() { *m = Model_Block_ContentMedia_ImagePreview{} } -func (m *Model_Block_ContentMedia_ImagePreview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentMedia_ImagePreview) ProtoMessage() {} -func (*Model_Block_ContentMedia_ImagePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 1} +func (m *Model_Block_Content_Media_ImagePreview) Reset() { + *m = Model_Block_Content_Media_ImagePreview{} } -func (m *Model_Block_ContentMedia_ImagePreview) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Media_ImagePreview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Media_ImagePreview) ProtoMessage() {} +func (*Model_Block_Content_Media_ImagePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 1} +} +func (m *Model_Block_Content_Media_ImagePreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentMedia_ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Media_ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentMedia_ImagePreview.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Media_ImagePreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1196,56 +1236,56 @@ func (m *Model_Block_ContentMedia_ImagePreview) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *Model_Block_ContentMedia_ImagePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentMedia_ImagePreview.Merge(m, src) +func (m *Model_Block_Content_Media_ImagePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Media_ImagePreview.Merge(m, src) } -func (m *Model_Block_ContentMedia_ImagePreview) XXX_Size() int { +func (m *Model_Block_Content_Media_ImagePreview) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentMedia_ImagePreview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentMedia_ImagePreview.DiscardUnknown(m) +func (m *Model_Block_Content_Media_ImagePreview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Media_ImagePreview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentMedia_ImagePreview proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Media_ImagePreview proto.InternalMessageInfo -func (m *Model_Block_ContentMedia_ImagePreview) GetThumbnail() []byte { +func (m *Model_Block_Content_Media_ImagePreview) GetThumbnail() []byte { if m != nil { return m.Thumbnail } return nil } -func (m *Model_Block_ContentMedia_ImagePreview) GetName() string { +func (m *Model_Block_Content_Media_ImagePreview) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Block_ContentMedia_ImagePreview) GetWidth() int32 { +func (m *Model_Block_Content_Media_ImagePreview) GetWidth() int32 { if m != nil { return m.Width } return 0 } -type Model_Block_ContentMedia_FilePreview struct { +type Model_Block_Content_Media_FilePreview struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` } -func (m *Model_Block_ContentMedia_FilePreview) Reset() { *m = Model_Block_ContentMedia_FilePreview{} } -func (m *Model_Block_ContentMedia_FilePreview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentMedia_FilePreview) ProtoMessage() {} -func (*Model_Block_ContentMedia_FilePreview) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 6, 2} +func (m *Model_Block_Content_Media_FilePreview) Reset() { *m = Model_Block_Content_Media_FilePreview{} } +func (m *Model_Block_Content_Media_FilePreview) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Media_FilePreview) ProtoMessage() {} +func (*Model_Block_Content_Media_FilePreview) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 2} } -func (m *Model_Block_ContentMedia_FilePreview) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Media_FilePreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentMedia_FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Media_FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentMedia_FilePreview.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Media_FilePreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1255,49 +1295,49 @@ func (m *Model_Block_ContentMedia_FilePreview) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *Model_Block_ContentMedia_FilePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentMedia_FilePreview.Merge(m, src) +func (m *Model_Block_Content_Media_FilePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Media_FilePreview.Merge(m, src) } -func (m *Model_Block_ContentMedia_FilePreview) XXX_Size() int { +func (m *Model_Block_Content_Media_FilePreview) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentMedia_FilePreview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentMedia_FilePreview.DiscardUnknown(m) +func (m *Model_Block_Content_Media_FilePreview) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Media_FilePreview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentMedia_FilePreview proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Media_FilePreview proto.InternalMessageInfo -func (m *Model_Block_ContentMedia_FilePreview) GetName() string { +func (m *Model_Block_Content_Media_FilePreview) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Block_ContentMedia_FilePreview) GetIcon() string { +func (m *Model_Block_Content_Media_FilePreview) GetIcon() string { if m != nil { return m.Icon } return "" } -type Model_Block_ContentPage struct { - Style Model_Block_ContentPage_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_ContentPage_Style" json:"style,omitempty"` - Blocks []*Model_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` +type Model_Block_Content_Page struct { + Style Model_Block_Content_Page_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Page_Style" json:"style,omitempty"` + Blocks []*Model_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` } -func (m *Model_Block_ContentPage) Reset() { *m = Model_Block_ContentPage{} } -func (m *Model_Block_ContentPage) String() string { return proto.CompactTextString(m) } -func (*Model_Block_ContentPage) ProtoMessage() {} -func (*Model_Block_ContentPage) Descriptor() ([]byte, []int) { - return fileDescriptor_0b5431a010549573, []int{0, 0, 7} +func (m *Model_Block_Content_Page) Reset() { *m = Model_Block_Content_Page{} } +func (m *Model_Block_Content_Page) String() string { return proto.CompactTextString(m) } +func (*Model_Block_Content_Page) ProtoMessage() {} +func (*Model_Block_Content_Page) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 6} } -func (m *Model_Block_ContentPage) XXX_Unmarshal(b []byte) error { +func (m *Model_Block_Content_Page) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_ContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Model_Block_Content_Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_ContentPage.Marshal(b, m, deterministic) + return xxx_messageInfo_Model_Block_Content_Page.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1307,26 +1347,26 @@ func (m *Model_Block_ContentPage) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *Model_Block_ContentPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_ContentPage.Merge(m, src) +func (m *Model_Block_Content_Page) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Block_Content_Page.Merge(m, src) } -func (m *Model_Block_ContentPage) XXX_Size() int { +func (m *Model_Block_Content_Page) XXX_Size() int { return m.Size() } -func (m *Model_Block_ContentPage) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_ContentPage.DiscardUnknown(m) +func (m *Model_Block_Content_Page) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Block_Content_Page.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_ContentPage proto.InternalMessageInfo +var xxx_messageInfo_Model_Block_Content_Page proto.InternalMessageInfo -func (m *Model_Block_ContentPage) GetStyle() Model_Block_ContentPage_Style { +func (m *Model_Block_Content_Page) GetStyle() Model_Block_Content_Page_Style { if m != nil { return m.Style } - return Model_Block_ContentPage_EMPTY + return Model_Block_Content_Page_EMPTY } -func (m *Model_Block_ContentPage) GetBlocks() []*Model_Block { +func (m *Model_Block_Content_Page) GetBlocks() []*Model_Block { if m != nil { return m.Blocks } @@ -1387,116 +1427,118 @@ func (m *Model_Range) GetTo() int32 { func init() { proto.RegisterEnum("anytype.Model_Block_Header_Type", Model_Block_Header_Type_name, Model_Block_Header_Type_value) - proto.RegisterEnum("anytype.Model_Block_ContentLayout_Style", Model_Block_ContentLayout_Style_name, Model_Block_ContentLayout_Style_value) - proto.RegisterEnum("anytype.Model_Block_ContentDashboard_Style", Model_Block_ContentDashboard_Style_name, Model_Block_ContentDashboard_Style_value) - proto.RegisterEnum("anytype.Model_Block_ContentText_Style", Model_Block_ContentText_Style_name, Model_Block_ContentText_Style_value) - proto.RegisterEnum("anytype.Model_Block_ContentText_MarkerType", Model_Block_ContentText_MarkerType_name, Model_Block_ContentText_MarkerType_value) - proto.RegisterEnum("anytype.Model_Block_ContentText_Mark_Type", Model_Block_ContentText_Mark_Type_name, Model_Block_ContentText_Mark_Type_value) - proto.RegisterEnum("anytype.Model_Block_ContentMedia_State", Model_Block_ContentMedia_State_name, Model_Block_ContentMedia_State_value) - proto.RegisterEnum("anytype.Model_Block_ContentPage_Style", Model_Block_ContentPage_Style_name, Model_Block_ContentPage_Style_value) + proto.RegisterEnum("anytype.Model_Block_Content_Layout_Style", Model_Block_Content_Layout_Style_name, Model_Block_Content_Layout_Style_value) + proto.RegisterEnum("anytype.Model_Block_Content_Dashboard_Style", Model_Block_Content_Dashboard_Style_name, Model_Block_Content_Dashboard_Style_value) + proto.RegisterEnum("anytype.Model_Block_Content_Text_Style", Model_Block_Content_Text_Style_name, Model_Block_Content_Text_Style_value) + proto.RegisterEnum("anytype.Model_Block_Content_Text_MarkerType", Model_Block_Content_Text_MarkerType_name, Model_Block_Content_Text_MarkerType_value) + proto.RegisterEnum("anytype.Model_Block_Content_Text_Mark_Type", Model_Block_Content_Text_Mark_Type_name, Model_Block_Content_Text_Mark_Type_value) + proto.RegisterEnum("anytype.Model_Block_Content_Media_State", Model_Block_Content_Media_State_name, Model_Block_Content_Media_State_value) + proto.RegisterEnum("anytype.Model_Block_Content_Page_Style", Model_Block_Content_Page_Style_name, Model_Block_Content_Page_Style_value) proto.RegisterType((*Model)(nil), "anytype.Model") proto.RegisterType((*Model_Block)(nil), "anytype.Model.Block") proto.RegisterType((*Model_Block_Header)(nil), "anytype.Model.Block.Header") proto.RegisterType((*Model_Block_Header_Permissions)(nil), "anytype.Model.Block.Header.Permissions") - proto.RegisterType((*Model_Block_ContentLayout)(nil), "anytype.Model.Block.ContentLayout") - proto.RegisterType((*Model_Block_ContentDiv)(nil), "anytype.Model.Block.ContentDiv") - proto.RegisterType((*Model_Block_ContentDashboard)(nil), "anytype.Model.Block.ContentDashboard") - proto.RegisterType((*Model_Block_ContentDataview)(nil), "anytype.Model.Block.ContentDataview") - proto.RegisterType((*Model_Block_ContentText)(nil), "anytype.Model.Block.ContentText") - proto.RegisterType((*Model_Block_ContentText_Marks)(nil), "anytype.Model.Block.ContentText.Marks") - proto.RegisterType((*Model_Block_ContentText_Mark)(nil), "anytype.Model.Block.ContentText.Mark") - proto.RegisterType((*Model_Block_ContentMedia)(nil), "anytype.Model.Block.ContentMedia") - proto.RegisterType((*Model_Block_ContentMedia_VideoPreview)(nil), "anytype.Model.Block.ContentMedia.VideoPreview") - proto.RegisterType((*Model_Block_ContentMedia_ImagePreview)(nil), "anytype.Model.Block.ContentMedia.ImagePreview") - proto.RegisterType((*Model_Block_ContentMedia_FilePreview)(nil), "anytype.Model.Block.ContentMedia.FilePreview") - proto.RegisterType((*Model_Block_ContentPage)(nil), "anytype.Model.Block.ContentPage") + proto.RegisterType((*Model_Block_Content)(nil), "anytype.Model.Block.Content") + proto.RegisterType((*Model_Block_Content_Layout)(nil), "anytype.Model.Block.Content.Layout") + proto.RegisterType((*Model_Block_Content_Div)(nil), "anytype.Model.Block.Content.Div") + proto.RegisterType((*Model_Block_Content_Dashboard)(nil), "anytype.Model.Block.Content.Dashboard") + proto.RegisterType((*Model_Block_Content_Dataview)(nil), "anytype.Model.Block.Content.Dataview") + proto.RegisterType((*Model_Block_Content_Text)(nil), "anytype.Model.Block.Content.Text") + proto.RegisterType((*Model_Block_Content_Text_Marks)(nil), "anytype.Model.Block.Content.Text.Marks") + proto.RegisterType((*Model_Block_Content_Text_Mark)(nil), "anytype.Model.Block.Content.Text.Mark") + proto.RegisterType((*Model_Block_Content_Media)(nil), "anytype.Model.Block.Content.Media") + proto.RegisterType((*Model_Block_Content_Media_VideoPreview)(nil), "anytype.Model.Block.Content.Media.VideoPreview") + proto.RegisterType((*Model_Block_Content_Media_ImagePreview)(nil), "anytype.Model.Block.Content.Media.ImagePreview") + proto.RegisterType((*Model_Block_Content_Media_FilePreview)(nil), "anytype.Model.Block.Content.Media.FilePreview") + proto.RegisterType((*Model_Block_Content_Page)(nil), "anytype.Model.Block.Content.Page") proto.RegisterType((*Model_Range)(nil), "anytype.Model.Range") } func init() { proto.RegisterFile("models.proto", fileDescriptor_0b5431a010549573) } var fileDescriptor_0b5431a010549573 = []byte{ - // 1274 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x8f, 0xdb, 0x44, - 0x18, 0xb6, 0x13, 0x3b, 0x1f, 0x6f, 0xb2, 0xbb, 0xd3, 0x51, 0x55, 0x59, 0xa6, 0x0a, 0x4b, 0x44, - 0xe9, 0xaa, 0x85, 0x48, 0x74, 0x5b, 0x24, 0x44, 0xa9, 0x94, 0x0f, 0x77, 0x63, 0xe5, 0x53, 0x93, - 0xec, 0x96, 0x72, 0x41, 0x4e, 0x3c, 0x9b, 0x58, 0x4d, 0xec, 0xe0, 0x78, 0xb7, 0x5d, 0x89, 0x9f, - 0xc0, 0x81, 0x5f, 0xc1, 0x91, 0x3f, 0xc0, 0x91, 0x0b, 0xc7, 0x72, 0x83, 0x1b, 0x6a, 0x7f, 0x05, - 0x37, 0x34, 0xef, 0x38, 0x89, 0xb7, 0x2a, 0x9b, 0x3d, 0x70, 0xf2, 0xbc, 0x33, 0xcf, 0xf3, 0x7e, - 0xcc, 0xbc, 0x1f, 0x86, 0xe2, 0x3c, 0x70, 0xf9, 0x6c, 0x59, 0x59, 0x84, 0x41, 0x14, 0xd0, 0xac, - 0xe3, 0x5f, 0x44, 0x17, 0x0b, 0x6e, 0x16, 0x97, 0x51, 0x78, 0x36, 0x8e, 0xe4, 0x76, 0xf9, 0xb7, - 0x5b, 0xa0, 0x77, 0x04, 0xce, 0xfc, 0xf1, 0x16, 0xe8, 0xb5, 0x59, 0x30, 0x7e, 0x41, 0x0f, 0x21, - 0x33, 0xe5, 0x8e, 0xcb, 0x43, 0x43, 0xdd, 0x57, 0x0f, 0x0a, 0x0f, 0x3e, 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, - 0x6f, 0x4b, 0xca, 0xb7, 0xa9, 0xc5, 0x68, 0x94, 0xc1, 0x5f, 0xed, 0xc3, 0x7f, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x0c, 0x3d, 0xcc, 0x16, 0x91, 0x0b, 0x00, 0x00, + // 1282 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x6e, 0xdb, 0x46, + 0x17, 0x26, 0x25, 0x52, 0x97, 0x23, 0xc7, 0x9e, 0x0c, 0xf2, 0x07, 0x04, 0xff, 0x40, 0x70, 0x55, + 0x34, 0x71, 0x9b, 0x40, 0x45, 0xe3, 0x04, 0x05, 0x8a, 0xa6, 0x81, 0x2e, 0x8c, 0x45, 0x58, 0x37, + 0x8c, 0x64, 0xa7, 0xe9, 0xa6, 0xa0, 0xc4, 0xb1, 0x44, 0x84, 0x22, 0x55, 0x8a, 0x76, 0x62, 0xa0, + 0x0f, 0xd1, 0x47, 0xe8, 0xaa, 0xe8, 0xb6, 0xeb, 0xbe, 0x40, 0x97, 0x41, 0x37, 0xed, 0xb2, 0x88, + 0xdf, 0xa1, 0x8b, 0xae, 0x8a, 0x39, 0x43, 0x4a, 0x72, 0x91, 0xda, 0x5a, 0x74, 0xc5, 0x39, 0x33, + 0xdf, 0x77, 0xce, 0x99, 0x39, 0x37, 0xc2, 0xd6, 0x2c, 0x74, 0xb9, 0xbf, 0xa8, 0xce, 0xa3, 0x30, + 0x0e, 0x69, 0xde, 0x09, 0xce, 0xe3, 0xf3, 0x39, 0x37, 0xb7, 0x16, 0x71, 0x74, 0x3a, 0x8e, 0xe5, + 0x76, 0xe5, 0xa7, 0xdb, 0xa0, 0x77, 0x04, 0xce, 0xfc, 0xeb, 0x7f, 0xa0, 0xd7, 0xfd, 0x70, 0xfc, + 0x92, 0xee, 0x43, 0x6e, 0xca, 0x1d, 0x97, 0x47, 0x86, 0xba, 0xab, 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 0x95, 0x37, 0x17, 0x65, 0xe5, 0xf7, 0x8b, 0xb2, 0xf2, 0x55, 0x66, 0x3e, 0x1a, 0xe5, + 0xf0, 0xc7, 0x7a, 0xff, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x44, 0xbb, 0xc2, 0x3a, 0x7f, 0x0b, + 0x00, 0x00, } func (m *Model) Marshal() (dAtA []byte, err error) { @@ -1858,7 +1900,7 @@ func (m *Model_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Model_Block_ContentLayout) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1868,12 +1910,35 @@ func (m *Model_Block_ContentLayout) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentLayout) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Model_Block_Content_Layout) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Block_Content_Layout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Block_Content_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1886,7 +1951,7 @@ func (m *Model_Block_ContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Model_Block_ContentDiv) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Div) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1896,12 +1961,12 @@ func (m *Model_Block_ContentDiv) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentDiv) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Div) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1909,7 +1974,7 @@ func (m *Model_Block_ContentDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Model_Block_ContentDashboard) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Dashboard) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1919,12 +1984,12 @@ func (m *Model_Block_ContentDashboard) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentDashboard) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Dashboard) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1951,7 +2016,7 @@ func (m *Model_Block_ContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Model_Block_ContentDataview) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Dataview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1961,12 +2026,12 @@ func (m *Model_Block_ContentDataview) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentDataview) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Dataview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1974,7 +2039,7 @@ func (m *Model_Block_ContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Model_Block_ContentText) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Text) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1984,12 +2049,12 @@ func (m *Model_Block_ContentText) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentText) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Text) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2056,7 +2121,7 @@ func (m *Model_Block_ContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Model_Block_ContentText_Marks) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Text_Marks) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2066,12 +2131,12 @@ func (m *Model_Block_ContentText_Marks) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentText_Marks) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Text_Marks) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentText_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Text_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2093,7 +2158,7 @@ func (m *Model_Block_ContentText_Marks) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Model_Block_ContentText_Mark) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Text_Mark) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2103,12 +2168,12 @@ func (m *Model_Block_ContentText_Mark) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentText_Mark) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Text_Mark) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Text_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2140,7 +2205,7 @@ func (m *Model_Block_ContentText_Mark) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Media) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2150,12 +2215,12 @@ func (m *Model_Block_ContentMedia) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentMedia) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2184,12 +2249,12 @@ func (m *Model_Block_ContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia_Video) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_Video) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Video != nil { { @@ -2207,12 +2272,12 @@ func (m *Model_Block_ContentMedia_Video) MarshalToSizedBuffer(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia_Image) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_Image) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Image != nil { { @@ -2230,12 +2295,12 @@ func (m *Model_Block_ContentMedia_Image) MarshalToSizedBuffer(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia_File) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_File) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.File != nil { { @@ -2253,7 +2318,7 @@ func (m *Model_Block_ContentMedia_File) MarshalToSizedBuffer(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia_VideoPreview) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Media_VideoPreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2263,12 +2328,12 @@ func (m *Model_Block_ContentMedia_VideoPreview) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *Model_Block_ContentMedia_VideoPreview) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_VideoPreview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia_VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2295,7 +2360,7 @@ func (m *Model_Block_ContentMedia_VideoPreview) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia_ImagePreview) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Media_ImagePreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2305,12 +2370,12 @@ func (m *Model_Block_ContentMedia_ImagePreview) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *Model_Block_ContentMedia_ImagePreview) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_ImagePreview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia_ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2337,7 +2402,7 @@ func (m *Model_Block_ContentMedia_ImagePreview) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *Model_Block_ContentMedia_FilePreview) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Media_FilePreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2347,12 +2412,12 @@ func (m *Model_Block_ContentMedia_FilePreview) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *Model_Block_ContentMedia_FilePreview) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_FilePreview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentMedia_FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Media_FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2374,7 +2439,7 @@ func (m *Model_Block_ContentMedia_FilePreview) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *Model_Block_ContentPage) Marshal() (dAtA []byte, err error) { +func (m *Model_Block_Content_Page) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2384,12 +2449,12 @@ func (m *Model_Block_ContentPage) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_ContentPage) MarshalTo(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Page) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_ContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Model_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2623,7 +2688,16 @@ func (m *Model_Block_Header_Permissions) Size() (n int) { return n } -func (m *Model_Block_ContentLayout) Size() (n int) { +func (m *Model_Block_Content) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Model_Block_Content_Layout) Size() (n int) { if m == nil { return 0 } @@ -2635,7 +2709,7 @@ func (m *Model_Block_ContentLayout) Size() (n int) { return n } -func (m *Model_Block_ContentDiv) Size() (n int) { +func (m *Model_Block_Content_Div) Size() (n int) { if m == nil { return 0 } @@ -2644,7 +2718,7 @@ func (m *Model_Block_ContentDiv) Size() (n int) { return n } -func (m *Model_Block_ContentDashboard) Size() (n int) { +func (m *Model_Block_Content_Dashboard) Size() (n int) { if m == nil { return 0 } @@ -2662,7 +2736,7 @@ func (m *Model_Block_ContentDashboard) Size() (n int) { return n } -func (m *Model_Block_ContentDataview) Size() (n int) { +func (m *Model_Block_Content_Dataview) Size() (n int) { if m == nil { return 0 } @@ -2671,7 +2745,7 @@ func (m *Model_Block_ContentDataview) Size() (n int) { return n } -func (m *Model_Block_ContentText) Size() (n int) { +func (m *Model_Block_Content_Text) Size() (n int) { if m == nil { return 0 } @@ -2703,7 +2777,7 @@ func (m *Model_Block_ContentText) Size() (n int) { return n } -func (m *Model_Block_ContentText_Marks) Size() (n int) { +func (m *Model_Block_Content_Text_Marks) Size() (n int) { if m == nil { return 0 } @@ -2718,7 +2792,7 @@ func (m *Model_Block_ContentText_Marks) Size() (n int) { return n } -func (m *Model_Block_ContentText_Mark) Size() (n int) { +func (m *Model_Block_Content_Text_Mark) Size() (n int) { if m == nil { return 0 } @@ -2738,7 +2812,7 @@ func (m *Model_Block_ContentText_Mark) Size() (n int) { return n } -func (m *Model_Block_ContentMedia) Size() (n int) { +func (m *Model_Block_Content_Media) Size() (n int) { if m == nil { return 0 } @@ -2757,7 +2831,7 @@ func (m *Model_Block_ContentMedia) Size() (n int) { return n } -func (m *Model_Block_ContentMedia_Video) Size() (n int) { +func (m *Model_Block_Content_Media_Video) Size() (n int) { if m == nil { return 0 } @@ -2769,7 +2843,7 @@ func (m *Model_Block_ContentMedia_Video) Size() (n int) { } return n } -func (m *Model_Block_ContentMedia_Image) Size() (n int) { +func (m *Model_Block_Content_Media_Image) Size() (n int) { if m == nil { return 0 } @@ -2781,7 +2855,7 @@ func (m *Model_Block_ContentMedia_Image) Size() (n int) { } return n } -func (m *Model_Block_ContentMedia_File) Size() (n int) { +func (m *Model_Block_Content_Media_File) Size() (n int) { if m == nil { return 0 } @@ -2793,7 +2867,7 @@ func (m *Model_Block_ContentMedia_File) Size() (n int) { } return n } -func (m *Model_Block_ContentMedia_VideoPreview) Size() (n int) { +func (m *Model_Block_Content_Media_VideoPreview) Size() (n int) { if m == nil { return 0 } @@ -2813,7 +2887,7 @@ func (m *Model_Block_ContentMedia_VideoPreview) Size() (n int) { return n } -func (m *Model_Block_ContentMedia_ImagePreview) Size() (n int) { +func (m *Model_Block_Content_Media_ImagePreview) Size() (n int) { if m == nil { return 0 } @@ -2833,7 +2907,7 @@ func (m *Model_Block_ContentMedia_ImagePreview) Size() (n int) { return n } -func (m *Model_Block_ContentMedia_FilePreview) Size() (n int) { +func (m *Model_Block_Content_Media_FilePreview) Size() (n int) { if m == nil { return 0 } @@ -2850,7 +2924,7 @@ func (m *Model_Block_ContentMedia_FilePreview) Size() (n int) { return n } -func (m *Model_Block_ContentPage) Size() (n int) { +func (m *Model_Block_Content_Page) Size() (n int) { if m == nil { return 0 } @@ -3068,7 +3142,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentDashboard{} + v := &Model_Block_Content_Dashboard{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3103,7 +3177,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentPage{} + v := &Model_Block_Content_Page{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3138,7 +3212,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentDataview{} + v := &Model_Block_Content_Dataview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3173,7 +3247,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentText{} + v := &Model_Block_Content_Text{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3208,7 +3282,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentMedia{} + v := &Model_Block_Content_Media{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3243,7 +3317,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentLayout{} + v := &Model_Block_Content_Layout{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3278,7 +3352,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentDiv{} + v := &Model_Block_Content_Div{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3637,7 +3711,7 @@ func (m *Model_Block_Header_Permissions) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentLayout) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3660,10 +3734,63 @@ func (m *Model_Block_ContentLayout) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentLayout: wiretype end group for non-group") + return fmt.Errorf("proto: Content: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentLayout: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Content: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Block_Content_Layout) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Layout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Layout: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3680,7 +3807,7 @@ func (m *Model_Block_ContentLayout) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_ContentLayout_Style(b&0x7F) << shift + m.Style |= Model_Block_Content_Layout_Style(b&0x7F) << shift if b < 0x80 { break } @@ -3709,7 +3836,7 @@ func (m *Model_Block_ContentLayout) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentDiv) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Div) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3732,10 +3859,10 @@ func (m *Model_Block_ContentDiv) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentDiv: wiretype end group for non-group") + return fmt.Errorf("proto: Div: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentDiv: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Div: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3762,7 +3889,7 @@ func (m *Model_Block_ContentDiv) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentDashboard) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3785,10 +3912,10 @@ func (m *Model_Block_ContentDashboard) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentDashboard: wiretype end group for non-group") + return fmt.Errorf("proto: Dashboard: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentDashboard: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Dashboard: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3805,7 +3932,7 @@ func (m *Model_Block_ContentDashboard) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_ContentDashboard_Style(b&0x7F) << shift + m.Style |= Model_Block_Content_Dashboard_Style(b&0x7F) << shift if b < 0x80 { break } @@ -3868,7 +3995,7 @@ func (m *Model_Block_ContentDashboard) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentDataview) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Dataview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3891,10 +4018,10 @@ func (m *Model_Block_ContentDataview) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentDataview: wiretype end group for non-group") + return fmt.Errorf("proto: Dataview: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentDataview: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Dataview: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3921,7 +4048,7 @@ func (m *Model_Block_ContentDataview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Text) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3944,10 +4071,10 @@ func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentText: wiretype end group for non-group") + return fmt.Errorf("proto: Text: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentText: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Text: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3996,7 +4123,7 @@ func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_ContentText_Style(b&0x7F) << shift + m.Style |= Model_Block_Content_Text_Style(b&0x7F) << shift if b < 0x80 { break } @@ -4031,7 +4158,7 @@ func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MarksList == nil { - m.MarksList = &Model_Block_ContentText_Marks{} + m.MarksList = &Model_Block_Content_Text_Marks{} } if err := m.MarksList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4071,7 +4198,7 @@ func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MarkerType |= Model_Block_ContentText_MarkerType(b&0x7F) << shift + m.MarkerType |= Model_Block_Content_Text_MarkerType(b&0x7F) << shift if b < 0x80 { break } @@ -4140,7 +4267,7 @@ func (m *Model_Block_ContentText) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentText_Marks) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Text_Marks) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4198,7 +4325,7 @@ func (m *Model_Block_ContentText_Marks) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Marks = append(m.Marks, &Model_Block_ContentText_Mark{}) + m.Marks = append(m.Marks, &Model_Block_Content_Text_Mark{}) if err := m.Marks[len(m.Marks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -4227,7 +4354,7 @@ func (m *Model_Block_ContentText_Marks) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentText_Mark) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Text_Mark) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4306,7 +4433,7 @@ func (m *Model_Block_ContentText_Mark) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Model_Block_ContentText_Mark_Type(b&0x7F) << shift + m.Type |= Model_Block_Content_Text_Mark_Type(b&0x7F) << shift if b < 0x80 { break } @@ -4367,7 +4494,7 @@ func (m *Model_Block_ContentText_Mark) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4390,10 +4517,10 @@ func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentMedia: wiretype end group for non-group") + return fmt.Errorf("proto: Media: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentMedia: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Media: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4444,7 +4571,7 @@ func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= Model_Block_ContentMedia_State(b&0x7F) << shift + m.State |= Model_Block_Content_Media_State(b&0x7F) << shift if b < 0x80 { break } @@ -4478,11 +4605,11 @@ func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentMedia_VideoPreview{} + v := &Model_Block_Content_Media_VideoPreview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Preview = &Model_Block_ContentMedia_Video{v} + m.Preview = &Model_Block_Content_Media_Video{v} iNdEx = postIndex case 102: if wireType != 2 { @@ -4513,11 +4640,11 @@ func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentMedia_ImagePreview{} + v := &Model_Block_Content_Media_ImagePreview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Preview = &Model_Block_ContentMedia_Image{v} + m.Preview = &Model_Block_Content_Media_Image{v} iNdEx = postIndex case 103: if wireType != 2 { @@ -4548,11 +4675,11 @@ func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_ContentMedia_FilePreview{} + v := &Model_Block_Content_Media_FilePreview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Preview = &Model_Block_ContentMedia_File{v} + m.Preview = &Model_Block_Content_Media_File{v} iNdEx = postIndex default: iNdEx = preIndex @@ -4578,7 +4705,7 @@ func (m *Model_Block_ContentMedia) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentMedia_VideoPreview) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Media_VideoPreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4716,7 +4843,7 @@ func (m *Model_Block_ContentMedia_VideoPreview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentMedia_ImagePreview) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Media_ImagePreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4854,7 +4981,7 @@ func (m *Model_Block_ContentMedia_ImagePreview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentMedia_FilePreview) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Media_FilePreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4971,7 +5098,7 @@ func (m *Model_Block_ContentMedia_FilePreview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_ContentPage) Unmarshal(dAtA []byte) error { +func (m *Model_Block_Content_Page) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4994,10 +5121,10 @@ func (m *Model_Block_ContentPage) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContentPage: wiretype end group for non-group") + return fmt.Errorf("proto: Page: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContentPage: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Page: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5014,7 +5141,7 @@ func (m *Model_Block_ContentPage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_ContentPage_Style(b&0x7F) << shift + m.Style |= Model_Block_Content_Page_Style(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/protos/changes.proto b/pb/protos/changes.proto index cdf04043c..f9309d2ff 100644 --- a/pb/protos/changes.proto +++ b/pb/protos/changes.proto @@ -25,33 +25,33 @@ message Change { message Page { oneof change { - Model.Block.ContentPage.Style style = 1; - Block block = 2; + Model.Block.Content.Page.Style style = 1; + Model.Block block = 2; } } message Dashboard { oneof change { - Model.Block.ContentDashboard.Style style = 1; - Block.Header header = 2; // not a dashboard header – one of children + Model.Block.Content.Dashboard.Style style = 1; + Model.Block.Header header = 2; // not a dashboard header – one of children } } message Media { oneof change { string link = 1; - Model.Block.ContentMedia.State state = 2; + Model.Block.Content.Media.State state = 2; } } message Text { oneof change { string text = 1; - Model.Block.ContentText.Style style = 2; - Model.Block.ContentText.Marks marks = 3; + Model.Block.Content.Text.Style style = 2; + Model.Block.Content.Text.Marks marks = 3; bool toggleable = 4; - Model.Block.ContentText.MarkerType markerType = 5; + Model.Block.Content.Text.MarkerType markerType = 5; bool checkable = 6; bool checked = 7; diff --git a/pb/protos/models.proto b/pb/protos/models.proto index d0574b19a..42a977ab8 100644 --- a/pb/protos/models.proto +++ b/pb/protos/models.proto @@ -10,14 +10,14 @@ message Model { repeated string children = 2; oneof content { - ContentDashboard dashboard = 11; - ContentPage page = 12; - ContentDataview dataview = 13; + Content.Dashboard dashboard = 11; + Content.Page page = 12; + Content.Dataview dataview = 13; - ContentText text = 14; - ContentMedia media = 15; - ContentLayout layout = 16; - ContentDiv div = 17; + Content.Text text = 14; + Content.Media media = 15; + Content.Layout layout = 16; + Content.Div div = 17; } message Header { @@ -50,127 +50,129 @@ message Model { } } - message ContentLayout { - Style style = 1; - - enum Style { - ROW = 0; - COLUMN = 1; - } - } - - message ContentDiv {} - - message ContentDashboard { - enum Style { - MAIN_SCREEN = 0; - // ... + message Content { + message Layout { + Style style = 1; + + enum Style { + ROW = 0; + COLUMN = 1; + } } - Style style = 1; - repeated Header headers = 2; - } + message Div {} - message ContentDataview { - // ... - } - - message ContentText { - enum Style { - p = 0; - h1 = 1; - h2 = 2; - h3 = 3; - h4 = 4; - quote = 5; - code = 6; - } - - enum MarkerType { - none = 0; - number = 1; - bullet = 2; - } - - message Marks { - repeated Mark marks = 1; - } - - message Mark { - - enum Type { - STRIKETHROUGH = 0; - KEYBOARD = 1; - ITALIC = 2; - BOLD = 3; - LINK = 4; + message Dashboard { + enum Style { + MAIN_SCREEN = 0; + // ... } - Range range = 1; - Type type = 2; - string param = 3; // link, color, etc + Style style = 1; + repeated Header headers = 2; } - string text = 1; - Style style = 2; - Marks marksList = 3; - - bool toggleable = 4; - MarkerType markerType = 5; - - bool checkable = 6; - bool checked = 7; - } - - message ContentMedia { - bytes content = 1; - State state = 2; - - oneof preview { - VideoPreview video = 101; - ImagePreview image = 102; - FilePreview file = 103; - } - - message VideoPreview { - bytes thumbnail = 1; - string name = 2; - int32 width = 3; - } - - message ImagePreview { - bytes thumbnail = 1; - string name = 2; - int32 width = 3; - } - - message FilePreview { - string name = 1; - string icon = 2; - } - - enum State { - EMPTY = 0; - UPLOADING = 1; - PREVIEW = 2; - DOWNLOADING = 3; - DONE = 4; - } - } - - message ContentPage { - enum Style { - EMPTY = 0; - TASK = 1; - BOOKMARK = 2; - SET = 3; + message Dataview { // ... } - Style style = 1; - repeated Block blocks = 2; + message Text { + enum Style { + p = 0; + h1 = 1; + h2 = 2; + h3 = 3; + h4 = 4; + quote = 5; + code = 6; + } + + enum MarkerType { + none = 0; + number = 1; + bullet = 2; + } + + message Marks { + repeated Mark marks = 1; + } + + message Mark { + + enum Type { + STRIKETHROUGH = 0; + KEYBOARD = 1; + ITALIC = 2; + BOLD = 3; + LINK = 4; + } + + Range range = 1; + Type type = 2; + string param = 3; // link, color, etc + } + + string text = 1; + Style style = 2; + Marks marksList = 3; + + bool toggleable = 4; + MarkerType markerType = 5; + + bool checkable = 6; + bool checked = 7; + } + + message Media { + bytes content = 1; + State state = 2; + + oneof preview { + VideoPreview video = 101; + ImagePreview image = 102; + FilePreview file = 103; + } + + message VideoPreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; + } + + message ImagePreview { + bytes thumbnail = 1; + string name = 2; + int32 width = 3; + } + + message FilePreview { + string name = 1; + string icon = 2; + } + + enum State { + EMPTY = 0; + UPLOADING = 1; + PREVIEW = 2; + DOWNLOADING = 3; + DONE = 4; + } + } + + message Page { + enum Style { + EMPTY = 0; + TASK = 1; + BOOKMARK = 2; + SET = 3; + // ... + } + + Style style = 1; + repeated Block blocks = 2; + } } - } + } message Range { int32 from = 1; From 93636be1dbfc70a424ab0ed78dc5b70ab576a14c Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 1 Nov 2019 21:54:12 +0100 Subject: [PATCH 17/24] #15: refactoring --- core/account.go | 2 +- core/core.go | 2 +- lib/service.pb.go | 122 +- pb/account.pb.go | 4428 ----------- pb/block-commands.pb.go | 2735 ------- pb/block-events.pb.go | 692 -- pb/commands.pb.go | 12300 ++++++++++++++++++++++++++++++ pb/edit.pb.go | 1299 ---- pb/event.pb.go | 1043 --- pb/events.pb.go | 3456 +++++++++ pb/file.pb.go | 2910 ------- pb/misc.pb.go | 1435 ---- pb/models.pb.go | 2469 +++++- pb/protos/account.proto | 186 - pb/protos/block-commands.proto | 91 - pb/protos/block-events.proto | 19 - pb/protos/changes.proto | 1 - pb/protos/commands.proto | 418 + pb/protos/edit.proto | 62 - pb/protos/event.proto | 23 - pb/protos/events.proto | 105 + pb/protos/file.proto | 103 - pb/protos/misc.proto | 57 - pb/protos/models.proto | 78 +- pb/protos/service/service.proto | 31 +- pb/protos/struct.proto | 50 - pb/struct.pb.go | 1230 --- 27 files changed, 18815 insertions(+), 16532 deletions(-) delete mode 100644 pb/account.pb.go delete mode 100644 pb/block-commands.pb.go delete mode 100644 pb/block-events.pb.go create mode 100644 pb/commands.pb.go delete mode 100644 pb/edit.pb.go delete mode 100644 pb/event.pb.go create mode 100644 pb/events.pb.go delete mode 100644 pb/file.pb.go delete mode 100644 pb/misc.pb.go delete mode 100644 pb/protos/account.proto delete mode 100644 pb/protos/block-commands.proto delete mode 100644 pb/protos/block-events.proto create mode 100644 pb/protos/commands.proto delete mode 100644 pb/protos/edit.proto delete mode 100644 pb/protos/event.proto create mode 100644 pb/protos/events.proto delete mode 100644 pb/protos/file.proto delete mode 100644 pb/protos/misc.proto delete mode 100644 pb/protos/struct.proto delete mode 100644 pb/struct.pb.go diff --git a/core/account.go b/core/account.go index f2f350939..cf90e5dc8 100644 --- a/core/account.go +++ b/core/account.go @@ -93,7 +93,7 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec } sendAccountAddEvent := func(index int, account *pb.Account) { - m := &pb.Event{Message: &pb.Event_AccountShow{AccountShow: &pb.AccountShow{Index: int64(index), Account: account}}} + m := &pb.Event{Message: &pb.Event_Account_Show{Index: int64(index), Account: account}} if mw.SendEvent != nil { mw.SendEvent(m) } diff --git a/core/core.go b/core/core.go index 96fb25024..09ac2a749 100644 --- a/core/core.go +++ b/core/core.go @@ -23,7 +23,7 @@ type Middleware struct { pin string mnemonic string accountSearchCancel context.CancelFunc - localAccounts []*pb.Account + localAccounts []*pb.Model_Account SendEvent func(event *pb.Event) *libCore.Anytype } diff --git a/lib/service.pb.go b/lib/service.pb.go index c39d7af23..fc6bc63dd 100644 --- a/lib/service.pb.go +++ b/lib/service.pb.go @@ -24,31 +24,31 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) } var fileDescriptor_a0b84a42fa06f626 = []byte{ - // 381 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xdf, 0x4e, 0xc2, 0x30, - 0x14, 0xc6, 0x43, 0x4c, 0x24, 0x56, 0x20, 0xda, 0x98, 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0xf3, 0x8d, 0x80, 0x03, 0xd3, 0x79, 0x5f, 0x9c, 0x97, 0xfa, 0x0c, 0x46, 0xdf, 0x80, 0xd4, 0x6e, - 0x03, 0x77, 0x0a, 0x3d, 0xd0, 0x0e, 0x97, 0x5e, 0x6a, 0x1f, 0xe9, 0x38, 0xbf, 0x8f, 0x2c, 0x45, - 0xd9, 0x0d, 0x21, 0x2f, 0x10, 0x29, 0x5f, 0x8a, 0x1e, 0x68, 0x6a, 0x25, 0xe5, 0x75, 0x68, 0x44, - 0xcd, 0x42, 0x86, 0x9a, 0x2b, 0x52, 0xbd, 0x93, 0xd3, 0x11, 0x88, 0x09, 0x3d, 0x4c, 0x7a, 0x98, - 0x18, 0xc1, 0x51, 0x1e, 0xe0, 0xb4, 0x43, 0x76, 0x9c, 0xbf, 0x8f, 0xf1, 0x31, 0x04, 0x41, 0x8f, - 0x93, 0x5a, 0x92, 0x19, 0x83, 0x55, 0x84, 0xd0, 0xd1, 0x27, 0xbb, 0xab, 0x10, 0x77, 0xd6, 0xcc, - 0x56, 0xb3, 0x1b, 0x6b, 0x15, 0xc3, 0x0d, 0xd3, 0x73, 0x38, 0x29, 0x30, 0xc5, 0x69, 0x89, 0xc9, - 0x40, 0x34, 0x8d, 0xc9, 0xde, 0x2a, 0xee, 0xfb, 0x4a, 0xcb, 0x68, 0x71, 0x2f, 0xe7, 0x40, 0x4f, - 0xb3, 0x13, 0x29, 0x64, 0x9c, 0x67, 0xff, 0x34, 0x62, 0xb1, 0xb3, 0xff, 0xb5, 0xb4, 0x2b, 0xdf, - 0x4b, 0xbb, 0xf2, 0xb3, 0xb4, 0x2b, 0xaf, 0x5b, 0xdc, 0xf7, 0xbc, 0xed, 0xd5, 0xff, 0x7b, 0xf9, - 0x1b, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xc9, 0xee, 0x7b, 0x16, 0x04, 0x00, 0x00, + // 379 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcf, 0x4e, 0x2a, 0x31, + 0x18, 0x47, 0x43, 0x6e, 0x72, 0xb9, 0xb7, 0x17, 0xc8, 0xb5, 0x4b, 0x12, 0x47, 0xfe, 0xa9, 0xbb, + 0x2e, 0xf4, 0x09, 0x84, 0x05, 0x98, 0xa0, 0x46, 0x50, 0x49, 0x48, 0x5c, 0x0c, 0xe5, 0x0b, 0x99, + 0x58, 0xda, 0x71, 0x5a, 0x48, 0x78, 0x2e, 0x5f, 0xc2, 0xa5, 0x8f, 0x60, 0x78, 0x12, 0xc3, 0xf4, + 0x4b, 0x75, 0x86, 0x99, 0x61, 0xdb, 0x73, 0x7e, 0x07, 0xd2, 0x26, 0x43, 0xaa, 0x1a, 0xa2, 0x75, + 0xc0, 0x81, 0x85, 0x91, 0x32, 0x8a, 0x96, 0x7d, 0xb9, 0x31, 0x9b, 0x10, 0xea, 0x35, 0xae, 0x96, + 0x4b, 0x5f, 0xce, 0xb5, 0x05, 0x17, 0x6f, 0x7f, 0x48, 0xad, 0x27, 0x02, 0x90, 0xa6, 0x87, 0x80, + 0x4e, 0x48, 0x65, 0xe2, 0x0b, 0x01, 0xa6, 0x17, 0x81, 0x6f, 0x80, 0xb6, 0x18, 0x8e, 0xd9, 0x28, + 0xe4, 0xcc, 0x22, 0x66, 0x19, 0x1b, 0xc1, 0xeb, 0x0a, 0xb4, 0xa9, 0xb7, 0x0b, 0x1d, 0x1d, 0x2a, + 0xa9, 0x81, 0x4e, 0x49, 0xd5, 0x92, 0x11, 0x70, 0xb5, 0x86, 0x88, 0x66, 0xae, 0x10, 0xba, 0x74, + 0xa7, 0x58, 0xc2, 0xf6, 0x33, 0xa9, 0x5d, 0x71, 0xae, 0x56, 0xd2, 0xc5, 0x93, 0x3b, 0x84, 0x7b, + 0xf5, 0xd3, 0x03, 0xd6, 0xf7, 0x5f, 0x47, 0x86, 0x97, 0xd2, 0xce, 0xdc, 0xa5, 0x6e, 0xa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c, 0xb9, 0xb6, 0x79, 0x04, 0x00, 0x00, } // This is a compile-time assertion to ensure that this generated file @@ -58,18 +58,18 @@ var fileDescriptor_a0b84a42fa06f626 = []byte{ var clientCommandsHandler ClientCommandsHandler type ClientCommandsHandler interface { - WalletCreate(*pb.WalletCreateRequest) *pb.WalletCreateResponse - WalletRecover(*pb.WalletRecoverRequest) *pb.WalletRecoverResponse - AccountRecover(*pb.AccountRecoverRequest) *pb.AccountRecoverResponse - AccountCreate(*pb.AccountCreateRequest) *pb.AccountCreateResponse - AccountSelect(*pb.AccountSelectRequest) *pb.AccountSelectResponse - ImageGetBlob(*pb.ImageGetBlobRequest) *pb.ImageGetBlobResponse - VersionGet(*pb.VersionGetRequest) *pb.VersionGetResponse - LogSend(*pb.LogSendRequest) *pb.LogSendResponse - BlockOpen(*pb.BlockOpenRequest) *pb.BlockOpenResponse - BlockCreate(*pb.BlockCreateRequest) *pb.BlockCreateResponse - BlockUpdate(*pb.BlockUpdateRequest) *pb.BlockUpdateResponse - BlockHistoryMove(*pb.BlockHistoryMoveRequest) *pb.BlockHistoryMoveResponse + WalletCreate(*pb.Rpc_Wallet_Create_Request) *pb.Rpc_Wallet_Create_Response + WalletRecover(*pb.Rpc_Wallet_Recover_Request) *pb.Rpc_Wallet_Recover_Response + AccountRecover(*pb.Rpc_Account_Recover_Request) *pb.Rpc_Account_Recover_Response + AccountCreate(*pb.Rpc_Account_Create_Request) *pb.Rpc_Account_Create_Response + AccountSelect(*pb.Rpc_Account_Select_Request) *pb.Rpc_Account_Select_Response + ImageGetBlob(*pb.Rpc_Image_GetBlob_Request) *pb.Rpc_Image_GetBlob_Response + VersionGet(*pb.Rpc_Version_Get_Request) *pb.Rpc_Version_Get_Response + LogSend(*pb.Rpc_Log_Send_Request) *pb.Rpc_Log_Send_Response + BlockOpen(*pb.Rpc_Block_Open_Request) *pb.Rpc_Block_Open_Response + BlockCreate(*pb.Rpc_Block_Create_Request) *pb.Rpc_Block_Create_Response + BlockUpdate(*pb.Rpc_Block_Update_Request) *pb.Rpc_Block_Update_Response + BlockHistoryMove(*pb.Rpc_Block_HistoryMove_Request) *pb.Rpc_Block_HistoryMove_Response } func registerClientCommandsHandler(srv ClientCommandsHandler) { @@ -77,9 +77,9 @@ func registerClientCommandsHandler(srv ClientCommandsHandler) { } func WalletCreate(b []byte) []byte { - in := new(pb.WalletCreateRequest) + in := new(pb.Rpc_Wallet_Create_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.WalletCreateResponse{Error: &pb.WalletCreateResponse_Error{Code: pb.WalletCreateResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Wallet_Create_Response{Error: &pb.Rpc_Wallet_Create_Response_Error{Code: pb.Rpc_Wallet_Create_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.WalletCreate(in).Marshal() @@ -87,9 +87,9 @@ func WalletCreate(b []byte) []byte { } func WalletRecover(b []byte) []byte { - in := new(pb.WalletRecoverRequest) + in := new(pb.Rpc_Wallet_Recover_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.WalletRecoverResponse{Error: &pb.WalletRecoverResponse_Error{Code: pb.WalletRecoverResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Wallet_Recover_Response{Error: &pb.Rpc_Wallet_Recover_Response_Error{Code: pb.Rpc_Wallet_Recover_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.WalletRecover(in).Marshal() @@ -97,9 +97,9 @@ func WalletRecover(b []byte) []byte { } func AccountRecover(b []byte) []byte { - in := new(pb.AccountRecoverRequest) + in := new(pb.Rpc_Account_Recover_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.AccountRecoverResponse{Error: &pb.AccountRecoverResponse_Error{Code: pb.AccountRecoverResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Account_Recover_Response{Error: &pb.Rpc_Account_Recover_Response_Error{Code: pb.Rpc_Account_Recover_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.AccountRecover(in).Marshal() @@ -107,9 +107,9 @@ func AccountRecover(b []byte) []byte { } func AccountCreate(b []byte) []byte { - in := new(pb.AccountCreateRequest) + in := new(pb.Rpc_Account_Create_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.AccountCreateResponse{Error: &pb.AccountCreateResponse_Error{Code: pb.AccountCreateResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Account_Create_Response{Error: &pb.Rpc_Account_Create_Response_Error{Code: pb.Rpc_Account_Create_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.AccountCreate(in).Marshal() @@ -117,9 +117,9 @@ func AccountCreate(b []byte) []byte { } func AccountSelect(b []byte) []byte { - in := new(pb.AccountSelectRequest) + in := new(pb.Rpc_Account_Select_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.AccountSelectResponse{Error: &pb.AccountSelectResponse_Error{Code: pb.AccountSelectResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Account_Select_Response{Error: &pb.Rpc_Account_Select_Response_Error{Code: pb.Rpc_Account_Select_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.AccountSelect(in).Marshal() @@ -127,9 +127,9 @@ func AccountSelect(b []byte) []byte { } func ImageGetBlob(b []byte) []byte { - in := new(pb.ImageGetBlobRequest) + in := new(pb.Rpc_Image_GetBlob_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.ImageGetBlobResponse{Error: &pb.ImageGetBlobResponse_Error{Code: pb.ImageGetBlobResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Image_GetBlob_Response{Error: &pb.Rpc_Image_GetBlob_Response_Error{Code: pb.Rpc_Image_GetBlob_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.ImageGetBlob(in).Marshal() @@ -137,9 +137,9 @@ func ImageGetBlob(b []byte) []byte { } func VersionGet(b []byte) []byte { - in := new(pb.VersionGetRequest) + in := new(pb.Rpc_Version_Get_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.VersionGetResponse{Error: &pb.VersionGetResponse_Error{Code: pb.VersionGetResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Version_Get_Response{Error: &pb.Rpc_Version_Get_Response_Error{Code: pb.Rpc_Version_Get_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.VersionGet(in).Marshal() @@ -147,9 +147,9 @@ func VersionGet(b []byte) []byte { } func LogSend(b []byte) []byte { - in := new(pb.LogSendRequest) + in := new(pb.Rpc_Log_Send_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.LogSendResponse{Error: &pb.LogSendResponse_Error{Code: pb.LogSendResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Log_Send_Response{Error: &pb.Rpc_Log_Send_Response_Error{Code: pb.Rpc_Log_Send_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.LogSend(in).Marshal() @@ -157,9 +157,9 @@ func LogSend(b []byte) []byte { } func BlockOpen(b []byte) []byte { - in := new(pb.BlockOpenRequest) + in := new(pb.Rpc_Block_Open_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.BlockOpenResponse{Error: &pb.BlockOpenResponse_Error{Code: pb.BlockOpenResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Block_Open_Response{Error: &pb.Rpc_Block_Open_Response_Error{Code: pb.Rpc_Block_Open_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockOpen(in).Marshal() @@ -167,9 +167,9 @@ func BlockOpen(b []byte) []byte { } func BlockCreate(b []byte) []byte { - in := new(pb.BlockCreateRequest) + in := new(pb.Rpc_Block_Create_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.BlockCreateResponse{Error: &pb.BlockCreateResponse_Error{Code: pb.BlockCreateResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Block_Create_Response{Error: &pb.Rpc_Block_Create_Response_Error{Code: pb.Rpc_Block_Create_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockCreate(in).Marshal() @@ -177,9 +177,9 @@ func BlockCreate(b []byte) []byte { } func BlockUpdate(b []byte) []byte { - in := new(pb.BlockUpdateRequest) + in := new(pb.Rpc_Block_Update_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.BlockUpdateResponse{Error: &pb.BlockUpdateResponse_Error{Code: pb.BlockUpdateResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Block_Update_Response{Error: &pb.Rpc_Block_Update_Response_Error{Code: pb.Rpc_Block_Update_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockUpdate(in).Marshal() @@ -187,9 +187,9 @@ func BlockUpdate(b []byte) []byte { } func BlockHistoryMove(b []byte) []byte { - in := new(pb.BlockHistoryMoveRequest) + in := new(pb.Rpc_Block_HistoryMove_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.BlockHistoryMoveResponse{Error: &pb.BlockHistoryMoveResponse_Error{Code: pb.BlockHistoryMoveResponse_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Block_HistoryMove_Response{Error: &pb.Rpc_Block_HistoryMove_Response_Error{Code: pb.Rpc_Block_HistoryMove_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockHistoryMove(in).Marshal() diff --git a/pb/account.pb.go b/pb/account.pb.go deleted file mode 100644 index eea09d063..000000000 --- a/pb/account.pb.go +++ /dev/null @@ -1,4428 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: account.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type WalletCreateResponse_Error_Code int32 - -const ( - WalletCreateResponse_Error_NULL WalletCreateResponse_Error_Code = 0 - WalletCreateResponse_Error_UNKNOWN_ERROR WalletCreateResponse_Error_Code = 1 - WalletCreateResponse_Error_BAD_INPUT WalletCreateResponse_Error_Code = 2 - WalletCreateResponse_Error_FAILED_TO_CREATE_LOCAL_REPO WalletCreateResponse_Error_Code = 101 -) - -var WalletCreateResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "FAILED_TO_CREATE_LOCAL_REPO", -} - -var WalletCreateResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "FAILED_TO_CREATE_LOCAL_REPO": 101, -} - -func (x WalletCreateResponse_Error_Code) String() string { - return proto.EnumName(WalletCreateResponse_Error_Code_name, int32(x)) -} - -func (WalletCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{3, 0, 0} -} - -type WalletRecoverResponse_Error_Code int32 - -const ( - WalletRecoverResponse_Error_NULL WalletRecoverResponse_Error_Code = 0 - WalletRecoverResponse_Error_UNKNOWN_ERROR WalletRecoverResponse_Error_Code = 1 - WalletRecoverResponse_Error_BAD_INPUT WalletRecoverResponse_Error_Code = 2 - WalletRecoverResponse_Error_FAILED_TO_CREATE_LOCAL_REPO WalletRecoverResponse_Error_Code = 101 -) - -var WalletRecoverResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "FAILED_TO_CREATE_LOCAL_REPO", -} - -var WalletRecoverResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "FAILED_TO_CREATE_LOCAL_REPO": 101, -} - -func (x WalletRecoverResponse_Error_Code) String() string { - return proto.EnumName(WalletRecoverResponse_Error_Code_name, int32(x)) -} - -func (WalletRecoverResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{5, 0, 0} -} - -type AccountCreateResponse_Error_Code int32 - -const ( - AccountCreateResponse_Error_NULL AccountCreateResponse_Error_Code = 0 - AccountCreateResponse_Error_UNKNOWN_ERROR AccountCreateResponse_Error_Code = 1 - AccountCreateResponse_Error_BAD_INPUT AccountCreateResponse_Error_Code = 2 - AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE AccountCreateResponse_Error_Code = 101 - AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME AccountCreateResponse_Error_Code = 102 - AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR AccountCreateResponse_Error_Code = 103 -) - -var AccountCreateResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE", - 102: "ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME", - 103: "ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR", -} - -var AccountCreateResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE": 101, - "ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME": 102, - "ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR": 103, -} - -func (x AccountCreateResponse_Error_Code) String() string { - return proto.EnumName(AccountCreateResponse_Error_Code_name, int32(x)) -} - -func (AccountCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{7, 0, 0} -} - -type AccountRecoverResponse_Error_Code int32 - -const ( - AccountRecoverResponse_Error_NULL AccountRecoverResponse_Error_Code = 0 - AccountRecoverResponse_Error_UNKNOWN_ERROR AccountRecoverResponse_Error_Code = 1 - AccountRecoverResponse_Error_BAD_INPUT AccountRecoverResponse_Error_Code = 2 - AccountRecoverResponse_Error_NO_ACCOUNTS_FOUND AccountRecoverResponse_Error_Code = 101 - AccountRecoverResponse_Error_NEED_TO_RECOVER_WALLET_FIRST AccountRecoverResponse_Error_Code = 102 - AccountRecoverResponse_Error_FAILED_TO_CREATE_LOCAL_REPO AccountRecoverResponse_Error_Code = 103 - AccountRecoverResponse_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED AccountRecoverResponse_Error_Code = 104 - AccountRecoverResponse_Error_FAILED_TO_RUN_NODE AccountRecoverResponse_Error_Code = 105 - AccountRecoverResponse_Error_WALLET_RECOVER_NOT_PERFORMED AccountRecoverResponse_Error_Code = 106 -) - -var AccountRecoverResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NO_ACCOUNTS_FOUND", - 102: "NEED_TO_RECOVER_WALLET_FIRST", - 103: "FAILED_TO_CREATE_LOCAL_REPO", - 104: "LOCAL_REPO_EXISTS_BUT_CORRUPTED", - 105: "FAILED_TO_RUN_NODE", - 106: "WALLET_RECOVER_NOT_PERFORMED", -} - -var AccountRecoverResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NO_ACCOUNTS_FOUND": 101, - "NEED_TO_RECOVER_WALLET_FIRST": 102, - "FAILED_TO_CREATE_LOCAL_REPO": 103, - "LOCAL_REPO_EXISTS_BUT_CORRUPTED": 104, - "FAILED_TO_RUN_NODE": 105, - "WALLET_RECOVER_NOT_PERFORMED": 106, -} - -func (x AccountRecoverResponse_Error_Code) String() string { - return proto.EnumName(AccountRecoverResponse_Error_Code_name, int32(x)) -} - -func (AccountRecoverResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{9, 0, 0} -} - -type AccountSelectResponse_Error_Code int32 - -const ( - AccountSelectResponse_Error_NULL AccountSelectResponse_Error_Code = 0 - AccountSelectResponse_Error_UNKNOWN_ERROR AccountSelectResponse_Error_Code = 1 - AccountSelectResponse_Error_BAD_INPUT AccountSelectResponse_Error_Code = 2 - AccountSelectResponse_Error_FAILED_TO_CREATE_LOCAL_REPO AccountSelectResponse_Error_Code = 101 - AccountSelectResponse_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED AccountSelectResponse_Error_Code = 102 - AccountSelectResponse_Error_FAILED_TO_RUN_NODE AccountSelectResponse_Error_Code = 103 - AccountSelectResponse_Error_FAILED_TO_FIND_ACCOUNT_INFO AccountSelectResponse_Error_Code = 104 - AccountSelectResponse_Error_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET AccountSelectResponse_Error_Code = 105 -) - -var AccountSelectResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "FAILED_TO_CREATE_LOCAL_REPO", - 102: "LOCAL_REPO_EXISTS_BUT_CORRUPTED", - 103: "FAILED_TO_RUN_NODE", - 104: "FAILED_TO_FIND_ACCOUNT_INFO", - 105: "LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET", -} - -var AccountSelectResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "FAILED_TO_CREATE_LOCAL_REPO": 101, - "LOCAL_REPO_EXISTS_BUT_CORRUPTED": 102, - "FAILED_TO_RUN_NODE": 103, - "FAILED_TO_FIND_ACCOUNT_INFO": 104, - "LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET": 105, -} - -func (x AccountSelectResponse_Error_Code) String() string { - return proto.EnumName(AccountSelectResponse_Error_Code_name, int32(x)) -} - -func (AccountSelectResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{11, 0, 0} -} - -//* -// Avatar of a user's account. It could be an image or color -type Avatar struct { - // Types that are valid to be assigned to Avatar: - // *Avatar_Image - // *Avatar_Color - Avatar isAvatar_Avatar `protobuf_oneof:"avatar"` -} - -func (m *Avatar) Reset() { *m = Avatar{} } -func (m *Avatar) String() string { return proto.CompactTextString(m) } -func (*Avatar) ProtoMessage() {} -func (*Avatar) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{0} -} -func (m *Avatar) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Avatar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Avatar.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Avatar) XXX_Merge(src proto.Message) { - xxx_messageInfo_Avatar.Merge(m, src) -} -func (m *Avatar) XXX_Size() int { - return m.Size() -} -func (m *Avatar) XXX_DiscardUnknown() { - xxx_messageInfo_Avatar.DiscardUnknown(m) -} - -var xxx_messageInfo_Avatar proto.InternalMessageInfo - -type isAvatar_Avatar interface { - isAvatar_Avatar() - MarshalTo([]byte) (int, error) - Size() int -} - -type Avatar_Image struct { - Image *Image `protobuf:"bytes,1,opt,name=image,proto3,oneof" json:"image,omitempty"` -} -type Avatar_Color struct { - Color string `protobuf:"bytes,2,opt,name=color,proto3,oneof" json:"color,omitempty"` -} - -func (*Avatar_Image) isAvatar_Avatar() {} -func (*Avatar_Color) isAvatar_Avatar() {} - -func (m *Avatar) GetAvatar() isAvatar_Avatar { - if m != nil { - return m.Avatar - } - return nil -} - -func (m *Avatar) GetImage() *Image { - if x, ok := m.GetAvatar().(*Avatar_Image); ok { - return x.Image - } - return nil -} - -func (m *Avatar) GetColor() string { - if x, ok := m.GetAvatar().(*Avatar_Color); ok { - return x.Color - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Avatar) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Avatar_Image)(nil), - (*Avatar_Color)(nil), - } -} - -//* -// The Account message contains basic information about a user's account -type Account struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Avatar *Avatar `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` -} - -func (m *Account) Reset() { *m = Account{} } -func (m *Account) String() string { return proto.CompactTextString(m) } -func (*Account) ProtoMessage() {} -func (*Account) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{1} -} -func (m *Account) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Account.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Account) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account.Merge(m, src) -} -func (m *Account) XXX_Size() int { - return m.Size() -} -func (m *Account) XXX_DiscardUnknown() { - xxx_messageInfo_Account.DiscardUnknown(m) -} - -var xxx_messageInfo_Account proto.InternalMessageInfo - -func (m *Account) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Account) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Account) GetAvatar() *Avatar { - if m != nil { - return m.Avatar - } - return nil -} - -//* -// Front-end-to-middleware request to create a new wallet -type WalletCreateRequest struct { - RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` -} - -func (m *WalletCreateRequest) Reset() { *m = WalletCreateRequest{} } -func (m *WalletCreateRequest) String() string { return proto.CompactTextString(m) } -func (*WalletCreateRequest) ProtoMessage() {} -func (*WalletCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{2} -} -func (m *WalletCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WalletCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WalletCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WalletCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletCreateRequest.Merge(m, src) -} -func (m *WalletCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *WalletCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WalletCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WalletCreateRequest proto.InternalMessageInfo - -func (m *WalletCreateRequest) GetRootPath() string { - if m != nil { - return m.RootPath - } - return "" -} - -//* -// Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error -type WalletCreateResponse struct { - Error *WalletCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` -} - -func (m *WalletCreateResponse) Reset() { *m = WalletCreateResponse{} } -func (m *WalletCreateResponse) String() string { return proto.CompactTextString(m) } -func (*WalletCreateResponse) ProtoMessage() {} -func (*WalletCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{3} -} -func (m *WalletCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WalletCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WalletCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WalletCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletCreateResponse.Merge(m, src) -} -func (m *WalletCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *WalletCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WalletCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WalletCreateResponse proto.InternalMessageInfo - -func (m *WalletCreateResponse) GetError() *WalletCreateResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *WalletCreateResponse) GetMnemonic() string { - if m != nil { - return m.Mnemonic - } - return "" -} - -type WalletCreateResponse_Error struct { - Code WalletCreateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.WalletCreateResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *WalletCreateResponse_Error) Reset() { *m = WalletCreateResponse_Error{} } -func (m *WalletCreateResponse_Error) String() string { return proto.CompactTextString(m) } -func (*WalletCreateResponse_Error) ProtoMessage() {} -func (*WalletCreateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{3, 0} -} -func (m *WalletCreateResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WalletCreateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WalletCreateResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WalletCreateResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletCreateResponse_Error.Merge(m, src) -} -func (m *WalletCreateResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *WalletCreateResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_WalletCreateResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_WalletCreateResponse_Error proto.InternalMessageInfo - -func (m *WalletCreateResponse_Error) GetCode() WalletCreateResponse_Error_Code { - if m != nil { - return m.Code - } - return WalletCreateResponse_Error_NULL -} - -func (m *WalletCreateResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -//* -// Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath -type WalletRecoverRequest struct { - RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` - Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` -} - -func (m *WalletRecoverRequest) Reset() { *m = WalletRecoverRequest{} } -func (m *WalletRecoverRequest) String() string { return proto.CompactTextString(m) } -func (*WalletRecoverRequest) ProtoMessage() {} -func (*WalletRecoverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{4} -} -func (m *WalletRecoverRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WalletRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WalletRecoverRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WalletRecoverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletRecoverRequest.Merge(m, src) -} -func (m *WalletRecoverRequest) XXX_Size() int { - return m.Size() -} -func (m *WalletRecoverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WalletRecoverRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WalletRecoverRequest proto.InternalMessageInfo - -func (m *WalletRecoverRequest) GetRootPath() string { - if m != nil { - return m.RootPath - } - return "" -} - -func (m *WalletRecoverRequest) GetMnemonic() string { - if m != nil { - return m.Mnemonic - } - return "" -} - -//* -// Middleware-to-front-end response, that can contain a NULL error or a non-NULL error -type WalletRecoverResponse struct { - Error *WalletRecoverResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *WalletRecoverResponse) Reset() { *m = WalletRecoverResponse{} } -func (m *WalletRecoverResponse) String() string { return proto.CompactTextString(m) } -func (*WalletRecoverResponse) ProtoMessage() {} -func (*WalletRecoverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{5} -} -func (m *WalletRecoverResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WalletRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WalletRecoverResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WalletRecoverResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletRecoverResponse.Merge(m, src) -} -func (m *WalletRecoverResponse) XXX_Size() int { - return m.Size() -} -func (m *WalletRecoverResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WalletRecoverResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WalletRecoverResponse proto.InternalMessageInfo - -func (m *WalletRecoverResponse) GetError() *WalletRecoverResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type WalletRecoverResponse_Error struct { - Code WalletRecoverResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.WalletRecoverResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *WalletRecoverResponse_Error) Reset() { *m = WalletRecoverResponse_Error{} } -func (m *WalletRecoverResponse_Error) String() string { return proto.CompactTextString(m) } -func (*WalletRecoverResponse_Error) ProtoMessage() {} -func (*WalletRecoverResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{5, 0} -} -func (m *WalletRecoverResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WalletRecoverResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WalletRecoverResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WalletRecoverResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletRecoverResponse_Error.Merge(m, src) -} -func (m *WalletRecoverResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *WalletRecoverResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_WalletRecoverResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_WalletRecoverResponse_Error proto.InternalMessageInfo - -func (m *WalletRecoverResponse_Error) GetCode() WalletRecoverResponse_Error_Code { - if m != nil { - return m.Code - } - return WalletRecoverResponse_Error_NULL -} - -func (m *WalletRecoverResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -//* -// Front end to middleware request-to-create-an account -type AccountCreateRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Types that are valid to be assigned to Avatar: - // *AccountCreateRequest_AvatarLocalPath - // *AccountCreateRequest_AvatarColor - Avatar isAccountCreateRequest_Avatar `protobuf_oneof:"avatar"` -} - -func (m *AccountCreateRequest) Reset() { *m = AccountCreateRequest{} } -func (m *AccountCreateRequest) String() string { return proto.CompactTextString(m) } -func (*AccountCreateRequest) ProtoMessage() {} -func (*AccountCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{6} -} -func (m *AccountCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountCreateRequest.Merge(m, src) -} -func (m *AccountCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *AccountCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AccountCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountCreateRequest proto.InternalMessageInfo - -type isAccountCreateRequest_Avatar interface { - isAccountCreateRequest_Avatar() - MarshalTo([]byte) (int, error) - Size() int -} - -type AccountCreateRequest_AvatarLocalPath struct { - AvatarLocalPath string `protobuf:"bytes,2,opt,name=avatarLocalPath,proto3,oneof" json:"avatarLocalPath,omitempty"` -} -type AccountCreateRequest_AvatarColor struct { - AvatarColor string `protobuf:"bytes,3,opt,name=avatarColor,proto3,oneof" json:"avatarColor,omitempty"` -} - -func (*AccountCreateRequest_AvatarLocalPath) isAccountCreateRequest_Avatar() {} -func (*AccountCreateRequest_AvatarColor) isAccountCreateRequest_Avatar() {} - -func (m *AccountCreateRequest) GetAvatar() isAccountCreateRequest_Avatar { - if m != nil { - return m.Avatar - } - return nil -} - -func (m *AccountCreateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *AccountCreateRequest) GetAvatarLocalPath() string { - if x, ok := m.GetAvatar().(*AccountCreateRequest_AvatarLocalPath); ok { - return x.AvatarLocalPath - } - return "" -} - -func (m *AccountCreateRequest) GetAvatarColor() string { - if x, ok := m.GetAvatar().(*AccountCreateRequest_AvatarColor); ok { - return x.AvatarColor - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AccountCreateRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AccountCreateRequest_AvatarLocalPath)(nil), - (*AccountCreateRequest_AvatarColor)(nil), - } -} - -//* -// Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account -type AccountCreateResponse struct { - Error *AccountCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *AccountCreateResponse) Reset() { *m = AccountCreateResponse{} } -func (m *AccountCreateResponse) String() string { return proto.CompactTextString(m) } -func (*AccountCreateResponse) ProtoMessage() {} -func (*AccountCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{7} -} -func (m *AccountCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountCreateResponse.Merge(m, src) -} -func (m *AccountCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *AccountCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AccountCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountCreateResponse proto.InternalMessageInfo - -func (m *AccountCreateResponse) GetError() *AccountCreateResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *AccountCreateResponse) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -type AccountCreateResponse_Error struct { - Code AccountCreateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.AccountCreateResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *AccountCreateResponse_Error) Reset() { *m = AccountCreateResponse_Error{} } -func (m *AccountCreateResponse_Error) String() string { return proto.CompactTextString(m) } -func (*AccountCreateResponse_Error) ProtoMessage() {} -func (*AccountCreateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{7, 0} -} -func (m *AccountCreateResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountCreateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountCreateResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountCreateResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountCreateResponse_Error.Merge(m, src) -} -func (m *AccountCreateResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *AccountCreateResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_AccountCreateResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountCreateResponse_Error proto.InternalMessageInfo - -func (m *AccountCreateResponse_Error) GetCode() AccountCreateResponse_Error_Code { - if m != nil { - return m.Code - } - return AccountCreateResponse_Error_NULL -} - -func (m *AccountCreateResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -//* -// Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. -// Each of an account that would be found will come with an AccountAdd event -type AccountRecoverRequest struct { -} - -func (m *AccountRecoverRequest) Reset() { *m = AccountRecoverRequest{} } -func (m *AccountRecoverRequest) String() string { return proto.CompactTextString(m) } -func (*AccountRecoverRequest) ProtoMessage() {} -func (*AccountRecoverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{8} -} -func (m *AccountRecoverRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountRecoverRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountRecoverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountRecoverRequest.Merge(m, src) -} -func (m *AccountRecoverRequest) XXX_Size() int { - return m.Size() -} -func (m *AccountRecoverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AccountRecoverRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountRecoverRequest proto.InternalMessageInfo - -//* -// Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account -type AccountRecoverResponse struct { - Error *AccountRecoverResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *AccountRecoverResponse) Reset() { *m = AccountRecoverResponse{} } -func (m *AccountRecoverResponse) String() string { return proto.CompactTextString(m) } -func (*AccountRecoverResponse) ProtoMessage() {} -func (*AccountRecoverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{9} -} -func (m *AccountRecoverResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountRecoverResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountRecoverResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountRecoverResponse.Merge(m, src) -} -func (m *AccountRecoverResponse) XXX_Size() int { - return m.Size() -} -func (m *AccountRecoverResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AccountRecoverResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountRecoverResponse proto.InternalMessageInfo - -func (m *AccountRecoverResponse) GetError() *AccountRecoverResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type AccountRecoverResponse_Error struct { - Code AccountRecoverResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.AccountRecoverResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *AccountRecoverResponse_Error) Reset() { *m = AccountRecoverResponse_Error{} } -func (m *AccountRecoverResponse_Error) String() string { return proto.CompactTextString(m) } -func (*AccountRecoverResponse_Error) ProtoMessage() {} -func (*AccountRecoverResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{9, 0} -} -func (m *AccountRecoverResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountRecoverResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountRecoverResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountRecoverResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountRecoverResponse_Error.Merge(m, src) -} -func (m *AccountRecoverResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *AccountRecoverResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_AccountRecoverResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountRecoverResponse_Error proto.InternalMessageInfo - -func (m *AccountRecoverResponse_Error) GetCode() AccountRecoverResponse_Error_Code { - if m != nil { - return m.Code - } - return AccountRecoverResponse_Error_NULL -} - -func (m *AccountRecoverResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -//* -// Front end to middleware request-to-launch-a specific account using account id and a root path -// User can select an account from those, that came with an AccountAdd events -type AccountSelectRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - RootPath string `protobuf:"bytes,2,opt,name=rootPath,proto3" json:"rootPath,omitempty"` -} - -func (m *AccountSelectRequest) Reset() { *m = AccountSelectRequest{} } -func (m *AccountSelectRequest) String() string { return proto.CompactTextString(m) } -func (*AccountSelectRequest) ProtoMessage() {} -func (*AccountSelectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{10} -} -func (m *AccountSelectRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountSelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountSelectRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountSelectRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountSelectRequest.Merge(m, src) -} -func (m *AccountSelectRequest) XXX_Size() int { - return m.Size() -} -func (m *AccountSelectRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AccountSelectRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountSelectRequest proto.InternalMessageInfo - -func (m *AccountSelectRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *AccountSelectRequest) GetRootPath() string { - if m != nil { - return m.RootPath - } - return "" -} - -//* -// Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account -type AccountSelectResponse struct { - Error *AccountSelectResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *AccountSelectResponse) Reset() { *m = AccountSelectResponse{} } -func (m *AccountSelectResponse) String() string { return proto.CompactTextString(m) } -func (*AccountSelectResponse) ProtoMessage() {} -func (*AccountSelectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{11} -} -func (m *AccountSelectResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountSelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountSelectResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountSelectResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountSelectResponse.Merge(m, src) -} -func (m *AccountSelectResponse) XXX_Size() int { - return m.Size() -} -func (m *AccountSelectResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AccountSelectResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountSelectResponse proto.InternalMessageInfo - -func (m *AccountSelectResponse) GetError() *AccountSelectResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *AccountSelectResponse) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -type AccountSelectResponse_Error struct { - Code AccountSelectResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.AccountSelectResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *AccountSelectResponse_Error) Reset() { *m = AccountSelectResponse_Error{} } -func (m *AccountSelectResponse_Error) String() string { return proto.CompactTextString(m) } -func (*AccountSelectResponse_Error) ProtoMessage() {} -func (*AccountSelectResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{11, 0} -} -func (m *AccountSelectResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountSelectResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountSelectResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountSelectResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountSelectResponse_Error.Merge(m, src) -} -func (m *AccountSelectResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *AccountSelectResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_AccountSelectResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountSelectResponse_Error proto.InternalMessageInfo - -func (m *AccountSelectResponse_Error) GetCode() AccountSelectResponse_Error_Code { - if m != nil { - return m.Code - } - return AccountSelectResponse_Error_NULL -} - -func (m *AccountSelectResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -//* -// Message, that will be sent to the front on each account found after an AccountRecoverRequest -type AccountShow struct { - Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *AccountShow) Reset() { *m = AccountShow{} } -func (m *AccountShow) String() string { return proto.CompactTextString(m) } -func (*AccountShow) ProtoMessage() {} -func (*AccountShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8e28828dcb8d24f0, []int{12} -} -func (m *AccountShow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountShow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountShow) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountShow.Merge(m, src) -} -func (m *AccountShow) XXX_Size() int { - return m.Size() -} -func (m *AccountShow) XXX_DiscardUnknown() { - xxx_messageInfo_AccountShow.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountShow proto.InternalMessageInfo - -func (m *AccountShow) GetIndex() int64 { - if m != nil { - return m.Index - } - return 0 -} - -func (m *AccountShow) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -func init() { - proto.RegisterEnum("anytype.WalletCreateResponse_Error_Code", WalletCreateResponse_Error_Code_name, WalletCreateResponse_Error_Code_value) - proto.RegisterEnum("anytype.WalletRecoverResponse_Error_Code", WalletRecoverResponse_Error_Code_name, WalletRecoverResponse_Error_Code_value) - proto.RegisterEnum("anytype.AccountCreateResponse_Error_Code", AccountCreateResponse_Error_Code_name, AccountCreateResponse_Error_Code_value) - proto.RegisterEnum("anytype.AccountRecoverResponse_Error_Code", AccountRecoverResponse_Error_Code_name, AccountRecoverResponse_Error_Code_value) - proto.RegisterEnum("anytype.AccountSelectResponse_Error_Code", AccountSelectResponse_Error_Code_name, AccountSelectResponse_Error_Code_value) - proto.RegisterType((*Avatar)(nil), "anytype.Avatar") - proto.RegisterType((*Account)(nil), "anytype.Account") - proto.RegisterType((*WalletCreateRequest)(nil), "anytype.WalletCreateRequest") - proto.RegisterType((*WalletCreateResponse)(nil), "anytype.WalletCreateResponse") - proto.RegisterType((*WalletCreateResponse_Error)(nil), "anytype.WalletCreateResponse.Error") - proto.RegisterType((*WalletRecoverRequest)(nil), "anytype.WalletRecoverRequest") - proto.RegisterType((*WalletRecoverResponse)(nil), "anytype.WalletRecoverResponse") - proto.RegisterType((*WalletRecoverResponse_Error)(nil), "anytype.WalletRecoverResponse.Error") - proto.RegisterType((*AccountCreateRequest)(nil), "anytype.AccountCreateRequest") - proto.RegisterType((*AccountCreateResponse)(nil), "anytype.AccountCreateResponse") - proto.RegisterType((*AccountCreateResponse_Error)(nil), "anytype.AccountCreateResponse.Error") - proto.RegisterType((*AccountRecoverRequest)(nil), "anytype.AccountRecoverRequest") - proto.RegisterType((*AccountRecoverResponse)(nil), "anytype.AccountRecoverResponse") - proto.RegisterType((*AccountRecoverResponse_Error)(nil), "anytype.AccountRecoverResponse.Error") - proto.RegisterType((*AccountSelectRequest)(nil), "anytype.AccountSelectRequest") - proto.RegisterType((*AccountSelectResponse)(nil), "anytype.AccountSelectResponse") - proto.RegisterType((*AccountSelectResponse_Error)(nil), "anytype.AccountSelectResponse.Error") - proto.RegisterType((*AccountShow)(nil), "anytype.AccountShow") -} - -func init() { proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) } - -var fileDescriptor_8e28828dcb8d24f0 = []byte{ - // 865 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4d, 0x6f, 0xe3, 0x44, - 0x18, 0x8e, 0x9d, 0xa6, 0x1f, 0x6f, 0xd4, 0xae, 0x77, 0x68, 0x4b, 0x15, 0x56, 0xd9, 0xca, 0x0b, - 0x4b, 0xa9, 0x50, 0x24, 0xca, 0x89, 0x4f, 0xc9, 0xb1, 0x27, 0x22, 0x22, 0x9d, 0x89, 0x26, 0x93, - 0x16, 0x71, 0x19, 0x79, 0x9d, 0x69, 0x6b, 0x94, 0x66, 0x82, 0xeb, 0x5d, 0xd8, 0x3b, 0x3f, 0x00, - 0x89, 0xdf, 0x80, 0xb8, 0x20, 0x71, 0x47, 0x70, 0xe7, 0x80, 0x50, 0x6f, 0x70, 0x84, 0xf6, 0xc8, - 0x9f, 0x40, 0xfe, 0x4a, 0x63, 0x53, 0xda, 0xa4, 0x12, 0xd2, 0xde, 0x32, 0xaf, 0xdf, 0xf7, 0x79, - 0xec, 0xe7, 0x79, 0x1f, 0x3b, 0xb0, 0xea, 0x7a, 0x9e, 0x7a, 0x3a, 0x0a, 0x1b, 0xe3, 0x40, 0x85, - 0x0a, 0x2d, 0xb9, 0xa3, 0xe7, 0xe1, 0xf3, 0xb1, 0xac, 0xc1, 0x91, 0x3f, 0x94, 0x49, 0xd1, 0x64, - 0xb0, 0x68, 0x3d, 0x73, 0x43, 0x37, 0x40, 0x8f, 0xa1, 0xe2, 0x9f, 0xba, 0xc7, 0x72, 0x4b, 0xdb, - 0xd6, 0x76, 0xaa, 0x7b,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x74, 0x31, 0x6b, 0x51, 0xb6, 0x8f, 0x1d, 0xe3, 0x33, 0xb3, - 0x39, 0x89, 0x7e, 0x4f, 0x0e, 0xa5, 0x17, 0x66, 0xd1, 0x2f, 0x7e, 0x28, 0xa7, 0xdf, 0xb8, 0x7a, - 0xe1, 0xa3, 0xf6, 0xdb, 0x55, 0x70, 0x33, 0x90, 0x19, 0x83, 0x9b, 0x6f, 0xbf, 0x7b, 0x70, 0x7f, - 0x9d, 0x35, 0xb8, 0xd7, 0x11, 0xce, 0xb7, 0x1e, 0x7f, 0x69, 0xff, 0xc3, 0x2b, 0x78, 0x16, 0x97, - 0x8f, 0xfe, 0xc3, 0xe5, 0xe3, 0x3c, 0x7a, 0xab, 0x4d, 0x9c, 0x6c, 0x11, 0x45, 0x9b, 0xb4, 0xa8, - 0x71, 0x82, 0x1a, 0xb0, 0x3b, 0x85, 0x1e, 0xad, 0x40, 0xca, 0x60, 0x11, 0x47, 0xec, 0x13, 0xbc, - 0x4f, 0x49, 0xdb, 0x8e, 0xeb, 0x3d, 0xcc, 0x0d, 0xdf, 0xa4, 0x50, 0xcd, 0xf4, 0x3a, 0x51, 0x5f, - 0xa0, 0x75, 0xa8, 0xf8, 0xa3, 0x81, 0xfc, 0x32, 0x16, 0xb5, 0xcc, 0x92, 0xc3, 0x3c, 0xfe, 0x34, - 0x1f, 0xfc, 0x72, 0x51, 0xd7, 0xce, 0x2f, 0xea, 0xda, 0x9f, 0x17, 0x75, 0xed, 0xeb, 0xcb, 0x7a, - 0xe9, 0xfc, 0xb2, 0x5e, 0xfa, 0xe3, 0xb2, 0x5e, 0xfa, 0x54, 0x1f, 0x3f, 0x79, 0xb2, 0x18, 0xff, - 0xf5, 0x7b, 0xfb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, 0x4a, 0x46, 0xa3, 0x20, 0x0a, 0x00, - 0x00, -} - -func (m *Avatar) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Avatar) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Avatar) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Avatar != nil { - { - size := m.Avatar.Size() - i -= size - if _, err := m.Avatar.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *Avatar_Image) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Avatar_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Image != nil { - { - size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *Avatar_Color) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Avatar_Color) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Color) - copy(dAtA[i:], m.Color) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Color))) - i-- - dAtA[i] = 0x12 - return len(dAtA) - i, nil -} -func (m *Account) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Account) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Avatar != nil { - { - size, err := m.Avatar.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WalletCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WalletCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WalletCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RootPath) > 0 { - i -= len(m.RootPath) - copy(dAtA[i:], m.RootPath) - i = encodeVarintAccount(dAtA, i, uint64(len(m.RootPath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WalletCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WalletCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WalletCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Mnemonic) > 0 { - i -= len(m.Mnemonic) - copy(dAtA[i:], m.Mnemonic) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Mnemonic))) - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WalletCreateResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WalletCreateResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WalletCreateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *WalletRecoverRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WalletRecoverRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WalletRecoverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Mnemonic) > 0 { - i -= len(m.Mnemonic) - copy(dAtA[i:], m.Mnemonic) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Mnemonic))) - i-- - dAtA[i] = 0x12 - } - if len(m.RootPath) > 0 { - i -= len(m.RootPath) - copy(dAtA[i:], m.RootPath) - i = encodeVarintAccount(dAtA, i, uint64(len(m.RootPath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WalletRecoverResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WalletRecoverResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WalletRecoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WalletRecoverResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WalletRecoverResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WalletRecoverResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AccountCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Avatar != nil { - { - size := m.Avatar.Size() - i -= size - if _, err := m.Avatar.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountCreateRequest_AvatarLocalPath) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountCreateRequest_AvatarLocalPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.AvatarLocalPath) - copy(dAtA[i:], m.AvatarLocalPath) - i = encodeVarintAccount(dAtA, i, uint64(len(m.AvatarLocalPath))) - i-- - dAtA[i] = 0x12 - return len(dAtA) - i, nil -} -func (m *AccountCreateRequest_AvatarColor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountCreateRequest_AvatarColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.AvatarColor) - copy(dAtA[i:], m.AvatarColor) - i = encodeVarintAccount(dAtA, i, uint64(len(m.AvatarColor))) - i-- - dAtA[i] = 0x1a - return len(dAtA) - i, nil -} -func (m *AccountCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountCreateResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountCreateResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountCreateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AccountRecoverRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountRecoverRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountRecoverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *AccountRecoverResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountRecoverResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountRecoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountRecoverResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountRecoverResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountRecoverResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AccountSelectRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountSelectRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountSelectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RootPath) > 0 { - i -= len(m.RootPath) - copy(dAtA[i:], m.RootPath) - i = encodeVarintAccount(dAtA, i, uint64(len(m.RootPath))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountSelectResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountSelectResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountSelectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountSelectResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountSelectResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountSelectResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintAccount(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AccountShow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountShow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAccount(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Index != 0 { - i = encodeVarintAccount(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintAccount(dAtA []byte, offset int, v uint64) int { - offset -= sovAccount(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Avatar) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Avatar != nil { - n += m.Avatar.Size() - } - return n -} - -func (m *Avatar_Image) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Image != nil { - l = m.Image.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} -func (m *Avatar_Color) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Color) - n += 1 + l + sovAccount(uint64(l)) - return n -} -func (m *Account) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - if m.Avatar != nil { - l = m.Avatar.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *WalletCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RootPath) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *WalletCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovAccount(uint64(l)) - } - l = len(m.Mnemonic) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *WalletCreateResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovAccount(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *WalletRecoverRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RootPath) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - l = len(m.Mnemonic) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *WalletRecoverResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *WalletRecoverResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovAccount(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - if m.Avatar != nil { - n += m.Avatar.Size() - } - return n -} - -func (m *AccountCreateRequest_AvatarLocalPath) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AvatarLocalPath) - n += 1 + l + sovAccount(uint64(l)) - return n -} -func (m *AccountCreateRequest_AvatarColor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AvatarColor) - n += 1 + l + sovAccount(uint64(l)) - return n -} -func (m *AccountCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovAccount(uint64(l)) - } - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountCreateResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovAccount(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountRecoverRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *AccountRecoverResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountRecoverResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovAccount(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountSelectRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - l = len(m.RootPath) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountSelectResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovAccount(uint64(l)) - } - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountSelectResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovAccount(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func (m *AccountShow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Index != 0 { - n += 1 + sovAccount(uint64(m.Index)) - } - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovAccount(uint64(l)) - } - return n -} - -func sovAccount(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozAccount(x uint64) (n int) { - return sovAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Avatar) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Avatar: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Avatar: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Image{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Avatar = &Avatar_Image{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Avatar = &Avatar_Color{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Account) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Account: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Avatar", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Avatar == nil { - m.Avatar = &Avatar{} - } - if err := m.Avatar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WalletCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WalletCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WalletCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RootPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RootPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WalletCreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WalletCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WalletCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &WalletCreateResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mnemonic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Mnemonic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WalletCreateResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= WalletCreateResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WalletRecoverRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WalletRecoverRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WalletRecoverRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RootPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RootPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mnemonic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Mnemonic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WalletRecoverResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WalletRecoverResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WalletRecoverResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &WalletRecoverResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WalletRecoverResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= WalletRecoverResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvatarLocalPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Avatar = &AccountCreateRequest_AvatarLocalPath{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvatarColor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Avatar = &AccountCreateRequest_AvatarColor{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountCreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &AccountCreateResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountCreateResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= AccountCreateResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountRecoverRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountRecoverRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountRecoverRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountRecoverResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountRecoverResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountRecoverResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &AccountRecoverResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountRecoverResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= AccountRecoverResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountSelectRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountSelectRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountSelectRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RootPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RootPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountSelectResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountSelectResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountSelectResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &AccountSelectResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountSelectResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= AccountSelectResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountShow) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountShow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountShow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAccount - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipAccount(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAccount - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAccount - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAccount - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthAccount - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAccount - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthAccount - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/block-commands.pb.go b/pb/block-commands.pb.go deleted file mode 100644 index f3a5d96d8..000000000 --- a/pb/block-commands.pb.go +++ /dev/null @@ -1,2735 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: block-commands.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type BlockHistoryMoveResponse_Error_Code int32 - -const ( - BlockHistoryMoveResponse_Error_NULL BlockHistoryMoveResponse_Error_Code = 0 - BlockHistoryMoveResponse_Error_UNKNOWN_ERROR BlockHistoryMoveResponse_Error_Code = 1 - BlockHistoryMoveResponse_Error_BAD_INPUT BlockHistoryMoveResponse_Error_Code = 2 - BlockHistoryMoveResponse_Error_CAN_NOT_MOVE BlockHistoryMoveResponse_Error_Code = 3 -) - -var BlockHistoryMoveResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "CAN_NOT_MOVE", -} - -var BlockHistoryMoveResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "CAN_NOT_MOVE": 3, -} - -func (x BlockHistoryMoveResponse_Error_Code) String() string { - return proto.EnumName(BlockHistoryMoveResponse_Error_Code_name, int32(x)) -} - -func (BlockHistoryMoveResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{1, 0, 0} -} - -type BlockOpenResponse_Error_Code int32 - -const ( - BlockOpenResponse_Error_NULL BlockOpenResponse_Error_Code = 0 - BlockOpenResponse_Error_UNKNOWN_ERROR BlockOpenResponse_Error_Code = 1 - BlockOpenResponse_Error_BAD_INPUT BlockOpenResponse_Error_Code = 2 -) - -var BlockOpenResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var BlockOpenResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x BlockOpenResponse_Error_Code) String() string { - return proto.EnumName(BlockOpenResponse_Error_Code_name, int32(x)) -} - -func (BlockOpenResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{3, 0, 0} -} - -type BlockCreateResponse_Error_Code int32 - -const ( - BlockCreateResponse_Error_NULL BlockCreateResponse_Error_Code = 0 - BlockCreateResponse_Error_UNKNOWN_ERROR BlockCreateResponse_Error_Code = 1 - BlockCreateResponse_Error_BAD_INPUT BlockCreateResponse_Error_Code = 2 -) - -var BlockCreateResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var BlockCreateResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x BlockCreateResponse_Error_Code) String() string { - return proto.EnumName(BlockCreateResponse_Error_Code_name, int32(x)) -} - -func (BlockCreateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{5, 0, 0} -} - -type BlockUpdateResponse_Error_Code int32 - -const ( - BlockUpdateResponse_Error_NULL BlockUpdateResponse_Error_Code = 0 - BlockUpdateResponse_Error_UNKNOWN_ERROR BlockUpdateResponse_Error_Code = 1 - BlockUpdateResponse_Error_BAD_INPUT BlockUpdateResponse_Error_Code = 2 -) - -var BlockUpdateResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var BlockUpdateResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x BlockUpdateResponse_Error_Code) String() string { - return proto.EnumName(BlockUpdateResponse_Error_Code_name, int32(x)) -} - -func (BlockUpdateResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{7, 0, 0} -} - -type BlockHistoryMoveRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` - MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` -} - -func (m *BlockHistoryMoveRequest) Reset() { *m = BlockHistoryMoveRequest{} } -func (m *BlockHistoryMoveRequest) String() string { return proto.CompactTextString(m) } -func (*BlockHistoryMoveRequest) ProtoMessage() {} -func (*BlockHistoryMoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{0} -} -func (m *BlockHistoryMoveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHistoryMoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHistoryMoveRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHistoryMoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHistoryMoveRequest.Merge(m, src) -} -func (m *BlockHistoryMoveRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockHistoryMoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHistoryMoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHistoryMoveRequest proto.InternalMessageInfo - -func (m *BlockHistoryMoveRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *BlockHistoryMoveRequest) GetContextBlockId() string { - if m != nil { - return m.ContextBlockId - } - return "" -} - -func (m *BlockHistoryMoveRequest) GetMoveForward() bool { - if m != nil { - return m.MoveForward - } - return false -} - -type BlockHistoryMoveResponse struct { - Error *BlockHistoryMoveResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *BlockHistoryMoveResponse) Reset() { *m = BlockHistoryMoveResponse{} } -func (m *BlockHistoryMoveResponse) String() string { return proto.CompactTextString(m) } -func (*BlockHistoryMoveResponse) ProtoMessage() {} -func (*BlockHistoryMoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{1} -} -func (m *BlockHistoryMoveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHistoryMoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHistoryMoveResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHistoryMoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHistoryMoveResponse.Merge(m, src) -} -func (m *BlockHistoryMoveResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockHistoryMoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHistoryMoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHistoryMoveResponse proto.InternalMessageInfo - -func (m *BlockHistoryMoveResponse) GetError() *BlockHistoryMoveResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type BlockHistoryMoveResponse_Error struct { - Code BlockHistoryMoveResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockHistoryMoveResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockHistoryMoveResponse_Error) Reset() { *m = BlockHistoryMoveResponse_Error{} } -func (m *BlockHistoryMoveResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockHistoryMoveResponse_Error) ProtoMessage() {} -func (*BlockHistoryMoveResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{1, 0} -} -func (m *BlockHistoryMoveResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockHistoryMoveResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockHistoryMoveResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockHistoryMoveResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockHistoryMoveResponse_Error.Merge(m, src) -} -func (m *BlockHistoryMoveResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockHistoryMoveResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockHistoryMoveResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockHistoryMoveResponse_Error proto.InternalMessageInfo - -func (m *BlockHistoryMoveResponse_Error) GetCode() BlockHistoryMoveResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockHistoryMoveResponse_Error_NULL -} - -func (m *BlockHistoryMoveResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type BlockOpenRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *BlockOpenRequest) Reset() { *m = BlockOpenRequest{} } -func (m *BlockOpenRequest) String() string { return proto.CompactTextString(m) } -func (*BlockOpenRequest) ProtoMessage() {} -func (*BlockOpenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{2} -} -func (m *BlockOpenRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockOpenRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockOpenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockOpenRequest.Merge(m, src) -} -func (m *BlockOpenRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockOpenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockOpenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockOpenRequest proto.InternalMessageInfo - -func (m *BlockOpenRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type BlockOpenResponse struct { - Error *BlockOpenResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockHeader *Model_Block_Header `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` -} - -func (m *BlockOpenResponse) Reset() { *m = BlockOpenResponse{} } -func (m *BlockOpenResponse) String() string { return proto.CompactTextString(m) } -func (*BlockOpenResponse) ProtoMessage() {} -func (*BlockOpenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{3} -} -func (m *BlockOpenResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockOpenResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockOpenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockOpenResponse.Merge(m, src) -} -func (m *BlockOpenResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockOpenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockOpenResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockOpenResponse proto.InternalMessageInfo - -func (m *BlockOpenResponse) GetError() *BlockOpenResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *BlockOpenResponse) GetBlockHeader() *Model_Block_Header { - if m != nil { - return m.BlockHeader - } - return nil -} - -type BlockOpenResponse_Error struct { - Code BlockOpenResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockOpenResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockOpenResponse_Error) Reset() { *m = BlockOpenResponse_Error{} } -func (m *BlockOpenResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockOpenResponse_Error) ProtoMessage() {} -func (*BlockOpenResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{3, 0} -} -func (m *BlockOpenResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockOpenResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockOpenResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockOpenResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockOpenResponse_Error.Merge(m, src) -} -func (m *BlockOpenResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockOpenResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockOpenResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockOpenResponse_Error proto.InternalMessageInfo - -func (m *BlockOpenResponse_Error) GetCode() BlockOpenResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockOpenResponse_Error_NULL -} - -func (m *BlockOpenResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type BlockCreateRequest struct { - Type Model_Block_Header_Type `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` -} - -func (m *BlockCreateRequest) Reset() { *m = BlockCreateRequest{} } -func (m *BlockCreateRequest) String() string { return proto.CompactTextString(m) } -func (*BlockCreateRequest) ProtoMessage() {} -func (*BlockCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{4} -} -func (m *BlockCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreateRequest.Merge(m, src) -} -func (m *BlockCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreateRequest proto.InternalMessageInfo - -func (m *BlockCreateRequest) GetType() Model_Block_Header_Type { - if m != nil { - return m.Type - } - return Model_Block_Header_DASHBOARD -} - -func (m *BlockCreateRequest) GetContextBlockId() string { - if m != nil { - return m.ContextBlockId - } - return "" -} - -type BlockCreateResponse struct { - Error *BlockCreateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *BlockCreateResponse) Reset() { *m = BlockCreateResponse{} } -func (m *BlockCreateResponse) String() string { return proto.CompactTextString(m) } -func (*BlockCreateResponse) ProtoMessage() {} -func (*BlockCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{5} -} -func (m *BlockCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreateResponse.Merge(m, src) -} -func (m *BlockCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreateResponse proto.InternalMessageInfo - -func (m *BlockCreateResponse) GetError() *BlockCreateResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type BlockCreateResponse_Error struct { - Code BlockCreateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockCreateResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockCreateResponse_Error) Reset() { *m = BlockCreateResponse_Error{} } -func (m *BlockCreateResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockCreateResponse_Error) ProtoMessage() {} -func (*BlockCreateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{5, 0} -} -func (m *BlockCreateResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreateResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreateResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreateResponse_Error.Merge(m, src) -} -func (m *BlockCreateResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockCreateResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreateResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreateResponse_Error proto.InternalMessageInfo - -func (m *BlockCreateResponse_Error) GetCode() BlockCreateResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockCreateResponse_Error_NULL -} - -func (m *BlockCreateResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type BlockUpdateRequest struct { - Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` -} - -func (m *BlockUpdateRequest) Reset() { *m = BlockUpdateRequest{} } -func (m *BlockUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*BlockUpdateRequest) ProtoMessage() {} -func (*BlockUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{6} -} -func (m *BlockUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdateRequest.Merge(m, src) -} -func (m *BlockUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdateRequest proto.InternalMessageInfo - -func (m *BlockUpdateRequest) GetChanges() *BlockChanges { - if m != nil { - return m.Changes - } - return nil -} - -type BlockUpdateResponse struct { - Error *BlockUpdateResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *BlockUpdateResponse) Reset() { *m = BlockUpdateResponse{} } -func (m *BlockUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*BlockUpdateResponse) ProtoMessage() {} -func (*BlockUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{7} -} -func (m *BlockUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdateResponse.Merge(m, src) -} -func (m *BlockUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdateResponse proto.InternalMessageInfo - -func (m *BlockUpdateResponse) GetError() *BlockUpdateResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type BlockUpdateResponse_Error struct { - Code BlockUpdateResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.BlockUpdateResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *BlockUpdateResponse_Error) Reset() { *m = BlockUpdateResponse_Error{} } -func (m *BlockUpdateResponse_Error) String() string { return proto.CompactTextString(m) } -func (*BlockUpdateResponse_Error) ProtoMessage() {} -func (*BlockUpdateResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_45d3ea291059030c, []int{7, 0} -} -func (m *BlockUpdateResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdateResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdateResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdateResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdateResponse_Error.Merge(m, src) -} -func (m *BlockUpdateResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdateResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdateResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdateResponse_Error proto.InternalMessageInfo - -func (m *BlockUpdateResponse_Error) GetCode() BlockUpdateResponse_Error_Code { - if m != nil { - return m.Code - } - return BlockUpdateResponse_Error_NULL -} - -func (m *BlockUpdateResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func init() { - proto.RegisterEnum("anytype.BlockHistoryMoveResponse_Error_Code", BlockHistoryMoveResponse_Error_Code_name, BlockHistoryMoveResponse_Error_Code_value) - proto.RegisterEnum("anytype.BlockOpenResponse_Error_Code", BlockOpenResponse_Error_Code_name, BlockOpenResponse_Error_Code_value) - proto.RegisterEnum("anytype.BlockCreateResponse_Error_Code", BlockCreateResponse_Error_Code_name, BlockCreateResponse_Error_Code_value) - proto.RegisterEnum("anytype.BlockUpdateResponse_Error_Code", BlockUpdateResponse_Error_Code_name, BlockUpdateResponse_Error_Code_value) - proto.RegisterType((*BlockHistoryMoveRequest)(nil), "anytype.BlockHistoryMoveRequest") - proto.RegisterType((*BlockHistoryMoveResponse)(nil), "anytype.BlockHistoryMoveResponse") - proto.RegisterType((*BlockHistoryMoveResponse_Error)(nil), "anytype.BlockHistoryMoveResponse.Error") - proto.RegisterType((*BlockOpenRequest)(nil), "anytype.BlockOpenRequest") - proto.RegisterType((*BlockOpenResponse)(nil), "anytype.BlockOpenResponse") - proto.RegisterType((*BlockOpenResponse_Error)(nil), "anytype.BlockOpenResponse.Error") - proto.RegisterType((*BlockCreateRequest)(nil), "anytype.BlockCreateRequest") - proto.RegisterType((*BlockCreateResponse)(nil), "anytype.BlockCreateResponse") - proto.RegisterType((*BlockCreateResponse_Error)(nil), "anytype.BlockCreateResponse.Error") - proto.RegisterType((*BlockUpdateRequest)(nil), "anytype.BlockUpdateRequest") - proto.RegisterType((*BlockUpdateResponse)(nil), "anytype.BlockUpdateResponse") - proto.RegisterType((*BlockUpdateResponse_Error)(nil), "anytype.BlockUpdateResponse.Error") -} - -func init() { proto.RegisterFile("block-commands.proto", fileDescriptor_45d3ea291059030c) } - -var fileDescriptor_45d3ea291059030c = []byte{ - // 537 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x4f, 0x6b, 0x13, 0x41, - 0x18, 0xc6, 0xb3, 0xdb, 0xd4, 0xb6, 0x6f, 0x9a, 0xb0, 0x1d, 0x15, 0x43, 0x94, 0x25, 0x0c, 0x68, - 0x7b, 0xd0, 0x15, 0xa2, 0x88, 0x22, 0x05, 0x9b, 0x34, 0xd2, 0x62, 0xb3, 0x2b, 0x43, 0xa2, 0xe0, - 0x25, 0x6c, 0x76, 0x06, 0x5d, 0x6c, 0x76, 0xd6, 0xd9, 0xb5, 0x9a, 0x0f, 0x21, 0x78, 0x14, 0xef, - 0x7e, 0x00, 0xbf, 0x85, 0xc7, 0x1e, 0x3d, 0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9, 0xe8, 0x62, 0x7d, 0x8b, 0x3f, 0xcf, 0x00, 0x3f, 0xd4, 0x00, 0xaf, - 0x9f, 0x5e, 0xe2, 0xfc, 0x11, 0xb7, 0x15, 0xe2, 0x5e, 0x4c, 0x73, 0x88, 0x6f, 0xc3, 0x92, 0xfa, - 0x5a, 0x94, 0xdd, 0xcb, 0xc7, 0x66, 0x9d, 0x5e, 0x92, 0x23, 0xd5, 0x6f, 0x6a, 0x47, 0x75, 0xe6, - 0xa2, 0xa6, 0x8b, 0xff, 0x8b, 0xda, 0xdf, 0x4a, 0x9c, 0x3b, 0xb5, 0xe6, 0xb5, 0x6f, 0x63, 0xdb, - 0x38, 0x1c, 0xdb, 0xc6, 0x8f, 0xb1, 0x6d, 0x7c, 0x9c, 0xd8, 0x85, 0xc3, 0x89, 0x5d, 0xf8, 0x3e, - 0xb1, 0x0b, 0x2f, 0xcc, 0x78, 0x30, 0xb8, 0x20, 0xbf, 0xe3, 0x3b, 0xbf, 0x02, 0x00, 0x00, 0xff, - 0xff, 0xd7, 0x68, 0x12, 0xea, 0xcc, 0x05, 0x00, 0x00, -} - -func (m *BlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHistoryMoveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHistoryMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MoveForward { - i-- - if m.MoveForward { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.ContextBlockId) > 0 { - i -= len(m.ContextBlockId) - copy(dAtA[i:], m.ContextBlockId) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.ContextBlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockHistoryMoveResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHistoryMoveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHistoryMoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockHistoryMoveResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockHistoryMoveResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockHistoryMoveResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockOpenRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockOpenRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockOpenResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockOpenResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BlockHeader != nil { - { - size, err := m.BlockHeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockOpenResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockOpenResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockOpenResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ContextBlockId) > 0 { - i -= len(m.ContextBlockId) - copy(dAtA[i:], m.ContextBlockId) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.ContextBlockId))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintBlockCommands(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockCreateResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreateResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Changes != nil { - { - size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdateResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdateResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdateResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintBlockCommands(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintBlockCommands(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintBlockCommands(dAtA []byte, offset int, v uint64) int { - offset -= sovBlockCommands(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BlockHistoryMoveRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - l = len(m.ContextBlockId) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - if m.MoveForward { - n += 2 - } - return n -} - -func (m *BlockHistoryMoveResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockHistoryMoveResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlockCommands(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockOpenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockOpenResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlockCommands(uint64(l)) - } - if m.BlockHeader != nil { - l = m.BlockHeader.Size() - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockOpenResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlockCommands(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovBlockCommands(uint64(m.Type)) - } - l = len(m.ContextBlockId) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockCreateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockCreateResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlockCommands(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Changes != nil { - l = m.Changes.Size() - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockUpdateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func (m *BlockUpdateResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovBlockCommands(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovBlockCommands(uint64(l)) - } - return n -} - -func sovBlockCommands(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBlockCommands(x uint64) (n int) { - return sovBlockCommands(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *BlockHistoryMoveRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHistoryMoveRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHistoryMoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContextBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MoveForward", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.MoveForward = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHistoryMoveResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockHistoryMoveResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockHistoryMoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockHistoryMoveResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockHistoryMoveResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockHistoryMoveResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockOpenRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockOpenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockOpenRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockOpenResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockOpenResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockOpenResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockOpenResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeader", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BlockHeader == nil { - m.BlockHeader = &Model_Block_Header{} - } - if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockOpenResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockOpenResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= Model_Block_Header_Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContextBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockCreateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockCreateResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreateResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockCreateResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockUpdateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Changes == nil { - m.Changes = &BlockChanges{} - } - if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockUpdateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &BlockUpdateResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdateResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= BlockUpdateResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlockCommands - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlockCommands - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBlockCommands(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockCommands - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBlockCommands - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlockCommands - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBlockCommands - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBlockCommands = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlockCommands = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlockCommands = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/block-events.pb.go b/pb/block-events.pb.go deleted file mode 100644 index 87a8d24c1..000000000 --- a/pb/block-events.pb.go +++ /dev/null @@ -1,692 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: block-events.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type BlockShow struct { - Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *BlockShow) Reset() { *m = BlockShow{} } -func (m *BlockShow) String() string { return proto.CompactTextString(m) } -func (*BlockShow) ProtoMessage() {} -func (*BlockShow) Descriptor() ([]byte, []int) { - return fileDescriptor_1dff1991648a316e, []int{0} -} -func (m *BlockShow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockShow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockShow) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockShow.Merge(m, src) -} -func (m *BlockShow) XXX_Size() int { - return m.Size() -} -func (m *BlockShow) XXX_DiscardUnknown() { - xxx_messageInfo_BlockShow.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockShow proto.InternalMessageInfo - -func (m *BlockShow) GetBlock() *Model_Block { - if m != nil { - return m.Block - } - return nil -} - -type BlockUpdate struct { - Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` -} - -func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } -func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } -func (*BlockUpdate) ProtoMessage() {} -func (*BlockUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_1dff1991648a316e, []int{1} -} -func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdate.Merge(m, src) -} -func (m *BlockUpdate) XXX_Size() int { - return m.Size() -} -func (m *BlockUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockUpdate proto.InternalMessageInfo - -func (m *BlockUpdate) GetChanges() *BlockChanges { - if m != nil { - return m.Changes - } - return nil -} - -type BlockCreate struct { - Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *BlockCreate) Reset() { *m = BlockCreate{} } -func (m *BlockCreate) String() string { return proto.CompactTextString(m) } -func (*BlockCreate) ProtoMessage() {} -func (*BlockCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_1dff1991648a316e, []int{2} -} -func (m *BlockCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockCreate.Merge(m, src) -} -func (m *BlockCreate) XXX_Size() int { - return m.Size() -} -func (m *BlockCreate) XXX_DiscardUnknown() { - xxx_messageInfo_BlockCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockCreate proto.InternalMessageInfo - -func (m *BlockCreate) GetBlock() *Model_Block { - if m != nil { - return m.Block - } - return nil -} - -func init() { - proto.RegisterType((*BlockShow)(nil), "anytype.BlockShow") - proto.RegisterType((*BlockUpdate)(nil), "anytype.BlockUpdate") - proto.RegisterType((*BlockCreate)(nil), "anytype.BlockCreate") -} - -func init() { proto.RegisterFile("block-events.proto", fileDescriptor_1dff1991648a316e) } - -var fileDescriptor_1dff1991648a316e = []byte{ - // 189 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0xca, 0xc9, 0x4f, - 0xce, 0xd6, 0x4d, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, - 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, 0xe2, 0xc9, 0xcd, 0x4f, 0x49, 0xcd, 0x81, 0x0a, - 0x4b, 0xf1, 0x26, 0x67, 0x24, 0xe6, 0xa5, 0xa7, 0x42, 0xb9, 0x4a, 0xe6, 0x5c, 0x9c, 0x4e, 0x20, - 0xbd, 0xc1, 0x19, 0xf9, 0xe5, 0x42, 0x5a, 0x5c, 0xac, 0x60, 0x83, 0x24, 0x18, 0x15, 0x18, 0x35, - 0xb8, 0x8d, 0x44, 0xf4, 0xa0, 0x46, 0xe8, 0xf9, 0x82, 0x4c, 0xd0, 0x03, 0x2b, 0x0c, 0x82, 0x28, - 0x51, 0xb2, 0xe3, 0xe2, 0x06, 0xf3, 0x43, 0x0b, 0x52, 0x12, 0x4b, 0x52, 0x85, 0xf4, 0xb9, 0xd8, - 0xa1, 0x06, 0x43, 0x35, 0x8b, 0xc2, 0x35, 0x83, 0x95, 0x39, 0x43, 0x24, 0x83, 0x60, 0xaa, 0x94, - 0x2c, 0xa1, 0xfa, 0x9d, 0x8b, 0x52, 0x41, 0xfa, 0x49, 0xb0, 0xda, 0x49, 0xe6, 0xc4, 0x23, 0x39, - 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, - 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x98, 0x0a, 0x92, 0x92, 0xd8, 0xc0, 0x1e, 0x33, 0x06, - 0x04, 0x00, 0x00, 0xff, 0xff, 0xa9, 0xe8, 0x92, 0xed, 0x14, 0x01, 0x00, 0x00, -} - -func (m *BlockShow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockShow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Changes != nil { - { - size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BlockCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBlockEvents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintBlockEvents(dAtA []byte, offset int, v uint64) int { - offset -= sovBlockEvents(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BlockShow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovBlockEvents(uint64(l)) - } - return n -} - -func (m *BlockUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Changes != nil { - l = m.Changes.Size() - n += 1 + l + sovBlockEvents(uint64(l)) - } - return n -} - -func (m *BlockCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovBlockEvents(uint64(l)) - } - return n -} - -func sovBlockEvents(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBlockEvents(x uint64) (n int) { - return sovBlockEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *BlockShow) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockShow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockShow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Block == nil { - m.Block = &Model_Block{} - } - if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockEvents - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockUpdate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockUpdate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Changes == nil { - m.Changes = &BlockChanges{} - } - if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockEvents - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockCreate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockCreate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBlockEvents - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBlockEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Block == nil { - m.Block = &Model_Block{} - } - if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlockEvents(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthBlockEvents - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthBlockEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBlockEvents(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlockEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBlockEvents - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlockEvents - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBlockEvents - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBlockEvents = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlockEvents = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlockEvents = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/commands.pb.go b/pb/commands.pb.go new file mode 100644 index 000000000..c242ff0ed --- /dev/null +++ b/pb/commands.pb.go @@ -0,0 +1,12300 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: commands.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Rpc_Block_HistoryMove_Response_Error_Code int32 + +const ( + Rpc_Block_HistoryMove_Response_Error_NULL Rpc_Block_HistoryMove_Response_Error_Code = 0 + Rpc_Block_HistoryMove_Response_Error_UNKNOWN_ERROR Rpc_Block_HistoryMove_Response_Error_Code = 1 + Rpc_Block_HistoryMove_Response_Error_BAD_INPUT Rpc_Block_HistoryMove_Response_Error_Code = 2 + Rpc_Block_HistoryMove_Response_Error_CAN_NOT_MOVE Rpc_Block_HistoryMove_Response_Error_Code = 3 +) + +var Rpc_Block_HistoryMove_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "CAN_NOT_MOVE", +} + +var Rpc_Block_HistoryMove_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "CAN_NOT_MOVE": 3, +} + +func (x Rpc_Block_HistoryMove_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Block_HistoryMove_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Block_HistoryMove_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 1, 0, 0} +} + +type Rpc_Block_Open_Response_Error_Code int32 + +const ( + Rpc_Block_Open_Response_Error_NULL Rpc_Block_Open_Response_Error_Code = 0 + Rpc_Block_Open_Response_Error_UNKNOWN_ERROR Rpc_Block_Open_Response_Error_Code = 1 + Rpc_Block_Open_Response_Error_BAD_INPUT Rpc_Block_Open_Response_Error_Code = 2 +) + +var Rpc_Block_Open_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var Rpc_Block_Open_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x Rpc_Block_Open_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Block_Open_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Block_Open_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 1, 0, 0} +} + +type Rpc_Block_Create_Response_Error_Code int32 + +const ( + Rpc_Block_Create_Response_Error_NULL Rpc_Block_Create_Response_Error_Code = 0 + Rpc_Block_Create_Response_Error_UNKNOWN_ERROR Rpc_Block_Create_Response_Error_Code = 1 + Rpc_Block_Create_Response_Error_BAD_INPUT Rpc_Block_Create_Response_Error_Code = 2 +) + +var Rpc_Block_Create_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var Rpc_Block_Create_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x Rpc_Block_Create_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Block_Create_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Block_Create_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 1, 0, 0} +} + +type Rpc_Block_Update_Response_Error_Code int32 + +const ( + Rpc_Block_Update_Response_Error_NULL Rpc_Block_Update_Response_Error_Code = 0 + Rpc_Block_Update_Response_Error_UNKNOWN_ERROR Rpc_Block_Update_Response_Error_Code = 1 + Rpc_Block_Update_Response_Error_BAD_INPUT Rpc_Block_Update_Response_Error_Code = 2 +) + +var Rpc_Block_Update_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var Rpc_Block_Update_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x Rpc_Block_Update_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Block_Update_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Block_Update_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 1, 0, 0} +} + +type Rpc_Wallet_Create_Response_Error_Code int32 + +const ( + Rpc_Wallet_Create_Response_Error_NULL Rpc_Wallet_Create_Response_Error_Code = 0 + Rpc_Wallet_Create_Response_Error_UNKNOWN_ERROR Rpc_Wallet_Create_Response_Error_Code = 1 + Rpc_Wallet_Create_Response_Error_BAD_INPUT Rpc_Wallet_Create_Response_Error_Code = 2 + Rpc_Wallet_Create_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Wallet_Create_Response_Error_Code = 101 +) + +var Rpc_Wallet_Create_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "FAILED_TO_CREATE_LOCAL_REPO", +} + +var Rpc_Wallet_Create_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "FAILED_TO_CREATE_LOCAL_REPO": 101, +} + +func (x Rpc_Wallet_Create_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Wallet_Create_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Wallet_Create_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 1, 0, 0} +} + +type Rpc_Wallet_Recover_Response_Error_Code int32 + +const ( + Rpc_Wallet_Recover_Response_Error_NULL Rpc_Wallet_Recover_Response_Error_Code = 0 + Rpc_Wallet_Recover_Response_Error_UNKNOWN_ERROR Rpc_Wallet_Recover_Response_Error_Code = 1 + Rpc_Wallet_Recover_Response_Error_BAD_INPUT Rpc_Wallet_Recover_Response_Error_Code = 2 + Rpc_Wallet_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Wallet_Recover_Response_Error_Code = 101 +) + +var Rpc_Wallet_Recover_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "FAILED_TO_CREATE_LOCAL_REPO", +} + +var Rpc_Wallet_Recover_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "FAILED_TO_CREATE_LOCAL_REPO": 101, +} + +func (x Rpc_Wallet_Recover_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Wallet_Recover_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Wallet_Recover_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 1, 0, 0} +} + +type Rpc_Account_Create_Response_Error_Code int32 + +const ( + Rpc_Account_Create_Response_Error_NULL Rpc_Account_Create_Response_Error_Code = 0 + Rpc_Account_Create_Response_Error_UNKNOWN_ERROR Rpc_Account_Create_Response_Error_Code = 1 + Rpc_Account_Create_Response_Error_BAD_INPUT Rpc_Account_Create_Response_Error_Code = 2 + Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE Rpc_Account_Create_Response_Error_Code = 101 + Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME Rpc_Account_Create_Response_Error_Code = 102 + Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR Rpc_Account_Create_Response_Error_Code = 103 +) + +var Rpc_Account_Create_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE", + 102: "ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME", + 103: "ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR", +} + +var Rpc_Account_Create_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE": 101, + "ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME": 102, + "ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR": 103, +} + +func (x Rpc_Account_Create_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Account_Create_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Account_Create_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 1, 0, 0} +} + +type Rpc_Account_Recover_Response_Error_Code int32 + +const ( + Rpc_Account_Recover_Response_Error_NULL Rpc_Account_Recover_Response_Error_Code = 0 + Rpc_Account_Recover_Response_Error_UNKNOWN_ERROR Rpc_Account_Recover_Response_Error_Code = 1 + Rpc_Account_Recover_Response_Error_BAD_INPUT Rpc_Account_Recover_Response_Error_Code = 2 + Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND Rpc_Account_Recover_Response_Error_Code = 101 + Rpc_Account_Recover_Response_Error_NEED_TO_RECOVER_WALLET_FIRST Rpc_Account_Recover_Response_Error_Code = 102 + Rpc_Account_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Account_Recover_Response_Error_Code = 103 + Rpc_Account_Recover_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED Rpc_Account_Recover_Response_Error_Code = 104 + Rpc_Account_Recover_Response_Error_FAILED_TO_RUN_NODE Rpc_Account_Recover_Response_Error_Code = 105 + Rpc_Account_Recover_Response_Error_WALLET_RECOVER_NOT_PERFORMED Rpc_Account_Recover_Response_Error_Code = 106 +) + +var Rpc_Account_Recover_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NO_ACCOUNTS_FOUND", + 102: "NEED_TO_RECOVER_WALLET_FIRST", + 103: "FAILED_TO_CREATE_LOCAL_REPO", + 104: "LOCAL_REPO_EXISTS_BUT_CORRUPTED", + 105: "FAILED_TO_RUN_NODE", + 106: "WALLET_RECOVER_NOT_PERFORMED", +} + +var Rpc_Account_Recover_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NO_ACCOUNTS_FOUND": 101, + "NEED_TO_RECOVER_WALLET_FIRST": 102, + "FAILED_TO_CREATE_LOCAL_REPO": 103, + "LOCAL_REPO_EXISTS_BUT_CORRUPTED": 104, + "FAILED_TO_RUN_NODE": 105, + "WALLET_RECOVER_NOT_PERFORMED": 106, +} + +func (x Rpc_Account_Recover_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Account_Recover_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Account_Recover_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 1, 0, 0} +} + +type Rpc_Account_Select_Response_Error_Code int32 + +const ( + Rpc_Account_Select_Response_Error_NULL Rpc_Account_Select_Response_Error_Code = 0 + Rpc_Account_Select_Response_Error_UNKNOWN_ERROR Rpc_Account_Select_Response_Error_Code = 1 + Rpc_Account_Select_Response_Error_BAD_INPUT Rpc_Account_Select_Response_Error_Code = 2 + Rpc_Account_Select_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Account_Select_Response_Error_Code = 101 + Rpc_Account_Select_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED Rpc_Account_Select_Response_Error_Code = 102 + Rpc_Account_Select_Response_Error_FAILED_TO_RUN_NODE Rpc_Account_Select_Response_Error_Code = 103 + Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO Rpc_Account_Select_Response_Error_Code = 104 + Rpc_Account_Select_Response_Error_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET Rpc_Account_Select_Response_Error_Code = 105 +) + +var Rpc_Account_Select_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "FAILED_TO_CREATE_LOCAL_REPO", + 102: "LOCAL_REPO_EXISTS_BUT_CORRUPTED", + 103: "FAILED_TO_RUN_NODE", + 104: "FAILED_TO_FIND_ACCOUNT_INFO", + 105: "LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET", +} + +var Rpc_Account_Select_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "FAILED_TO_CREATE_LOCAL_REPO": 101, + "LOCAL_REPO_EXISTS_BUT_CORRUPTED": 102, + "FAILED_TO_RUN_NODE": 103, + "FAILED_TO_FIND_ACCOUNT_INFO": 104, + "LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET": 105, +} + +func (x Rpc_Account_Select_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Account_Select_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Account_Select_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 1, 0, 0} +} + +type Rpc_Version_Get_Response_Error_Code int32 + +const ( + Rpc_Version_Get_Response_Error_NULL Rpc_Version_Get_Response_Error_Code = 0 + Rpc_Version_Get_Response_Error_UNKNOWN_ERROR Rpc_Version_Get_Response_Error_Code = 1 + Rpc_Version_Get_Response_Error_BAD_INPUT Rpc_Version_Get_Response_Error_Code = 2 + Rpc_Version_Get_Response_Error_VERSION_IS_EMPTY Rpc_Version_Get_Response_Error_Code = 3 + Rpc_Version_Get_Response_Error_NOT_FOUND Rpc_Version_Get_Response_Error_Code = 101 + Rpc_Version_Get_Response_Error_TIMEOUT Rpc_Version_Get_Response_Error_Code = 102 +) + +var Rpc_Version_Get_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "VERSION_IS_EMPTY", + 101: "NOT_FOUND", + 102: "TIMEOUT", +} + +var Rpc_Version_Get_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "VERSION_IS_EMPTY": 3, + "NOT_FOUND": 101, + "TIMEOUT": 102, +} + +func (x Rpc_Version_Get_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Version_Get_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Version_Get_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 1, 0, 0} +} + +type Rpc_Log_Send_Request_Level int32 + +const ( + Rpc_Log_Send_Request_DEBUG Rpc_Log_Send_Request_Level = 0 + Rpc_Log_Send_Request_ERROR Rpc_Log_Send_Request_Level = 1 + Rpc_Log_Send_Request_FATAL Rpc_Log_Send_Request_Level = 2 + Rpc_Log_Send_Request_INFO Rpc_Log_Send_Request_Level = 3 + Rpc_Log_Send_Request_PANIC Rpc_Log_Send_Request_Level = 4 + Rpc_Log_Send_Request_WARNING Rpc_Log_Send_Request_Level = 5 +) + +var Rpc_Log_Send_Request_Level_name = map[int32]string{ + 0: "DEBUG", + 1: "ERROR", + 2: "FATAL", + 3: "INFO", + 4: "PANIC", + 5: "WARNING", +} + +var Rpc_Log_Send_Request_Level_value = map[string]int32{ + "DEBUG": 0, + "ERROR": 1, + "FATAL": 2, + "INFO": 3, + "PANIC": 4, + "WARNING": 5, +} + +func (x Rpc_Log_Send_Request_Level) String() string { + return proto.EnumName(Rpc_Log_Send_Request_Level_name, int32(x)) +} + +func (Rpc_Log_Send_Request_Level) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 0, 0} +} + +type Rpc_Log_Send_Response_Error_Code int32 + +const ( + Rpc_Log_Send_Response_Error_NULL Rpc_Log_Send_Response_Error_Code = 0 + Rpc_Log_Send_Response_Error_UNKNOWN_ERROR Rpc_Log_Send_Response_Error_Code = 1 + Rpc_Log_Send_Response_Error_BAD_INPUT Rpc_Log_Send_Response_Error_Code = 2 + Rpc_Log_Send_Response_Error_NOT_FOUND Rpc_Log_Send_Response_Error_Code = 101 + Rpc_Log_Send_Response_Error_TIMEOUT Rpc_Log_Send_Response_Error_Code = 102 +) + +var Rpc_Log_Send_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NOT_FOUND", + 102: "TIMEOUT", +} + +var Rpc_Log_Send_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 101, + "TIMEOUT": 102, +} + +func (x Rpc_Log_Send_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Log_Send_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Log_Send_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1, 0, 0} +} + +type Rpc_Ipfs_GetFile_Response_Error_Code int32 + +const ( + Rpc_Ipfs_GetFile_Response_Error_NULL Rpc_Ipfs_GetFile_Response_Error_Code = 0 + Rpc_Ipfs_GetFile_Response_Error_UNKNOWN_ERROR Rpc_Ipfs_GetFile_Response_Error_Code = 1 + Rpc_Ipfs_GetFile_Response_Error_BAD_INPUT Rpc_Ipfs_GetFile_Response_Error_Code = 2 + Rpc_Ipfs_GetFile_Response_Error_NOT_FOUND Rpc_Ipfs_GetFile_Response_Error_Code = 101 + Rpc_Ipfs_GetFile_Response_Error_TIMEOUT Rpc_Ipfs_GetFile_Response_Error_Code = 102 +) + +var Rpc_Ipfs_GetFile_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NOT_FOUND", + 102: "TIMEOUT", +} + +var Rpc_Ipfs_GetFile_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 101, + "TIMEOUT": 102, +} + +func (x Rpc_Ipfs_GetFile_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Ipfs_GetFile_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Ipfs_GetFile_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 1, 0, 0} +} + +type Rpc_Image_GetBlob_Response_Error_Code int32 + +const ( + Rpc_Image_GetBlob_Response_Error_NULL Rpc_Image_GetBlob_Response_Error_Code = 0 + Rpc_Image_GetBlob_Response_Error_UNKNOWN_ERROR Rpc_Image_GetBlob_Response_Error_Code = 1 + Rpc_Image_GetBlob_Response_Error_BAD_INPUT Rpc_Image_GetBlob_Response_Error_Code = 2 + Rpc_Image_GetBlob_Response_Error_NOT_FOUND Rpc_Image_GetBlob_Response_Error_Code = 101 + Rpc_Image_GetBlob_Response_Error_TIMEOUT Rpc_Image_GetBlob_Response_Error_Code = 102 +) + +var Rpc_Image_GetBlob_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NOT_FOUND", + 102: "TIMEOUT", +} + +var Rpc_Image_GetBlob_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 101, + "TIMEOUT": 102, +} + +func (x Rpc_Image_GetBlob_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Image_GetBlob_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Image_GetBlob_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 0, 0} +} + +type Rpc_Image_GetFile_Response_Error_Code int32 + +const ( + Rpc_Image_GetFile_Response_Error_NULL Rpc_Image_GetFile_Response_Error_Code = 0 + Rpc_Image_GetFile_Response_Error_UNKNOWN_ERROR Rpc_Image_GetFile_Response_Error_Code = 1 + Rpc_Image_GetFile_Response_Error_BAD_INPUT Rpc_Image_GetFile_Response_Error_Code = 2 + Rpc_Image_GetFile_Response_Error_NOT_FOUND Rpc_Image_GetFile_Response_Error_Code = 101 + Rpc_Image_GetFile_Response_Error_TIMEOUT Rpc_Image_GetFile_Response_Error_Code = 102 +) + +var Rpc_Image_GetFile_Response_Error_Code_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NOT_FOUND", + 102: "TIMEOUT", +} + +var Rpc_Image_GetFile_Response_Error_Code_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 101, + "TIMEOUT": 102, +} + +func (x Rpc_Image_GetFile_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Image_GetFile_Response_Error_Code_name, int32(x)) +} + +func (Rpc_Image_GetFile_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 1, 0, 0} +} + +type Rpc struct { +} + +func (m *Rpc) Reset() { *m = Rpc{} } +func (m *Rpc) String() string { return proto.CompactTextString(m) } +func (*Rpc) ProtoMessage() {} +func (*Rpc) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0} +} +func (m *Rpc) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc.Merge(m, src) +} +func (m *Rpc) XXX_Size() int { + return m.Size() +} +func (m *Rpc) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc proto.InternalMessageInfo + +type Rpc_Block struct { +} + +func (m *Rpc_Block) Reset() { *m = Rpc_Block{} } +func (m *Rpc_Block) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block) ProtoMessage() {} +func (*Rpc_Block) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0} +} +func (m *Rpc_Block) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block.Merge(m, src) +} +func (m *Rpc_Block) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block proto.InternalMessageInfo + +type Rpc_Block_HistoryMove struct { +} + +func (m *Rpc_Block_HistoryMove) Reset() { *m = Rpc_Block_HistoryMove{} } +func (m *Rpc_Block_HistoryMove) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_HistoryMove) ProtoMessage() {} +func (*Rpc_Block_HistoryMove) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0} +} +func (m *Rpc_Block_HistoryMove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_HistoryMove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_HistoryMove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_HistoryMove) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_HistoryMove.Merge(m, src) +} +func (m *Rpc_Block_HistoryMove) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_HistoryMove) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_HistoryMove.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_HistoryMove proto.InternalMessageInfo + +type Rpc_Block_HistoryMove_Request struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` + MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` +} + +func (m *Rpc_Block_HistoryMove_Request) Reset() { *m = Rpc_Block_HistoryMove_Request{} } +func (m *Rpc_Block_HistoryMove_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_HistoryMove_Request) ProtoMessage() {} +func (*Rpc_Block_HistoryMove_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0} +} +func (m *Rpc_Block_HistoryMove_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_HistoryMove_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_HistoryMove_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_HistoryMove_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_HistoryMove_Request.Merge(m, src) +} +func (m *Rpc_Block_HistoryMove_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_HistoryMove_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_HistoryMove_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_HistoryMove_Request proto.InternalMessageInfo + +func (m *Rpc_Block_HistoryMove_Request) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Rpc_Block_HistoryMove_Request) GetContextBlockId() string { + if m != nil { + return m.ContextBlockId + } + return "" +} + +func (m *Rpc_Block_HistoryMove_Request) GetMoveForward() bool { + if m != nil { + return m.MoveForward + } + return false +} + +type Rpc_Block_HistoryMove_Response struct { + Error *Rpc_Block_HistoryMove_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *Rpc_Block_HistoryMove_Response) Reset() { *m = Rpc_Block_HistoryMove_Response{} } +func (m *Rpc_Block_HistoryMove_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_HistoryMove_Response) ProtoMessage() {} +func (*Rpc_Block_HistoryMove_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 1} +} +func (m *Rpc_Block_HistoryMove_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_HistoryMove_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_HistoryMove_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_HistoryMove_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_HistoryMove_Response.Merge(m, src) +} +func (m *Rpc_Block_HistoryMove_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_HistoryMove_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_HistoryMove_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_HistoryMove_Response proto.InternalMessageInfo + +func (m *Rpc_Block_HistoryMove_Response) GetError() *Rpc_Block_HistoryMove_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +type Rpc_Block_HistoryMove_Response_Error struct { + Code Rpc_Block_HistoryMove_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_HistoryMove_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Block_HistoryMove_Response_Error) Reset() { *m = Rpc_Block_HistoryMove_Response_Error{} } +func (m *Rpc_Block_HistoryMove_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_HistoryMove_Response_Error) ProtoMessage() {} +func (*Rpc_Block_HistoryMove_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 1, 0} +} +func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error.Merge(m, src) +} +func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_HistoryMove_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Block_HistoryMove_Response_Error) GetCode() Rpc_Block_HistoryMove_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Block_HistoryMove_Response_Error_NULL +} + +func (m *Rpc_Block_HistoryMove_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Block_Open struct { +} + +func (m *Rpc_Block_Open) Reset() { *m = Rpc_Block_Open{} } +func (m *Rpc_Block_Open) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Open) ProtoMessage() {} +func (*Rpc_Block_Open) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1} +} +func (m *Rpc_Block_Open) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Open) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Open.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Open) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Open.Merge(m, src) +} +func (m *Rpc_Block_Open) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Open) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Open.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Open proto.InternalMessageInfo + +type Rpc_Block_Open_Request struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *Rpc_Block_Open_Request) Reset() { *m = Rpc_Block_Open_Request{} } +func (m *Rpc_Block_Open_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Open_Request) ProtoMessage() {} +func (*Rpc_Block_Open_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 0} +} +func (m *Rpc_Block_Open_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Open_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Open_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Open_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Open_Request.Merge(m, src) +} +func (m *Rpc_Block_Open_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Open_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Open_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Open_Request proto.InternalMessageInfo + +func (m *Rpc_Block_Open_Request) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type Rpc_Block_Open_Response struct { + Error *Rpc_Block_Open_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockHeader *Model_Block_Header `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` +} + +func (m *Rpc_Block_Open_Response) Reset() { *m = Rpc_Block_Open_Response{} } +func (m *Rpc_Block_Open_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Open_Response) ProtoMessage() {} +func (*Rpc_Block_Open_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 1} +} +func (m *Rpc_Block_Open_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Open_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Open_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Open_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Open_Response.Merge(m, src) +} +func (m *Rpc_Block_Open_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Open_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Open_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Open_Response proto.InternalMessageInfo + +func (m *Rpc_Block_Open_Response) GetError() *Rpc_Block_Open_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Block_Open_Response) GetBlockHeader() *Model_Block_Header { + if m != nil { + return m.BlockHeader + } + return nil +} + +type Rpc_Block_Open_Response_Error struct { + Code Rpc_Block_Open_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_Open_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Block_Open_Response_Error) Reset() { *m = Rpc_Block_Open_Response_Error{} } +func (m *Rpc_Block_Open_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Open_Response_Error) ProtoMessage() {} +func (*Rpc_Block_Open_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 1, 0} +} +func (m *Rpc_Block_Open_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Open_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Open_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Open_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Open_Response_Error.Merge(m, src) +} +func (m *Rpc_Block_Open_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Open_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Open_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Open_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Block_Open_Response_Error) GetCode() Rpc_Block_Open_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Block_Open_Response_Error_NULL +} + +func (m *Rpc_Block_Open_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Block_Create struct { +} + +func (m *Rpc_Block_Create) Reset() { *m = Rpc_Block_Create{} } +func (m *Rpc_Block_Create) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Create) ProtoMessage() {} +func (*Rpc_Block_Create) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2} +} +func (m *Rpc_Block_Create) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Create.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Create) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Create.Merge(m, src) +} +func (m *Rpc_Block_Create) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Create) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Create.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Create proto.InternalMessageInfo + +type Rpc_Block_Create_Request struct { + Type Model_Block_Header_Type `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` +} + +func (m *Rpc_Block_Create_Request) Reset() { *m = Rpc_Block_Create_Request{} } +func (m *Rpc_Block_Create_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Create_Request) ProtoMessage() {} +func (*Rpc_Block_Create_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 0} +} +func (m *Rpc_Block_Create_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Create_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Create_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Create_Request.Merge(m, src) +} +func (m *Rpc_Block_Create_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Create_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Create_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Create_Request proto.InternalMessageInfo + +func (m *Rpc_Block_Create_Request) GetType() Model_Block_Header_Type { + if m != nil { + return m.Type + } + return Model_Block_Header_DASHBOARD +} + +func (m *Rpc_Block_Create_Request) GetContextBlockId() string { + if m != nil { + return m.ContextBlockId + } + return "" +} + +type Rpc_Block_Create_Response struct { + Error *Rpc_Block_Create_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *Rpc_Block_Create_Response) Reset() { *m = Rpc_Block_Create_Response{} } +func (m *Rpc_Block_Create_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Create_Response) ProtoMessage() {} +func (*Rpc_Block_Create_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 1} +} +func (m *Rpc_Block_Create_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Create_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Create_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Create_Response.Merge(m, src) +} +func (m *Rpc_Block_Create_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Create_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Create_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Create_Response proto.InternalMessageInfo + +func (m *Rpc_Block_Create_Response) GetError() *Rpc_Block_Create_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +type Rpc_Block_Create_Response_Error struct { + Code Rpc_Block_Create_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_Create_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Block_Create_Response_Error) Reset() { *m = Rpc_Block_Create_Response_Error{} } +func (m *Rpc_Block_Create_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Create_Response_Error) ProtoMessage() {} +func (*Rpc_Block_Create_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 1, 0} +} +func (m *Rpc_Block_Create_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Create_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Create_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Create_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Create_Response_Error.Merge(m, src) +} +func (m *Rpc_Block_Create_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Create_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Create_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Create_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Block_Create_Response_Error) GetCode() Rpc_Block_Create_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Block_Create_Response_Error_NULL +} + +func (m *Rpc_Block_Create_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Block_Update struct { +} + +func (m *Rpc_Block_Update) Reset() { *m = Rpc_Block_Update{} } +func (m *Rpc_Block_Update) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Update) ProtoMessage() {} +func (*Rpc_Block_Update) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3} +} +func (m *Rpc_Block_Update) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Update.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Update) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Update.Merge(m, src) +} +func (m *Rpc_Block_Update) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Update) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Update.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Update proto.InternalMessageInfo + +type Rpc_Block_Update_Request struct { + Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` +} + +func (m *Rpc_Block_Update_Request) Reset() { *m = Rpc_Block_Update_Request{} } +func (m *Rpc_Block_Update_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Update_Request) ProtoMessage() {} +func (*Rpc_Block_Update_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 0} +} +func (m *Rpc_Block_Update_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Update_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Update_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Update_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Update_Request.Merge(m, src) +} +func (m *Rpc_Block_Update_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Update_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Update_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Update_Request proto.InternalMessageInfo + +func (m *Rpc_Block_Update_Request) GetChanges() *BlockChanges { + if m != nil { + return m.Changes + } + return nil +} + +type Rpc_Block_Update_Response struct { + Error *Rpc_Block_Update_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *Rpc_Block_Update_Response) Reset() { *m = Rpc_Block_Update_Response{} } +func (m *Rpc_Block_Update_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Update_Response) ProtoMessage() {} +func (*Rpc_Block_Update_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 1} +} +func (m *Rpc_Block_Update_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Update_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Update_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Update_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Update_Response.Merge(m, src) +} +func (m *Rpc_Block_Update_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Update_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Update_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Update_Response proto.InternalMessageInfo + +func (m *Rpc_Block_Update_Response) GetError() *Rpc_Block_Update_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +type Rpc_Block_Update_Response_Error struct { + Code Rpc_Block_Update_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_Update_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Block_Update_Response_Error) Reset() { *m = Rpc_Block_Update_Response_Error{} } +func (m *Rpc_Block_Update_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_Update_Response_Error) ProtoMessage() {} +func (*Rpc_Block_Update_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 1, 0} +} +func (m *Rpc_Block_Update_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_Update_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_Update_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_Update_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_Update_Response_Error.Merge(m, src) +} +func (m *Rpc_Block_Update_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_Update_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_Update_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_Update_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Block_Update_Response_Error) GetCode() Rpc_Block_Update_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Block_Update_Response_Error_NULL +} + +func (m *Rpc_Block_Update_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Wallet struct { +} + +func (m *Rpc_Wallet) Reset() { *m = Rpc_Wallet{} } +func (m *Rpc_Wallet) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet) ProtoMessage() {} +func (*Rpc_Wallet) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1} +} +func (m *Rpc_Wallet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet.Merge(m, src) +} +func (m *Rpc_Wallet) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet proto.InternalMessageInfo + +type Rpc_Wallet_Create struct { +} + +func (m *Rpc_Wallet_Create) Reset() { *m = Rpc_Wallet_Create{} } +func (m *Rpc_Wallet_Create) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Create) ProtoMessage() {} +func (*Rpc_Wallet_Create) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0} +} +func (m *Rpc_Wallet_Create) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Create.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Create) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Create.Merge(m, src) +} +func (m *Rpc_Wallet_Create) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Create) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Create.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Create proto.InternalMessageInfo + +//* +// Front-end-to-middleware request to create a new wallet +type Rpc_Wallet_Create_Request struct { + RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` +} + +func (m *Rpc_Wallet_Create_Request) Reset() { *m = Rpc_Wallet_Create_Request{} } +func (m *Rpc_Wallet_Create_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Create_Request) ProtoMessage() {} +func (*Rpc_Wallet_Create_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 0} +} +func (m *Rpc_Wallet_Create_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Create_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Create_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Create_Request.Merge(m, src) +} +func (m *Rpc_Wallet_Create_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Create_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Create_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Create_Request proto.InternalMessageInfo + +func (m *Rpc_Wallet_Create_Request) GetRootPath() string { + if m != nil { + return m.RootPath + } + return "" +} + +//* +// Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error +type Rpc_Wallet_Create_Response struct { + Error *Rpc_Wallet_Create_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` +} + +func (m *Rpc_Wallet_Create_Response) Reset() { *m = Rpc_Wallet_Create_Response{} } +func (m *Rpc_Wallet_Create_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Create_Response) ProtoMessage() {} +func (*Rpc_Wallet_Create_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 1} +} +func (m *Rpc_Wallet_Create_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Create_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Create_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Create_Response.Merge(m, src) +} +func (m *Rpc_Wallet_Create_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Create_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Create_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Create_Response proto.InternalMessageInfo + +func (m *Rpc_Wallet_Create_Response) GetError() *Rpc_Wallet_Create_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Wallet_Create_Response) GetMnemonic() string { + if m != nil { + return m.Mnemonic + } + return "" +} + +type Rpc_Wallet_Create_Response_Error struct { + Code Rpc_Wallet_Create_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Wallet_Create_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Wallet_Create_Response_Error) Reset() { *m = Rpc_Wallet_Create_Response_Error{} } +func (m *Rpc_Wallet_Create_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Create_Response_Error) ProtoMessage() {} +func (*Rpc_Wallet_Create_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 1, 0} +} +func (m *Rpc_Wallet_Create_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Create_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Create_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Create_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Create_Response_Error.Merge(m, src) +} +func (m *Rpc_Wallet_Create_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Create_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Create_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Create_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Wallet_Create_Response_Error) GetCode() Rpc_Wallet_Create_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Wallet_Create_Response_Error_NULL +} + +func (m *Rpc_Wallet_Create_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Wallet_Recover struct { +} + +func (m *Rpc_Wallet_Recover) Reset() { *m = Rpc_Wallet_Recover{} } +func (m *Rpc_Wallet_Recover) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Recover) ProtoMessage() {} +func (*Rpc_Wallet_Recover) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1} +} +func (m *Rpc_Wallet_Recover) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Recover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Recover.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Recover) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Recover.Merge(m, src) +} +func (m *Rpc_Wallet_Recover) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Recover) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Recover.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Recover proto.InternalMessageInfo + +//* +// Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath +type Rpc_Wallet_Recover_Request struct { + RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` + Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` +} + +func (m *Rpc_Wallet_Recover_Request) Reset() { *m = Rpc_Wallet_Recover_Request{} } +func (m *Rpc_Wallet_Recover_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Recover_Request) ProtoMessage() {} +func (*Rpc_Wallet_Recover_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 0} +} +func (m *Rpc_Wallet_Recover_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Recover_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Recover_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Recover_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Recover_Request.Merge(m, src) +} +func (m *Rpc_Wallet_Recover_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Recover_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Recover_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Recover_Request proto.InternalMessageInfo + +func (m *Rpc_Wallet_Recover_Request) GetRootPath() string { + if m != nil { + return m.RootPath + } + return "" +} + +func (m *Rpc_Wallet_Recover_Request) GetMnemonic() string { + if m != nil { + return m.Mnemonic + } + return "" +} + +//* +// Middleware-to-front-end response, that can contain a NULL error or a non-NULL error +type Rpc_Wallet_Recover_Response struct { + Error *Rpc_Wallet_Recover_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *Rpc_Wallet_Recover_Response) Reset() { *m = Rpc_Wallet_Recover_Response{} } +func (m *Rpc_Wallet_Recover_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Recover_Response) ProtoMessage() {} +func (*Rpc_Wallet_Recover_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 1} +} +func (m *Rpc_Wallet_Recover_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Recover_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Recover_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Recover_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Recover_Response.Merge(m, src) +} +func (m *Rpc_Wallet_Recover_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Recover_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Recover_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Recover_Response proto.InternalMessageInfo + +func (m *Rpc_Wallet_Recover_Response) GetError() *Rpc_Wallet_Recover_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +type Rpc_Wallet_Recover_Response_Error struct { + Code Rpc_Wallet_Recover_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Wallet_Recover_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Wallet_Recover_Response_Error) Reset() { *m = Rpc_Wallet_Recover_Response_Error{} } +func (m *Rpc_Wallet_Recover_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Wallet_Recover_Response_Error) ProtoMessage() {} +func (*Rpc_Wallet_Recover_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 1, 0} +} +func (m *Rpc_Wallet_Recover_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Wallet_Recover_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Wallet_Recover_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Wallet_Recover_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Wallet_Recover_Response_Error.Merge(m, src) +} +func (m *Rpc_Wallet_Recover_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Wallet_Recover_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Wallet_Recover_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Wallet_Recover_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Wallet_Recover_Response_Error) GetCode() Rpc_Wallet_Recover_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Wallet_Recover_Response_Error_NULL +} + +func (m *Rpc_Wallet_Recover_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Account struct { +} + +func (m *Rpc_Account) Reset() { *m = Rpc_Account{} } +func (m *Rpc_Account) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account) ProtoMessage() {} +func (*Rpc_Account) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2} +} +func (m *Rpc_Account) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account.Merge(m, src) +} +func (m *Rpc_Account) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account proto.InternalMessageInfo + +type Rpc_Account_Create struct { +} + +func (m *Rpc_Account_Create) Reset() { *m = Rpc_Account_Create{} } +func (m *Rpc_Account_Create) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Create) ProtoMessage() {} +func (*Rpc_Account_Create) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0} +} +func (m *Rpc_Account_Create) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Create.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Create) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Create.Merge(m, src) +} +func (m *Rpc_Account_Create) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Create) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Create.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Create proto.InternalMessageInfo + +//* +// Front end to middleware request-to-create-an account +type Rpc_Account_Create_Request struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Avatar: + // *Rpc_Account_Create_Request_AvatarLocalPath + // *Rpc_Account_Create_Request_AvatarColor + Avatar isRpc_Account_Create_Request_Avatar `protobuf_oneof:"avatar"` +} + +func (m *Rpc_Account_Create_Request) Reset() { *m = Rpc_Account_Create_Request{} } +func (m *Rpc_Account_Create_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Create_Request) ProtoMessage() {} +func (*Rpc_Account_Create_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 0} +} +func (m *Rpc_Account_Create_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Create_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Create_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Create_Request.Merge(m, src) +} +func (m *Rpc_Account_Create_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Create_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Create_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Create_Request proto.InternalMessageInfo + +type isRpc_Account_Create_Request_Avatar interface { + isRpc_Account_Create_Request_Avatar() + MarshalTo([]byte) (int, error) + Size() int +} + +type Rpc_Account_Create_Request_AvatarLocalPath struct { + AvatarLocalPath string `protobuf:"bytes,2,opt,name=avatarLocalPath,proto3,oneof" json:"avatarLocalPath,omitempty"` +} +type Rpc_Account_Create_Request_AvatarColor struct { + AvatarColor string `protobuf:"bytes,3,opt,name=avatarColor,proto3,oneof" json:"avatarColor,omitempty"` +} + +func (*Rpc_Account_Create_Request_AvatarLocalPath) isRpc_Account_Create_Request_Avatar() {} +func (*Rpc_Account_Create_Request_AvatarColor) isRpc_Account_Create_Request_Avatar() {} + +func (m *Rpc_Account_Create_Request) GetAvatar() isRpc_Account_Create_Request_Avatar { + if m != nil { + return m.Avatar + } + return nil +} + +func (m *Rpc_Account_Create_Request) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Rpc_Account_Create_Request) GetAvatarLocalPath() string { + if x, ok := m.GetAvatar().(*Rpc_Account_Create_Request_AvatarLocalPath); ok { + return x.AvatarLocalPath + } + return "" +} + +func (m *Rpc_Account_Create_Request) GetAvatarColor() string { + if x, ok := m.GetAvatar().(*Rpc_Account_Create_Request_AvatarColor); ok { + return x.AvatarColor + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Rpc_Account_Create_Request) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Rpc_Account_Create_Request_AvatarLocalPath)(nil), + (*Rpc_Account_Create_Request_AvatarColor)(nil), + } +} + +//* +// Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account +type Rpc_Account_Create_Response struct { + Error *Rpc_Account_Create_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Account *Model_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *Rpc_Account_Create_Response) Reset() { *m = Rpc_Account_Create_Response{} } +func (m *Rpc_Account_Create_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Create_Response) ProtoMessage() {} +func (*Rpc_Account_Create_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 1} +} +func (m *Rpc_Account_Create_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Create_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Create_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Create_Response.Merge(m, src) +} +func (m *Rpc_Account_Create_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Create_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Create_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Create_Response proto.InternalMessageInfo + +func (m *Rpc_Account_Create_Response) GetError() *Rpc_Account_Create_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Account_Create_Response) GetAccount() *Model_Account { + if m != nil { + return m.Account + } + return nil +} + +type Rpc_Account_Create_Response_Error struct { + Code Rpc_Account_Create_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Account_Create_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Account_Create_Response_Error) Reset() { *m = Rpc_Account_Create_Response_Error{} } +func (m *Rpc_Account_Create_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Create_Response_Error) ProtoMessage() {} +func (*Rpc_Account_Create_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 1, 0} +} +func (m *Rpc_Account_Create_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Create_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Create_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Create_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Create_Response_Error.Merge(m, src) +} +func (m *Rpc_Account_Create_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Create_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Create_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Create_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Account_Create_Response_Error) GetCode() Rpc_Account_Create_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Account_Create_Response_Error_NULL +} + +func (m *Rpc_Account_Create_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Account_Recover struct { +} + +func (m *Rpc_Account_Recover) Reset() { *m = Rpc_Account_Recover{} } +func (m *Rpc_Account_Recover) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Recover) ProtoMessage() {} +func (*Rpc_Account_Recover) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1} +} +func (m *Rpc_Account_Recover) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Recover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Recover.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Recover) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Recover.Merge(m, src) +} +func (m *Rpc_Account_Recover) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Recover) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Recover.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Recover proto.InternalMessageInfo + +//* +// Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. +// Each of an account that would be found will come with an AccountAdd event +type Rpc_Account_Recover_Request struct { +} + +func (m *Rpc_Account_Recover_Request) Reset() { *m = Rpc_Account_Recover_Request{} } +func (m *Rpc_Account_Recover_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Recover_Request) ProtoMessage() {} +func (*Rpc_Account_Recover_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 0} +} +func (m *Rpc_Account_Recover_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Recover_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Recover_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Recover_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Recover_Request.Merge(m, src) +} +func (m *Rpc_Account_Recover_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Recover_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Recover_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Recover_Request proto.InternalMessageInfo + +//* +// Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account +type Rpc_Account_Recover_Response struct { + Error *Rpc_Account_Recover_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *Rpc_Account_Recover_Response) Reset() { *m = Rpc_Account_Recover_Response{} } +func (m *Rpc_Account_Recover_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Recover_Response) ProtoMessage() {} +func (*Rpc_Account_Recover_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 1} +} +func (m *Rpc_Account_Recover_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Recover_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Recover_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Recover_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Recover_Response.Merge(m, src) +} +func (m *Rpc_Account_Recover_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Recover_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Recover_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Recover_Response proto.InternalMessageInfo + +func (m *Rpc_Account_Recover_Response) GetError() *Rpc_Account_Recover_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +type Rpc_Account_Recover_Response_Error struct { + Code Rpc_Account_Recover_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Account_Recover_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Account_Recover_Response_Error) Reset() { *m = Rpc_Account_Recover_Response_Error{} } +func (m *Rpc_Account_Recover_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Recover_Response_Error) ProtoMessage() {} +func (*Rpc_Account_Recover_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 1, 0} +} +func (m *Rpc_Account_Recover_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Recover_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Recover_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Recover_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Recover_Response_Error.Merge(m, src) +} +func (m *Rpc_Account_Recover_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Recover_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Recover_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Recover_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Account_Recover_Response_Error) GetCode() Rpc_Account_Recover_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Account_Recover_Response_Error_NULL +} + +func (m *Rpc_Account_Recover_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Account_Select struct { +} + +func (m *Rpc_Account_Select) Reset() { *m = Rpc_Account_Select{} } +func (m *Rpc_Account_Select) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Select) ProtoMessage() {} +func (*Rpc_Account_Select) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2} +} +func (m *Rpc_Account_Select) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Select) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Select.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Select) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Select.Merge(m, src) +} +func (m *Rpc_Account_Select) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Select) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Select.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Select proto.InternalMessageInfo + +//* +// Front end to middleware request-to-launch-a specific account using account id and a root path +// User can select an account from those, that came with an AccountAdd events +type Rpc_Account_Select_Request struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + RootPath string `protobuf:"bytes,2,opt,name=rootPath,proto3" json:"rootPath,omitempty"` +} + +func (m *Rpc_Account_Select_Request) Reset() { *m = Rpc_Account_Select_Request{} } +func (m *Rpc_Account_Select_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Select_Request) ProtoMessage() {} +func (*Rpc_Account_Select_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 0} +} +func (m *Rpc_Account_Select_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Select_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Select_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Select_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Select_Request.Merge(m, src) +} +func (m *Rpc_Account_Select_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Select_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Select_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Select_Request proto.InternalMessageInfo + +func (m *Rpc_Account_Select_Request) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Rpc_Account_Select_Request) GetRootPath() string { + if m != nil { + return m.RootPath + } + return "" +} + +//* +// Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account +type Rpc_Account_Select_Response struct { + Error *Rpc_Account_Select_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Account *Model_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *Rpc_Account_Select_Response) Reset() { *m = Rpc_Account_Select_Response{} } +func (m *Rpc_Account_Select_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Select_Response) ProtoMessage() {} +func (*Rpc_Account_Select_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 1} +} +func (m *Rpc_Account_Select_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Select_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Select_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Select_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Select_Response.Merge(m, src) +} +func (m *Rpc_Account_Select_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Select_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Select_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Select_Response proto.InternalMessageInfo + +func (m *Rpc_Account_Select_Response) GetError() *Rpc_Account_Select_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Account_Select_Response) GetAccount() *Model_Account { + if m != nil { + return m.Account + } + return nil +} + +type Rpc_Account_Select_Response_Error struct { + Code Rpc_Account_Select_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Account_Select_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Account_Select_Response_Error) Reset() { *m = Rpc_Account_Select_Response_Error{} } +func (m *Rpc_Account_Select_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Account_Select_Response_Error) ProtoMessage() {} +func (*Rpc_Account_Select_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 1, 0} +} +func (m *Rpc_Account_Select_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Account_Select_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Account_Select_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Account_Select_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Account_Select_Response_Error.Merge(m, src) +} +func (m *Rpc_Account_Select_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Account_Select_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Account_Select_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Account_Select_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Account_Select_Response_Error) GetCode() Rpc_Account_Select_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Account_Select_Response_Error_NULL +} + +func (m *Rpc_Account_Select_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Version struct { +} + +func (m *Rpc_Version) Reset() { *m = Rpc_Version{} } +func (m *Rpc_Version) String() string { return proto.CompactTextString(m) } +func (*Rpc_Version) ProtoMessage() {} +func (*Rpc_Version) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3} +} +func (m *Rpc_Version) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Version.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Version) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Version.Merge(m, src) +} +func (m *Rpc_Version) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Version) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Version.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Version proto.InternalMessageInfo + +type Rpc_Version_Get struct { +} + +func (m *Rpc_Version_Get) Reset() { *m = Rpc_Version_Get{} } +func (m *Rpc_Version_Get) String() string { return proto.CompactTextString(m) } +func (*Rpc_Version_Get) ProtoMessage() {} +func (*Rpc_Version_Get) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0} +} +func (m *Rpc_Version_Get) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Version_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Version_Get.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Version_Get) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Version_Get.Merge(m, src) +} +func (m *Rpc_Version_Get) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Version_Get) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Version_Get.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Version_Get proto.InternalMessageInfo + +type Rpc_Version_Get_Request struct { +} + +func (m *Rpc_Version_Get_Request) Reset() { *m = Rpc_Version_Get_Request{} } +func (m *Rpc_Version_Get_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Version_Get_Request) ProtoMessage() {} +func (*Rpc_Version_Get_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 0} +} +func (m *Rpc_Version_Get_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Version_Get_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Version_Get_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Version_Get_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Version_Get_Request.Merge(m, src) +} +func (m *Rpc_Version_Get_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Version_Get_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Version_Get_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Version_Get_Request proto.InternalMessageInfo + +type Rpc_Version_Get_Response struct { + Error *Rpc_Version_Get_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (m *Rpc_Version_Get_Response) Reset() { *m = Rpc_Version_Get_Response{} } +func (m *Rpc_Version_Get_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Version_Get_Response) ProtoMessage() {} +func (*Rpc_Version_Get_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 1} +} +func (m *Rpc_Version_Get_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Version_Get_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Version_Get_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Version_Get_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Version_Get_Response.Merge(m, src) +} +func (m *Rpc_Version_Get_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Version_Get_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Version_Get_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Version_Get_Response proto.InternalMessageInfo + +func (m *Rpc_Version_Get_Response) GetError() *Rpc_Version_Get_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Version_Get_Response) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +type Rpc_Version_Get_Response_Error struct { + Code Rpc_Version_Get_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Version_Get_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Version_Get_Response_Error) Reset() { *m = Rpc_Version_Get_Response_Error{} } +func (m *Rpc_Version_Get_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Version_Get_Response_Error) ProtoMessage() {} +func (*Rpc_Version_Get_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 1, 0} +} +func (m *Rpc_Version_Get_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Version_Get_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Version_Get_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Version_Get_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Version_Get_Response_Error.Merge(m, src) +} +func (m *Rpc_Version_Get_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Version_Get_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Version_Get_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Version_Get_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Version_Get_Response_Error) GetCode() Rpc_Version_Get_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Version_Get_Response_Error_NULL +} + +func (m *Rpc_Version_Get_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Log struct { +} + +func (m *Rpc_Log) Reset() { *m = Rpc_Log{} } +func (m *Rpc_Log) String() string { return proto.CompactTextString(m) } +func (*Rpc_Log) ProtoMessage() {} +func (*Rpc_Log) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4} +} +func (m *Rpc_Log) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Log.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Log) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Log.Merge(m, src) +} +func (m *Rpc_Log) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Log) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Log.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Log proto.InternalMessageInfo + +type Rpc_Log_Send struct { +} + +func (m *Rpc_Log_Send) Reset() { *m = Rpc_Log_Send{} } +func (m *Rpc_Log_Send) String() string { return proto.CompactTextString(m) } +func (*Rpc_Log_Send) ProtoMessage() {} +func (*Rpc_Log_Send) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0} +} +func (m *Rpc_Log_Send) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Log_Send) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Log_Send.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Log_Send) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Log_Send.Merge(m, src) +} +func (m *Rpc_Log_Send) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Log_Send) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Log_Send.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Log_Send proto.InternalMessageInfo + +type Rpc_Log_Send_Request struct { + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Level Rpc_Log_Send_Request_Level `protobuf:"varint,2,opt,name=level,proto3,enum=anytype.Rpc_Log_Send_Request_Level" json:"level,omitempty"` +} + +func (m *Rpc_Log_Send_Request) Reset() { *m = Rpc_Log_Send_Request{} } +func (m *Rpc_Log_Send_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Log_Send_Request) ProtoMessage() {} +func (*Rpc_Log_Send_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 0} +} +func (m *Rpc_Log_Send_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Log_Send_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Log_Send_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Log_Send_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Log_Send_Request.Merge(m, src) +} +func (m *Rpc_Log_Send_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Log_Send_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Log_Send_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Log_Send_Request proto.InternalMessageInfo + +func (m *Rpc_Log_Send_Request) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *Rpc_Log_Send_Request) GetLevel() Rpc_Log_Send_Request_Level { + if m != nil { + return m.Level + } + return Rpc_Log_Send_Request_DEBUG +} + +type Rpc_Log_Send_Response struct { + Error *Rpc_Log_Send_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *Rpc_Log_Send_Response) Reset() { *m = Rpc_Log_Send_Response{} } +func (m *Rpc_Log_Send_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Log_Send_Response) ProtoMessage() {} +func (*Rpc_Log_Send_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1} +} +func (m *Rpc_Log_Send_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Log_Send_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Log_Send_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Log_Send_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Log_Send_Response.Merge(m, src) +} +func (m *Rpc_Log_Send_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Log_Send_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Log_Send_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Log_Send_Response proto.InternalMessageInfo + +func (m *Rpc_Log_Send_Response) GetError() *Rpc_Log_Send_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +type Rpc_Log_Send_Response_Error struct { + Code Rpc_Log_Send_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Log_Send_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Log_Send_Response_Error) Reset() { *m = Rpc_Log_Send_Response_Error{} } +func (m *Rpc_Log_Send_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Log_Send_Response_Error) ProtoMessage() {} +func (*Rpc_Log_Send_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1, 0} +} +func (m *Rpc_Log_Send_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Log_Send_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Log_Send_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Log_Send_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Log_Send_Response_Error.Merge(m, src) +} +func (m *Rpc_Log_Send_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Log_Send_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Log_Send_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Log_Send_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Log_Send_Response_Error) GetCode() Rpc_Log_Send_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Log_Send_Response_Error_NULL +} + +func (m *Rpc_Log_Send_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Ipfs struct { +} + +func (m *Rpc_Ipfs) Reset() { *m = Rpc_Ipfs{} } +func (m *Rpc_Ipfs) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs) ProtoMessage() {} +func (*Rpc_Ipfs) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5} +} +func (m *Rpc_Ipfs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Ipfs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Ipfs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Ipfs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs.Merge(m, src) +} +func (m *Rpc_Ipfs) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Ipfs) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Ipfs proto.InternalMessageInfo + +type Rpc_Ipfs_GetFile struct { +} + +func (m *Rpc_Ipfs_GetFile) Reset() { *m = Rpc_Ipfs_GetFile{} } +func (m *Rpc_Ipfs_GetFile) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_GetFile) ProtoMessage() {} +func (*Rpc_Ipfs_GetFile) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0} +} +func (m *Rpc_Ipfs_GetFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Ipfs_GetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Ipfs_GetFile.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Ipfs_GetFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_GetFile.Merge(m, src) +} +func (m *Rpc_Ipfs_GetFile) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Ipfs_GetFile) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_GetFile.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Ipfs_GetFile proto.InternalMessageInfo + +type Rpc_Ipfs_GetFile_Request struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *Rpc_Ipfs_GetFile_Request) Reset() { *m = Rpc_Ipfs_GetFile_Request{} } +func (m *Rpc_Ipfs_GetFile_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_GetFile_Request) ProtoMessage() {} +func (*Rpc_Ipfs_GetFile_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0} +} +func (m *Rpc_Ipfs_GetFile_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Ipfs_GetFile_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Ipfs_GetFile_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Ipfs_GetFile_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_GetFile_Request.Merge(m, src) +} +func (m *Rpc_Ipfs_GetFile_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Ipfs_GetFile_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_GetFile_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Ipfs_GetFile_Request proto.InternalMessageInfo + +func (m *Rpc_Ipfs_GetFile_Request) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type Rpc_Ipfs_GetFile_Response struct { + Error *Rpc_Ipfs_GetFile_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Media string `protobuf:"bytes,3,opt,name=media,proto3" json:"media,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *Rpc_Ipfs_GetFile_Response) Reset() { *m = Rpc_Ipfs_GetFile_Response{} } +func (m *Rpc_Ipfs_GetFile_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_GetFile_Response) ProtoMessage() {} +func (*Rpc_Ipfs_GetFile_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 1} +} +func (m *Rpc_Ipfs_GetFile_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Ipfs_GetFile_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Ipfs_GetFile_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Ipfs_GetFile_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_GetFile_Response.Merge(m, src) +} +func (m *Rpc_Ipfs_GetFile_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Ipfs_GetFile_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_GetFile_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Ipfs_GetFile_Response proto.InternalMessageInfo + +func (m *Rpc_Ipfs_GetFile_Response) GetError() *Rpc_Ipfs_GetFile_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Ipfs_GetFile_Response) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *Rpc_Ipfs_GetFile_Response) GetMedia() string { + if m != nil { + return m.Media + } + return "" +} + +func (m *Rpc_Ipfs_GetFile_Response) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type Rpc_Ipfs_GetFile_Response_Error struct { + Code Rpc_Ipfs_GetFile_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Ipfs_GetFile_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Ipfs_GetFile_Response_Error) Reset() { *m = Rpc_Ipfs_GetFile_Response_Error{} } +func (m *Rpc_Ipfs_GetFile_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_GetFile_Response_Error) ProtoMessage() {} +func (*Rpc_Ipfs_GetFile_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 1, 0} +} +func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error.Merge(m, src) +} +func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Ipfs_GetFile_Response_Error) GetCode() Rpc_Ipfs_GetFile_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Ipfs_GetFile_Response_Error_NULL +} + +func (m *Rpc_Ipfs_GetFile_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Image struct { +} + +func (m *Rpc_Image) Reset() { *m = Rpc_Image{} } +func (m *Rpc_Image) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image) ProtoMessage() {} +func (*Rpc_Image) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6} +} +func (m *Rpc_Image) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image.Merge(m, src) +} +func (m *Rpc_Image) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image proto.InternalMessageInfo + +type Rpc_Image_GetBlob struct { +} + +func (m *Rpc_Image_GetBlob) Reset() { *m = Rpc_Image_GetBlob{} } +func (m *Rpc_Image_GetBlob) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetBlob) ProtoMessage() {} +func (*Rpc_Image_GetBlob) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0} +} +func (m *Rpc_Image_GetBlob) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetBlob.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetBlob.Merge(m, src) +} +func (m *Rpc_Image_GetBlob) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetBlob) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetBlob.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetBlob proto.InternalMessageInfo + +type Rpc_Image_GetBlob_Request struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Size_ Model_Image_Size `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.Model_Image_Size" json:"size,omitempty"` +} + +func (m *Rpc_Image_GetBlob_Request) Reset() { *m = Rpc_Image_GetBlob_Request{} } +func (m *Rpc_Image_GetBlob_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetBlob_Request) ProtoMessage() {} +func (*Rpc_Image_GetBlob_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0} +} +func (m *Rpc_Image_GetBlob_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetBlob_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetBlob_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetBlob_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetBlob_Request.Merge(m, src) +} +func (m *Rpc_Image_GetBlob_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetBlob_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetBlob_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetBlob_Request proto.InternalMessageInfo + +func (m *Rpc_Image_GetBlob_Request) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Rpc_Image_GetBlob_Request) GetSize_() Model_Image_Size { + if m != nil { + return m.Size_ + } + return Model_Image_LARGE +} + +type Rpc_Image_GetBlob_Response struct { + Error *Rpc_Image_GetBlob_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` +} + +func (m *Rpc_Image_GetBlob_Response) Reset() { *m = Rpc_Image_GetBlob_Response{} } +func (m *Rpc_Image_GetBlob_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetBlob_Response) ProtoMessage() {} +func (*Rpc_Image_GetBlob_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1} +} +func (m *Rpc_Image_GetBlob_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetBlob_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetBlob_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetBlob_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetBlob_Response.Merge(m, src) +} +func (m *Rpc_Image_GetBlob_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetBlob_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetBlob_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetBlob_Response proto.InternalMessageInfo + +func (m *Rpc_Image_GetBlob_Response) GetError() *Rpc_Image_GetBlob_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Image_GetBlob_Response) GetBlob() []byte { + if m != nil { + return m.Blob + } + return nil +} + +type Rpc_Image_GetBlob_Response_Error struct { + Code Rpc_Image_GetBlob_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_GetBlob_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Image_GetBlob_Response_Error) Reset() { *m = Rpc_Image_GetBlob_Response_Error{} } +func (m *Rpc_Image_GetBlob_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetBlob_Response_Error) ProtoMessage() {} +func (*Rpc_Image_GetBlob_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 0} +} +func (m *Rpc_Image_GetBlob_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetBlob_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetBlob_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetBlob_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetBlob_Response_Error.Merge(m, src) +} +func (m *Rpc_Image_GetBlob_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetBlob_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetBlob_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetBlob_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Image_GetBlob_Response_Error) GetCode() Rpc_Image_GetBlob_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Image_GetBlob_Response_Error_NULL +} + +func (m *Rpc_Image_GetBlob_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type Rpc_Image_GetFile struct { +} + +func (m *Rpc_Image_GetFile) Reset() { *m = Rpc_Image_GetFile{} } +func (m *Rpc_Image_GetFile) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetFile) ProtoMessage() {} +func (*Rpc_Image_GetFile) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1} +} +func (m *Rpc_Image_GetFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetFile.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetFile.Merge(m, src) +} +func (m *Rpc_Image_GetFile) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetFile) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetFile.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetFile proto.InternalMessageInfo + +type Rpc_Image_GetFile_Request struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Size_ Model_Image_Size `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.Model_Image_Size" json:"size,omitempty"` +} + +func (m *Rpc_Image_GetFile_Request) Reset() { *m = Rpc_Image_GetFile_Request{} } +func (m *Rpc_Image_GetFile_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetFile_Request) ProtoMessage() {} +func (*Rpc_Image_GetFile_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 0} +} +func (m *Rpc_Image_GetFile_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetFile_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetFile_Request.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetFile_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetFile_Request.Merge(m, src) +} +func (m *Rpc_Image_GetFile_Request) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetFile_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetFile_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetFile_Request proto.InternalMessageInfo + +func (m *Rpc_Image_GetFile_Request) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Rpc_Image_GetFile_Request) GetSize_() Model_Image_Size { + if m != nil { + return m.Size_ + } + return Model_Image_LARGE +} + +type Rpc_Image_GetFile_Response struct { + Error *Rpc_Image_GetFile_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` +} + +func (m *Rpc_Image_GetFile_Response) Reset() { *m = Rpc_Image_GetFile_Response{} } +func (m *Rpc_Image_GetFile_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetFile_Response) ProtoMessage() {} +func (*Rpc_Image_GetFile_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 1} +} +func (m *Rpc_Image_GetFile_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetFile_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetFile_Response.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetFile_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetFile_Response.Merge(m, src) +} +func (m *Rpc_Image_GetFile_Response) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetFile_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetFile_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetFile_Response proto.InternalMessageInfo + +func (m *Rpc_Image_GetFile_Response) GetError() *Rpc_Image_GetFile_Response_Error { + if m != nil { + return m.Error + } + return nil +} + +func (m *Rpc_Image_GetFile_Response) GetLocalPath() string { + if m != nil { + return m.LocalPath + } + return "" +} + +type Rpc_Image_GetFile_Response_Error struct { + Code Rpc_Image_GetFile_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_GetFile_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *Rpc_Image_GetFile_Response_Error) Reset() { *m = Rpc_Image_GetFile_Response_Error{} } +func (m *Rpc_Image_GetFile_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_GetFile_Response_Error) ProtoMessage() {} +func (*Rpc_Image_GetFile_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 1, 0} +} +func (m *Rpc_Image_GetFile_Response_Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_GetFile_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_GetFile_Response_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_GetFile_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_GetFile_Response_Error.Merge(m, src) +} +func (m *Rpc_Image_GetFile_Response_Error) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_GetFile_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_GetFile_Response_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_GetFile_Response_Error proto.InternalMessageInfo + +func (m *Rpc_Image_GetFile_Response_Error) GetCode() Rpc_Image_GetFile_Response_Error_Code { + if m != nil { + return m.Code + } + return Rpc_Image_GetFile_Response_Error_NULL +} + +func (m *Rpc_Image_GetFile_Response_Error) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func init() { + proto.RegisterEnum("anytype.Rpc_Block_HistoryMove_Response_Error_Code", Rpc_Block_HistoryMove_Response_Error_Code_name, Rpc_Block_HistoryMove_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Block_Open_Response_Error_Code", Rpc_Block_Open_Response_Error_Code_name, Rpc_Block_Open_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Block_Create_Response_Error_Code", Rpc_Block_Create_Response_Error_Code_name, Rpc_Block_Create_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Block_Update_Response_Error_Code", Rpc_Block_Update_Response_Error_Code_name, Rpc_Block_Update_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Wallet_Create_Response_Error_Code", Rpc_Wallet_Create_Response_Error_Code_name, Rpc_Wallet_Create_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Wallet_Recover_Response_Error_Code", Rpc_Wallet_Recover_Response_Error_Code_name, Rpc_Wallet_Recover_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Account_Create_Response_Error_Code", Rpc_Account_Create_Response_Error_Code_name, Rpc_Account_Create_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Account_Recover_Response_Error_Code", Rpc_Account_Recover_Response_Error_Code_name, Rpc_Account_Recover_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Account_Select_Response_Error_Code", Rpc_Account_Select_Response_Error_Code_name, Rpc_Account_Select_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Version_Get_Response_Error_Code", Rpc_Version_Get_Response_Error_Code_name, Rpc_Version_Get_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Log_Send_Request_Level", Rpc_Log_Send_Request_Level_name, Rpc_Log_Send_Request_Level_value) + proto.RegisterEnum("anytype.Rpc_Log_Send_Response_Error_Code", Rpc_Log_Send_Response_Error_Code_name, Rpc_Log_Send_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Ipfs_GetFile_Response_Error_Code", Rpc_Ipfs_GetFile_Response_Error_Code_name, Rpc_Ipfs_GetFile_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Image_GetBlob_Response_Error_Code", Rpc_Image_GetBlob_Response_Error_Code_name, Rpc_Image_GetBlob_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Image_GetFile_Response_Error_Code", Rpc_Image_GetFile_Response_Error_Code_name, Rpc_Image_GetFile_Response_Error_Code_value) + proto.RegisterType((*Rpc)(nil), "anytype.Rpc") + proto.RegisterType((*Rpc_Block)(nil), "anytype.Rpc.Block") + proto.RegisterType((*Rpc_Block_HistoryMove)(nil), "anytype.Rpc.Block.HistoryMove") + proto.RegisterType((*Rpc_Block_HistoryMove_Request)(nil), "anytype.Rpc.Block.HistoryMove.Request") + proto.RegisterType((*Rpc_Block_HistoryMove_Response)(nil), "anytype.Rpc.Block.HistoryMove.Response") + proto.RegisterType((*Rpc_Block_HistoryMove_Response_Error)(nil), "anytype.Rpc.Block.HistoryMove.Response.Error") + proto.RegisterType((*Rpc_Block_Open)(nil), "anytype.Rpc.Block.Open") + proto.RegisterType((*Rpc_Block_Open_Request)(nil), "anytype.Rpc.Block.Open.Request") + proto.RegisterType((*Rpc_Block_Open_Response)(nil), "anytype.Rpc.Block.Open.Response") + proto.RegisterType((*Rpc_Block_Open_Response_Error)(nil), "anytype.Rpc.Block.Open.Response.Error") + proto.RegisterType((*Rpc_Block_Create)(nil), "anytype.Rpc.Block.Create") + proto.RegisterType((*Rpc_Block_Create_Request)(nil), "anytype.Rpc.Block.Create.Request") + proto.RegisterType((*Rpc_Block_Create_Response)(nil), "anytype.Rpc.Block.Create.Response") + proto.RegisterType((*Rpc_Block_Create_Response_Error)(nil), "anytype.Rpc.Block.Create.Response.Error") + proto.RegisterType((*Rpc_Block_Update)(nil), "anytype.Rpc.Block.Update") + proto.RegisterType((*Rpc_Block_Update_Request)(nil), "anytype.Rpc.Block.Update.Request") + proto.RegisterType((*Rpc_Block_Update_Response)(nil), "anytype.Rpc.Block.Update.Response") + proto.RegisterType((*Rpc_Block_Update_Response_Error)(nil), "anytype.Rpc.Block.Update.Response.Error") + proto.RegisterType((*Rpc_Wallet)(nil), "anytype.Rpc.Wallet") + proto.RegisterType((*Rpc_Wallet_Create)(nil), "anytype.Rpc.Wallet.Create") + proto.RegisterType((*Rpc_Wallet_Create_Request)(nil), "anytype.Rpc.Wallet.Create.Request") + proto.RegisterType((*Rpc_Wallet_Create_Response)(nil), "anytype.Rpc.Wallet.Create.Response") + proto.RegisterType((*Rpc_Wallet_Create_Response_Error)(nil), "anytype.Rpc.Wallet.Create.Response.Error") + proto.RegisterType((*Rpc_Wallet_Recover)(nil), "anytype.Rpc.Wallet.Recover") + proto.RegisterType((*Rpc_Wallet_Recover_Request)(nil), "anytype.Rpc.Wallet.Recover.Request") + proto.RegisterType((*Rpc_Wallet_Recover_Response)(nil), "anytype.Rpc.Wallet.Recover.Response") + proto.RegisterType((*Rpc_Wallet_Recover_Response_Error)(nil), "anytype.Rpc.Wallet.Recover.Response.Error") + proto.RegisterType((*Rpc_Account)(nil), "anytype.Rpc.Account") + proto.RegisterType((*Rpc_Account_Create)(nil), "anytype.Rpc.Account.Create") + proto.RegisterType((*Rpc_Account_Create_Request)(nil), "anytype.Rpc.Account.Create.Request") + proto.RegisterType((*Rpc_Account_Create_Response)(nil), "anytype.Rpc.Account.Create.Response") + proto.RegisterType((*Rpc_Account_Create_Response_Error)(nil), "anytype.Rpc.Account.Create.Response.Error") + proto.RegisterType((*Rpc_Account_Recover)(nil), "anytype.Rpc.Account.Recover") + proto.RegisterType((*Rpc_Account_Recover_Request)(nil), "anytype.Rpc.Account.Recover.Request") + proto.RegisterType((*Rpc_Account_Recover_Response)(nil), "anytype.Rpc.Account.Recover.Response") + proto.RegisterType((*Rpc_Account_Recover_Response_Error)(nil), "anytype.Rpc.Account.Recover.Response.Error") + proto.RegisterType((*Rpc_Account_Select)(nil), "anytype.Rpc.Account.Select") + proto.RegisterType((*Rpc_Account_Select_Request)(nil), "anytype.Rpc.Account.Select.Request") + proto.RegisterType((*Rpc_Account_Select_Response)(nil), "anytype.Rpc.Account.Select.Response") + proto.RegisterType((*Rpc_Account_Select_Response_Error)(nil), "anytype.Rpc.Account.Select.Response.Error") + proto.RegisterType((*Rpc_Version)(nil), "anytype.Rpc.Version") + proto.RegisterType((*Rpc_Version_Get)(nil), "anytype.Rpc.Version.Get") + proto.RegisterType((*Rpc_Version_Get_Request)(nil), "anytype.Rpc.Version.Get.Request") + proto.RegisterType((*Rpc_Version_Get_Response)(nil), "anytype.Rpc.Version.Get.Response") + proto.RegisterType((*Rpc_Version_Get_Response_Error)(nil), "anytype.Rpc.Version.Get.Response.Error") + proto.RegisterType((*Rpc_Log)(nil), "anytype.Rpc.Log") + proto.RegisterType((*Rpc_Log_Send)(nil), "anytype.Rpc.Log.Send") + proto.RegisterType((*Rpc_Log_Send_Request)(nil), "anytype.Rpc.Log.Send.Request") + proto.RegisterType((*Rpc_Log_Send_Response)(nil), "anytype.Rpc.Log.Send.Response") + proto.RegisterType((*Rpc_Log_Send_Response_Error)(nil), "anytype.Rpc.Log.Send.Response.Error") + proto.RegisterType((*Rpc_Ipfs)(nil), "anytype.Rpc.Ipfs") + proto.RegisterType((*Rpc_Ipfs_GetFile)(nil), "anytype.Rpc.Ipfs.GetFile") + proto.RegisterType((*Rpc_Ipfs_GetFile_Request)(nil), "anytype.Rpc.Ipfs.GetFile.Request") + proto.RegisterType((*Rpc_Ipfs_GetFile_Response)(nil), "anytype.Rpc.Ipfs.GetFile.Response") + proto.RegisterType((*Rpc_Ipfs_GetFile_Response_Error)(nil), "anytype.Rpc.Ipfs.GetFile.Response.Error") + proto.RegisterType((*Rpc_Image)(nil), "anytype.Rpc.Image") + proto.RegisterType((*Rpc_Image_GetBlob)(nil), "anytype.Rpc.Image.GetBlob") + proto.RegisterType((*Rpc_Image_GetBlob_Request)(nil), "anytype.Rpc.Image.GetBlob.Request") + proto.RegisterType((*Rpc_Image_GetBlob_Response)(nil), "anytype.Rpc.Image.GetBlob.Response") + proto.RegisterType((*Rpc_Image_GetBlob_Response_Error)(nil), "anytype.Rpc.Image.GetBlob.Response.Error") + proto.RegisterType((*Rpc_Image_GetFile)(nil), "anytype.Rpc.Image.GetFile") + proto.RegisterType((*Rpc_Image_GetFile_Request)(nil), "anytype.Rpc.Image.GetFile.Request") + proto.RegisterType((*Rpc_Image_GetFile_Response)(nil), "anytype.Rpc.Image.GetFile.Response") + proto.RegisterType((*Rpc_Image_GetFile_Response_Error)(nil), "anytype.Rpc.Image.GetFile.Response.Error") +} + +func init() { proto.RegisterFile("commands.proto", fileDescriptor_0dff099eb2e3dfdb) } + +var fileDescriptor_0dff099eb2e3dfdb = []byte{ + // 1508 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x5d, 0x6c, 0xdb, 0xd4, + 0x17, 0x6f, 0x9c, 0xa4, 0x69, 0x4f, 0xbb, 0xfe, 0x3d, 0x6b, 0x9b, 0xba, 0xbb, 0xa9, 0xab, 0xba, + 0xff, 0x7f, 0xff, 0xee, 0xcb, 0x9b, 0x0a, 0x3c, 0x30, 0x31, 0x36, 0xc7, 0x71, 0x5a, 0x43, 0x62, + 0x47, 0x37, 0x4e, 0x0b, 0xbc, 0x58, 0xae, 0x7d, 0x9b, 0x06, 0x92, 0x38, 0x38, 0x5e, 0x47, 0xf7, + 0xb6, 0x47, 0xde, 0x10, 0x12, 0x4f, 0x48, 0xc0, 0x23, 0x1f, 0x43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a, 0x16, 0xd4, 0x7c, 0x4d, 0x51, 0xfb, 0x5a, 0x57, 0x15, 0x0e, 0x2b, + 0xaa, 0x24, 0x17, 0x04, 0xda, 0x91, 0xeb, 0xd8, 0x1d, 0xac, 0x05, 0x45, 0x95, 0xb8, 0xb2, 0x40, + 0x6f, 0xc4, 0x40, 0x16, 0x14, 0x95, 0x5b, 0xe5, 0x14, 0x0e, 0xd3, 0x75, 0xf4, 0x79, 0xba, 0xdf, + 0xa2, 0x93, 0x41, 0xcd, 0xa0, 0x77, 0xc3, 0x2a, 0x72, 0x51, 0x15, 0x4f, 0x0e, 0x24, 0x72, 0x74, + 0xaf, 0xfd, 0x14, 0x88, 0x52, 0x88, 0x88, 0x72, 0x36, 0x01, 0x56, 0x32, 0x55, 0x7e, 0xdd, 0x8d, + 0x2a, 0xfb, 0x61, 0xaf, 0x24, 0xab, 0x3e, 0x7d, 0x55, 0xb5, 0x28, 0xd7, 0xa4, 0x02, 0xed, 0x78, + 0x3b, 0x2c, 0x09, 0x1e, 0x79, 0x58, 0xe0, 0xe5, 0x55, 0x01, 0xab, 0x6b, 0x5c, 0xa9, 0x24, 0x28, + 0x6a, 0x51, 0xc4, 0x55, 0x85, 0xde, 0xb8, 0x53, 0x9b, 0xd6, 0x99, 0xa3, 0x70, 0xa4, 0x3f, 0x56, + 0x85, 0xa7, 0xc4, 0xaa, 0x52, 0x75, 0x75, 0xe1, 0x65, 0x8c, 0x6b, 0x15, 0x45, 0x28, 0xd0, 0x9b, + 0xcc, 0x01, 0x60, 0xfa, 0x28, 0xb8, 0x26, 0x79, 0xf2, 0x37, 0x1c, 0xff, 0xbe, 0xbf, 0x9e, 0x7b, + 0xe7, 0xea, 0x5a, 0x11, 0x70, 0x51, 0xc6, 0x65, 0xa1, 0x40, 0x3f, 0x8b, 0x5e, 0xc9, 0xc0, 0x78, + 0x95, 0x34, 0x89, 0x6e, 0xa3, 0x47, 0x86, 0xbf, 0x1d, 0xc2, 0x1b, 0x2f, 0xb5, 0xe3, 0x68, 0xfb, + 0x3e, 0x71, 0xdf, 0x7a, 0xfe, 0xee, 0x5a, 0xdf, 0x7e, 0x97, 0xa8, 0x6f, 0x07, 0x3a, 0x4f, 0x56, + 0x21, 0x37, 0x53, 0xf7, 0x60, 0x3f, 0x8e, 0x23, 0xf4, 0xc6, 0x10, 0xa1, 0xeb, 0x51, 0xf4, 0xa2, + 0x28, 0x15, 0x7a, 0xb5, 0xa8, 0x8a, 0x52, 0x51, 0xa6, 0x37, 0x19, 0x16, 0x4e, 0x84, 0xd0, 0x9d, + 0x2a, 0xf0, 0x3d, 0x70, 0x52, 0x41, 0x2d, 0x4b, 0x42, 0x59, 0x96, 0x44, 0xde, 0x9d, 0xaf, 0x0a, + 0x0a, 0xdd, 0x40, 0x3f, 0x50, 0x90, 0x5b, 0x25, 0x56, 0xb7, 0x61, 0xb6, 0xd1, 0x57, 0x14, 0xa4, + 0x97, 0x89, 0x1d, 0x6e, 0xf3, 0xeb, 0xe1, 0x13, 0xf5, 0x7c, 0x54, 0xf4, 0xff, 0x47, 0x78, 0xf7, + 0x41, 0xd8, 0x65, 0x32, 0x4c, 0xf1, 0x59, 0xc8, 0x6d, 0x79, 0x46, 0x3e, 0xd9, 0xbd, 0x21, 0xfa, + 0x36, 0x38, 0x68, 0x2f, 0x46, 0x94, 0x3d, 0x15, 0xd3, 0x43, 0x32, 0x59, 0x8d, 0x5d, 0xa8, 0xba, + 0x0f, 0xe8, 0x55, 0x01, 0x57, 0x45, 0x59, 0x52, 0xc5, 0xaa, 0x2a, 0x94, 0x2b, 0xca, 0xd3, 0x74, + 0xda, 0x31, 0x72, 0x98, 0xec, 0xed, 0x02, 0x53, 0x90, 0x53, 0xc4, 0xb2, 0x20, 0xd7, 0x14, 0x7a, + 0x03, 0x7d, 0x92, 0x86, 0x74, 0xc9, 0xac, 0xa3, 0xeb, 0x69, 0xc8, 0x54, 0x49, 0xdb, 0x40, 0x6f, + 0xa7, 0xfa, 0x7d, 0x37, 0x0b,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x6b, 0x44, 0x18, 0xf7, 0x97, + 0xf9, 0xab, 0xe3, 0x90, 0x15, 0x5b, 0x5a, 0x9d, 0xa0, 0x3f, 0x3d, 0xea, 0xf3, 0x4d, 0x73, 0x1d, + 0xad, 0x0c, 0x3f, 0xb7, 0x4e, 0x43, 0xa6, 0xdb, 0xb8, 0x42, 0xfc, 0xa6, 0x39, 0xb8, 0xe3, 0x24, + 0x71, 0xa1, 0xd8, 0x6a, 0xe3, 0x0a, 0xc1, 0xae, 0x19, 0x7a, 0x3d, 0xf6, 0x2b, 0xcd, 0x5b, 0xea, + 0x47, 0x30, 0x5c, 0xaa, 0xf5, 0xa6, 0xb9, 0xde, 0x93, 0xca, 0xf9, 0x46, 0x1f, 0xc7, 0x7a, 0x9d, + 0x8d, 0x42, 0xbf, 0xbf, 0x0a, 0xfc, 0x13, 0x2a, 0xf9, 0xbb, 0xc7, 0xfb, 0x5b, 0xc9, 0x79, 0x1f, + 0xd1, 0x22, 0x87, 0x61, 0xb2, 0x19, 0x7d, 0x9c, 0xe0, 0xfe, 0x44, 0x52, 0x05, 0x1e, 0xb4, 0x1e, + 0xc8, 0x1f, 0xfe, 0xf2, 0xd6, 0x5c, 0xea, 0xc6, 0xad, 0xb9, 0xd4, 0x2f, 0xb7, 0xe6, 0x52, 0x2f, + 0xdd, 0x9e, 0x1b, 0xbb, 0x71, 0x7b, 0x6e, 0xec, 0xc7, 0xdb, 0x73, 0x63, 0xcf, 0x50, 0x9d, 0xf5, + 0xf5, 0x71, 0xf7, 0x8f, 0xe2, 0x87, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x6a, 0x54, 0x70, + 0x60, 0x16, 0x00, 0x00, +} + +func (m *Rpc) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_HistoryMove) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_HistoryMove) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_HistoryMove) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_HistoryMove_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_HistoryMove_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_HistoryMove_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MoveForward { + i-- + if m.MoveForward { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.ContextBlockId) > 0 { + i -= len(m.ContextBlockId) + copy(dAtA[i:], m.ContextBlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextBlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_HistoryMove_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_HistoryMove_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_HistoryMove_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_HistoryMove_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_HistoryMove_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_HistoryMove_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Open) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Open) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Open) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Open_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Open_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Open_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Open_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Open_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Open_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeader != nil { + { + size, err := m.BlockHeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Open_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Open_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Open_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Create) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Create) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Create_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Create_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContextBlockId) > 0 { + i -= len(m.ContextBlockId) + copy(dAtA[i:], m.ContextBlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextBlockId))) + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Create_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Create_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Create_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Create_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Update) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Update) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Update_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Update_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Update_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Changes != nil { + { + size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Update_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Update_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Update_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_Update_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_Update_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_Update_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Create) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Create) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Create_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Create_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RootPath) > 0 { + i -= len(m.RootPath) + copy(dAtA[i:], m.RootPath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RootPath))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Create_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Create_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Mnemonic) > 0 { + i -= len(m.Mnemonic) + copy(dAtA[i:], m.Mnemonic) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Mnemonic))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Create_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Create_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Recover) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Recover) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Recover) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Recover_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Recover_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Recover_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Mnemonic) > 0 { + i -= len(m.Mnemonic) + copy(dAtA[i:], m.Mnemonic) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Mnemonic))) + i-- + dAtA[i] = 0x12 + } + if len(m.RootPath) > 0 { + i -= len(m.RootPath) + copy(dAtA[i:], m.RootPath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RootPath))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Recover_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Recover_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Recover_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Wallet_Recover_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Wallet_Recover_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Wallet_Recover_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Create) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Create) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Create_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Create_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Avatar != nil { + { + size := m.Avatar.Size() + i -= size + if _, err := m.Avatar.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Create_Request_AvatarLocalPath) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Create_Request_AvatarLocalPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.AvatarLocalPath) + copy(dAtA[i:], m.AvatarLocalPath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.AvatarLocalPath))) + i-- + dAtA[i] = 0x12 + return len(dAtA) - i, nil +} +func (m *Rpc_Account_Create_Request_AvatarColor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Create_Request_AvatarColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.AvatarColor) + copy(dAtA[i:], m.AvatarColor) + i = encodeVarintCommands(dAtA, i, uint64(len(m.AvatarColor))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *Rpc_Account_Create_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Create_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Create_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Create_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Recover) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Recover) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Recover) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Recover_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Recover_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Recover_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Recover_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Recover_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Recover_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Recover_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Recover_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Recover_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Select) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Select) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Select) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Select_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Select_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Select_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RootPath) > 0 { + i -= len(m.RootPath) + copy(dAtA[i:], m.RootPath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RootPath))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Select_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Select_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Select_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Account_Select_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Account_Select_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Account_Select_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Version) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Version) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Version_Get) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Version_Get) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Version_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Version_Get_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Version_Get_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Version_Get_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Version_Get_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Version_Get_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Version_Get_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Version_Get_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Version_Get_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Version_Get_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Log) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Log) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Log) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Log_Send) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Log_Send) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Log_Send) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Log_Send_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Log_Send_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Log_Send_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Level != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Level)) + i-- + dAtA[i] = 0x10 + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Log_Send_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Log_Send_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Log_Send_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Log_Send_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Log_Send_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Log_Send_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Ipfs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Ipfs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Ipfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Ipfs_GetFile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Ipfs_GetFile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Ipfs_GetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Ipfs_GetFile_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Ipfs_GetFile_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Ipfs_GetFile_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Ipfs_GetFile_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Ipfs_GetFile_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Ipfs_GetFile_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x22 + } + if len(m.Media) > 0 { + i -= len(m.Media) + copy(dAtA[i:], m.Media) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Media))) + i-- + dAtA[i] = 0x1a + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Ipfs_GetFile_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Ipfs_GetFile_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Ipfs_GetFile_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Image) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetBlob) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetBlob) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetBlob_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetBlob_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetBlob_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Size_ != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetBlob_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetBlob_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetBlob_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Blob) > 0 { + i -= len(m.Blob) + copy(dAtA[i:], m.Blob) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Blob))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetBlob_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetBlob_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetBlob_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetFile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetFile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetFile_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetFile_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetFile_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Size_ != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetFile_Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetFile_Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetFile_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LocalPath) > 0 { + i -= len(m.LocalPath) + copy(dAtA[i:], m.LocalPath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.LocalPath))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_GetFile_Response_Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_GetFile_Response_Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_GetFile_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintCommands(dAtA []byte, offset int, v uint64) int { + offset -= sovCommands(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Rpc) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block_HistoryMove) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block_HistoryMove_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ContextBlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.MoveForward { + n += 2 + } + return n +} + +func (m *Rpc_Block_HistoryMove_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_HistoryMove_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Open) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block_Open_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Open_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.BlockHeader != nil { + l = m.BlockHeader.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Open_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Create) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block_Create_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sovCommands(uint64(m.Type)) + } + l = len(m.ContextBlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Create_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Create_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Update) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block_Update_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Changes != nil { + l = m.Changes.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Update_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Block_Update_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Wallet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Wallet_Create) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Wallet_Create_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RootPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Wallet_Create_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Mnemonic) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Wallet_Create_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Wallet_Recover) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Wallet_Recover_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RootPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Mnemonic) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Wallet_Recover_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Wallet_Recover_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Account_Create) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Account_Create_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Avatar != nil { + n += m.Avatar.Size() + } + return n +} + +func (m *Rpc_Account_Create_Request_AvatarLocalPath) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AvatarLocalPath) + n += 1 + l + sovCommands(uint64(l)) + return n +} +func (m *Rpc_Account_Create_Request_AvatarColor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AvatarColor) + n += 1 + l + sovCommands(uint64(l)) + return n +} +func (m *Rpc_Account_Create_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account_Create_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account_Recover) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Account_Recover_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Account_Recover_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account_Recover_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account_Select) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Account_Select_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RootPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account_Select_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Account_Select_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Version) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Version_Get) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Version_Get_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Version_Get_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Version_Get_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Log) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Log_Send) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Log_Send_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Message) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Level != 0 { + n += 1 + sovCommands(uint64(m.Level)) + } + return n +} + +func (m *Rpc_Log_Send_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Log_Send_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Ipfs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Ipfs_GetFile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Ipfs_GetFile_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Ipfs_GetFile_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Media) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Ipfs_GetFile_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Image_GetBlob) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Image_GetBlob_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Size_ != 0 { + n += 1 + sovCommands(uint64(m.Size_)) + } + return n +} + +func (m *Rpc_Image_GetBlob_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Blob) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Image_GetBlob_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Image_GetFile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Image_GetFile_Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Size_ != 0 { + n += 1 + sovCommands(uint64(m.Size_)) + } + return n +} + +func (m *Rpc_Image_GetFile_Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.LocalPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *Rpc_Image_GetFile_Response_Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovCommands(uint64(m.Code)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func sovCommands(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCommands(x uint64) (n int) { + return sovCommands(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Rpc) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Rpc: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Rpc: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Block: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_HistoryMove) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HistoryMove: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HistoryMove: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_HistoryMove_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContextBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MoveForward", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MoveForward = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_HistoryMove_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Block_HistoryMove_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_HistoryMove_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Block_HistoryMove_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Open) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Open: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Open: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Open_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Open_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Block_Open_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeader", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BlockHeader == nil { + m.BlockHeader = &Model_Block_Header{} + } + if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Open_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Block_Open_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Create) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Create: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Create: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Create_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Model_Block_Header_Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextBlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContextBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Create_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Block_Create_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Create_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Block_Create_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Update) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Update: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Update_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Changes == nil { + m.Changes = &BlockChanges{} + } + if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Update_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Block_Update_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_Update_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Block_Update_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Wallet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Wallet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Create) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Create: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Create: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Create_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RootPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RootPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Create_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Wallet_Create_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mnemonic", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Mnemonic = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Create_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Wallet_Create_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Recover) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Recover: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Recover: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Recover_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RootPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RootPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mnemonic", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Mnemonic = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Recover_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Wallet_Recover_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Wallet_Recover_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Wallet_Recover_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Account: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Create) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Create: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Create: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Create_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvatarLocalPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Avatar = &Rpc_Account_Create_Request_AvatarLocalPath{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvatarColor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Avatar = &Rpc_Account_Create_Request_AvatarColor{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Create_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Account_Create_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Model_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Create_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Account_Create_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Recover) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Recover: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Recover: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Recover_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Recover_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Account_Recover_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Recover_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Account_Recover_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Select) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Select: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Select: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Select_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RootPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RootPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Select_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Account_Select_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Model_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Account_Select_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Account_Select_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Version) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Version: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Version_Get) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Get: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Get: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Version_Get_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Version_Get_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Version_Get_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Version_Get_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Version_Get_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Log) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Log: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Log: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Log_Send) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Send: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Send: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Log_Send_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) + } + m.Level = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Level |= Rpc_Log_Send_Request_Level(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Log_Send_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Log_Send_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Log_Send_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Log_Send_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Ipfs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Ipfs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Ipfs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Ipfs_GetFile) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetFile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Ipfs_GetFile_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Ipfs_GetFile_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Ipfs_GetFile_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Media = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Ipfs_GetFile_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Ipfs_GetFile_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Image: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetBlob) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetBlob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBlob: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetBlob_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + m.Size_ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size_ |= Model_Image_Size(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetBlob_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Image_GetBlob_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...) + if m.Blob == nil { + m.Blob = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetBlob_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Image_GetBlob_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetFile) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetFile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetFile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetFile_Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + m.Size_ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size_ |= Model_Image_Size(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetFile_Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Rpc_Image_GetFile_Response_Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LocalPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_GetFile_Response_Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= Rpc_Image_GetFile_Response_Error_Code(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCommands(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommands + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommands + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommands + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCommands + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCommands + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCommands + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCommands = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCommands = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCommands = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/edit.pb.go b/pb/edit.pb.go deleted file mode 100644 index 5396898b7..000000000 --- a/pb/edit.pb.go +++ /dev/null @@ -1,1299 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: edit.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -//* -// Middleware to front end event message, that will be sent in this scenario: -// Precondition: user A opened a block -// 1. User B opens the same block -// 2. User A receives a message about p.1 -type UserBlockJoin struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *UserBlockJoin) Reset() { *m = UserBlockJoin{} } -func (m *UserBlockJoin) String() string { return proto.CompactTextString(m) } -func (*UserBlockJoin) ProtoMessage() {} -func (*UserBlockJoin) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{0} -} -func (m *UserBlockJoin) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockJoin.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockJoin) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockJoin.Merge(m, src) -} -func (m *UserBlockJoin) XXX_Size() int { - return m.Size() -} -func (m *UserBlockJoin) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockJoin.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockJoin proto.InternalMessageInfo - -func (m *UserBlockJoin) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -//* -// Middleware to front end event message, that will be sent in this scenario: -// Precondition: user A and user B opened the same block -// 1. User B closes the block -// 2. User A receives a message about p.1 -type UserBlockLeft struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *UserBlockLeft) Reset() { *m = UserBlockLeft{} } -func (m *UserBlockLeft) String() string { return proto.CompactTextString(m) } -func (*UserBlockLeft) ProtoMessage() {} -func (*UserBlockLeft) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{1} -} -func (m *UserBlockLeft) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockLeft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockLeft.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockLeft) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockLeft.Merge(m, src) -} -func (m *UserBlockLeft) XXX_Size() int { - return m.Size() -} -func (m *UserBlockLeft) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockLeft.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockLeft proto.InternalMessageInfo - -func (m *UserBlockLeft) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -//* -// Middleware to front end event message, that will be sent in this scenario: -// Precondition: user A and user B opened the same block -// 1. User B sets cursor or selects a text region into a text block -// 2. User A receives a message about p.1 -type UserBlockTextRange struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Range *Model_Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` -} - -func (m *UserBlockTextRange) Reset() { *m = UserBlockTextRange{} } -func (m *UserBlockTextRange) String() string { return proto.CompactTextString(m) } -func (*UserBlockTextRange) ProtoMessage() {} -func (*UserBlockTextRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{2} -} -func (m *UserBlockTextRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockTextRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockTextRange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockTextRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockTextRange.Merge(m, src) -} -func (m *UserBlockTextRange) XXX_Size() int { - return m.Size() -} -func (m *UserBlockTextRange) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockTextRange.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockTextRange proto.InternalMessageInfo - -func (m *UserBlockTextRange) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -func (m *UserBlockTextRange) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *UserBlockTextRange) GetRange() *Model_Range { - if m != nil { - return m.Range - } - return nil -} - -//* -// Middleware to front end event message, that will be sent in this scenario: -// Precondition: user A and user B opened the same block -// 1. User B selects some inner blocks -// 2. User A receives a message about p.1 -type UserBlockSelectRange struct { - Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - BlockIdsArray []string `protobuf:"bytes,2,rep,name=blockIdsArray,proto3" json:"blockIdsArray,omitempty"` -} - -func (m *UserBlockSelectRange) Reset() { *m = UserBlockSelectRange{} } -func (m *UserBlockSelectRange) String() string { return proto.CompactTextString(m) } -func (*UserBlockSelectRange) ProtoMessage() {} -func (*UserBlockSelectRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{3} -} -func (m *UserBlockSelectRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserBlockSelectRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserBlockSelectRange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UserBlockSelectRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserBlockSelectRange.Merge(m, src) -} -func (m *UserBlockSelectRange) XXX_Size() int { - return m.Size() -} -func (m *UserBlockSelectRange) XXX_DiscardUnknown() { - xxx_messageInfo_UserBlockSelectRange.DiscardUnknown(m) -} - -var xxx_messageInfo_UserBlockSelectRange proto.InternalMessageInfo - -func (m *UserBlockSelectRange) GetAccount() *Account { - if m != nil { - return m.Account - } - return nil -} - -func (m *UserBlockSelectRange) GetBlockIdsArray() []string { - if m != nil { - return m.BlockIdsArray - } - return nil -} - -//* -// Middleware to front end event message, that will be sent on one of this scenarios: -// Precondition: user A opened a block -// 1. User A drops a set of files/pictures/videos -// 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. -type FilesUpload struct { - FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` -} - -func (m *FilesUpload) Reset() { *m = FilesUpload{} } -func (m *FilesUpload) String() string { return proto.CompactTextString(m) } -func (*FilesUpload) ProtoMessage() {} -func (*FilesUpload) Descriptor() ([]byte, []int) { - return fileDescriptor_f5013c7d48f38d97, []int{4} -} -func (m *FilesUpload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FilesUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FilesUpload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FilesUpload) XXX_Merge(src proto.Message) { - xxx_messageInfo_FilesUpload.Merge(m, src) -} -func (m *FilesUpload) XXX_Size() int { - return m.Size() -} -func (m *FilesUpload) XXX_DiscardUnknown() { - xxx_messageInfo_FilesUpload.DiscardUnknown(m) -} - -var xxx_messageInfo_FilesUpload proto.InternalMessageInfo - -func (m *FilesUpload) GetFilePath() []string { - if m != nil { - return m.FilePath - } - return nil -} - -func (m *FilesUpload) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func init() { - proto.RegisterType((*UserBlockJoin)(nil), "anytype.UserBlockJoin") - proto.RegisterType((*UserBlockLeft)(nil), "anytype.UserBlockLeft") - proto.RegisterType((*UserBlockTextRange)(nil), "anytype.UserBlockTextRange") - proto.RegisterType((*UserBlockSelectRange)(nil), "anytype.UserBlockSelectRange") - proto.RegisterType((*FilesUpload)(nil), "anytype.FilesUpload") -} - -func init() { proto.RegisterFile("edit.proto", fileDescriptor_f5013c7d48f38d97) } - -var fileDescriptor_f5013c7d48f38d97 = []byte{ - // 280 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xc9, 0x2c, - 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4f, 0xcc, 0xab, 0x2c, 0xa9, 0x2c, 0x48, 0x95, - 0xe2, 0xc9, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0x86, 0x08, 0x4b, 0xf1, 0x26, 0x26, 0x27, 0xe7, 0x97, - 0xe6, 0x41, 0x55, 0x29, 0x59, 0x73, 0xf1, 0x86, 0x16, 0xa7, 0x16, 0x39, 0xe5, 0xe4, 0x27, 0x67, - 0x7b, 0xe5, 0x67, 0xe6, 0x09, 0x69, 0x71, 0xb1, 0x43, 0x55, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, - 0x1b, 0x09, 0xe8, 0x41, 0x0d, 0xd2, 0x73, 0x84, 0x88, 0x07, 0xc1, 0x14, 0xa0, 0x68, 0xf6, 0x49, - 0x4d, 0x2b, 0x21, 0x49, 0x73, 0x1b, 0x23, 0x97, 0x10, 0x5c, 0x77, 0x48, 0x6a, 0x45, 0x49, 0x50, - 0x62, 0x5e, 0x7a, 0x2a, 0x29, 0x46, 0x08, 0x49, 0x70, 0xb1, 0x27, 0x81, 0x74, 0x7b, 0xa6, 0x48, - 0x30, 0x29, 0x30, 0x6a, 0x70, 0x06, 0xc1, 0xb8, 0x42, 0x5a, 0x5c, 0xac, 0x45, 0x20, 0xe3, 0x24, - 0x98, 0xc1, 0x66, 0x88, 0xc0, 0xcd, 0xf0, 0x05, 0x85, 0x85, 0x1e, 0xd8, 0xaa, 0x20, 0x88, 0x12, - 0xa5, 0x0c, 0x2e, 0x11, 0xb8, 0x3b, 0x82, 0x53, 0x73, 0x52, 0x93, 0xc9, 0x70, 0x89, 0x0a, 0x17, - 0x2f, 0xd4, 0xea, 0x62, 0xc7, 0xa2, 0xa2, 0xc4, 0x4a, 0x09, 0x26, 0x05, 0x66, 0x0d, 0xce, 0x20, - 0x54, 0x41, 0x25, 0x67, 0x2e, 0x6e, 0xb7, 0xcc, 0x9c, 0xd4, 0xe2, 0xd0, 0x82, 0x9c, 0xfc, 0xc4, - 0x14, 0x21, 0x29, 0x2e, 0x8e, 0xb4, 0xcc, 0x9c, 0xd4, 0x80, 0xc4, 0x92, 0x0c, 0x09, 0x46, 0xb0, - 0x7a, 0x38, 0x1f, 0xb7, 0xd7, 0x9c, 0x64, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, - 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, - 0x21, 0x8a, 0xa9, 0x20, 0x29, 0x89, 0x0d, 0x1c, 0xad, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x4f, 0xb6, 0x5b, 0x3d, 0x0a, 0x02, 0x00, 0x00, -} - -func (m *UserBlockJoin) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserBlockJoin) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UserBlockLeft) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserBlockLeft) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UserBlockTextRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UserBlockSelectRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BlockIdsArray) > 0 { - for iNdEx := len(m.BlockIdsArray) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIdsArray[iNdEx]) - copy(dAtA[i:], m.BlockIdsArray[iNdEx]) - i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockIdsArray[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEdit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FilesUpload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FilesUpload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintEdit(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.FilePath) > 0 { - for iNdEx := len(m.FilePath) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.FilePath[iNdEx]) - copy(dAtA[i:], m.FilePath[iNdEx]) - i = encodeVarintEdit(dAtA, i, uint64(len(m.FilePath[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintEdit(dAtA []byte, offset int, v uint64) int { - offset -= sovEdit(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *UserBlockJoin) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovEdit(uint64(l)) - } - return n -} - -func (m *UserBlockLeft) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovEdit(uint64(l)) - } - return n -} - -func (m *UserBlockTextRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovEdit(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovEdit(uint64(l)) - } - if m.Range != nil { - l = m.Range.Size() - n += 1 + l + sovEdit(uint64(l)) - } - return n -} - -func (m *UserBlockSelectRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovEdit(uint64(l)) - } - if len(m.BlockIdsArray) > 0 { - for _, s := range m.BlockIdsArray { - l = len(s) - n += 1 + l + sovEdit(uint64(l)) - } - } - return n -} - -func (m *FilesUpload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FilePath) > 0 { - for _, s := range m.FilePath { - l = len(s) - n += 1 + l + sovEdit(uint64(l)) - } - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovEdit(uint64(l)) - } - return n -} - -func sovEdit(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEdit(x uint64) (n int) { - return sovEdit(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *UserBlockJoin) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserBlockJoin: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserBlockJoin: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserBlockLeft) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserBlockLeft: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserBlockLeft: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserBlockTextRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserBlockTextRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserBlockTextRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Range == nil { - m.Range = &Model_Range{} - } - if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserBlockSelectRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserBlockSelectRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserBlockSelectRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Account == nil { - m.Account = &Account{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIdsArray", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockIdsArray = append(m.BlockIdsArray, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FilesUpload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FilesUpload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FilesUpload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FilePath = append(m.FilePath, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEdit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEdit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEdit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEdit(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEdit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEdit(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEdit - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEdit - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEdit - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEdit - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEdit - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEdit - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthEdit = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEdit = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEdit = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/event.pb.go b/pb/event.pb.go deleted file mode 100644 index 11723e784..000000000 --- a/pb/event.pb.go +++ /dev/null @@ -1,1043 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: event.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Event struct { - // Types that are valid to be assigned to Message: - // *Event_AccountShow - // *Event_BlockShow - // *Event_BlockUpdate - // *Event_BlockCreate - // *Event_UserBlockTextRange - // *Event_UserBlockJoin - // *Event_UserBlockLeft - // *Event_UserBlockSelectRange - // *Event_FilesUpload - Message isEvent_Message `protobuf_oneof:"message"` -} - -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_2d17a9d3f0ddf27e, []int{0} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) -} - -var xxx_messageInfo_Event proto.InternalMessageInfo - -type isEvent_Message interface { - isEvent_Message() - MarshalTo([]byte) (int, error) - Size() int -} - -type Event_AccountShow struct { - AccountShow *AccountShow `protobuf:"bytes,1,opt,name=accountShow,proto3,oneof" json:"accountShow,omitempty"` -} -type Event_BlockShow struct { - BlockShow *BlockShow `protobuf:"bytes,2,opt,name=blockShow,proto3,oneof" json:"blockShow,omitempty"` -} -type Event_BlockUpdate struct { - BlockUpdate *BlockUpdate `protobuf:"bytes,3,opt,name=blockUpdate,proto3,oneof" json:"blockUpdate,omitempty"` -} -type Event_BlockCreate struct { - BlockCreate *BlockCreate `protobuf:"bytes,4,opt,name=blockCreate,proto3,oneof" json:"blockCreate,omitempty"` -} -type Event_UserBlockTextRange struct { - UserBlockTextRange *UserBlockTextRange `protobuf:"bytes,5,opt,name=userBlockTextRange,proto3,oneof" json:"userBlockTextRange,omitempty"` -} -type Event_UserBlockJoin struct { - UserBlockJoin *UserBlockJoin `protobuf:"bytes,6,opt,name=userBlockJoin,proto3,oneof" json:"userBlockJoin,omitempty"` -} -type Event_UserBlockLeft struct { - UserBlockLeft *UserBlockLeft `protobuf:"bytes,7,opt,name=userBlockLeft,proto3,oneof" json:"userBlockLeft,omitempty"` -} -type Event_UserBlockSelectRange struct { - UserBlockSelectRange *UserBlockSelectRange `protobuf:"bytes,8,opt,name=userBlockSelectRange,proto3,oneof" json:"userBlockSelectRange,omitempty"` -} -type Event_FilesUpload struct { - FilesUpload *FilesUpload `protobuf:"bytes,9,opt,name=filesUpload,proto3,oneof" json:"filesUpload,omitempty"` -} - -func (*Event_AccountShow) isEvent_Message() {} -func (*Event_BlockShow) isEvent_Message() {} -func (*Event_BlockUpdate) isEvent_Message() {} -func (*Event_BlockCreate) isEvent_Message() {} -func (*Event_UserBlockTextRange) isEvent_Message() {} -func (*Event_UserBlockJoin) isEvent_Message() {} -func (*Event_UserBlockLeft) isEvent_Message() {} -func (*Event_UserBlockSelectRange) isEvent_Message() {} -func (*Event_FilesUpload) isEvent_Message() {} - -func (m *Event) GetMessage() isEvent_Message { - if m != nil { - return m.Message - } - return nil -} - -func (m *Event) GetAccountShow() *AccountShow { - if x, ok := m.GetMessage().(*Event_AccountShow); ok { - return x.AccountShow - } - return nil -} - -func (m *Event) GetBlockShow() *BlockShow { - if x, ok := m.GetMessage().(*Event_BlockShow); ok { - return x.BlockShow - } - return nil -} - -func (m *Event) GetBlockUpdate() *BlockUpdate { - if x, ok := m.GetMessage().(*Event_BlockUpdate); ok { - return x.BlockUpdate - } - return nil -} - -func (m *Event) GetBlockCreate() *BlockCreate { - if x, ok := m.GetMessage().(*Event_BlockCreate); ok { - return x.BlockCreate - } - return nil -} - -func (m *Event) GetUserBlockTextRange() *UserBlockTextRange { - if x, ok := m.GetMessage().(*Event_UserBlockTextRange); ok { - return x.UserBlockTextRange - } - return nil -} - -func (m *Event) GetUserBlockJoin() *UserBlockJoin { - if x, ok := m.GetMessage().(*Event_UserBlockJoin); ok { - return x.UserBlockJoin - } - return nil -} - -func (m *Event) GetUserBlockLeft() *UserBlockLeft { - if x, ok := m.GetMessage().(*Event_UserBlockLeft); ok { - return x.UserBlockLeft - } - return nil -} - -func (m *Event) GetUserBlockSelectRange() *UserBlockSelectRange { - if x, ok := m.GetMessage().(*Event_UserBlockSelectRange); ok { - return x.UserBlockSelectRange - } - return nil -} - -func (m *Event) GetFilesUpload() *FilesUpload { - if x, ok := m.GetMessage().(*Event_FilesUpload); ok { - return x.FilesUpload - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Event) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Event_AccountShow)(nil), - (*Event_BlockShow)(nil), - (*Event_BlockUpdate)(nil), - (*Event_BlockCreate)(nil), - (*Event_UserBlockTextRange)(nil), - (*Event_UserBlockJoin)(nil), - (*Event_UserBlockLeft)(nil), - (*Event_UserBlockSelectRange)(nil), - (*Event_FilesUpload)(nil), - } -} - -func init() { - proto.RegisterType((*Event)(nil), "anytype.Event") -} - -func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } - -var fileDescriptor_2d17a9d3f0ddf27e = []byte{ - // 341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcd, 0x4e, 0xf2, 0x40, - 0x14, 0x86, 0xa7, 0x7c, 0xfc, 0x7c, 0x0c, 0x61, 0x33, 0x21, 0x66, 0x82, 0x3a, 0x31, 0xae, 0xdc, - 0xc8, 0x02, 0x37, 0xae, 0x4c, 0xac, 0xd1, 0x34, 0x46, 0x37, 0x83, 0x6c, 0xdc, 0x0d, 0xe5, 0x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, 0xa4, 0x53, 0x0f, 0xf1, 0x6d, 0x7c, 0xcb, 0xbf, 0x83, 0x91, - 0xa2, 0xb5, 0xbf, 0x7c, 0x9d, 0x6e, 0xf9, 0x7a, 0x40, 0x7a, 0xb8, 0x65, 0x07, 0x3d, 0x08, 0xc0, - 0x4f, 0x3e, 0xe8, 0xbf, 0xa9, 0x39, 0xcc, 0xd7, 0x64, 0x20, 0x0f, 0xf1, 0x42, 0x59, 0x5f, 0x77, - 0x34, 0x09, 0x20, 0xee, 0x47, 0x81, 0x14, 0x43, 0x5a, 0xdf, 0xb9, 0xee, 0x4d, 0x9a, 0xe9, 0xeb, - 0x66, 0x50, 0xb7, 0x8e, 0x6b, 0x2f, 0x10, 0xc7, 0x62, 0x0c, 0xee, 0xc1, 0xe7, 0x92, 0x39, 0x8b, - 0x25, 0x73, 0x7e, 0x96, 0xcc, 0xf9, 0x58, 0x31, 0xb4, 0x58, 0x31, 0xf4, 0xbd, 0x62, 0xe8, 0xb1, - 0x14, 0x0d, 0x06, 0x55, 0xf3, 0xe7, 0x9d, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0x80, 0xe7, 0x22, - 0xa3, 0xc0, 0x02, 0x00, 0x00, -} - -func (m *Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Message != nil { - { - size := m.Message.Size() - i -= size - if _, err := m.Message.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *Event_AccountShow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_AccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.AccountShow != nil { - { - size, err := m.AccountShow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *Event_BlockShow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BlockShow != nil { - { - size, err := m.BlockShow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Event_BlockUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BlockUpdate != nil { - { - size, err := m.BlockUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *Event_BlockCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BlockCreate != nil { - { - size, err := m.BlockCreate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *Event_UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UserBlockTextRange != nil { - { - size, err := m.UserBlockTextRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *Event_UserBlockJoin) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_UserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UserBlockJoin != nil { - { - size, err := m.UserBlockJoin.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *Event_UserBlockLeft) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UserBlockLeft != nil { - { - size, err := m.UserBlockLeft.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *Event_UserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UserBlockSelectRange != nil { - { - size, err := m.UserBlockSelectRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *Event_FilesUpload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.FilesUpload != nil { - { - size, err := m.FilesUpload.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { - offset -= sovEvent(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Event) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Message != nil { - n += m.Message.Size() - } - return n -} - -func (m *Event_AccountShow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AccountShow != nil { - l = m.AccountShow.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_BlockShow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BlockShow != nil { - l = m.BlockShow.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_BlockUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BlockUpdate != nil { - l = m.BlockUpdate.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_BlockCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BlockCreate != nil { - l = m.BlockCreate.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_UserBlockTextRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UserBlockTextRange != nil { - l = m.UserBlockTextRange.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_UserBlockJoin) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UserBlockJoin != nil { - l = m.UserBlockJoin.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_UserBlockLeft) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UserBlockLeft != nil { - l = m.UserBlockLeft.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_UserBlockSelectRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UserBlockSelectRange != nil { - l = m.UserBlockSelectRange.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} -func (m *Event_FilesUpload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.FilesUpload != nil { - l = m.FilesUpload.Size() - n += 1 + l + sovEvent(uint64(l)) - } - return n -} - -func sovEvent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvent(x uint64) (n int) { - return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Event) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Event: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountShow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &AccountShow{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_AccountShow{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockShow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockShow{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_BlockShow{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockUpdate{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_BlockUpdate{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockCreate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &BlockCreate{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_BlockCreate{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserBlockTextRange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UserBlockTextRange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_UserBlockTextRange{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserBlockJoin", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UserBlockJoin{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_UserBlockJoin{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserBlockLeft", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UserBlockLeft{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_UserBlockLeft{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserBlockSelectRange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UserBlockSelectRange{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_UserBlockSelectRange{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilesUpload", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &FilesUpload{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Message = &Event_FilesUpload{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEvent(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEvent - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEvent - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEvent - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/events.pb.go b/pb/events.pb.go new file mode 100644 index 000000000..cd329bf22 --- /dev/null +++ b/pb/events.pb.go @@ -0,0 +1,3456 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: events.proto + +package pb + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Event struct { + // Types that are valid to be assigned to Message: + // *Event_AccountShow + // *Event_BlockShow + // *Event_BlockUpdate + // *Event_BlockCreate + // *Event_UserBlockTextRange + // *Event_UserBlockJoin + // *Event_UserBlockLeft + // *Event_UserBlockSelectRange + // *Event_FilesUpload + Message isEvent_Message `protobuf_oneof:"message"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0} +} +func (m *Event) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event.Merge(m, src) +} +func (m *Event) XXX_Size() int { + return m.Size() +} +func (m *Event) XXX_DiscardUnknown() { + xxx_messageInfo_Event.DiscardUnknown(m) +} + +var xxx_messageInfo_Event proto.InternalMessageInfo + +type isEvent_Message interface { + isEvent_Message() + MarshalTo([]byte) (int, error) + Size() int +} + +type Event_AccountShow struct { + AccountShow *Event_Account_Show `protobuf:"bytes,1,opt,name=accountShow,proto3,oneof" json:"accountShow,omitempty"` +} +type Event_BlockShow struct { + BlockShow *Event_Block_Show `protobuf:"bytes,2,opt,name=blockShow,proto3,oneof" json:"blockShow,omitempty"` +} +type Event_BlockUpdate struct { + BlockUpdate *Event_Block_Update `protobuf:"bytes,3,opt,name=blockUpdate,proto3,oneof" json:"blockUpdate,omitempty"` +} +type Event_BlockCreate struct { + BlockCreate *Event_Block_Create `protobuf:"bytes,4,opt,name=blockCreate,proto3,oneof" json:"blockCreate,omitempty"` +} +type Event_UserBlockTextRange struct { + UserBlockTextRange *Event_User_Block_TextRange `protobuf:"bytes,5,opt,name=userBlockTextRange,proto3,oneof" json:"userBlockTextRange,omitempty"` +} +type Event_UserBlockJoin struct { + UserBlockJoin *Event_User_Block_Join `protobuf:"bytes,6,opt,name=userBlockJoin,proto3,oneof" json:"userBlockJoin,omitempty"` +} +type Event_UserBlockLeft struct { + UserBlockLeft *Event_User_Block_Left `protobuf:"bytes,7,opt,name=userBlockLeft,proto3,oneof" json:"userBlockLeft,omitempty"` +} +type Event_UserBlockSelectRange struct { + UserBlockSelectRange *Event_User_Block_SelectRange `protobuf:"bytes,8,opt,name=userBlockSelectRange,proto3,oneof" json:"userBlockSelectRange,omitempty"` +} +type Event_FilesUpload struct { + FilesUpload *Event_Block_FilesUpload `protobuf:"bytes,9,opt,name=filesUpload,proto3,oneof" json:"filesUpload,omitempty"` +} + +func (*Event_AccountShow) isEvent_Message() {} +func (*Event_BlockShow) isEvent_Message() {} +func (*Event_BlockUpdate) isEvent_Message() {} +func (*Event_BlockCreate) isEvent_Message() {} +func (*Event_UserBlockTextRange) isEvent_Message() {} +func (*Event_UserBlockJoin) isEvent_Message() {} +func (*Event_UserBlockLeft) isEvent_Message() {} +func (*Event_UserBlockSelectRange) isEvent_Message() {} +func (*Event_FilesUpload) isEvent_Message() {} + +func (m *Event) GetMessage() isEvent_Message { + if m != nil { + return m.Message + } + return nil +} + +func (m *Event) GetAccountShow() *Event_Account_Show { + if x, ok := m.GetMessage().(*Event_AccountShow); ok { + return x.AccountShow + } + return nil +} + +func (m *Event) GetBlockShow() *Event_Block_Show { + if x, ok := m.GetMessage().(*Event_BlockShow); ok { + return x.BlockShow + } + return nil +} + +func (m *Event) GetBlockUpdate() *Event_Block_Update { + if x, ok := m.GetMessage().(*Event_BlockUpdate); ok { + return x.BlockUpdate + } + return nil +} + +func (m *Event) GetBlockCreate() *Event_Block_Create { + if x, ok := m.GetMessage().(*Event_BlockCreate); ok { + return x.BlockCreate + } + return nil +} + +func (m *Event) GetUserBlockTextRange() *Event_User_Block_TextRange { + if x, ok := m.GetMessage().(*Event_UserBlockTextRange); ok { + return x.UserBlockTextRange + } + return nil +} + +func (m *Event) GetUserBlockJoin() *Event_User_Block_Join { + if x, ok := m.GetMessage().(*Event_UserBlockJoin); ok { + return x.UserBlockJoin + } + return nil +} + +func (m *Event) GetUserBlockLeft() *Event_User_Block_Left { + if x, ok := m.GetMessage().(*Event_UserBlockLeft); ok { + return x.UserBlockLeft + } + return nil +} + +func (m *Event) GetUserBlockSelectRange() *Event_User_Block_SelectRange { + if x, ok := m.GetMessage().(*Event_UserBlockSelectRange); ok { + return x.UserBlockSelectRange + } + return nil +} + +func (m *Event) GetFilesUpload() *Event_Block_FilesUpload { + if x, ok := m.GetMessage().(*Event_FilesUpload); ok { + return x.FilesUpload + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Event) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Event_AccountShow)(nil), + (*Event_BlockShow)(nil), + (*Event_BlockUpdate)(nil), + (*Event_BlockCreate)(nil), + (*Event_UserBlockTextRange)(nil), + (*Event_UserBlockJoin)(nil), + (*Event_UserBlockLeft)(nil), + (*Event_UserBlockSelectRange)(nil), + (*Event_FilesUpload)(nil), + } +} + +type Event_Account struct { +} + +func (m *Event_Account) Reset() { *m = Event_Account{} } +func (m *Event_Account) String() string { return proto.CompactTextString(m) } +func (*Event_Account) ProtoMessage() {} +func (*Event_Account) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 0} +} +func (m *Event_Account) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Account.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Account) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Account.Merge(m, src) +} +func (m *Event_Account) XXX_Size() int { + return m.Size() +} +func (m *Event_Account) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Account.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Account proto.InternalMessageInfo + +//* +// Message, that will be sent to the front on each account found after an AccountRecoverRequest +type Event_Account_Show struct { + Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Account *Event_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *Event_Account_Show) Reset() { *m = Event_Account_Show{} } +func (m *Event_Account_Show) String() string { return proto.CompactTextString(m) } +func (*Event_Account_Show) ProtoMessage() {} +func (*Event_Account_Show) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 0, 0} +} +func (m *Event_Account_Show) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Account_Show) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Account_Show.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Account_Show) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Account_Show.Merge(m, src) +} +func (m *Event_Account_Show) XXX_Size() int { + return m.Size() +} +func (m *Event_Account_Show) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Account_Show.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Account_Show proto.InternalMessageInfo + +func (m *Event_Account_Show) GetIndex() int64 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *Event_Account_Show) GetAccount() *Event_Account { + if m != nil { + return m.Account + } + return nil +} + +type Event_Block struct { +} + +func (m *Event_Block) Reset() { *m = Event_Block{} } +func (m *Event_Block) String() string { return proto.CompactTextString(m) } +func (*Event_Block) ProtoMessage() {} +func (*Event_Block) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 1} +} +func (m *Event_Block) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Block.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Block.Merge(m, src) +} +func (m *Event_Block) XXX_Size() int { + return m.Size() +} +func (m *Event_Block) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Block.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Block proto.InternalMessageInfo + +type Event_Block_Show struct { + Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *Event_Block_Show) Reset() { *m = Event_Block_Show{} } +func (m *Event_Block_Show) String() string { return proto.CompactTextString(m) } +func (*Event_Block_Show) ProtoMessage() {} +func (*Event_Block_Show) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 1, 0} +} +func (m *Event_Block_Show) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Block_Show) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Block_Show.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Block_Show) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Block_Show.Merge(m, src) +} +func (m *Event_Block_Show) XXX_Size() int { + return m.Size() +} +func (m *Event_Block_Show) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Block_Show.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Block_Show proto.InternalMessageInfo + +func (m *Event_Block_Show) GetBlock() *Model_Block { + if m != nil { + return m.Block + } + return nil +} + +type Event_Block_Update struct { + Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` +} + +func (m *Event_Block_Update) Reset() { *m = Event_Block_Update{} } +func (m *Event_Block_Update) String() string { return proto.CompactTextString(m) } +func (*Event_Block_Update) ProtoMessage() {} +func (*Event_Block_Update) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 1, 1} +} +func (m *Event_Block_Update) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Block_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Block_Update.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Block_Update) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Block_Update.Merge(m, src) +} +func (m *Event_Block_Update) XXX_Size() int { + return m.Size() +} +func (m *Event_Block_Update) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Block_Update.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Block_Update proto.InternalMessageInfo + +func (m *Event_Block_Update) GetChanges() *BlockChanges { + if m != nil { + return m.Changes + } + return nil +} + +type Event_Block_Create struct { + Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *Event_Block_Create) Reset() { *m = Event_Block_Create{} } +func (m *Event_Block_Create) String() string { return proto.CompactTextString(m) } +func (*Event_Block_Create) ProtoMessage() {} +func (*Event_Block_Create) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 1, 2} +} +func (m *Event_Block_Create) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Block_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Block_Create.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Block_Create) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Block_Create.Merge(m, src) +} +func (m *Event_Block_Create) XXX_Size() int { + return m.Size() +} +func (m *Event_Block_Create) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Block_Create.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Block_Create proto.InternalMessageInfo + +func (m *Event_Block_Create) GetBlock() *Model_Block { + if m != nil { + return m.Block + } + return nil +} + +//* +// Middleware to front end event message, that will be sent on one of this scenarios: +// Precondition: user A opened a block +// 1. User A drops a set of files/pictures/videos +// 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. +type Event_Block_FilesUpload struct { + FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` +} + +func (m *Event_Block_FilesUpload) Reset() { *m = Event_Block_FilesUpload{} } +func (m *Event_Block_FilesUpload) String() string { return proto.CompactTextString(m) } +func (*Event_Block_FilesUpload) ProtoMessage() {} +func (*Event_Block_FilesUpload) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 1, 3} +} +func (m *Event_Block_FilesUpload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Block_FilesUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Block_FilesUpload.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_Block_FilesUpload) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Block_FilesUpload.Merge(m, src) +} +func (m *Event_Block_FilesUpload) XXX_Size() int { + return m.Size() +} +func (m *Event_Block_FilesUpload) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Block_FilesUpload.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_Block_FilesUpload proto.InternalMessageInfo + +func (m *Event_Block_FilesUpload) GetFilePath() []string { + if m != nil { + return m.FilePath + } + return nil +} + +func (m *Event_Block_FilesUpload) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +type Event_User struct { +} + +func (m *Event_User) Reset() { *m = Event_User{} } +func (m *Event_User) String() string { return proto.CompactTextString(m) } +func (*Event_User) ProtoMessage() {} +func (*Event_User) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 2} +} +func (m *Event_User) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_User.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_User) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_User.Merge(m, src) +} +func (m *Event_User) XXX_Size() int { + return m.Size() +} +func (m *Event_User) XXX_DiscardUnknown() { + xxx_messageInfo_Event_User.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_User proto.InternalMessageInfo + +type Event_User_Block struct { +} + +func (m *Event_User_Block) Reset() { *m = Event_User_Block{} } +func (m *Event_User_Block) String() string { return proto.CompactTextString(m) } +func (*Event_User_Block) ProtoMessage() {} +func (*Event_User_Block) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0} +} +func (m *Event_User_Block) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_User_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_User_Block.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_User_Block) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_User_Block.Merge(m, src) +} +func (m *Event_User_Block) XXX_Size() int { + return m.Size() +} +func (m *Event_User_Block) XXX_DiscardUnknown() { + xxx_messageInfo_Event_User_Block.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_User_Block proto.InternalMessageInfo + +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A opened a block +// 1. User B opens the same block +// 2. User A receives a message about p.1 +type Event_User_Block_Join struct { + Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *Event_User_Block_Join) Reset() { *m = Event_User_Block_Join{} } +func (m *Event_User_Block_Join) String() string { return proto.CompactTextString(m) } +func (*Event_User_Block_Join) ProtoMessage() {} +func (*Event_User_Block_Join) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 0} +} +func (m *Event_User_Block_Join) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_User_Block_Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_User_Block_Join.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_User_Block_Join) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_User_Block_Join.Merge(m, src) +} +func (m *Event_User_Block_Join) XXX_Size() int { + return m.Size() +} +func (m *Event_User_Block_Join) XXX_DiscardUnknown() { + xxx_messageInfo_Event_User_Block_Join.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_User_Block_Join proto.InternalMessageInfo + +func (m *Event_User_Block_Join) GetAccount() *Event_Account { + if m != nil { + return m.Account + } + return nil +} + +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A and user B opened the same block +// 1. User B closes the block +// 2. User A receives a message about p.1 +type Event_User_Block_Left struct { + Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *Event_User_Block_Left) Reset() { *m = Event_User_Block_Left{} } +func (m *Event_User_Block_Left) String() string { return proto.CompactTextString(m) } +func (*Event_User_Block_Left) ProtoMessage() {} +func (*Event_User_Block_Left) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 1} +} +func (m *Event_User_Block_Left) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_User_Block_Left) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_User_Block_Left.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_User_Block_Left) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_User_Block_Left.Merge(m, src) +} +func (m *Event_User_Block_Left) XXX_Size() int { + return m.Size() +} +func (m *Event_User_Block_Left) XXX_DiscardUnknown() { + xxx_messageInfo_Event_User_Block_Left.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_User_Block_Left proto.InternalMessageInfo + +func (m *Event_User_Block_Left) GetAccount() *Event_Account { + if m != nil { + return m.Account + } + return nil +} + +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A and user B opened the same block +// 1. User B sets cursor or selects a text region into a text block +// 2. User A receives a message about p.1 +type Event_User_Block_TextRange struct { + Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Range *Model_Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` +} + +func (m *Event_User_Block_TextRange) Reset() { *m = Event_User_Block_TextRange{} } +func (m *Event_User_Block_TextRange) String() string { return proto.CompactTextString(m) } +func (*Event_User_Block_TextRange) ProtoMessage() {} +func (*Event_User_Block_TextRange) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 2} +} +func (m *Event_User_Block_TextRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_User_Block_TextRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_User_Block_TextRange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_User_Block_TextRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_User_Block_TextRange.Merge(m, src) +} +func (m *Event_User_Block_TextRange) XXX_Size() int { + return m.Size() +} +func (m *Event_User_Block_TextRange) XXX_DiscardUnknown() { + xxx_messageInfo_Event_User_Block_TextRange.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_User_Block_TextRange proto.InternalMessageInfo + +func (m *Event_User_Block_TextRange) GetAccount() *Event_Account { + if m != nil { + return m.Account + } + return nil +} + +func (m *Event_User_Block_TextRange) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *Event_User_Block_TextRange) GetRange() *Model_Range { + if m != nil { + return m.Range + } + return nil +} + +//* +// Middleware to front end event message, that will be sent in this scenario: +// Precondition: user A and user B opened the same block +// 1. User B selects some inner blocks +// 2. User A receives a message about p.1 +type Event_User_Block_SelectRange struct { + Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + BlockIdsArray []string `protobuf:"bytes,2,rep,name=blockIdsArray,proto3" json:"blockIdsArray,omitempty"` +} + +func (m *Event_User_Block_SelectRange) Reset() { *m = Event_User_Block_SelectRange{} } +func (m *Event_User_Block_SelectRange) String() string { return proto.CompactTextString(m) } +func (*Event_User_Block_SelectRange) ProtoMessage() {} +func (*Event_User_Block_SelectRange) Descriptor() ([]byte, []int) { + return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 3} +} +func (m *Event_User_Block_SelectRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_User_Block_SelectRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_User_Block_SelectRange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Event_User_Block_SelectRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_User_Block_SelectRange.Merge(m, src) +} +func (m *Event_User_Block_SelectRange) XXX_Size() int { + return m.Size() +} +func (m *Event_User_Block_SelectRange) XXX_DiscardUnknown() { + xxx_messageInfo_Event_User_Block_SelectRange.DiscardUnknown(m) +} + +var xxx_messageInfo_Event_User_Block_SelectRange proto.InternalMessageInfo + +func (m *Event_User_Block_SelectRange) GetAccount() *Event_Account { + if m != nil { + return m.Account + } + return nil +} + +func (m *Event_User_Block_SelectRange) GetBlockIdsArray() []string { + if m != nil { + return m.BlockIdsArray + } + return nil +} + +func init() { + proto.RegisterType((*Event)(nil), "anytype.Event") + proto.RegisterType((*Event_Account)(nil), "anytype.Event.Account") + proto.RegisterType((*Event_Account_Show)(nil), "anytype.Event.Account.Show") + proto.RegisterType((*Event_Block)(nil), "anytype.Event.Block") + proto.RegisterType((*Event_Block_Show)(nil), "anytype.Event.Block.Show") + proto.RegisterType((*Event_Block_Update)(nil), "anytype.Event.Block.Update") + proto.RegisterType((*Event_Block_Create)(nil), "anytype.Event.Block.Create") + proto.RegisterType((*Event_Block_FilesUpload)(nil), "anytype.Event.Block.FilesUpload") + proto.RegisterType((*Event_User)(nil), "anytype.Event.User") + proto.RegisterType((*Event_User_Block)(nil), "anytype.Event.User.Block") + proto.RegisterType((*Event_User_Block_Join)(nil), "anytype.Event.User.Block.Join") + proto.RegisterType((*Event_User_Block_Left)(nil), "anytype.Event.User.Block.Left") + proto.RegisterType((*Event_User_Block_TextRange)(nil), "anytype.Event.User.Block.TextRange") + proto.RegisterType((*Event_User_Block_SelectRange)(nil), "anytype.Event.User.Block.SelectRange") +} + +func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) } + +var fileDescriptor_8f22242cb04491f9 = []byte{ + // 562 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xed, 0xfc, 0x73, 0x3d, 0x69, 0x2e, 0xab, 0x80, 0xcc, 0x82, 0xac, 0x88, 0x3f, 0x52, + 0xc5, 0xc1, 0xa0, 0xc2, 0xa1, 0x3d, 0xa1, 0x26, 0x50, 0x05, 0x04, 0x08, 0x6d, 0xc9, 0x01, 0x38, + 0x39, 0xf6, 0xb6, 0x89, 0x70, 0x6d, 0xcb, 0x76, 0xa1, 0x39, 0xf3, 0x02, 0x3c, 0x16, 0xc7, 0x1e, + 0xb9, 0x20, 0xa1, 0xe4, 0xc2, 0xb5, 0x6f, 0x80, 0x76, 0x76, 0xed, 0x38, 0x95, 0x03, 0xcd, 0x71, + 0x26, 0xdf, 0xf7, 0x1b, 0xef, 0xec, 0xb7, 0x81, 0x6d, 0xfe, 0x85, 0x87, 0x59, 0xea, 0xc4, 0x49, + 0x94, 0x45, 0xc4, 0x70, 0xc3, 0x59, 0x36, 0x8b, 0x39, 0xdd, 0x3e, 0x8d, 0x7c, 0x1e, 0xa8, 0x36, + 0xed, 0x78, 0x13, 0x37, 0x3c, 0xe1, 0xaa, 0xbc, 0xfb, 0x0b, 0xa0, 0xf9, 0x42, 0xd8, 0xc8, 0x33, + 0x68, 0xbb, 0x9e, 0x17, 0x9d, 0x85, 0xd9, 0xd1, 0x24, 0xfa, 0x6a, 0xe9, 0x3d, 0x7d, 0xa7, 0xbd, + 0x7b, 0xdb, 0x51, 0x14, 0x07, 0x45, 0xce, 0x81, 0x54, 0x38, 0x42, 0x32, 0xd4, 0x58, 0xd9, 0x41, + 0xf6, 0xc1, 0x1c, 0x07, 0x91, 0xf7, 0x19, 0xed, 0x35, 0xb4, 0xdf, 0xba, 0x62, 0xef, 0x8b, 0xdf, + 0x73, 0xf3, 0x52, 0x2d, 0x66, 0x63, 0x31, 0x8a, 0x7d, 0x37, 0xe3, 0x56, 0xbd, 0x72, 0xb6, 0x34, + 0x4b, 0x89, 0x98, 0x5d, 0x72, 0x14, 0x80, 0x41, 0xc2, 0x05, 0xa0, 0xf1, 0x0f, 0x80, 0x94, 0x14, + 0x00, 0x59, 0x92, 0x11, 0x90, 0xb3, 0x94, 0x27, 0x28, 0x79, 0xcf, 0xcf, 0x33, 0x26, 0x96, 0x64, + 0x35, 0x91, 0x73, 0xef, 0x0a, 0x67, 0x94, 0xf2, 0x44, 0xc1, 0x0a, 0xe9, 0x50, 0x63, 0x15, 0x00, + 0x72, 0x08, 0x9d, 0xa2, 0xfb, 0x2a, 0x9a, 0x86, 0x56, 0x0b, 0x89, 0xf6, 0x7a, 0xa2, 0x50, 0x0d, + 0x35, 0xb6, 0x6a, 0x5b, 0xe1, 0xbc, 0xe6, 0xc7, 0x99, 0x65, 0xfc, 0x8f, 0x23, 0x54, 0x2b, 0x1c, + 0xd1, 0x20, 0x9f, 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d, 0x70, 0x0f, 0x1a, 0x18, 0xa3, 0xcd, 0x9d, + 0xdf, 0x74, 0x30, 0x97, 0xcf, 0x62, 0x63, 0xff, 0xfa, 0x03, 0x8a, 0x8d, 0x26, 0x98, 0xe1, 0x7a, + 0xe5, 0x46, 0x71, 0x20, 0x93, 0x12, 0xca, 0xa1, 0x5d, 0x0e, 0xec, 0xe6, 0x9f, 0x71, 0x1f, 0x3a, + 0x6a, 0x6e, 0x7a, 0x90, 0x24, 0xee, 0xcc, 0xaa, 0xe1, 0x45, 0xac, 0x36, 0xfb, 0x26, 0x18, 0xa7, + 0x3c, 0x4d, 0xdd, 0x13, 0xde, 0xbf, 0xf3, 0x63, 0x6e, 0xeb, 0x17, 0x73, 0x5b, 0xff, 0x3d, 0xb7, + 0xf5, 0xef, 0x0b, 0x5b, 0xbb, 0x58, 0xd8, 0xda, 0xcf, 0x85, 0xad, 0x7d, 0xac, 0xc5, 0xe3, 0x71, + 0x0b, 0xff, 0x84, 0x9f, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x69, 0x6b, 0x80, 0x55, 0xba, 0x05, + 0x00, 0x00, +} + +func (m *Event) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Message != nil { + { + size := m.Message.Size() + i -= size + if _, err := m.Message.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Event_AccountShow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_AccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.AccountShow != nil { + { + size, err := m.AccountShow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Event_BlockShow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BlockShow != nil { + { + size, err := m.BlockShow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Event_BlockUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BlockUpdate != nil { + { + size, err := m.BlockUpdate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *Event_BlockCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BlockCreate != nil { + { + size, err := m.BlockCreate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockTextRange != nil { + { + size, err := m.UserBlockTextRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockJoin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockJoin != nil { + { + size, err := m.UserBlockJoin.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockLeft) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockLeft != nil { + { + size, err := m.UserBlockLeft.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *Event_UserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UserBlockSelectRange != nil { + { + size, err := m.UserBlockSelectRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + return len(dAtA) - i, nil +} +func (m *Event_FilesUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FilesUpload != nil { + { + size, err := m.FilesUpload.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + return len(dAtA) - i, nil +} +func (m *Event_Account) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Account) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Event_Account_Show) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Account_Show) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Account_Show) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Index != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Event_Block) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Event_Block_Show) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Block_Show) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Block_Show) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Event_Block_Update) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Block_Update) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Block_Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Changes != nil { + { + size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Event_Block_Create) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Block_Create) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Block_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Event_Block_FilesUpload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_Block_FilesUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Block_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.FilePath) > 0 { + for iNdEx := len(m.FilePath) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FilePath[iNdEx]) + copy(dAtA[i:], m.FilePath[iNdEx]) + i = encodeVarintEvents(dAtA, i, uint64(len(m.FilePath[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Event_User) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_User) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_User) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Event_User_Block) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_User_Block) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_User_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Event_User_Block_Join) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_User_Block_Join) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_User_Block_Join) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Event_User_Block_Left) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_User_Block_Left) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_User_Block_Left) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Event_User_Block_TextRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_User_Block_TextRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_User_Block_TextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Event_User_Block_SelectRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Event_User_Block_SelectRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_User_Block_SelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlockIdsArray) > 0 { + for iNdEx := len(m.BlockIdsArray) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIdsArray[iNdEx]) + copy(dAtA[i:], m.BlockIdsArray[iNdEx]) + i = encodeVarintEvents(dAtA, i, uint64(len(m.BlockIdsArray[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { + offset -= sovEvents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Event) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Message != nil { + n += m.Message.Size() + } + return n +} + +func (m *Event_AccountShow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AccountShow != nil { + l = m.AccountShow.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_BlockShow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockShow != nil { + l = m.BlockShow.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_BlockUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockUpdate != nil { + l = m.BlockUpdate.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_BlockCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockCreate != nil { + l = m.BlockCreate.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_UserBlockTextRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockTextRange != nil { + l = m.UserBlockTextRange.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_UserBlockJoin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockJoin != nil { + l = m.UserBlockJoin.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_UserBlockLeft) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockLeft != nil { + l = m.UserBlockLeft.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_UserBlockSelectRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserBlockSelectRange != nil { + l = m.UserBlockSelectRange.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_FilesUpload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FilesUpload != nil { + l = m.FilesUpload.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} +func (m *Event_Account) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Event_Account_Show) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != 0 { + n += 1 + sovEvents(uint64(m.Index)) + } + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Event_Block_Show) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_Block_Update) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Changes != nil { + l = m.Changes.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_Block_Create) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_Block_FilesUpload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FilePath) > 0 { + for _, s := range m.FilePath { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_User) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Event_User_Block) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Event_User_Block_Join) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_User_Block_Left) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_User_Block_TextRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *Event_User_Block_SelectRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.BlockIdsArray) > 0 { + for _, s := range m.BlockIdsArray { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func sovEvents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvents(x uint64) (n int) { + return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Event) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Event: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountShow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_Account_Show{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_AccountShow{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockShow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_Block_Show{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_BlockShow{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_Block_Update{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_BlockUpdate{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockCreate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_Block_Create{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_BlockCreate{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockTextRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_User_Block_TextRange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockTextRange{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockJoin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_User_Block_Join{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockJoin{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockLeft", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_User_Block_Left{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockLeft{v} + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserBlockSelectRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_User_Block_SelectRange{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_UserBlockSelectRange{v} + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilesUpload", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Event_Block_FilesUpload{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Message = &Event_FilesUpload{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Account) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Account: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Account_Show) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Show: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Show: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Event_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Block) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Block: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Block_Show) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Show: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Show: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Block == nil { + m.Block = &Model_Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Block_Update) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Update: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Changes == nil { + m.Changes = &BlockChanges{} + } + if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Block_Create) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Create: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Create: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Block == nil { + m.Block = &Model_Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_Block_FilesUpload) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FilesUpload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FilesUpload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FilePath = append(m.FilePath, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_User) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: User: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: User: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_User_Block) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Block: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_User_Block_Join) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Join: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Join: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Event_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_User_Block_Left) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Left: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Left: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Event_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_User_Block_TextRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TextRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TextRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Event_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Range == nil { + m.Range = &Model_Range{} + } + if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Event_User_Block_SelectRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := 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) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SelectRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SelectRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Account == nil { + m.Account = &Event_Account{} + } + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIdsArray", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockIdsArray = append(m.BlockIdsArray, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvents(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEvents + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvents + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvents + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pb/file.pb.go b/pb/file.pb.go deleted file mode 100644 index e9aa075ea..000000000 --- a/pb/file.pb.go +++ /dev/null @@ -1,2910 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: file.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type ImageSize int32 - -const ( - ImageSize_LARGE ImageSize = 0 - ImageSize_SMALL ImageSize = 1 - ImageSize_THUMB ImageSize = 2 -) - -var ImageSize_name = map[int32]string{ - 0: "LARGE", - 1: "SMALL", - 2: "THUMB", -} - -var ImageSize_value = map[string]int32{ - "LARGE": 0, - "SMALL": 1, - "THUMB": 2, -} - -func (x ImageSize) String() string { - return proto.EnumName(ImageSize_name, int32(x)) -} - -func (ImageSize) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{0} -} - -type VideoSize int32 - -const ( - VideoSize_SD_360p VideoSize = 0 - VideoSize_SD_480p VideoSize = 1 - VideoSize_HD_720p VideoSize = 2 - VideoSize_HD_1080p VideoSize = 3 - VideoSize_UHD_1440p VideoSize = 4 - VideoSize_UHD_2160p VideoSize = 5 -) - -var VideoSize_name = map[int32]string{ - 0: "SD_360p", - 1: "SD_480p", - 2: "HD_720p", - 3: "HD_1080p", - 4: "UHD_1440p", - 5: "UHD_2160p", -} - -var VideoSize_value = map[string]int32{ - "SD_360p": 0, - "SD_480p": 1, - "HD_720p": 2, - "HD_1080p": 3, - "UHD_1440p": 4, - "UHD_2160p": 5, -} - -func (x VideoSize) String() string { - return proto.EnumName(VideoSize_name, int32(x)) -} - -func (VideoSize) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{1} -} - -type IpfsGetFileResponse_Error_Code int32 - -const ( - IpfsGetFileResponse_Error_NULL IpfsGetFileResponse_Error_Code = 0 - IpfsGetFileResponse_Error_UNKNOWN_ERROR IpfsGetFileResponse_Error_Code = 1 - IpfsGetFileResponse_Error_BAD_INPUT IpfsGetFileResponse_Error_Code = 2 - IpfsGetFileResponse_Error_NOT_FOUND IpfsGetFileResponse_Error_Code = 101 - IpfsGetFileResponse_Error_TIMEOUT IpfsGetFileResponse_Error_Code = 102 -) - -var IpfsGetFileResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NOT_FOUND", - 102: "TIMEOUT", -} - -var IpfsGetFileResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_FOUND": 101, - "TIMEOUT": 102, -} - -func (x IpfsGetFileResponse_Error_Code) String() string { - return proto.EnumName(IpfsGetFileResponse_Error_Code_name, int32(x)) -} - -func (IpfsGetFileResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{3, 0, 0} -} - -type ImageGetBlobResponse_Error_Code int32 - -const ( - ImageGetBlobResponse_Error_NULL ImageGetBlobResponse_Error_Code = 0 - ImageGetBlobResponse_Error_UNKNOWN_ERROR ImageGetBlobResponse_Error_Code = 1 - ImageGetBlobResponse_Error_BAD_INPUT ImageGetBlobResponse_Error_Code = 2 - ImageGetBlobResponse_Error_NOT_FOUND ImageGetBlobResponse_Error_Code = 101 - ImageGetBlobResponse_Error_TIMEOUT ImageGetBlobResponse_Error_Code = 102 -) - -var ImageGetBlobResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NOT_FOUND", - 102: "TIMEOUT", -} - -var ImageGetBlobResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_FOUND": 101, - "TIMEOUT": 102, -} - -func (x ImageGetBlobResponse_Error_Code) String() string { - return proto.EnumName(ImageGetBlobResponse_Error_Code_name, int32(x)) -} - -func (ImageGetBlobResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{5, 0, 0} -} - -type ImageGetFileResponse_Error_Code int32 - -const ( - ImageGetFileResponse_Error_NULL ImageGetFileResponse_Error_Code = 0 - ImageGetFileResponse_Error_UNKNOWN_ERROR ImageGetFileResponse_Error_Code = 1 - ImageGetFileResponse_Error_BAD_INPUT ImageGetFileResponse_Error_Code = 2 - ImageGetFileResponse_Error_NOT_FOUND ImageGetFileResponse_Error_Code = 101 - ImageGetFileResponse_Error_TIMEOUT ImageGetFileResponse_Error_Code = 102 -) - -var ImageGetFileResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NOT_FOUND", - 102: "TIMEOUT", -} - -var ImageGetFileResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_FOUND": 101, - "TIMEOUT": 102, -} - -func (x ImageGetFileResponse_Error_Code) String() string { - return proto.EnumName(ImageGetFileResponse_Error_Code_name, int32(x)) -} - -func (ImageGetFileResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{7, 0, 0} -} - -type Image struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Sizes []ImageSize `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.ImageSize" json:"sizes,omitempty"` -} - -func (m *Image) Reset() { *m = Image{} } -func (m *Image) String() string { return proto.CompactTextString(m) } -func (*Image) ProtoMessage() {} -func (*Image) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{0} -} -func (m *Image) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Image.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Image) XXX_Merge(src proto.Message) { - xxx_messageInfo_Image.Merge(m, src) -} -func (m *Image) XXX_Size() int { - return m.Size() -} -func (m *Image) XXX_DiscardUnknown() { - xxx_messageInfo_Image.DiscardUnknown(m) -} - -var xxx_messageInfo_Image proto.InternalMessageInfo - -func (m *Image) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Image) GetSizes() []ImageSize { - if m != nil { - return m.Sizes - } - return nil -} - -type Video struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Sizes []VideoSize `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.VideoSize" json:"sizes,omitempty"` -} - -func (m *Video) Reset() { *m = Video{} } -func (m *Video) String() string { return proto.CompactTextString(m) } -func (*Video) ProtoMessage() {} -func (*Video) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{1} -} -func (m *Video) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Video) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Video.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Video) XXX_Merge(src proto.Message) { - xxx_messageInfo_Video.Merge(m, src) -} -func (m *Video) XXX_Size() int { - return m.Size() -} -func (m *Video) XXX_DiscardUnknown() { - xxx_messageInfo_Video.DiscardUnknown(m) -} - -var xxx_messageInfo_Video proto.InternalMessageInfo - -func (m *Video) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Video) GetSizes() []VideoSize { - if m != nil { - return m.Sizes - } - return nil -} - -type IpfsGetFileRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *IpfsGetFileRequest) Reset() { *m = IpfsGetFileRequest{} } -func (m *IpfsGetFileRequest) String() string { return proto.CompactTextString(m) } -func (*IpfsGetFileRequest) ProtoMessage() {} -func (*IpfsGetFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{2} -} -func (m *IpfsGetFileRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IpfsGetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IpfsGetFileRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IpfsGetFileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IpfsGetFileRequest.Merge(m, src) -} -func (m *IpfsGetFileRequest) XXX_Size() int { - return m.Size() -} -func (m *IpfsGetFileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IpfsGetFileRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IpfsGetFileRequest proto.InternalMessageInfo - -func (m *IpfsGetFileRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type IpfsGetFileResponse struct { - Error *IpfsGetFileResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Media string `protobuf:"bytes,3,opt,name=media,proto3" json:"media,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *IpfsGetFileResponse) Reset() { *m = IpfsGetFileResponse{} } -func (m *IpfsGetFileResponse) String() string { return proto.CompactTextString(m) } -func (*IpfsGetFileResponse) ProtoMessage() {} -func (*IpfsGetFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{3} -} -func (m *IpfsGetFileResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IpfsGetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IpfsGetFileResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IpfsGetFileResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IpfsGetFileResponse.Merge(m, src) -} -func (m *IpfsGetFileResponse) XXX_Size() int { - return m.Size() -} -func (m *IpfsGetFileResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IpfsGetFileResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IpfsGetFileResponse proto.InternalMessageInfo - -func (m *IpfsGetFileResponse) GetError() *IpfsGetFileResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *IpfsGetFileResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *IpfsGetFileResponse) GetMedia() string { - if m != nil { - return m.Media - } - return "" -} - -func (m *IpfsGetFileResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type IpfsGetFileResponse_Error struct { - Code IpfsGetFileResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.IpfsGetFileResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *IpfsGetFileResponse_Error) Reset() { *m = IpfsGetFileResponse_Error{} } -func (m *IpfsGetFileResponse_Error) String() string { return proto.CompactTextString(m) } -func (*IpfsGetFileResponse_Error) ProtoMessage() {} -func (*IpfsGetFileResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{3, 0} -} -func (m *IpfsGetFileResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IpfsGetFileResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IpfsGetFileResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IpfsGetFileResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_IpfsGetFileResponse_Error.Merge(m, src) -} -func (m *IpfsGetFileResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *IpfsGetFileResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_IpfsGetFileResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_IpfsGetFileResponse_Error proto.InternalMessageInfo - -func (m *IpfsGetFileResponse_Error) GetCode() IpfsGetFileResponse_Error_Code { - if m != nil { - return m.Code - } - return IpfsGetFileResponse_Error_NULL -} - -func (m *IpfsGetFileResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type ImageGetBlobRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Size_ ImageSize `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.ImageSize" json:"size,omitempty"` -} - -func (m *ImageGetBlobRequest) Reset() { *m = ImageGetBlobRequest{} } -func (m *ImageGetBlobRequest) String() string { return proto.CompactTextString(m) } -func (*ImageGetBlobRequest) ProtoMessage() {} -func (*ImageGetBlobRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{4} -} -func (m *ImageGetBlobRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageGetBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageGetBlobRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImageGetBlobRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageGetBlobRequest.Merge(m, src) -} -func (m *ImageGetBlobRequest) XXX_Size() int { - return m.Size() -} -func (m *ImageGetBlobRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ImageGetBlobRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageGetBlobRequest proto.InternalMessageInfo - -func (m *ImageGetBlobRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ImageGetBlobRequest) GetSize_() ImageSize { - if m != nil { - return m.Size_ - } - return ImageSize_LARGE -} - -type ImageGetBlobResponse struct { - Error *ImageGetBlobResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` -} - -func (m *ImageGetBlobResponse) Reset() { *m = ImageGetBlobResponse{} } -func (m *ImageGetBlobResponse) String() string { return proto.CompactTextString(m) } -func (*ImageGetBlobResponse) ProtoMessage() {} -func (*ImageGetBlobResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{5} -} -func (m *ImageGetBlobResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageGetBlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageGetBlobResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImageGetBlobResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageGetBlobResponse.Merge(m, src) -} -func (m *ImageGetBlobResponse) XXX_Size() int { - return m.Size() -} -func (m *ImageGetBlobResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ImageGetBlobResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageGetBlobResponse proto.InternalMessageInfo - -func (m *ImageGetBlobResponse) GetError() *ImageGetBlobResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *ImageGetBlobResponse) GetBlob() []byte { - if m != nil { - return m.Blob - } - return nil -} - -type ImageGetBlobResponse_Error struct { - Code ImageGetBlobResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.ImageGetBlobResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *ImageGetBlobResponse_Error) Reset() { *m = ImageGetBlobResponse_Error{} } -func (m *ImageGetBlobResponse_Error) String() string { return proto.CompactTextString(m) } -func (*ImageGetBlobResponse_Error) ProtoMessage() {} -func (*ImageGetBlobResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{5, 0} -} -func (m *ImageGetBlobResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageGetBlobResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageGetBlobResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImageGetBlobResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageGetBlobResponse_Error.Merge(m, src) -} -func (m *ImageGetBlobResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *ImageGetBlobResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_ImageGetBlobResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageGetBlobResponse_Error proto.InternalMessageInfo - -func (m *ImageGetBlobResponse_Error) GetCode() ImageGetBlobResponse_Error_Code { - if m != nil { - return m.Code - } - return ImageGetBlobResponse_Error_NULL -} - -func (m *ImageGetBlobResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type ImageGetFileRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Size_ ImageSize `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.ImageSize" json:"size,omitempty"` -} - -func (m *ImageGetFileRequest) Reset() { *m = ImageGetFileRequest{} } -func (m *ImageGetFileRequest) String() string { return proto.CompactTextString(m) } -func (*ImageGetFileRequest) ProtoMessage() {} -func (*ImageGetFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{6} -} -func (m *ImageGetFileRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageGetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageGetFileRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImageGetFileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageGetFileRequest.Merge(m, src) -} -func (m *ImageGetFileRequest) XXX_Size() int { - return m.Size() -} -func (m *ImageGetFileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ImageGetFileRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageGetFileRequest proto.InternalMessageInfo - -func (m *ImageGetFileRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ImageGetFileRequest) GetSize_() ImageSize { - if m != nil { - return m.Size_ - } - return ImageSize_LARGE -} - -type ImageGetFileResponse struct { - Error *ImageGetFileResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` -} - -func (m *ImageGetFileResponse) Reset() { *m = ImageGetFileResponse{} } -func (m *ImageGetFileResponse) String() string { return proto.CompactTextString(m) } -func (*ImageGetFileResponse) ProtoMessage() {} -func (*ImageGetFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{7} -} -func (m *ImageGetFileResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageGetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageGetFileResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImageGetFileResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageGetFileResponse.Merge(m, src) -} -func (m *ImageGetFileResponse) XXX_Size() int { - return m.Size() -} -func (m *ImageGetFileResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ImageGetFileResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageGetFileResponse proto.InternalMessageInfo - -func (m *ImageGetFileResponse) GetError() *ImageGetFileResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *ImageGetFileResponse) GetLocalPath() string { - if m != nil { - return m.LocalPath - } - return "" -} - -type ImageGetFileResponse_Error struct { - Code ImageGetFileResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.ImageGetFileResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *ImageGetFileResponse_Error) Reset() { *m = ImageGetFileResponse_Error{} } -func (m *ImageGetFileResponse_Error) String() string { return proto.CompactTextString(m) } -func (*ImageGetFileResponse_Error) ProtoMessage() {} -func (*ImageGetFileResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_9188e3b7e55e1162, []int{7, 0} -} -func (m *ImageGetFileResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageGetFileResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImageGetFileResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ImageGetFileResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageGetFileResponse_Error.Merge(m, src) -} -func (m *ImageGetFileResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *ImageGetFileResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_ImageGetFileResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageGetFileResponse_Error proto.InternalMessageInfo - -func (m *ImageGetFileResponse_Error) GetCode() ImageGetFileResponse_Error_Code { - if m != nil { - return m.Code - } - return ImageGetFileResponse_Error_NULL -} - -func (m *ImageGetFileResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func init() { - proto.RegisterEnum("anytype.ImageSize", ImageSize_name, ImageSize_value) - proto.RegisterEnum("anytype.VideoSize", VideoSize_name, VideoSize_value) - proto.RegisterEnum("anytype.IpfsGetFileResponse_Error_Code", IpfsGetFileResponse_Error_Code_name, IpfsGetFileResponse_Error_Code_value) - proto.RegisterEnum("anytype.ImageGetBlobResponse_Error_Code", ImageGetBlobResponse_Error_Code_name, ImageGetBlobResponse_Error_Code_value) - proto.RegisterEnum("anytype.ImageGetFileResponse_Error_Code", ImageGetFileResponse_Error_Code_name, ImageGetFileResponse_Error_Code_value) - proto.RegisterType((*Image)(nil), "anytype.Image") - proto.RegisterType((*Video)(nil), "anytype.Video") - proto.RegisterType((*IpfsGetFileRequest)(nil), "anytype.IpfsGetFileRequest") - proto.RegisterType((*IpfsGetFileResponse)(nil), "anytype.IpfsGetFileResponse") - proto.RegisterType((*IpfsGetFileResponse_Error)(nil), "anytype.IpfsGetFileResponse.Error") - proto.RegisterType((*ImageGetBlobRequest)(nil), "anytype.ImageGetBlobRequest") - proto.RegisterType((*ImageGetBlobResponse)(nil), "anytype.ImageGetBlobResponse") - proto.RegisterType((*ImageGetBlobResponse_Error)(nil), "anytype.ImageGetBlobResponse.Error") - proto.RegisterType((*ImageGetFileRequest)(nil), "anytype.ImageGetFileRequest") - proto.RegisterType((*ImageGetFileResponse)(nil), "anytype.ImageGetFileResponse") - proto.RegisterType((*ImageGetFileResponse_Error)(nil), "anytype.ImageGetFileResponse.Error") -} - -func init() { proto.RegisterFile("file.proto", fileDescriptor_9188e3b7e55e1162) } - -var fileDescriptor_9188e3b7e55e1162 = []byte{ - // 575 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x51, 0x6f, 0xd2, 0x50, - 0x18, 0x6d, 0x4b, 0xeb, 0xd6, 0x8f, 0x8d, 0x5c, 0xef, 0xf6, 0x40, 0x96, 0xa5, 0x21, 0xd5, 0x28, - 0x59, 0x0c, 0x61, 0x8c, 0xe8, 0x8c, 0xbe, 0x80, 0x30, 0x20, 0x42, 0x59, 0x0a, 0xd5, 0xc4, 0x07, - 0x9b, 0x42, 0x2f, 0xda, 0xa4, 0x70, 0x2b, 0xad, 0x0f, 0xdb, 0xaf, 0xf0, 0x1f, 0xf8, 0xec, 0x1f, - 0xd0, 0x7f, 0x60, 0x7c, 0xdc, 0xa3, 0x8f, 0x06, 0xfe, 0x88, 0xb9, 0x17, 0xc6, 0xe8, 0xe6, 0x1c, - 0x7b, 0xdb, 0xdb, 0x77, 0x6e, 0xcf, 0x3d, 0x3d, 0x39, 0xe7, 0xde, 0x0b, 0x30, 0xf0, 0x7c, 0x92, - 0x0b, 0xc6, 0x34, 0xa2, 0x78, 0xcd, 0x19, 0x9d, 0x44, 0x27, 0x01, 0xd1, 0x4b, 0xa0, 0x34, 0x86, - 0xce, 0x07, 0x82, 0x53, 0x20, 0x79, 0x6e, 0x5a, 0xcc, 0x88, 0x59, 0xd5, 0x94, 0x3c, 0x17, 0x67, - 0x41, 0x09, 0xbd, 0x53, 0x12, 0xa6, 0xa5, 0x4c, 0x22, 0x9b, 0x2a, 0xe0, 0xdc, 0x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 0xd6, 0xeb, 0x15, 0x7b, 0x3f, - 0xcf, 0x3e, 0x25, 0x98, 0x17, 0x8b, 0xc1, 0x62, 0x31, 0x1f, 0x20, 0xf9, 0x1c, 0x16, 0xf6, 0x99, - 0x8a, 0x52, 0xde, 0xfd, 0x35, 0xd1, 0xc4, 0xb3, 0x89, 0x26, 0xfe, 0x99, 0x68, 0xe2, 0x97, 0xa9, - 0x26, 0x9c, 0x4d, 0x35, 0xe1, 0xf7, 0x54, 0x13, 0xde, 0x49, 0x41, 0xaf, 0x77, 0x8f, 0x3f, 0xce, - 0x07, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x6d, 0x0c, 0x55, 0xaa, 0x05, 0x00, 0x00, -} - -func (m *Image) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Image) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Sizes) > 0 { - dAtA2 := make([]byte, len(m.Sizes)*10) - var j1 int - for _, num := range m.Sizes { - for num >= 1<<7 { - dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA2[j1] = uint8(num) - j1++ - } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) - i = encodeVarintFile(dAtA, i, uint64(j1)) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintFile(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Video) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Video) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Sizes) > 0 { - dAtA4 := make([]byte, len(m.Sizes)*10) - var j3 int - for _, num := range m.Sizes { - for num >= 1<<7 { - dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA4[j3] = uint8(num) - j3++ - } - i -= j3 - copy(dAtA[i:], dAtA4[:j3]) - i = encodeVarintFile(dAtA, i, uint64(j3)) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintFile(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IpfsGetFileRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IpfsGetFileRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IpfsGetFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintFile(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IpfsGetFileResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IpfsGetFileResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IpfsGetFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintFile(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 - } - if len(m.Media) > 0 { - i -= len(m.Media) - copy(dAtA[i:], m.Media) - i = encodeVarintFile(dAtA, i, uint64(len(m.Media))) - i-- - dAtA[i] = 0x1a - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintFile(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFile(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IpfsGetFileResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IpfsGetFileResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IpfsGetFileResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintFile(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintFile(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ImageGetBlobRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageGetBlobRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageGetBlobRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Size_ != 0 { - i = encodeVarintFile(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintFile(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ImageGetBlobResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageGetBlobResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageGetBlobResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Blob) > 0 { - i -= len(m.Blob) - copy(dAtA[i:], m.Blob) - i = encodeVarintFile(dAtA, i, uint64(len(m.Blob))) - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFile(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ImageGetBlobResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageGetBlobResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageGetBlobResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintFile(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintFile(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ImageGetFileRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageGetFileRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageGetFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Size_ != 0 { - i = encodeVarintFile(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintFile(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ImageGetFileResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageGetFileResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageGetFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LocalPath) > 0 { - i -= len(m.LocalPath) - copy(dAtA[i:], m.LocalPath) - i = encodeVarintFile(dAtA, i, uint64(len(m.LocalPath))) - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFile(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ImageGetFileResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageGetFileResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageGetFileResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintFile(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintFile(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintFile(dAtA []byte, offset int, v uint64) int { - offset -= sovFile(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Image) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - if len(m.Sizes) > 0 { - l = 0 - for _, e := range m.Sizes { - l += sovFile(uint64(e)) - } - n += 1 + sovFile(uint64(l)) + l - } - return n -} - -func (m *Video) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - if len(m.Sizes) > 0 { - l = 0 - for _, e := range m.Sizes { - l += sovFile(uint64(e)) - } - n += 1 + sovFile(uint64(l)) + l - } - return n -} - -func (m *IpfsGetFileRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func (m *IpfsGetFileResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovFile(uint64(l)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - l = len(m.Media) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func (m *IpfsGetFileResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovFile(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func (m *ImageGetBlobRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - if m.Size_ != 0 { - n += 1 + sovFile(uint64(m.Size_)) - } - return n -} - -func (m *ImageGetBlobResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovFile(uint64(l)) - } - l = len(m.Blob) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func (m *ImageGetBlobResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovFile(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func (m *ImageGetFileRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - if m.Size_ != 0 { - n += 1 + sovFile(uint64(m.Size_)) - } - return n -} - -func (m *ImageGetFileResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovFile(uint64(l)) - } - l = len(m.LocalPath) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func (m *ImageGetFileResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovFile(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovFile(uint64(l)) - } - return n -} - -func sovFile(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozFile(x uint64) (n int) { - return sovFile(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Image) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Image: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v ImageSize - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ImageSize(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Sizes = append(m.Sizes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.Sizes) == 0 { - m.Sizes = make([]ImageSize, 0, elementCount) - } - for iNdEx < postIndex { - var v ImageSize - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ImageSize(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Sizes = append(m.Sizes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Sizes", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Video) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Video: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Video: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v VideoSize - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= VideoSize(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Sizes = append(m.Sizes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.Sizes) == 0 { - m.Sizes = make([]VideoSize, 0, elementCount) - } - for iNdEx < postIndex { - var v VideoSize - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= VideoSize(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Sizes = append(m.Sizes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Sizes", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IpfsGetFileRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IpfsGetFileRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IpfsGetFileRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IpfsGetFileResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IpfsGetFileResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IpfsGetFileResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &IpfsGetFileResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Media", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Media = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IpfsGetFileResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= IpfsGetFileResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageGetBlobRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageGetBlobRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageGetBlobRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) - } - m.Size_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Size_ |= ImageSize(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageGetBlobResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageGetBlobResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageGetBlobResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &ImageGetBlobResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...) - if m.Blob == nil { - m.Blob = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageGetBlobResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= ImageGetBlobResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageGetFileRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageGetFileRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageGetFileRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) - } - m.Size_ = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Size_ |= ImageSize(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageGetFileResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageGetFileResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageGetFileResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &ImageGetFileResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LocalPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageGetFileResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= ImageGetFileResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFile - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthFile - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFile - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFile(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthFile - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipFile(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFile - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFile - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFile - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthFile - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupFile - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthFile - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthFile = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowFile = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupFile = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/misc.pb.go b/pb/misc.pb.go deleted file mode 100644 index 6538af0e1..000000000 --- a/pb/misc.pb.go +++ /dev/null @@ -1,1435 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: misc.proto - -package pb - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type VersionGetResponse_Error_Code int32 - -const ( - VersionGetResponse_Error_NULL VersionGetResponse_Error_Code = 0 - VersionGetResponse_Error_UNKNOWN_ERROR VersionGetResponse_Error_Code = 1 - VersionGetResponse_Error_BAD_INPUT VersionGetResponse_Error_Code = 2 - VersionGetResponse_Error_VERSION_IS_EMPTY VersionGetResponse_Error_Code = 3 - VersionGetResponse_Error_NOT_FOUND VersionGetResponse_Error_Code = 101 - VersionGetResponse_Error_TIMEOUT VersionGetResponse_Error_Code = 102 -) - -var VersionGetResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "VERSION_IS_EMPTY", - 101: "NOT_FOUND", - 102: "TIMEOUT", -} - -var VersionGetResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "VERSION_IS_EMPTY": 3, - "NOT_FOUND": 101, - "TIMEOUT": 102, -} - -func (x VersionGetResponse_Error_Code) String() string { - return proto.EnumName(VersionGetResponse_Error_Code_name, int32(x)) -} - -func (VersionGetResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{1, 0, 0} -} - -type LogSendRequest_Level int32 - -const ( - LogSendRequest_DEBUG LogSendRequest_Level = 0 - LogSendRequest_ERROR LogSendRequest_Level = 1 - LogSendRequest_FATAL LogSendRequest_Level = 2 - LogSendRequest_INFO LogSendRequest_Level = 3 - LogSendRequest_PANIC LogSendRequest_Level = 4 - LogSendRequest_WARNING LogSendRequest_Level = 5 -) - -var LogSendRequest_Level_name = map[int32]string{ - 0: "DEBUG", - 1: "ERROR", - 2: "FATAL", - 3: "INFO", - 4: "PANIC", - 5: "WARNING", -} - -var LogSendRequest_Level_value = map[string]int32{ - "DEBUG": 0, - "ERROR": 1, - "FATAL": 2, - "INFO": 3, - "PANIC": 4, - "WARNING": 5, -} - -func (x LogSendRequest_Level) String() string { - return proto.EnumName(LogSendRequest_Level_name, int32(x)) -} - -func (LogSendRequest_Level) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{2, 0} -} - -type LogSendResponse_Error_Code int32 - -const ( - LogSendResponse_Error_NULL LogSendResponse_Error_Code = 0 - LogSendResponse_Error_UNKNOWN_ERROR LogSendResponse_Error_Code = 1 - LogSendResponse_Error_BAD_INPUT LogSendResponse_Error_Code = 2 - LogSendResponse_Error_NOT_FOUND LogSendResponse_Error_Code = 101 - LogSendResponse_Error_TIMEOUT LogSendResponse_Error_Code = 102 -) - -var LogSendResponse_Error_Code_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NOT_FOUND", - 102: "TIMEOUT", -} - -var LogSendResponse_Error_Code_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_FOUND": 101, - "TIMEOUT": 102, -} - -func (x LogSendResponse_Error_Code) String() string { - return proto.EnumName(LogSendResponse_Error_Code_name, int32(x)) -} - -func (LogSendResponse_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{3, 0, 0} -} - -type VersionGetRequest struct { -} - -func (m *VersionGetRequest) Reset() { *m = VersionGetRequest{} } -func (m *VersionGetRequest) String() string { return proto.CompactTextString(m) } -func (*VersionGetRequest) ProtoMessage() {} -func (*VersionGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{0} -} -func (m *VersionGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VersionGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionGetRequest.Merge(m, src) -} -func (m *VersionGetRequest) XXX_Size() int { - return m.Size() -} -func (m *VersionGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VersionGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionGetRequest proto.InternalMessageInfo - -type VersionGetResponse struct { - Error *VersionGetResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` -} - -func (m *VersionGetResponse) Reset() { *m = VersionGetResponse{} } -func (m *VersionGetResponse) String() string { return proto.CompactTextString(m) } -func (*VersionGetResponse) ProtoMessage() {} -func (*VersionGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{1} -} -func (m *VersionGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionGetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VersionGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionGetResponse.Merge(m, src) -} -func (m *VersionGetResponse) XXX_Size() int { - return m.Size() -} -func (m *VersionGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VersionGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionGetResponse proto.InternalMessageInfo - -func (m *VersionGetResponse) GetError() *VersionGetResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -func (m *VersionGetResponse) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -type VersionGetResponse_Error struct { - Code VersionGetResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.VersionGetResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *VersionGetResponse_Error) Reset() { *m = VersionGetResponse_Error{} } -func (m *VersionGetResponse_Error) String() string { return proto.CompactTextString(m) } -func (*VersionGetResponse_Error) ProtoMessage() {} -func (*VersionGetResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{1, 0} -} -func (m *VersionGetResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionGetResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionGetResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VersionGetResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionGetResponse_Error.Merge(m, src) -} -func (m *VersionGetResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *VersionGetResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_VersionGetResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionGetResponse_Error proto.InternalMessageInfo - -func (m *VersionGetResponse_Error) GetCode() VersionGetResponse_Error_Code { - if m != nil { - return m.Code - } - return VersionGetResponse_Error_NULL -} - -func (m *VersionGetResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type LogSendRequest struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Level LogSendRequest_Level `protobuf:"varint,2,opt,name=level,proto3,enum=anytype.LogSendRequest_Level" json:"level,omitempty"` -} - -func (m *LogSendRequest) Reset() { *m = LogSendRequest{} } -func (m *LogSendRequest) String() string { return proto.CompactTextString(m) } -func (*LogSendRequest) ProtoMessage() {} -func (*LogSendRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{2} -} -func (m *LogSendRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogSendRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogSendRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogSendRequest.Merge(m, src) -} -func (m *LogSendRequest) XXX_Size() int { - return m.Size() -} -func (m *LogSendRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LogSendRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LogSendRequest proto.InternalMessageInfo - -func (m *LogSendRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *LogSendRequest) GetLevel() LogSendRequest_Level { - if m != nil { - return m.Level - } - return LogSendRequest_DEBUG -} - -type LogSendResponse struct { - Error *LogSendResponse_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *LogSendResponse) Reset() { *m = LogSendResponse{} } -func (m *LogSendResponse) String() string { return proto.CompactTextString(m) } -func (*LogSendResponse) ProtoMessage() {} -func (*LogSendResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{3} -} -func (m *LogSendResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogSendResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogSendResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogSendResponse.Merge(m, src) -} -func (m *LogSendResponse) XXX_Size() int { - return m.Size() -} -func (m *LogSendResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LogSendResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LogSendResponse proto.InternalMessageInfo - -func (m *LogSendResponse) GetError() *LogSendResponse_Error { - if m != nil { - return m.Error - } - return nil -} - -type LogSendResponse_Error struct { - Code LogSendResponse_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.LogSendResponse_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *LogSendResponse_Error) Reset() { *m = LogSendResponse_Error{} } -func (m *LogSendResponse_Error) String() string { return proto.CompactTextString(m) } -func (*LogSendResponse_Error) ProtoMessage() {} -func (*LogSendResponse_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_2d3ba2f07ad357c5, []int{3, 0} -} -func (m *LogSendResponse_Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogSendResponse_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogSendResponse_Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogSendResponse_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogSendResponse_Error.Merge(m, src) -} -func (m *LogSendResponse_Error) XXX_Size() int { - return m.Size() -} -func (m *LogSendResponse_Error) XXX_DiscardUnknown() { - xxx_messageInfo_LogSendResponse_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_LogSendResponse_Error proto.InternalMessageInfo - -func (m *LogSendResponse_Error) GetCode() LogSendResponse_Error_Code { - if m != nil { - return m.Code - } - return LogSendResponse_Error_NULL -} - -func (m *LogSendResponse_Error) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func init() { - proto.RegisterEnum("anytype.VersionGetResponse_Error_Code", VersionGetResponse_Error_Code_name, VersionGetResponse_Error_Code_value) - proto.RegisterEnum("anytype.LogSendRequest_Level", LogSendRequest_Level_name, LogSendRequest_Level_value) - proto.RegisterEnum("anytype.LogSendResponse_Error_Code", LogSendResponse_Error_Code_name, LogSendResponse_Error_Code_value) - proto.RegisterType((*VersionGetRequest)(nil), "anytype.VersionGetRequest") - proto.RegisterType((*VersionGetResponse)(nil), "anytype.VersionGetResponse") - proto.RegisterType((*VersionGetResponse_Error)(nil), "anytype.VersionGetResponse.Error") - proto.RegisterType((*LogSendRequest)(nil), "anytype.LogSendRequest") - proto.RegisterType((*LogSendResponse)(nil), "anytype.LogSendResponse") - proto.RegisterType((*LogSendResponse_Error)(nil), "anytype.LogSendResponse.Error") -} - -func init() { proto.RegisterFile("misc.proto", fileDescriptor_2d3ba2f07ad357c5) } - -var fileDescriptor_2d3ba2f07ad357c5 = []byte{ - // 452 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0xe3, 0xac, 0xa1, 0xe4, 0x55, 0x2b, 0x9e, 0xe1, 0x50, 0x4d, 0x10, 0x95, 0x20, 0xa1, - 0x9d, 0x72, 0xe8, 0x90, 0x26, 0x71, 0x4b, 0xd7, 0xb4, 0x0a, 0x64, 0x4e, 0xe5, 0x26, 0x9b, 0xe0, - 0x12, 0x6d, 0x8d, 0x99, 0x2a, 0x6d, 0x75, 0x88, 0xc3, 0xa4, 0x7d, 0x0b, 0xbe, 0x07, 0x37, 0x24, - 0xbe, 0x03, 0x12, 0x97, 0x1d, 0x39, 0xa2, 0xf6, 0x6b, 0x70, 0x40, 0x4e, 0xda, 0xb2, 0x6a, 0xa8, - 0x08, 0x6e, 0x79, 0x4f, 0x3f, 0x3f, 0xbf, 0x7f, 0x7e, 0x32, 0xc0, 0xe5, 0x44, 0x8e, 0x9d,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 0xc6, 0x11, 0x7e, 0x67, 0x7f, 0x42, 0xd0, 0x0c, 0xc4, 0xf9, 0x88, - 0x4f, 0xd3, 0xc5, 0xaf, 0x54, 0xd1, 0x2f, 0xb9, 0x94, 0xa7, 0xe7, 0x55, 0x32, 0x93, 0x2d, 0x4b, - 0xb2, 0x0f, 0xc6, 0x05, 0xbf, 0xe2, 0x17, 0xe5, 0xba, 0xcd, 0xce, 0x93, 0x55, 0xe2, 0xf5, 0x09, - 0x4e, 0xa0, 0x20, 0x56, 0xb1, 0xf6, 0x2b, 0x30, 0xca, 0x9a, 0x98, 0x60, 0xf4, 0xbc, 0x6e, 0x3c, - 0xc0, 0x9a, 0xfa, 0x5c, 0x26, 0x30, 0xc1, 0xe8, 0xbb, 0x91, 0x1b, 0x60, 0x5d, 0x25, 0xf5, 0x69, - 0x3f, 0xc4, 0x5b, 0xaa, 0x39, 0x74, 0xa9, 0x7f, 0x88, 0x6b, 0x6a, 0xdb, 0x13, 0x97, 0x51, 0x9f, - 0x0e, 0xb0, 0x61, 0xff, 0x44, 0xf0, 0x60, 0x75, 0xd7, 0x42, 0xf1, 0x8b, 0x75, 0xc5, 0xd6, 0xdd, - 0xa5, 0xfe, 0xe0, 0x77, 0xf7, 0xf3, 0xca, 0xe2, 0xc1, 0x9a, 0xc5, 0x67, 0x9b, 0x8f, 0xff, 0x9b, - 0x42, 0xfa, 0x1f, 0x0a, 0x37, 0xc8, 0xea, 0x3e, 0xfe, 0x3a, 0xb3, 0xd0, 0xcd, 0xcc, 0x42, 0x3f, - 0x66, 0x16, 0xfa, 0x38, 0xb7, 0xb4, 0x9b, 0xb9, 0xa5, 0x7d, 0x9f, 0x5b, 0xda, 0x5b, 0x3d, 0x3b, - 0x3b, 0xbb, 0x57, 0xbe, 0x93, 0xfd, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x39, 0x57, 0x42, 0x0b, - 0x35, 0x03, 0x00, 0x00, -} - -func (m *VersionGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VersionGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VersionGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *VersionGetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VersionGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VersionGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Version) > 0 { - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintMisc(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMisc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VersionGetResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VersionGetResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VersionGetResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintMisc(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintMisc(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *LogSendRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LogSendRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogSendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Level != 0 { - i = encodeVarintMisc(dAtA, i, uint64(m.Level)) - i-- - dAtA[i] = 0x10 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintMisc(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LogSendResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LogSendResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMisc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LogSendResponse_Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LogSendResponse_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogSendResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintMisc(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if m.Code != 0 { - i = encodeVarintMisc(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintMisc(dAtA []byte, offset int, v uint64) int { - offset -= sovMisc(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *VersionGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *VersionGetResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovMisc(uint64(l)) - } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovMisc(uint64(l)) - } - return n -} - -func (m *VersionGetResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovMisc(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovMisc(uint64(l)) - } - return n -} - -func (m *LogSendRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Message) - if l > 0 { - n += 1 + l + sovMisc(uint64(l)) - } - if m.Level != 0 { - n += 1 + sovMisc(uint64(m.Level)) - } - return n -} - -func (m *LogSendResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovMisc(uint64(l)) - } - return n -} - -func (m *LogSendResponse_Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Code != 0 { - n += 1 + sovMisc(uint64(m.Code)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovMisc(uint64(l)) - } - return n -} - -func sovMisc(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMisc(x uint64) (n int) { - return sovMisc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *VersionGetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionGetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMisc(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VersionGetResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionGetResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMisc - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMisc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &VersionGetResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMisc - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMisc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMisc(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VersionGetResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= VersionGetResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMisc - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMisc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMisc(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LogSendRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogSendRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogSendRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMisc - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMisc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - m.Level = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Level |= LogSendRequest_Level(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMisc(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LogSendResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogSendResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMisc - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMisc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &LogSendResponse_Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMisc(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LogSendResponse_Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= LogSendResponse_Error_Code(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMisc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMisc - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMisc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMisc(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMisc - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMisc(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMisc - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMisc - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMisc - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMisc - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMisc - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMisc - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMisc = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMisc = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMisc = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pb/models.pb.go b/pb/models.pb.go index d6ed91007..ef52f76e3 100644 --- a/pb/models.pb.go +++ b/pb/models.pb.go @@ -4,6 +4,7 @@ package pb import ( + encoding_binary "encoding/binary" fmt "fmt" proto "github.com/gogo/protobuf/proto" io "io" @@ -285,6 +286,94 @@ func (Model_Block_Content_Page_Style) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 6, 0} } +// `NullValue` is a singleton enumeration to represent the null value for the +type Model_Struct_NullValue int32 + +const ( + Model_Struct_NULL_VALUE Model_Struct_NullValue = 0 +) + +var Model_Struct_NullValue_name = map[int32]string{ + 0: "NULL_VALUE", +} + +var Model_Struct_NullValue_value = map[string]int32{ + "NULL_VALUE": 0, +} + +func (x Model_Struct_NullValue) String() string { + return proto.EnumName(Model_Struct_NullValue_name, int32(x)) +} + +func (Model_Struct_NullValue) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 2, 0} +} + +type Model_Image_Size int32 + +const ( + Model_Image_LARGE Model_Image_Size = 0 + Model_Image_SMALL Model_Image_Size = 1 + Model_Image_THUMB Model_Image_Size = 2 +) + +var Model_Image_Size_name = map[int32]string{ + 0: "LARGE", + 1: "SMALL", + 2: "THUMB", +} + +var Model_Image_Size_value = map[string]int32{ + "LARGE": 0, + "SMALL": 1, + "THUMB": 2, +} + +func (x Model_Image_Size) String() string { + return proto.EnumName(Model_Image_Size_name, int32(x)) +} + +func (Model_Image_Size) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 4, 0} +} + +type Model_Video_Size int32 + +const ( + Model_Video_SD_360p Model_Video_Size = 0 + Model_Video_SD_480p Model_Video_Size = 1 + Model_Video_HD_720p Model_Video_Size = 2 + Model_Video_HD_1080p Model_Video_Size = 3 + Model_Video_UHD_1440p Model_Video_Size = 4 + Model_Video_UHD_2160p Model_Video_Size = 5 +) + +var Model_Video_Size_name = map[int32]string{ + 0: "SD_360p", + 1: "SD_480p", + 2: "HD_720p", + 3: "HD_1080p", + 4: "UHD_1440p", + 5: "UHD_2160p", +} + +var Model_Video_Size_value = map[string]int32{ + "SD_360p": 0, + "SD_480p": 1, + "HD_720p": 2, + "HD_1080p": 3, + "UHD_1440p": 4, + "UHD_2160p": 5, +} + +func (x Model_Video_Size) String() string { + return proto.EnumName(Model_Video_Size_name, int32(x)) +} + +func (Model_Video_Size) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 5, 0} +} + type Model struct { } @@ -490,7 +579,7 @@ func (*Model_Block) XXX_OneofWrappers() []interface{} { type Model_Block_Header struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type Model_Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` - Fields *Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + Fields *Model_Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` Permissions *Model_Block_Header_Permissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` } @@ -541,7 +630,7 @@ func (m *Model_Block_Header) GetType() Model_Block_Header_Type { return Model_Block_Header_DASHBOARD } -func (m *Model_Block_Header) GetFields() *Struct { +func (m *Model_Block_Header) GetFields() *Model_Struct { if m != nil { return m.Fields } @@ -1425,6 +1514,490 @@ func (m *Model_Range) GetTo() int32 { return 0 } +type Model_Struct struct { + // Unordered map of dynamically typed values. + Fields map[string]*Model_Struct_Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *Model_Struct) Reset() { *m = Model_Struct{} } +func (m *Model_Struct) String() string { return proto.CompactTextString(m) } +func (*Model_Struct) ProtoMessage() {} +func (*Model_Struct) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 2} +} +func (m *Model_Struct) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Struct.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Struct) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Struct.Merge(m, src) +} +func (m *Model_Struct) XXX_Size() int { + return m.Size() +} +func (m *Model_Struct) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Struct.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Struct proto.InternalMessageInfo + +func (m *Model_Struct) GetFields() map[string]*Model_Struct_Value { + if m != nil { + return m.Fields + } + return nil +} + +// `Value` represents a dynamically typed value which can be either +// null, a number, a string, a boolean, a recursive struct value, or a +// list of values. A producer of value is expected to set one of that +// variants, absence of any variant indicates an error. +type Model_Struct_Value struct { + // Types that are valid to be assigned to Kind: + // *Model_Struct_Value_NullValue + // *Model_Struct_Value_NumberValue + // *Model_Struct_Value_StringValue + // *Model_Struct_Value_BoolValue + // *Model_Struct_Value_StructValue + // *Model_Struct_Value_ListValue + Kind isModel_Struct_Value_Kind `protobuf_oneof:"kind"` +} + +func (m *Model_Struct_Value) Reset() { *m = Model_Struct_Value{} } +func (m *Model_Struct_Value) String() string { return proto.CompactTextString(m) } +func (*Model_Struct_Value) ProtoMessage() {} +func (*Model_Struct_Value) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 2, 1} +} +func (m *Model_Struct_Value) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Struct_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Struct_Value.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Struct_Value) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Struct_Value.Merge(m, src) +} +func (m *Model_Struct_Value) XXX_Size() int { + return m.Size() +} +func (m *Model_Struct_Value) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Struct_Value.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Struct_Value proto.InternalMessageInfo + +type isModel_Struct_Value_Kind interface { + isModel_Struct_Value_Kind() + MarshalTo([]byte) (int, error) + Size() int +} + +type Model_Struct_Value_NullValue struct { + NullValue Model_Struct_NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=anytype.Model_Struct_NullValue,oneof" json:"null_value,omitempty"` +} +type Model_Struct_Value_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof" json:"number_value,omitempty"` +} +type Model_Struct_Value_StringValue struct { + StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"` +} +type Model_Struct_Value_BoolValue struct { + BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"` +} +type Model_Struct_Value_StructValue struct { + StructValue *Model_Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof" json:"struct_value,omitempty"` +} +type Model_Struct_Value_ListValue struct { + ListValue *Model_Struct_ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof" json:"list_value,omitempty"` +} + +func (*Model_Struct_Value_NullValue) isModel_Struct_Value_Kind() {} +func (*Model_Struct_Value_NumberValue) isModel_Struct_Value_Kind() {} +func (*Model_Struct_Value_StringValue) isModel_Struct_Value_Kind() {} +func (*Model_Struct_Value_BoolValue) isModel_Struct_Value_Kind() {} +func (*Model_Struct_Value_StructValue) isModel_Struct_Value_Kind() {} +func (*Model_Struct_Value_ListValue) isModel_Struct_Value_Kind() {} + +func (m *Model_Struct_Value) GetKind() isModel_Struct_Value_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (m *Model_Struct_Value) GetNullValue() Model_Struct_NullValue { + if x, ok := m.GetKind().(*Model_Struct_Value_NullValue); ok { + return x.NullValue + } + return Model_Struct_NULL_VALUE +} + +func (m *Model_Struct_Value) GetNumberValue() float64 { + if x, ok := m.GetKind().(*Model_Struct_Value_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (m *Model_Struct_Value) GetStringValue() string { + if x, ok := m.GetKind().(*Model_Struct_Value_StringValue); ok { + return x.StringValue + } + return "" +} + +func (m *Model_Struct_Value) GetBoolValue() bool { + if x, ok := m.GetKind().(*Model_Struct_Value_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (m *Model_Struct_Value) GetStructValue() *Model_Struct { + if x, ok := m.GetKind().(*Model_Struct_Value_StructValue); ok { + return x.StructValue + } + return nil +} + +func (m *Model_Struct_Value) GetListValue() *Model_Struct_ListValue { + if x, ok := m.GetKind().(*Model_Struct_Value_ListValue); ok { + return x.ListValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Model_Struct_Value) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Model_Struct_Value_NullValue)(nil), + (*Model_Struct_Value_NumberValue)(nil), + (*Model_Struct_Value_StringValue)(nil), + (*Model_Struct_Value_BoolValue)(nil), + (*Model_Struct_Value_StructValue)(nil), + (*Model_Struct_Value_ListValue)(nil), + } +} + +// `ListValue` is a wrapper around a repeated field of values. +type Model_Struct_ListValue struct { + Values []*Model_Struct_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +func (m *Model_Struct_ListValue) Reset() { *m = Model_Struct_ListValue{} } +func (m *Model_Struct_ListValue) String() string { return proto.CompactTextString(m) } +func (*Model_Struct_ListValue) ProtoMessage() {} +func (*Model_Struct_ListValue) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 2, 2} +} +func (m *Model_Struct_ListValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Struct_ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Struct_ListValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Struct_ListValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Struct_ListValue.Merge(m, src) +} +func (m *Model_Struct_ListValue) XXX_Size() int { + return m.Size() +} +func (m *Model_Struct_ListValue) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Struct_ListValue.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Struct_ListValue proto.InternalMessageInfo + +func (m *Model_Struct_ListValue) GetValues() []*Model_Struct_Value { + if m != nil { + return m.Values + } + return nil +} + +//* +// Contains basic information about user account +type Model_Account struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Avatar *Model_Account_Avatar `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` +} + +func (m *Model_Account) Reset() { *m = Model_Account{} } +func (m *Model_Account) String() string { return proto.CompactTextString(m) } +func (*Model_Account) ProtoMessage() {} +func (*Model_Account) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 3} +} +func (m *Model_Account) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Account.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Account) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Account.Merge(m, src) +} +func (m *Model_Account) XXX_Size() int { + return m.Size() +} +func (m *Model_Account) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Account.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Account proto.InternalMessageInfo + +func (m *Model_Account) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Model_Account) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Model_Account) GetAvatar() *Model_Account_Avatar { + if m != nil { + return m.Avatar + } + return nil +} + +//* +// Avatar of a user's account. It could be an image or color +type Model_Account_Avatar struct { + // Types that are valid to be assigned to Avatar: + // *Model_Account_Avatar_Image + // *Model_Account_Avatar_Color + Avatar isModel_Account_Avatar_Avatar `protobuf_oneof:"avatar"` +} + +func (m *Model_Account_Avatar) Reset() { *m = Model_Account_Avatar{} } +func (m *Model_Account_Avatar) String() string { return proto.CompactTextString(m) } +func (*Model_Account_Avatar) ProtoMessage() {} +func (*Model_Account_Avatar) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 3, 0} +} +func (m *Model_Account_Avatar) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Account_Avatar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Account_Avatar.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Account_Avatar) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Account_Avatar.Merge(m, src) +} +func (m *Model_Account_Avatar) XXX_Size() int { + return m.Size() +} +func (m *Model_Account_Avatar) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Account_Avatar.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Account_Avatar proto.InternalMessageInfo + +type isModel_Account_Avatar_Avatar interface { + isModel_Account_Avatar_Avatar() + MarshalTo([]byte) (int, error) + Size() int +} + +type Model_Account_Avatar_Image struct { + Image *Model_Image `protobuf:"bytes,1,opt,name=image,proto3,oneof" json:"image,omitempty"` +} +type Model_Account_Avatar_Color struct { + Color string `protobuf:"bytes,2,opt,name=color,proto3,oneof" json:"color,omitempty"` +} + +func (*Model_Account_Avatar_Image) isModel_Account_Avatar_Avatar() {} +func (*Model_Account_Avatar_Color) isModel_Account_Avatar_Avatar() {} + +func (m *Model_Account_Avatar) GetAvatar() isModel_Account_Avatar_Avatar { + if m != nil { + return m.Avatar + } + return nil +} + +func (m *Model_Account_Avatar) GetImage() *Model_Image { + if x, ok := m.GetAvatar().(*Model_Account_Avatar_Image); ok { + return x.Image + } + return nil +} + +func (m *Model_Account_Avatar) GetColor() string { + if x, ok := m.GetAvatar().(*Model_Account_Avatar_Color); ok { + return x.Color + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Model_Account_Avatar) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Model_Account_Avatar_Image)(nil), + (*Model_Account_Avatar_Color)(nil), + } +} + +type Model_Image struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sizes []Model_Image_Size `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.Model_Image_Size" json:"sizes,omitempty"` +} + +func (m *Model_Image) Reset() { *m = Model_Image{} } +func (m *Model_Image) String() string { return proto.CompactTextString(m) } +func (*Model_Image) ProtoMessage() {} +func (*Model_Image) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 4} +} +func (m *Model_Image) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Image.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Image) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Image.Merge(m, src) +} +func (m *Model_Image) XXX_Size() int { + return m.Size() +} +func (m *Model_Image) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Image.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Image proto.InternalMessageInfo + +func (m *Model_Image) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Model_Image) GetSizes() []Model_Image_Size { + if m != nil { + return m.Sizes + } + return nil +} + +type Model_Video struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sizes []Model_Video_Size `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.Model_Video_Size" json:"sizes,omitempty"` +} + +func (m *Model_Video) Reset() { *m = Model_Video{} } +func (m *Model_Video) String() string { return proto.CompactTextString(m) } +func (*Model_Video) ProtoMessage() {} +func (*Model_Video) Descriptor() ([]byte, []int) { + return fileDescriptor_0b5431a010549573, []int{0, 5} +} +func (m *Model_Video) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Model_Video) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Model_Video.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Model_Video) XXX_Merge(src proto.Message) { + xxx_messageInfo_Model_Video.Merge(m, src) +} +func (m *Model_Video) XXX_Size() int { + return m.Size() +} +func (m *Model_Video) XXX_DiscardUnknown() { + xxx_messageInfo_Model_Video.DiscardUnknown(m) +} + +var xxx_messageInfo_Model_Video proto.InternalMessageInfo + +func (m *Model_Video) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Model_Video) GetSizes() []Model_Video_Size { + if m != nil { + return m.Sizes + } + return nil +} + func init() { proto.RegisterEnum("anytype.Model_Block_Header_Type", Model_Block_Header_Type_name, Model_Block_Header_Type_value) proto.RegisterEnum("anytype.Model_Block_Content_Layout_Style", Model_Block_Content_Layout_Style_name, Model_Block_Content_Layout_Style_value) @@ -1434,6 +2007,9 @@ func init() { proto.RegisterEnum("anytype.Model_Block_Content_Text_Mark_Type", Model_Block_Content_Text_Mark_Type_name, Model_Block_Content_Text_Mark_Type_value) proto.RegisterEnum("anytype.Model_Block_Content_Media_State", Model_Block_Content_Media_State_name, Model_Block_Content_Media_State_value) proto.RegisterEnum("anytype.Model_Block_Content_Page_Style", Model_Block_Content_Page_Style_name, Model_Block_Content_Page_Style_value) + proto.RegisterEnum("anytype.Model_Struct_NullValue", Model_Struct_NullValue_name, Model_Struct_NullValue_value) + proto.RegisterEnum("anytype.Model_Image_Size", Model_Image_Size_name, Model_Image_Size_value) + proto.RegisterEnum("anytype.Model_Video_Size", Model_Video_Size_name, Model_Video_Size_value) proto.RegisterType((*Model)(nil), "anytype.Model") proto.RegisterType((*Model_Block)(nil), "anytype.Model.Block") proto.RegisterType((*Model_Block_Header)(nil), "anytype.Model.Block.Header") @@ -1452,93 +2028,126 @@ func init() { proto.RegisterType((*Model_Block_Content_Media_FilePreview)(nil), "anytype.Model.Block.Content.Media.FilePreview") proto.RegisterType((*Model_Block_Content_Page)(nil), "anytype.Model.Block.Content.Page") proto.RegisterType((*Model_Range)(nil), "anytype.Model.Range") + proto.RegisterType((*Model_Struct)(nil), "anytype.Model.Struct") + proto.RegisterMapType((map[string]*Model_Struct_Value)(nil), "anytype.Model.Struct.FieldsEntry") + proto.RegisterType((*Model_Struct_Value)(nil), "anytype.Model.Struct.Value") + proto.RegisterType((*Model_Struct_ListValue)(nil), "anytype.Model.Struct.ListValue") + proto.RegisterType((*Model_Account)(nil), "anytype.Model.Account") + proto.RegisterType((*Model_Account_Avatar)(nil), "anytype.Model.Account.Avatar") + proto.RegisterType((*Model_Image)(nil), "anytype.Model.Image") + proto.RegisterType((*Model_Video)(nil), "anytype.Model.Video") } func init() { proto.RegisterFile("models.proto", fileDescriptor_0b5431a010549573) } var fileDescriptor_0b5431a010549573 = []byte{ - // 1282 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x6e, 0xdb, 0x46, - 0x17, 0x26, 0x25, 0x52, 0x97, 0x23, 0xc7, 0x9e, 0x0c, 0xf2, 0x07, 0x04, 0xff, 0x40, 0x70, 0x55, - 0x34, 0x71, 0x9b, 0x40, 0x45, 0xe3, 0x04, 0x05, 0x8a, 0xa6, 0x81, 0x2e, 0x8c, 0x45, 0x58, 0x37, - 0x8c, 0x64, 0xa7, 0xe9, 0xa6, 0xa0, 0xc4, 0xb1, 0x44, 0x84, 0x22, 0x55, 0x8a, 0x76, 0x62, 0xa0, - 0x0f, 0xd1, 0x47, 0xe8, 0xaa, 0xe8, 0xb6, 0xeb, 0xbe, 0x40, 0x97, 0x41, 0x37, 0xed, 0xb2, 0x88, - 0xdf, 0xa1, 0x8b, 0xae, 0x8a, 0x39, 0x43, 0x4a, 0x72, 0x91, 0xda, 0x5a, 0x74, 0xc5, 0x39, 0x33, - 0xdf, 0x77, 0xce, 0x99, 0x39, 0x37, 0xc2, 0xd6, 0x2c, 0x74, 0xb9, 0xbf, 0xa8, 0xce, 0xa3, 0x30, - 0x0e, 0x69, 0xde, 0x09, 0xce, 0xe3, 0xf3, 0x39, 0x37, 0xb7, 0x16, 0x71, 0x74, 0x3a, 0x8e, 0xe5, - 0x76, 0xe5, 0xa7, 0xdb, 0xa0, 0x77, 0x04, 0xce, 0xfc, 0xeb, 0x7f, 0xa0, 0xd7, 0xfd, 0x70, 0xfc, - 0x92, 0xee, 0x43, 0x6e, 0xca, 0x1d, 0x97, 0x47, 0x86, 0xba, 0xab, 0xee, 0x95, 0x1e, 0xfe, 0xbf, - 0x9a, 0x70, 0xab, 0x88, 0xac, 0x22, 0xaa, 0xda, 0x42, 0x08, 0x4b, 0xa0, 0xd4, 0x84, 0xc2, 0x78, - 0xea, 0xf9, 0x6e, 0xc4, 0x03, 0x23, 0xb3, 0x9b, 0xdd, 0x2b, 0xb2, 0xa5, 0x4c, 0x9f, 0x41, 0xd1, - 0x75, 0x16, 0xd3, 0x51, 0xe8, 0x44, 0xae, 0x51, 0x42, 0x9d, 0x77, 0xdf, 0xa9, 0xb3, 0x11, 0x06, - 0x31, 0x0f, 0xe2, 0x6a, 0x33, 0x45, 0xb7, 0x14, 0xb6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 0x06, 0xe4, 0x51, 0xe0, 0xae, - 0x91, 0xc7, 0xb3, 0x54, 0x34, 0x2d, 0xd0, 0xd1, 0x73, 0xfa, 0x39, 0xe8, 0xe8, 0xbb, 0xa1, 0x62, - 0xb0, 0xee, 0x6e, 0xe6, 0x09, 0x93, 0x24, 0xf3, 0x57, 0x15, 0x34, 0x21, 0xd3, 0x8f, 0x40, 0x8f, - 0x9c, 0x60, 0xc2, 0x93, 0x09, 0x74, 0xeb, 0x1f, 0x6a, 0x98, 0x38, 0x63, 0x12, 0x42, 0x9f, 0x5e, - 0x6a, 0x49, 0xf7, 0x37, 0xb3, 0xb8, 0xde, 0x9d, 0x6e, 0x81, 0x3e, 0x77, 0x22, 0x67, 0x86, 0x51, - 0x2a, 0x32, 0x29, 0x54, 0x0e, 0x92, 0x22, 0xbe, 0x09, 0x37, 0x06, 0x43, 0x66, 0x1f, 0x5a, 0xc3, - 0x16, 0xeb, 0x1d, 0x1d, 0xb4, 0x88, 0x22, 0x8a, 0xf0, 0xd0, 0x7a, 0x21, 0xcb, 0x5a, 0x15, 0x65, - 0x60, 0x0f, 0x6b, 0x6d, 0xbb, 0x21, 0x4b, 0xb9, 0xde, 0x6b, 0x37, 0x65, 0x29, 0xb7, 0xed, 0xee, - 0x21, 0xd1, 0x2a, 0x8d, 0x34, 0x15, 0x75, 0x50, 0xe7, 0x44, 0xa1, 0x39, 0xc8, 0x4c, 0x3f, 0x21, - 0x2a, 0x7e, 0x1f, 0x92, 0x0c, 0x7e, 0xf7, 0x49, 0x16, 0xbf, 0x8f, 0x88, 0x26, 0xaa, 0xfd, 0x9b, - 0xd3, 0x30, 0xe6, 0x44, 0x17, 0x4a, 0xc6, 0xa1, 0xcb, 0x49, 0xae, 0x52, 0x05, 0x58, 0x85, 0x4c, - 0xec, 0x07, 0x61, 0xc0, 0x65, 0x0d, 0x06, 0xa7, 0xb3, 0x11, 0x8f, 0xa4, 0x23, 0xa3, 0x53, 0xdf, - 0xe7, 0x31, 0xc9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 0x4c, 0xed, 0x40, 0xa9, 0xd9, 0x7b, 0xde, - 0x4d, 0x4f, 0x31, 0xc5, 0x9b, 0xbd, 0xae, 0x45, 0xb4, 0x7a, 0x11, 0xf2, 0x73, 0x69, 0xdd, 0xfc, - 0x51, 0x05, 0x4d, 0xfc, 0x7b, 0xad, 0xda, 0xa7, 0xba, 0x41, 0xfb, 0x14, 0x8c, 0xcb, 0xed, 0xf3, - 0x01, 0xe4, 0x46, 0x02, 0x92, 0xb6, 0xfd, 0x5b, 0xef, 0xe2, 0xb3, 0x04, 0x53, 0xd9, 0x4f, 0x6b, - 0x6c, 0xed, 0x2e, 0x62, 0xac, 0xd6, 0x06, 0x87, 0x72, 0xdc, 0x2e, 0x87, 0x66, 0x46, 0xcc, 0xaf, - 0x81, 0x35, 0x24, 0x59, 0xe1, 0x75, 0x52, 0x0a, 0xe6, 0x7d, 0xd0, 0xb1, 0xa7, 0x88, 0x87, 0x3a, - 0x89, 0xc2, 0x19, 0x3a, 0xad, 0x33, 0x5c, 0x8b, 0x7f, 0xa0, 0x38, 0xc4, 0xa7, 0xd3, 0x59, 0x26, - 0x0e, 0xeb, 0x77, 0x7e, 0x79, 0x5b, 0x56, 0xdf, 0xbc, 0x2d, 0xab, 0x7f, 0xbc, 0x2d, 0xab, 0xdf, - 0x5d, 0x94, 0x95, 0x37, 0x17, 0x65, 0xe5, 0xf7, 0x8b, 0xb2, 0xf2, 0x55, 0x66, 0x3e, 0x1a, 0xe5, - 0xf0, 0xc7, 0x7a, 0xff, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x44, 0xbb, 0xc2, 0x3a, 0x7f, 0x0b, - 0x00, 0x00, + // 1692 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5f, 0x6f, 0xdb, 0xd6, + 0x15, 0x27, 0x25, 0x92, 0x92, 0x8e, 0x1c, 0xe7, 0xf6, 0x22,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xff, 0x82, + 0x28, 0x38, 0xb1, 0x0e, 0x0f, 0x9c, 0x6e, 0xad, 0xd1, 0xea, 0xec, 0x11, 0x55, 0x4c, 0x21, 0x66, + 0xa7, 0x63, 0xea, 0x36, 0x94, 0x1b, 0xdd, 0xe7, 0x9d, 0xec, 0xab, 0x48, 0xf1, 0x46, 0xb7, 0x63, + 0x13, 0xad, 0x5e, 0x82, 0xc2, 0x44, 0x5a, 0xb7, 0xfe, 0xa4, 0x82, 0x86, 0x2f, 0xb0, 0x45, 0xfb, + 0x54, 0x57, 0x68, 0x9f, 0xc8, 0xb8, 0xdc, 0x3e, 0x1f, 0x81, 0x31, 0x40, 0x48, 0xd6, 0xf6, 0xef, + 0x5c, 0xc5, 0x67, 0x29, 0xa6, 0xb2, 0x9d, 0xd5, 0xd8, 0xd2, 0x59, 0x70, 0xac, 0xd6, 0x7a, 0xfb, + 0x72, 0xdc, 0xce, 0x87, 0x66, 0x0e, 0xe7, 0x57, 0xcf, 0xee, 0x93, 0x3c, 0x7a, 0x9d, 0x96, 0x82, + 0xf5, 0x11, 0xe8, 0xa2, 0xa7, 0xe0, 0x45, 0x9d, 0xc4, 0xd1, 0x58, 0x38, 0xad, 0x33, 0xb1, 0xc6, + 0x97, 0x50, 0x12, 0x89, 0xab, 0xd3, 0x59, 0x2e, 0x89, 0xac, 0x3f, 0x6b, 0x60, 0xc8, 0x77, 0x0b, + 0xfd, 0xc5, 0xfc, 0x79, 0x23, 0xfb, 0xdd, 0xfb, 0x57, 0x3e, 0x6f, 0xaa, 0xcf, 0x04, 0xc6, 0x0e, + 0x93, 0xf8, 0x22, 0x7b, 0xea, 0x58, 0x47, 0x18, 0xb5, 0xf9, 0x36, 0x25, 0x90, 0x3f, 0xe3, 0x17, + 0x69, 0xd0, 0x70, 0x49, 0x1f, 0x83, 0x7e, 0xee, 0x06, 0x33, 0x99, 0x01, 0x6f, 0xce, 0xbd, 0x54, + 0xf5, 0x11, 0x42, 0x98, 0x44, 0x3e, 0xc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5f, 0x6d, 0x28, 0xbf, 0xce, 0x4d, 0x06, 0x03, 0x43, 0xfc, 0xf7, 0xde, 0xfe, 0x5f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x44, 0x64, 0x03, 0x7e, 0x8b, 0x0f, 0x00, 0x00, } func (m *Model) Marshal() (dAtA []byte, err error) { @@ -2514,6 +3123,434 @@ func (m *Model_Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Model_Struct) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Struct) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Fields) > 0 { + for k := range m.Fields { + v := m.Fields[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintModels(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintModels(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Model_Struct_Value) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Struct_Value) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Kind != nil { + { + size := m.Kind.Size() + i -= size + if _, err := m.Kind.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Model_Struct_Value_NullValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value_NullValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintModels(dAtA, i, uint64(m.NullValue)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} +func (m *Model_Struct_Value_NumberValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value_NumberValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x11 + return len(dAtA) - i, nil +} +func (m *Model_Struct_Value_StringValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = encodeVarintModels(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *Model_Struct_Value_BoolValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BoolValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + return len(dAtA) - i, nil +} +func (m *Model_Struct_Value_StructValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value_StructValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StructValue != nil { + { + size, err := m.StructValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *Model_Struct_Value_ListValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_Value_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ListValue != nil { + { + size, err := m.ListValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *Model_Struct_ListValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Struct_ListValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Struct_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Model_Account) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Account) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Avatar != nil { + { + size, err := m.Avatar.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintModels(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintModels(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Account_Avatar) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Account_Avatar) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Account_Avatar) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Avatar != nil { + { + size := m.Avatar.Size() + i -= size + if _, err := m.Avatar.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *Model_Account_Avatar_Image) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Account_Avatar_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Image != nil { + { + size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Model_Account_Avatar_Color) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Account_Avatar_Color) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Color) + copy(dAtA[i:], m.Color) + i = encodeVarintModels(dAtA, i, uint64(len(m.Color))) + i-- + dAtA[i] = 0x12 + return len(dAtA) - i, nil +} +func (m *Model_Image) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Image) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sizes) > 0 { + dAtA22 := make([]byte, len(m.Sizes)*10) + var j21 int + for _, num := range m.Sizes { + for num >= 1<<7 { + dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j21++ + } + dAtA22[j21] = uint8(num) + j21++ + } + i -= j21 + copy(dAtA[i:], dAtA22[:j21]) + i = encodeVarintModels(dAtA, i, uint64(j21)) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintModels(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Model_Video) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Model_Video) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Model_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sizes) > 0 { + dAtA24 := make([]byte, len(m.Sizes)*10) + var j23 int + for _, num := range m.Sizes { + for num >= 1<<7 { + dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j23++ + } + dAtA24[j23] = uint8(num) + j23++ + } + i -= j23 + copy(dAtA[i:], dAtA24[:j23]) + i = encodeVarintModels(dAtA, i, uint64(j23)) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintModels(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintModels(dAtA []byte, offset int, v uint64) int { offset -= sovModels(v) base := offset @@ -2957,6 +3994,211 @@ func (m *Model_Range) Size() (n int) { return n } +func (m *Model_Struct) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fields) > 0 { + for k, v := range m.Fields { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovModels(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovModels(uint64(len(k))) + l + n += mapEntrySize + 1 + sovModels(uint64(mapEntrySize)) + } + } + return n +} + +func (m *Model_Struct_Value) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Kind != nil { + n += m.Kind.Size() + } + return n +} + +func (m *Model_Struct_Value_NullValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovModels(uint64(m.NullValue)) + return n +} +func (m *Model_Struct_Value_NumberValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *Model_Struct_Value_StringValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StringValue) + n += 1 + l + sovModels(uint64(l)) + return n +} +func (m *Model_Struct_Value_BoolValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *Model_Struct_Value_StructValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StructValue != nil { + l = m.StructValue.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Struct_Value_ListValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ListValue != nil { + l = m.ListValue.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Struct_ListValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Values) > 0 { + for _, e := range m.Values { + l = e.Size() + n += 1 + l + sovModels(uint64(l)) + } + } + return n +} + +func (m *Model_Account) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if m.Avatar != nil { + l = m.Avatar.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} + +func (m *Model_Account_Avatar) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Avatar != nil { + n += m.Avatar.Size() + } + return n +} + +func (m *Model_Account_Avatar_Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Image != nil { + l = m.Image.Size() + n += 1 + l + sovModels(uint64(l)) + } + return n +} +func (m *Model_Account_Avatar_Color) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Color) + n += 1 + l + sovModels(uint64(l)) + return n +} +func (m *Model_Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if len(m.Sizes) > 0 { + l = 0 + for _, e := range m.Sizes { + l += sovModels(uint64(e)) + } + n += 1 + sovModels(uint64(l)) + l + } + return n +} + +func (m *Model_Video) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + if len(m.Sizes) > 0 { + l = 0 + for _, e := range m.Sizes { + l += sovModels(uint64(e)) + } + n += 1 + sovModels(uint64(l)) + l + } + return n +} + func sovModels(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3492,7 +4734,7 @@ func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Fields == nil { - m.Fields = &Struct{} + m.Fields = &Model_Struct{} } if err := m.Fields.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5295,6 +6537,1063 @@ func (m *Model_Range) Unmarshal(dAtA []byte) error { } return nil } +func (m *Model_Struct) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Struct: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Struct: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fields == nil { + m.Fields = make(map[string]*Model_Struct_Value) + } + var mapkey string + var mapvalue *Model_Struct_Value + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + 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 ErrIntOverflowModels + } + 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 ErrInvalidLengthModels + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthModels + } + 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 ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthModels + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthModels + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Model_Struct_Value{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Fields[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Value: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Value: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NullValue", wireType) + } + var v Model_Struct_NullValue + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Struct_NullValue(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Kind = &Model_Struct_Value_NullValue{v} + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Kind = &Model_Struct_Value_NumberValue{float64(math.Float64frombits(v))} + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = &Model_Struct_Value_StringValue{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Kind = &Model_Struct_Value_BoolValue{b} + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StructValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Struct{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Kind = &Model_Struct_Value_StructValue{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Struct_ListValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Kind = &Model_Struct_Value_ListValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Struct_ListValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Values = append(m.Values, &Model_Struct_Value{}) + if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Account) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Account: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Avatar", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Avatar == nil { + m.Avatar = &Model_Account_Avatar{} + } + if err := m.Avatar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Account_Avatar) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Avatar: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Avatar: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &Model_Image{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Avatar = &Model_Account_Avatar_Image{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Avatar = &Model_Account_Avatar_Color{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Image) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Image: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v Model_Image_Size + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Image_Size(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sizes = append(m.Sizes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.Sizes) == 0 { + m.Sizes = make([]Model_Image_Size, 0, elementCount) + } + for iNdEx < postIndex { + var v Model_Image_Size + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Image_Size(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sizes = append(m.Sizes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Sizes", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Model_Video) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Video: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Video: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v Model_Video_Size + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Video_Size(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sizes = append(m.Sizes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthModels + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthModels + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.Sizes) == 0 { + m.Sizes = make([]Model_Video_Size, 0, elementCount) + } + for iNdEx < postIndex { + var v Model_Video_Size + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= Model_Video_Size(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sizes = append(m.Sizes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Sizes", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipModels(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/pb/protos/account.proto b/pb/protos/account.proto deleted file mode 100644 index eae5a499d..000000000 --- a/pb/protos/account.proto +++ /dev/null @@ -1,186 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "file.proto"; - -/** - * Avatar of a user's account. It could be an image or color -*/ -message Avatar { - oneof avatar { - Image image = 1; // Image of the avatar. Contains hash and size - string color = 2; // Color of the avatar, if no image - } -} - -/** - * The Account message contains basic information about a user's account -*/ -message Account { - string id = 1; // User's thread id - string name = 2; // User name, that associated with this account - Avatar avatar = 3; // Avatar of a user's account -} - -/** - * Front-end-to-middleware request to create a new wallet -*/ -message WalletCreateRequest { - string rootPath = 1; // Path to a wallet directory -} - -/** - * Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error -*/ -message WalletCreateResponse { - Error error = 1; - string mnemonic = 2; // Mnemonic of a new account (sequence of words, divided by spaces) - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; // No error; mnemonic should be non-empty - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Root path is wrong - - FAILED_TO_CREATE_LOCAL_REPO = 101; - // ... - } - } -} - -/** - * Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath -*/ -message WalletRecoverRequest { - string rootPath = 1; // Path to a wallet directory - string mnemonic = 2; // Mnemonic of a wallet to recover -} - -/** - * Middleware-to-front-end response, that can contain a NULL error or a non-NULL error -*/ -message WalletRecoverResponse { - Error error = 1; // Error while trying to recover a wallet - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; // No error; wallet successfully recovered - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Root path or mnemonic is wrong - - FAILED_TO_CREATE_LOCAL_REPO = 101; - } - } -} - -/** - * Front end to middleware request-to-create-an account -*/ -message AccountCreateRequest { - string name = 1; // Account name - oneof avatar { - string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account - string avatarColor = 3; // Avatar color as an alternative for avatar image - } -} - -/** - * Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account -*/ -message AccountCreateResponse { - Error error = 1; // Error while trying to create an account - Account account = 2; // A newly created account; In case of a failure, i.e. error is non-NULL, the account model should contain empty/default-value fields - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; // No error; Account should be non-empty - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Avatar or name is not correct - - ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101; - ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102; - ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103; - } - } -} - -/** - * Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. - * Each of an account that would be found will come with an AccountAdd event -*/ -message AccountRecoverRequest {} - -/** - * Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account -*/ -message AccountRecoverResponse { - Error error = 1; // Error while trying to recover an account - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; // No error; - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; - - NO_ACCOUNTS_FOUND = 101; - NEED_TO_RECOVER_WALLET_FIRST = 102; - FAILED_TO_CREATE_LOCAL_REPO = 103; - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; - FAILED_TO_RUN_NODE = 105; - WALLET_RECOVER_NOT_PERFORMED = 106; - } - } -} - -/** - * Front end to middleware request-to-launch-a specific account using account id and a root path - * User can select an account from those, that came with an AccountAdd events -*/ -message AccountSelectRequest { - string id = 1; // Id of a selected account - string rootPath = 2; // Root path is optional, set if this is a first request -} - -/** - * Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account -*/ -message AccountSelectResponse { - Error error = 1; // Error while trying to launch/select an account - Account account = 2; // Selected account - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; // No error - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; // Id or root path is wrong - - FAILED_TO_CREATE_LOCAL_REPO = 101; - LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; - FAILED_TO_RUN_NODE = 103; - FAILED_TO_FIND_ACCOUNT_INFO = 104; - LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105; - } - } -} - -/** - * Message, that will be sent to the front on each account found after an AccountRecoverRequest -*/ -message AccountShow { - int64 index = 1; // Number of an account in an all found accounts list - Account account = 2; // An Account, that has been found for the mnemonic -} diff --git a/pb/protos/block-commands.proto b/pb/protos/block-commands.proto deleted file mode 100644 index eb7208a40..000000000 --- a/pb/protos/block-commands.proto +++ /dev/null @@ -1,91 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "models.proto"; -import "changes.proto"; - -message BlockHistoryMoveRequest { - string id = 1; - string contextBlockId = 2; - bool moveForward = 3; -} - -message BlockHistoryMoveResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - CAN_NOT_MOVE = 3; - // ... - } - } -} - -message BlockOpenRequest { - string id = 1; -} - -message BlockOpenResponse { - Error error = 1; - Model.Block.Header blockHeader = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } -} - -message BlockCreateRequest { - Model.Block.Header.Type type = 1; - string contextBlockId = 2; -} - -message BlockCreateResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } -} - -message BlockUpdateRequest { - BlockChanges changes = 1; -} - -message BlockUpdateResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } -} \ No newline at end of file diff --git a/pb/protos/block-events.proto b/pb/protos/block-events.proto deleted file mode 100644 index 7c88ee170..000000000 --- a/pb/protos/block-events.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "models.proto"; -import "changes.proto"; - - -message BlockShow { - Model.Block block = 1; -} - -message BlockUpdate { - BlockChanges changes = 1; -} - -message BlockCreate { - Model.Block block = 1; -} diff --git a/pb/protos/changes.proto b/pb/protos/changes.proto index f9309d2ff..af5b0b4d7 100644 --- a/pb/protos/changes.proto +++ b/pb/protos/changes.proto @@ -3,7 +3,6 @@ package anytype; option go_package = "pb"; import "models.proto"; - message Change { message Block { message Header { diff --git a/pb/protos/commands.proto b/pb/protos/commands.proto new file mode 100644 index 000000000..bf228419e --- /dev/null +++ b/pb/protos/commands.proto @@ -0,0 +1,418 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + +import "models.proto"; +import "changes.proto"; + +message Rpc { + message Block { + message HistoryMove { + message Request { + string id = 1; + string contextBlockId = 2; + bool moveForward = 3; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + CAN_NOT_MOVE = 3; + // ... + } + } + } + } + + message Open { + message Request { + string id = 1; + } + + message Response { + Error error = 1; + Model.Block.Header blockHeader = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message Create { + message Request { + Model.Block.Header.Type type = 1; + string contextBlockId = 2; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message Update { + message Request { + BlockChanges changes = 1; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message Wallet { + message Create { + /** + * Front-end-to-middleware request to create a new wallet + */ + message Request { + string rootPath = 1; // Path to a wallet directory + } + + /** + * Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error + */ + message Response { + Error error = 1; + string mnemonic = 2; // Mnemonic of a new account (sequence of words, divided by spaces) + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; // No error; mnemonic should be non-empty + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Root path is wrong + + FAILED_TO_CREATE_LOCAL_REPO = 101; + // ... + } + } + } + } + + message Recover { + /** + * Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath + */ + message Request { + string rootPath = 1; // Path to a wallet directory + string mnemonic = 2; // Mnemonic of a wallet to recover + } + + /** + * Middleware-to-front-end response, that can contain a NULL error or a non-NULL error + */ + message Response { + Error error = 1; // Error while trying to recover a wallet + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; // No error; wallet successfully recovered + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Root path or mnemonic is wrong + + FAILED_TO_CREATE_LOCAL_REPO = 101; + } + } + } + } + } + + message Account { + message Create { + /** + * Front end to middleware request-to-create-an account + */ + message Request { + string name = 1; // Account name + oneof avatar { + string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account + string avatarColor = 3; // Avatar color as an alternative for avatar image + } + } + + /** + * Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account + */ + message Response { + Error error = 1; // Error while trying to create an account + Model.Account account = 2; // A newly created account; In case of a failure, i.e. error is non-NULL, the account model should contain empty/default-value fields + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; // No error; Account should be non-empty + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Avatar or name is not correct + + ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101; + ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102; + ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103; + } + } + } + } + + message Recover { + /** + * Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. + * Each of an account that would be found will come with an AccountAdd event + */ + message Request {} + + /** + * Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account + */ + message Response { + Error error = 1; // Error while trying to recover an account + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; // No error; + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; + + NO_ACCOUNTS_FOUND = 101; + NEED_TO_RECOVER_WALLET_FIRST = 102; + FAILED_TO_CREATE_LOCAL_REPO = 103; + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104; + FAILED_TO_RUN_NODE = 105; + WALLET_RECOVER_NOT_PERFORMED = 106; + } + } + } + } + + message Select { + /** + * Front end to middleware request-to-launch-a specific account using account id and a root path + * User can select an account from those, that came with an AccountAdd events + */ + message Request { + string id = 1; // Id of a selected account + string rootPath = 2; // Root path is optional, set if this is a first request + } + + /** + * Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account + */ + message Response { + Error error = 1; // Error while trying to launch/select an account + Model.Account account = 2; // Selected account + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; // No error + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; // Id or root path is wrong + + FAILED_TO_CREATE_LOCAL_REPO = 101; + LOCAL_REPO_EXISTS_BUT_CORRUPTED = 102; + FAILED_TO_RUN_NODE = 103; + FAILED_TO_FIND_ACCOUNT_INFO = 104; + LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105; + } + } + } + } + } + + message Version { + message Get { + message Request {} + + message Response { + Error error = 1; + string version = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + VERSION_IS_EMPTY = 3; + + NOT_FOUND = 101; + TIMEOUT = 102; + } + } + } + } + } + + message Log { + message Send { + message Request { + string message = 1; + Level level = 2; + + enum Level { + DEBUG = 0; + ERROR = 1; + FATAL = 2; + INFO = 3; + PANIC = 4; + WARNING = 5; + } + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + + NOT_FOUND = 101; + TIMEOUT = 102; + } + } + } + } + } + + message Ipfs { + message GetFile { + message Request { + string id = 1; + } + + message Response { + Error error = 1; + bytes data = 2; + string media = 3; + string name = 4; + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + + NOT_FOUND = 101; + TIMEOUT = 102; + } + } + } + } + } + + message Image { + message GetBlob { + message Request { + string id = 1; + Model.Image.Size size = 2; + } + + message Response { + Error error = 1; + bytes blob = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + + NOT_FOUND = 101; + TIMEOUT = 102; + } + } + } + } + + message GetFile { + message Request { + string id = 1; + Model.Image.Size size = 2; + } + + message Response { + Error error = 1; + string localPath = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + + NOT_FOUND = 101; + TIMEOUT = 102; + } + } + } + } + } +} diff --git a/pb/protos/edit.proto b/pb/protos/edit.proto deleted file mode 100644 index 1a4c08597..000000000 --- a/pb/protos/edit.proto +++ /dev/null @@ -1,62 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "models.proto"; -import "account.proto"; - - -/** - * Middleware to front end event message, that will be sent in this scenario: - * Precondition: user A opened a block - * 1. User B opens the same block - * 2. User A receives a message about p.1 -*/ -message UserBlockJoin { - Account account = 1; // Account of the user, that opened a block -} - -/** - * Middleware to front end event message, that will be sent in this scenario: - * Precondition: user A and user B opened the same block - * 1. User B closes the block - * 2. User A receives a message about p.1 -*/ -message UserBlockLeft { - Account account = 1; // Account of the user, that left the block -} - -/** - * Middleware to front end event message, that will be sent in this scenario: - * Precondition: user A and user B opened the same block - * 1. User B sets cursor or selects a text region into a text block - * 2. User A receives a message about p.1 -*/ -message UserBlockTextRange { - Account account = 1; // Account of the user, that selected a text - string blockId = 2; // Id of the text block, that have a selection - Model.Range range = 3; // Range of the selection -} - -/** - * Middleware to front end event message, that will be sent in this scenario: - * Precondition: user A and user B opened the same block - * 1. User B selects some inner blocks - * 2. User A receives a message about p.1 -*/ -message UserBlockSelectRange { - Account account = 1; // Account of the user, that selected blocks - repeated string blockIdsArray = 2; // Ids of selected blocks. -} - -/** - * Middleware to front end event message, that will be sent on one of this scenarios: - * Precondition: user A opened a block - * 1. User A drops a set of files/pictures/videos - * 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. -*/ -message FilesUpload { - repeated string filePath = 1; // filepaths to the files - string blockId = 2; // if empty => create new blocks -} - diff --git a/pb/protos/event.proto b/pb/protos/event.proto deleted file mode 100644 index 1d47376b7..000000000 --- a/pb/protos/event.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -import "account.proto"; -import "block-events.proto"; -import "edit.proto"; - -message Event { - oneof message { - AccountShow accountShow = 1; // show wallet's accounts that were loaded from local or remote source - BlockShow blockShow = 2; - BlockUpdate blockUpdate = 3; - BlockCreate blockCreate = 4; - - UserBlockTextRange userBlockTextRange = 5; - UserBlockJoin userBlockJoin = 6; - UserBlockLeft userBlockLeft = 7; - UserBlockSelectRange userBlockSelectRange = 8; - - FilesUpload filesUpload = 9; - } -} diff --git a/pb/protos/events.proto b/pb/protos/events.proto new file mode 100644 index 000000000..43a5b98b7 --- /dev/null +++ b/pb/protos/events.proto @@ -0,0 +1,105 @@ +syntax="proto3"; +package anytype; +option go_package = "pb"; + +import "models.proto"; +import "changes.proto"; + +message Event { + oneof message { + Account.Show accountShow = 1; // show wallet's accounts that were loaded from local or remote source + Block.Show blockShow = 2; + Block.Update blockUpdate = 3; + Block.Create blockCreate = 4; + + User.Block.TextRange userBlockTextRange = 5; + User.Block.Join userBlockJoin = 6; + User.Block.Left userBlockLeft = 7; + User.Block.SelectRange userBlockSelectRange = 8; + + Block.FilesUpload filesUpload = 9; + } + + message Account { + /** + * Message, that will be sent to the front on each account found after an AccountRecoverRequest + */ + message Show { + int64 index = 1; // Number of an account in an all found accounts list + Account account = 2; // An Account, that has been found for the mnemonic + } + } + + message Block { + message Show { + Model.Block block = 1; + } + + message Update { + BlockChanges changes = 1; + } + + message Create { + Model.Block block = 1; + } + + /** + * Middleware to front end event message, that will be sent on one of this scenarios: + * Precondition: user A opened a block + * 1. User A drops a set of files/pictures/videos + * 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. + */ + message FilesUpload { + repeated string filePath = 1; // filepaths to the files + string blockId = 2; // if empty => create new blocks + } + } + + message User { + message Block { + + /** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A opened a block + * 1. User B opens the same block + * 2. User A receives a message about p.1 + */ + message Join { + Account account = 1; // Account of the user, that opened a block + } + + /** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A and user B opened the same block + * 1. User B closes the block + * 2. User A receives a message about p.1 + */ + message Left { + Account account = 1; // Account of the user, that left the block + } + + /** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A and user B opened the same block + * 1. User B sets cursor or selects a text region into a text block + * 2. User A receives a message about p.1 + */ + message TextRange { + Account account = 1; // Account of the user, that selected a text + string blockId = 2; // Id of the text block, that have a selection + Model.Range range = 3; // Range of the selection + } + + /** + * Middleware to front end event message, that will be sent in this scenario: + * Precondition: user A and user B opened the same block + * 1. User B selects some inner blocks + * 2. User A receives a message about p.1 + */ + message SelectRange { + Account account = 1; // Account of the user, that selected blocks + repeated string blockIdsArray = 2; // Ids of selected blocks. + } + } + } +} diff --git a/pb/protos/file.proto b/pb/protos/file.proto deleted file mode 100644 index a870e3187..000000000 --- a/pb/protos/file.proto +++ /dev/null @@ -1,103 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -enum ImageSize { - LARGE = 0; - SMALL = 1; - THUMB = 2; -} - -message Image { - string id = 1; - repeated ImageSize sizes = 2; -} - -enum VideoSize { - SD_360p = 0; - SD_480p = 1; - HD_720p = 2; - HD_1080p = 3; - UHD_1440p = 4; - UHD_2160p = 5; -} - -message Video { - string id = 1; - repeated VideoSize sizes = 2; -} - -message IpfsGetFileRequest { - string id = 1; -} - -message IpfsGetFileResponse { - Error error = 1; - bytes data = 2; - string media = 3; - string name = 4; - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - - NOT_FOUND = 101; - TIMEOUT = 102; - } - } -} - -message ImageGetBlobRequest { - string id = 1; - ImageSize size = 2; -} - -message ImageGetBlobResponse { - Error error = 1; - bytes blob = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - - NOT_FOUND = 101; - TIMEOUT = 102; - } - } -} - -message ImageGetFileRequest { - string id = 1; - ImageSize size = 2; -} - -message ImageGetFileResponse { - Error error = 1; - string localPath = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - - NOT_FOUND = 101; - TIMEOUT = 102; - } - } -} diff --git a/pb/protos/misc.proto b/pb/protos/misc.proto deleted file mode 100644 index 44d5adab5..000000000 --- a/pb/protos/misc.proto +++ /dev/null @@ -1,57 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - -message VersionGetRequest {} - -message VersionGetResponse { - Error error = 1; - string version = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - VERSION_IS_EMPTY = 3; - - NOT_FOUND = 101; - TIMEOUT = 102; - } - } -} - -message LogSendRequest { - string message = 1; - Level level = 2; - - enum Level { - DEBUG = 0; - ERROR = 1; - FATAL = 2; - INFO = 3; - PANIC = 4; - WARNING = 5; - } -} - -message LogSendResponse { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - - NOT_FOUND = 101; - TIMEOUT = 102; - } - } -} diff --git a/pb/protos/models.proto b/pb/protos/models.proto index 42a977ab8..0e4b7aa4b 100644 --- a/pb/protos/models.proto +++ b/pb/protos/models.proto @@ -2,8 +2,6 @@ syntax="proto3"; package anytype; option go_package = "pb"; -import "struct.proto"; - message Model { message Block { Header header = 1; @@ -177,6 +175,80 @@ message Model { message Range { int32 from = 1; int32 to = 2; - } + } + + message Struct { + // Unordered map of dynamically typed values. + map fields = 1; + + // `Value` represents a dynamically typed value which can be either + // null, a number, a string, a boolean, a recursive struct value, or a + // list of values. A producer of value is expected to set one of that + // variants, absence of any variant indicates an error. + message Value { + oneof kind { // The kind of value. + NullValue null_value = 1; // Represents a null value. + double number_value = 2; // Represents a double value. + string string_value = 3; // Represents a string value. + bool bool_value = 4; // Represents a boolean value. + Struct struct_value = 5; // Represents a structured value. + ListValue list_value = 6; // Represents a repeated `Value`. + } + } + + // `NullValue` is a singleton enumeration to represent the null value for the + enum NullValue { + NULL_VALUE = 0; + } + + // `ListValue` is a wrapper around a repeated field of values. + message ListValue { + repeated Value values = 1; + } + } + + /** + * Contains basic information about user account + */ + message Account { + string id = 1; // User's thread id + string name = 2; // User name, that associated with this account + Avatar avatar = 3; // Avatar of a user's account + + /** + * Avatar of a user's account. It could be an image or color + */ + message Avatar { + oneof avatar { + Image image = 1; // Image of the avatar. Contains hash and size + string color = 2; // Color of the avatar, if no image + } + } + } + + message Image { + string id = 1; + repeated Size sizes = 2; + + enum Size { + LARGE = 0; + SMALL = 1; + THUMB = 2; + } + } + + message Video { + string id = 1; + repeated Size sizes = 2; + + enum Size { + SD_360p = 0; + SD_480p = 1; + HD_720p = 2; + HD_1080p = 3; + UHD_1440p = 4; + UHD_2160p = 5; + } + } } diff --git a/pb/protos/service/service.proto b/pb/protos/service/service.proto index 36eff7a6d..393940487 100644 --- a/pb/protos/service/service.proto +++ b/pb/protos/service/service.proto @@ -2,26 +2,23 @@ syntax="proto3"; package anytype; option go_package = "lib"; -import "account.proto"; -import "file.proto"; -import "misc.proto"; -import "block-commands.proto"; +import "commands.proto"; service ClientCommands { - rpc WalletCreate (anytype.WalletCreateRequest) returns (anytype.WalletCreateResponse); - rpc WalletRecover (anytype.WalletRecoverRequest) returns (anytype.WalletRecoverResponse); - rpc AccountRecover (anytype.AccountRecoverRequest) returns (anytype.AccountRecoverResponse); - rpc AccountCreate (anytype.AccountCreateRequest) returns (anytype.AccountCreateResponse); - rpc AccountSelect (anytype.AccountSelectRequest) returns (anytype.AccountSelectResponse); + rpc WalletCreate (anytype.Rpc.Wallet.Create.Request) returns (anytype.Rpc.Wallet.Create.Response); + rpc WalletRecover (anytype.Rpc.Wallet.Recover.Request) returns (anytype.Rpc.Wallet.Recover.Response); + rpc AccountRecover (anytype.Rpc.Account.Recover.Request) returns (anytype.Rpc.Account.Recover.Response); + rpc AccountCreate (anytype.Rpc.Account.Create.Request) returns (anytype.Rpc.Account.Create.Response); + rpc AccountSelect (anytype.Rpc.Account.Select.Request) returns (anytype.Rpc.Account.Select.Response); - rpc ImageGetBlob (anytype.ImageGetBlobRequest) returns (anytype.ImageGetBlobResponse); + rpc ImageGetBlob (anytype.Rpc.Image.GetBlob.Request) returns (anytype.Rpc.Image.GetBlob.Response); - rpc VersionGet (VersionGetRequest) returns (VersionGetResponse); - rpc LogSend (LogSendRequest) returns (LogSendResponse); + rpc VersionGet (anytype.Rpc.Version.Get.Request) returns (anytype.Rpc.Version.Get.Response); + rpc LogSend (anytype.Rpc.Log.Send.Request) returns (anytype.Rpc.Log.Send.Response); - rpc BlockOpen (BlockOpenRequest) returns (BlockOpenResponse); - rpc BlockCreate (BlockCreateRequest) returns (BlockCreateResponse); - rpc BlockUpdate (BlockUpdateRequest) returns (BlockUpdateResponse); - rpc BlockHistoryMove (BlockHistoryMoveRequest) returns (BlockHistoryMoveResponse); - // rpc BlockFilesUpload (BlockHistoryMoveRequest) returns (BlockHistoryMoveResponse); + rpc BlockOpen (anytype.Rpc.Block.Open.Request) returns (anytype.Rpc.Block.Open.Response); + rpc BlockCreate (anytype.Rpc.Block.Create.Request) returns (anytype.Rpc.Block.Create.Response); + rpc BlockUpdate (anytype.Rpc.Block.Update.Request) returns (anytype.Rpc.Block.Update.Response); + rpc BlockHistoryMove (anytype.Rpc.Block.HistoryMove.Request) returns (anytype.Rpc.Block.HistoryMove.Response); + // rpc BlockFilesUpload (Block Rpc.History.Move.Request) returns (BlockRpc..History Move.Response); } diff --git a/pb/protos/struct.proto b/pb/protos/struct.proto deleted file mode 100644 index 1fb063f24..000000000 --- a/pb/protos/struct.proto +++ /dev/null @@ -1,50 +0,0 @@ -syntax="proto3"; -package anytype; -option go_package = "pb"; - - -message Struct { - // Unordered map of dynamically typed values. - map fields = 1; -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -message Value { - // The kind of value. - oneof kind { - // Represents a null value. - NullValue null_value = 1; - // Represents a double value. - double number_value = 2; - // Represents a string value. - string string_value = 3; - // Represents a boolean value. - bool bool_value = 4; - // Represents a structured value. - Struct struct_value = 5; - // Represents a repeated `Value`. - ListValue list_value = 6; - } -} - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -enum NullValue { - // Null value. - NULL_VALUE = 0; -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -message ListValue { - // Repeated field of dynamically typed values. - repeated Value values = 1; -} \ No newline at end of file diff --git a/pb/struct.pb.go b/pb/struct.pb.go deleted file mode 100644 index 37aa786b7..000000000 --- a/pb/struct.pb.go +++ /dev/null @@ -1,1230 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: struct.proto - -package pb - -import ( - encoding_binary "encoding/binary" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -type NullValue int32 - -const ( - // Null value. - NullValue_NULL_VALUE NullValue = 0 -) - -var NullValue_name = map[int32]string{ - 0: "NULL_VALUE", -} - -var NullValue_value = map[string]int32{ - "NULL_VALUE": 0, -} - -func (x NullValue) String() string { - return proto.EnumName(NullValue_name, int32(x)) -} - -func (NullValue) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0605f6bcb0ae6db1, []int{0} -} - -type Struct struct { - // Unordered map of dynamically typed values. - Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *Struct) Reset() { *m = Struct{} } -func (m *Struct) String() string { return proto.CompactTextString(m) } -func (*Struct) ProtoMessage() {} -func (*Struct) Descriptor() ([]byte, []int) { - return fileDescriptor_0605f6bcb0ae6db1, []int{0} -} -func (m *Struct) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Struct.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Struct) XXX_Merge(src proto.Message) { - xxx_messageInfo_Struct.Merge(m, src) -} -func (m *Struct) XXX_Size() int { - return m.Size() -} -func (m *Struct) XXX_DiscardUnknown() { - xxx_messageInfo_Struct.DiscardUnknown(m) -} - -var xxx_messageInfo_Struct proto.InternalMessageInfo - -func (m *Struct) GetFields() map[string]*Value { - if m != nil { - return m.Fields - } - return nil -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -type Value struct { - // The kind of value. - // - // Types that are valid to be assigned to Kind: - // *Value_NullValue - // *Value_NumberValue - // *Value_StringValue - // *Value_BoolValue - // *Value_StructValue - // *Value_ListValue - Kind isValue_Kind `protobuf_oneof:"kind"` -} - -func (m *Value) Reset() { *m = Value{} } -func (m *Value) String() string { return proto.CompactTextString(m) } -func (*Value) ProtoMessage() {} -func (*Value) Descriptor() ([]byte, []int) { - return fileDescriptor_0605f6bcb0ae6db1, []int{1} -} -func (m *Value) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Value.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_Value.Merge(m, src) -} -func (m *Value) XXX_Size() int { - return m.Size() -} -func (m *Value) XXX_DiscardUnknown() { - xxx_messageInfo_Value.DiscardUnknown(m) -} - -var xxx_messageInfo_Value proto.InternalMessageInfo - -type isValue_Kind interface { - isValue_Kind() - MarshalTo([]byte) (int, error) - Size() int -} - -type Value_NullValue struct { - NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=anytype.NullValue,oneof" json:"null_value,omitempty"` -} -type Value_NumberValue struct { - NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof" json:"number_value,omitempty"` -} -type Value_StringValue struct { - StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"` -} -type Value_BoolValue struct { - BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"` -} -type Value_StructValue struct { - StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof" json:"struct_value,omitempty"` -} -type Value_ListValue struct { - ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof" json:"list_value,omitempty"` -} - -func (*Value_NullValue) isValue_Kind() {} -func (*Value_NumberValue) isValue_Kind() {} -func (*Value_StringValue) isValue_Kind() {} -func (*Value_BoolValue) isValue_Kind() {} -func (*Value_StructValue) isValue_Kind() {} -func (*Value_ListValue) isValue_Kind() {} - -func (m *Value) GetKind() isValue_Kind { - if m != nil { - return m.Kind - } - return nil -} - -func (m *Value) GetNullValue() NullValue { - if x, ok := m.GetKind().(*Value_NullValue); ok { - return x.NullValue - } - return NullValue_NULL_VALUE -} - -func (m *Value) GetNumberValue() float64 { - if x, ok := m.GetKind().(*Value_NumberValue); ok { - return x.NumberValue - } - return 0 -} - -func (m *Value) GetStringValue() string { - if x, ok := m.GetKind().(*Value_StringValue); ok { - return x.StringValue - } - return "" -} - -func (m *Value) GetBoolValue() bool { - if x, ok := m.GetKind().(*Value_BoolValue); ok { - return x.BoolValue - } - return false -} - -func (m *Value) GetStructValue() *Struct { - if x, ok := m.GetKind().(*Value_StructValue); ok { - return x.StructValue - } - return nil -} - -func (m *Value) GetListValue() *ListValue { - if x, ok := m.GetKind().(*Value_ListValue); ok { - return x.ListValue - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Value) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Value_NullValue)(nil), - (*Value_NumberValue)(nil), - (*Value_StringValue)(nil), - (*Value_BoolValue)(nil), - (*Value_StructValue)(nil), - (*Value_ListValue)(nil), - } -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -type ListValue struct { - // Repeated field of dynamically typed values. - Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` -} - -func (m *ListValue) Reset() { *m = ListValue{} } -func (m *ListValue) String() string { return proto.CompactTextString(m) } -func (*ListValue) ProtoMessage() {} -func (*ListValue) Descriptor() ([]byte, []int) { - return fileDescriptor_0605f6bcb0ae6db1, []int{2} -} -func (m *ListValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListValue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListValue.Merge(m, src) -} -func (m *ListValue) XXX_Size() int { - return m.Size() -} -func (m *ListValue) XXX_DiscardUnknown() { - xxx_messageInfo_ListValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ListValue proto.InternalMessageInfo - -func (m *ListValue) GetValues() []*Value { - if m != nil { - return m.Values - } - return nil -} - -func init() { - proto.RegisterEnum("anytype.NullValue", NullValue_name, NullValue_value) - proto.RegisterType((*Struct)(nil), "anytype.Struct") - proto.RegisterMapType((map[string]*Value)(nil), "anytype.Struct.FieldsEntry") - proto.RegisterType((*Value)(nil), "anytype.Value") - proto.RegisterType((*ListValue)(nil), "anytype.ListValue") -} - -func init() { proto.RegisterFile("struct.proto", fileDescriptor_0605f6bcb0ae6db1) } - -var fileDescriptor_0605f6bcb0ae6db1 = []byte{ - // 356 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x31, 0x4f, 0xc2, 0x40, - 0x14, 0xc7, 0x7b, 0x05, 0xaa, 0x7d, 0x25, 0x48, 0x6e, 0x22, 0x62, 0x6a, 0x83, 0xc6, 0x34, 0x0e, - 0x1d, 0xa8, 0x83, 0x71, 0x93, 0x04, 0x83, 0x49, 0xc3, 0x50, 0x03, 0x83, 0x0b, 0xa1, 0x50, 0x4d, - 0xc3, 0xd9, 0x92, 0xf6, 0x6a, 0xd2, 0x6f, 0xe0, 0xe8, 0xec, 0x27, 0x72, 0x64, 0x74, 0x34, 0xf0, - 0x45, 0xcc, 0xdd, 0xb5, 0x87, 0x61, 0xeb, 0xfb, 0xbf, 0xdf, 0x7b, 0xaf, 0xff, 0x7f, 0x0b, 0xcd, - 0x8c, 0xa6, 0xf9, 0x82, 0x3a, 0xeb, 0x34, 0xa1, 0x09, 0x3e, 0x9a, 0xc7, 0x05, 0x2d, 0xd6, 0x61, - 0xef, 0x03, 0x81, 0xf6, 0xc4, 0x3b, 0xd8, 0x05, 0xed, 0x25, 0x0a, 0xc9, 0x32, 0xeb, 0x20, 0xab, - 0x66, 0x1b, 0xfd, 0xae, 0x53, 0x42, 0x8e, 0x00, 0x9c, 0x07, 0xde, 0x1d, 0xc6, 0x34, 0x2d, 0xfc, - 0x12, 0x3d, 0x7d, 0x04, 0xe3, 0x9f, 0x8c, 0xdb, 0x50, 0x5b, 0x85, 0x45, 0x07, 0x59, 0xc8, 0xd6, - 0x7d, 0xf6, 0x88, 0x2f, 0xa1, 0xf1, 0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a6, 0xf2, 0xac, - 0xae, 0x83, 0x40, 0xe3, 0xff, 0x89, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0x75, 0x2b, 0x51, 0xe3, - 0x37, 0x02, 0x00, 0x00, -} - -func (m *Struct) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Struct) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Struct) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Fields) > 0 { - for k := range m.Fields { - v := m.Fields[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStruct(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintStruct(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintStruct(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Value) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Value) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Kind != nil { - { - size := m.Kind.Size() - i -= size - if _, err := m.Kind.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *Value_NullValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_NullValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintStruct(dAtA, i, uint64(m.NullValue)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} -func (m *Value_NumberValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_NumberValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) - i-- - dAtA[i] = 0x11 - return len(dAtA) - i, nil -} -func (m *Value_StringValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.StringValue) - copy(dAtA[i:], m.StringValue) - i = encodeVarintStruct(dAtA, i, uint64(len(m.StringValue))) - i-- - dAtA[i] = 0x1a - return len(dAtA) - i, nil -} -func (m *Value_BoolValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i-- - if m.BoolValue { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - return len(dAtA) - i, nil -} -func (m *Value_StructValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_StructValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StructValue != nil { - { - size, err := m.StructValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStruct(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *Value_ListValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Value_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ListValue != nil { - { - size, err := m.ListValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStruct(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *ListValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStruct(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintStruct(dAtA []byte, offset int, v uint64) int { - offset -= sovStruct(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Struct) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Fields) > 0 { - for k, v := range m.Fields { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovStruct(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovStruct(uint64(len(k))) + l - n += mapEntrySize + 1 + sovStruct(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Value) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Kind != nil { - n += m.Kind.Size() - } - return n -} - -func (m *Value_NullValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovStruct(uint64(m.NullValue)) - return n -} -func (m *Value_NumberValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 9 - return n -} -func (m *Value_StringValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.StringValue) - n += 1 + l + sovStruct(uint64(l)) - return n -} -func (m *Value_BoolValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *Value_StructValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StructValue != nil { - l = m.StructValue.Size() - n += 1 + l + sovStruct(uint64(l)) - } - return n -} -func (m *Value_ListValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ListValue != nil { - l = m.ListValue.Size() - n += 1 + l + sovStruct(uint64(l)) - } - return n -} -func (m *ListValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Values) > 0 { - for _, e := range m.Values { - l = e.Size() - n += 1 + l + sovStruct(uint64(l)) - } - } - return n -} - -func sovStruct(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozStruct(x uint64) (n int) { - return sovStruct(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Struct) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Struct: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Struct: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStruct - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStruct - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fields == nil { - m.Fields = make(map[string]*Value) - } - var mapkey string - var mapvalue *Value - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - 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 ErrIntOverflowStruct - } - 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 ErrInvalidLengthStruct - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthStruct - } - 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 ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthStruct - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthStruct - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Value{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipStruct(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Fields[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStruct(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Value) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Value: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Value: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NullValue", wireType) - } - var v NullValue - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= NullValue(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Kind = &Value_NullValue{v} - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Kind = &Value_NumberValue{float64(math.Float64frombits(v))} - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthStruct - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStruct - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = &Value_StringValue{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BoolValue", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Kind = &Value_BoolValue{b} - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StructValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStruct - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStruct - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Struct{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Kind = &Value_StructValue{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStruct - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStruct - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ListValue{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Kind = &Value_ListValue{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStruct(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStruct - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStruct - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStruct - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, &Value{}) - if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStruct(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthStruct - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipStruct(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStruct - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStruct - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStruct - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthStruct - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupStruct - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthStruct - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthStruct = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowStruct = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupStruct = fmt.Errorf("proto: unexpected end of group") -) From 9978b972ba81bc6d00961dccf3c71b51c68d5b1e Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Mon, 4 Nov 2019 15:58:06 +0300 Subject: [PATCH 18/24] generate docs for proto files --- Makefile | 3 +- docs/proto.md | 1994 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1996 insertions(+), 1 deletion(-) create mode 100644 docs/proto.md diff --git a/Makefile b/Makefile index bade5659f..847eb0a72 100644 --- a/Makefile +++ b/Makefile @@ -67,4 +67,5 @@ setup-protoc: protos: $(eval P_STRUCT := Mgoogle/protobuf/struct.proto=github.com/golang/protobuf/ptypes/struct) cd pb/protos; protoc --gogofaster_out=$(P_STRUCT):.. *.proto - cd pb/protos/service; PACKAGE_PATH=github.com/anytypeio/go-anytype-middleware/pb protoc -I=.. -I=. --gogofast_out=plugins=gomobile:../../../lib service.proto \ No newline at end of file + cd pb/protos/service; PACKAGE_PATH=github.com/anytypeio/go-anytype-middleware/pb protoc -I=.. -I=. --gogofast_out=plugins=gomobile:../../../lib service.proto + cd pb/protos; protoc --doc_out=../../docs --doc_opt=markdown,proto.md service/*.proto *.proto diff --git a/docs/proto.md b/docs/proto.md new file mode 100644 index 000000000..a96f7e17d --- /dev/null +++ b/docs/proto.md @@ -0,0 +1,1994 @@ +# Protocol Documentation + + +## Table of Contents + +- [service/service.proto](#service/service.proto) + + + + - [ClientCommands](#anytype.ClientCommands) + + +- [account.proto](#account.proto) + - [Account](#anytype.Account) + - [AccountCreateRequest](#anytype.AccountCreateRequest) + - [AccountCreateResponse](#anytype.AccountCreateResponse) + - [AccountCreateResponse.Error](#anytype.AccountCreateResponse.Error) + - [AccountRecoverRequest](#anytype.AccountRecoverRequest) + - [AccountRecoverResponse](#anytype.AccountRecoverResponse) + - [AccountRecoverResponse.Error](#anytype.AccountRecoverResponse.Error) + - [AccountSelectRequest](#anytype.AccountSelectRequest) + - [AccountSelectResponse](#anytype.AccountSelectResponse) + - [AccountSelectResponse.Error](#anytype.AccountSelectResponse.Error) + - [AccountShow](#anytype.AccountShow) + - [AccountStartRequest](#anytype.AccountStartRequest) + - [AccountStartResponse](#anytype.AccountStartResponse) + - [AccountStartResponse.Error](#anytype.AccountStartResponse.Error) + - [Avatar](#anytype.Avatar) + - [WalletCreateRequest](#anytype.WalletCreateRequest) + - [WalletCreateResponse](#anytype.WalletCreateResponse) + - [WalletCreateResponse.Error](#anytype.WalletCreateResponse.Error) + - [WalletRecoverRequest](#anytype.WalletRecoverRequest) + - [WalletRecoverResponse](#anytype.WalletRecoverResponse) + - [WalletRecoverResponse.Error](#anytype.WalletRecoverResponse.Error) + + - [AccountCreateResponse.Error.Code](#anytype.AccountCreateResponse.Error.Code) + - [AccountRecoverResponse.Error.Code](#anytype.AccountRecoverResponse.Error.Code) + - [AccountSelectResponse.Error.Code](#anytype.AccountSelectResponse.Error.Code) + - [AccountStartResponse.Error.Code](#anytype.AccountStartResponse.Error.Code) + - [WalletCreateResponse.Error.Code](#anytype.WalletCreateResponse.Error.Code) + - [WalletRecoverResponse.Error.Code](#anytype.WalletRecoverResponse.Error.Code) + + + + +- [block.proto](#block.proto) + - [Block](#anytype.Block) + - [BlockAtomicChange](#anytype.BlockAtomicChange) + - [BlockChanges](#anytype.BlockChanges) + - [BlockConnections](#anytype.BlockConnections) + - [BlockConnectionsList](#anytype.BlockConnectionsList) + - [BlockContentDashboard](#anytype.BlockContentDashboard) + - [BlockContentDashboardChange](#anytype.BlockContentDashboardChange) + - [BlockContentDataview](#anytype.BlockContentDataview) + - [BlockContentMedia](#anytype.BlockContentMedia) + - [BlockContentPage](#anytype.BlockContentPage) + - [BlockContentPageChange](#anytype.BlockContentPageChange) + - [BlockContentText](#anytype.BlockContentText) + - [BlockContentText.Mark](#anytype.BlockContentText.Mark) + - [BlockContentText.Marks](#anytype.BlockContentText.Marks) + - [BlockContentTextChange](#anytype.BlockContentTextChange) + - [BlockCreate](#anytype.BlockCreate) + - [BlockCreateRequest](#anytype.BlockCreateRequest) + - [BlockCreateResponse](#anytype.BlockCreateResponse) + - [BlockCreateResponse.Error](#anytype.BlockCreateResponse.Error) + - [BlockHeader](#anytype.BlockHeader) + - [BlockHeaderChange](#anytype.BlockHeaderChange) + - [BlockHeadersList](#anytype.BlockHeadersList) + - [BlockOpenRequest](#anytype.BlockOpenRequest) + - [BlockOpenResponse](#anytype.BlockOpenResponse) + - [BlockOpenResponse.Error](#anytype.BlockOpenResponse.Error) + - [BlockPermissions](#anytype.BlockPermissions) + - [BlockShow](#anytype.BlockShow) + - [BlockUpdate](#anytype.BlockUpdate) + - [BlockUpdateRequest](#anytype.BlockUpdateRequest) + - [BlockUpdateResponse](#anytype.BlockUpdateResponse) + - [BlockUpdateResponse.Error](#anytype.BlockUpdateResponse.Error) + - [BlocksList](#anytype.BlocksList) + - [Range](#anytype.Range) + + - [BlockContentDashboard.Style](#anytype.BlockContentDashboard.Style) + - [BlockContentPage.Style](#anytype.BlockContentPage.Style) + - [BlockContentText.Mark.Type](#anytype.BlockContentText.Mark.Type) + - [BlockContentText.MarkerType](#anytype.BlockContentText.MarkerType) + - [BlockContentText.Style](#anytype.BlockContentText.Style) + - [BlockCreateResponse.Error.Code](#anytype.BlockCreateResponse.Error.Code) + - [BlockOpenResponse.Error.Code](#anytype.BlockOpenResponse.Error.Code) + - [BlockType](#anytype.BlockType) + - [BlockUpdateResponse.Error.Code](#anytype.BlockUpdateResponse.Error.Code) + + + + +- [edit.proto](#edit.proto) + - [UserBlockFocus](#anytype.UserBlockFocus) + - [UserBlockJoin](#anytype.UserBlockJoin) + - [UserBlockLeft](#anytype.UserBlockLeft) + - [UserBlockSelectRange](#anytype.UserBlockSelectRange) + - [UserBlockTextRange](#anytype.UserBlockTextRange) + + + + + +- [event.proto](#event.proto) + - [Event](#anytype.Event) + + + + + +- [file.proto](#file.proto) + - [Image](#anytype.Image) + - [ImageGetBlobRequest](#anytype.ImageGetBlobRequest) + - [ImageGetBlobResponse](#anytype.ImageGetBlobResponse) + - [ImageGetBlobResponse.Error](#anytype.ImageGetBlobResponse.Error) + - [ImageGetFileRequest](#anytype.ImageGetFileRequest) + - [ImageGetFileResponse](#anytype.ImageGetFileResponse) + - [ImageGetFileResponse.Error](#anytype.ImageGetFileResponse.Error) + - [IpfsGetFileRequest](#anytype.IpfsGetFileRequest) + - [IpfsGetFileResponse](#anytype.IpfsGetFileResponse) + - [IpfsGetFileResponse.Error](#anytype.IpfsGetFileResponse.Error) + - [Video](#anytype.Video) + + - [ImageGetBlobResponse.Error.Code](#anytype.ImageGetBlobResponse.Error.Code) + - [ImageGetFileResponse.Error.Code](#anytype.ImageGetFileResponse.Error.Code) + - [ImageSize](#anytype.ImageSize) + - [IpfsGetFileResponse.Error.Code](#anytype.IpfsGetFileResponse.Error.Code) + - [VideoSize](#anytype.VideoSize) + + + + +- [misc.proto](#misc.proto) + - [LogSendRequest](#anytype.LogSendRequest) + - [LogSendResponse](#anytype.LogSendResponse) + - [LogSendResponse.Error](#anytype.LogSendResponse.Error) + - [VersionGetRequest](#anytype.VersionGetRequest) + - [VersionGetResponse](#anytype.VersionGetResponse) + - [VersionGetResponse.Error](#anytype.VersionGetResponse.Error) + + - [LogSendRequest.Level](#anytype.LogSendRequest.Level) + - [LogSendResponse.Error.Code](#anytype.LogSendResponse.Error.Code) + - [VersionGetResponse.Error.Code](#anytype.VersionGetResponse.Error.Code) + + + + +- [struct.proto](#struct.proto) + - [ListValue](#anytype.ListValue) + - [Struct](#anytype.Struct) + - [Struct.FieldsEntry](#anytype.Struct.FieldsEntry) + - [Value](#anytype.Value) + + - [NullValue](#anytype.NullValue) + + + + +- [Scalar Value Types](#scalar-value-types) + + + + +

Top

+ +## service/service.proto + + + + + + + + + + + +### ClientCommands + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| WalletCreate | [WalletCreateRequest](#anytype.WalletCreateRequest) | [WalletCreateResponse](#anytype.WalletCreateResponse) | | +| WalletRecover | [WalletRecoverRequest](#anytype.WalletRecoverRequest) | [WalletRecoverResponse](#anytype.WalletRecoverResponse) | | +| AccountRecover | [AccountRecoverRequest](#anytype.AccountRecoverRequest) | [AccountRecoverResponse](#anytype.AccountRecoverResponse) | | +| AccountCreate | [AccountCreateRequest](#anytype.AccountCreateRequest) | [AccountCreateResponse](#anytype.AccountCreateResponse) | | +| AccountSelect | [AccountSelectRequest](#anytype.AccountSelectRequest) | [AccountSelectResponse](#anytype.AccountSelectResponse) | | +| ImageGetBlob | [ImageGetBlobRequest](#anytype.ImageGetBlobRequest) | [ImageGetBlobResponse](#anytype.ImageGetBlobResponse) | | +| VersionGet | [VersionGetRequest](#anytype.VersionGetRequest) | [VersionGetResponse](#anytype.VersionGetResponse) | | +| LogSend | [LogSendRequest](#anytype.LogSendRequest) | [LogSendResponse](#anytype.LogSendResponse) | | +| BlockOpen | [BlockOpenRequest](#anytype.BlockOpenRequest) | [BlockOpenResponse](#anytype.BlockOpenResponse) | | +| BlockCreate | [BlockCreateRequest](#anytype.BlockCreateRequest) | [BlockCreateResponse](#anytype.BlockCreateResponse) | | +| BlockUpdate | [BlockUpdateRequest](#anytype.BlockUpdateRequest) | [BlockUpdateResponse](#anytype.BlockUpdateResponse) | | + + + + + + +

Top

+ +## account.proto + + + + + +### Account + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| name | [string](#string) | | | +| avatar | [Avatar](#anytype.Avatar) | | | + + + + + + + + +### AccountCreateRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | | +| avatarLocalPath | [string](#string) | | | +| avatarColor | [string](#string) | | | + + + + + + + + +### AccountCreateResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [AccountCreateResponse.Error](#anytype.AccountCreateResponse.Error) | | | +| account | [Account](#anytype.Account) | | | + + + + + + + + +### AccountCreateResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [AccountCreateResponse.Error.Code](#anytype.AccountCreateResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### AccountRecoverRequest +Start accounts search for recovered mnemonic + + + + + + + + +### AccountRecoverResponse +Found accounts will come in event AccountAdd + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [AccountRecoverResponse.Error](#anytype.AccountRecoverResponse.Error) | | | + + + + + + + + +### AccountRecoverResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [AccountRecoverResponse.Error.Code](#anytype.AccountRecoverResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### AccountSelectRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| rootPath | [string](#string) | | optional, set if this is the first request | + + + + + + + + +### AccountSelectResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [AccountSelectResponse.Error](#anytype.AccountSelectResponse.Error) | | | +| account | [Account](#anytype.Account) | | | + + + + + + + + +### AccountSelectResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [AccountSelectResponse.Error.Code](#anytype.AccountSelectResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### AccountShow + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| index | [int64](#int64) | | | +| account | [Account](#anytype.Account) | | | + + + + + + + + +### AccountStartRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | + + + + + + + + +### AccountStartResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [AccountStartResponse.Error](#anytype.AccountStartResponse.Error) | | | +| account | [Account](#anytype.Account) | | | + + + + + + + + +### AccountStartResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [AccountStartResponse.Error.Code](#anytype.AccountStartResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Avatar + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| image | [Image](#anytype.Image) | | | +| color | [string](#string) | | | + + + + + + + + +### WalletCreateRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| rootPath | [string](#string) | | | + + + + + + + + +### WalletCreateResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [WalletCreateResponse.Error](#anytype.WalletCreateResponse.Error) | | | +| mnemonic | [string](#string) | | | + + + + + + + + +### WalletCreateResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [WalletCreateResponse.Error.Code](#anytype.WalletCreateResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### WalletRecoverRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| rootPath | [string](#string) | | | +| mnemonic | [string](#string) | | | + + + + + + + + +### WalletRecoverResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [WalletRecoverResponse.Error](#anytype.WalletRecoverResponse.Error) | | | + + + + + + + + +### WalletRecoverResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [WalletRecoverResponse.Error.Code](#anytype.WalletRecoverResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + + + +### AccountCreateResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE | 101 | | +| ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME | 102 | | +| ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR | 103 | | + + + + + +### AccountRecoverResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| NO_ACCOUNTS_FOUND | 101 | ... | +| NEED_TO_RECOVER_WALLET_FIRST | 102 | | +| FAILED_TO_CREATE_LOCAL_REPO | 103 | | +| LOCAL_REPO_EXISTS_BUT_CORRUPTED | 104 | | +| FAILED_TO_RUN_NODE | 105 | | + + + + + +### AccountSelectResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | +| FAILED_TO_CREATE_LOCAL_REPO | 101 | | +| LOCAL_REPO_EXISTS_BUT_CORRUPTED | 102 | | +| FAILED_TO_RUN_NODE | 103 | | +| FAILED_TO_FIND_ACCOUNT_INFO | 104 | | +| LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET | 105 | | + + + + + +### AccountStartResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | +| LOCAL_REPO_DOESNT_EXIST | 101 | | +| LOCAL_REPO_EXISTS_BUT_CORRUPTED | 102 | | +| FAILED_TO_RUN_NODE | 103 | | +| FAILED_TO_FIND_ACCOUNT_INFO | 104 | | + + + + + +### WalletCreateResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| FAILED_TO_CREATE_LOCAL_REPO | 101 | ... | + + + + + +### WalletRecoverResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| FAILED_TO_CREATE_LOCAL_REPO | 101 | | + + + + + + + + + + + +

Top

+ +## block.proto + + + + + +### Block + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| header | [BlockHeader](#anytype.BlockHeader) | | | +| dashboard | [BlockContentDashboard](#anytype.BlockContentDashboard) | | | +| page | [BlockContentPage](#anytype.BlockContentPage) | | | +| dataview | [BlockContentDataview](#anytype.BlockContentDataview) | | | +| text | [BlockContentText](#anytype.BlockContentText) | | | +| media | [BlockContentMedia](#anytype.BlockContentMedia) | | | + + + + + + + + +### BlockAtomicChange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| text | [BlockContentTextChange](#anytype.BlockContentTextChange) | | | +| blockHeader | [BlockHeaderChange](#anytype.BlockHeaderChange) | | | +| page | [BlockContentPageChange](#anytype.BlockContentPageChange) | | | +| dashboard | [BlockContentDashboardChange](#anytype.BlockContentDashboardChange) | | | + + + + + + + + +### BlockChanges + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| changes | [BlockAtomicChange](#anytype.BlockAtomicChange) | repeated | | + + + + + + + + +### BlockConnections + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| next | [string](#string) | | | +| columnBottom | [string](#string) | | | +| rowRight | [string](#string) | | | +| inner | [string](#string) | | | + + + + + + + + +### BlockConnectionsList + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| structure | [BlockConnections](#anytype.BlockConnections) | repeated | | + + + + + + + + +### BlockContentDashboard + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| style | [BlockContentDashboard.Style](#anytype.BlockContentDashboard.Style) | | | +| structure | [BlockConnectionsList](#anytype.BlockConnectionsList) | | | +| headers | [BlockHeadersList](#anytype.BlockHeadersList) | | | + + + + + + + + +### BlockContentDashboardChange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| style | [BlockContentDashboard.Style](#anytype.BlockContentDashboard.Style) | | | +| structure | [BlockConnectionsList](#anytype.BlockConnectionsList) | | | +| headers | [BlockHeadersList](#anytype.BlockHeadersList) | | | + + + + + + + + +### BlockContentDataview +... + + + + + + + + +### BlockContentMedia + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| link | [string](#string) | | | + + + + + + + + +### BlockContentPage + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| style | [BlockContentPage.Style](#anytype.BlockContentPage.Style) | | | +| structure | [BlockConnectionsList](#anytype.BlockConnectionsList) | | | +| blocks | [BlocksList](#anytype.BlocksList) | | | + + + + + + + + +### BlockContentPageChange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| style | [BlockContentPage.Style](#anytype.BlockContentPage.Style) | | | +| structure | [BlockConnectionsList](#anytype.BlockConnectionsList) | | | +| blocks | [BlocksList](#anytype.BlocksList) | | | + + + + + + + + +### BlockContentText + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| text | [string](#string) | | | +| style | [BlockContentText.Style](#anytype.BlockContentText.Style) | | | +| marksList | [BlockContentText.Marks](#anytype.BlockContentText.Marks) | | | +| toggleable | [bool](#bool) | | | +| markerType | [BlockContentText.MarkerType](#anytype.BlockContentText.MarkerType) | | | +| checkable | [bool](#bool) | | | +| checked | [bool](#bool) | | | + + + + + + + + +### BlockContentText.Mark + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| range | [Range](#anytype.Range) | | | +| type | [BlockContentText.Mark.Type](#anytype.BlockContentText.Mark.Type) | | | +| param | [string](#string) | | link, color, etc | + + + + + + + + +### BlockContentText.Marks + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| marks | [BlockContentText.Mark](#anytype.BlockContentText.Mark) | repeated | | + + + + + + + + +### BlockContentTextChange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| text | [string](#string) | | | +| style | [BlockContentText.Style](#anytype.BlockContentText.Style) | | | +| marks | [BlockContentText.Marks](#anytype.BlockContentText.Marks) | | | +| toggleable | [bool](#bool) | | | +| markerType | [BlockContentText.MarkerType](#anytype.BlockContentText.MarkerType) | | | +| checkable | [bool](#bool) | | | +| checked | [bool](#bool) | | | + + + + + + + + +### BlockCreate + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| block | [Block](#anytype.Block) | | | + + + + + + + + +### BlockCreateRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| type | [BlockType](#anytype.BlockType) | | | + + + + + + + + +### BlockCreateResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [BlockCreateResponse.Error](#anytype.BlockCreateResponse.Error) | | | + + + + + + + + +### BlockCreateResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [BlockCreateResponse.Error.Code](#anytype.BlockCreateResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### BlockHeader + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| type | [BlockType](#anytype.BlockType) | | | +| fields | [Struct](#anytype.Struct) | | | +| permissions | [BlockPermissions](#anytype.BlockPermissions) | | | + + + + + + + + +### BlockHeaderChange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| type | [BlockType](#anytype.BlockType) | | | +| name | [string](#string) | | | +| icon | [string](#string) | | | +| permissions | [BlockPermissions](#anytype.BlockPermissions) | | | + + + + + + + + +### BlockHeadersList + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| headers | [BlockHeader](#anytype.BlockHeader) | repeated | | + + + + + + + + +### BlockOpenRequest +commands + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | + + + + + + + + +### BlockOpenResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [BlockOpenResponse.Error](#anytype.BlockOpenResponse.Error) | | | +| blockHeader | [BlockHeader](#anytype.BlockHeader) | | | + + + + + + + + +### BlockOpenResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [BlockOpenResponse.Error.Code](#anytype.BlockOpenResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### BlockPermissions + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| read | [bool](#bool) | | | +| edit | [bool](#bool) | | | +| remove | [bool](#bool) | | | +| drag | [bool](#bool) | | | +| dropOn | [bool](#bool) | | | + + + + + + + + +### BlockShow +call + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| block | [Block](#anytype.Block) | | | + + + + + + + + +### BlockUpdate + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| changes | [BlockChanges](#anytype.BlockChanges) | | | + + + + + + + + +### BlockUpdateRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| changes | [BlockChanges](#anytype.BlockChanges) | | | + + + + + + + + +### BlockUpdateResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [BlockUpdateResponse.Error](#anytype.BlockUpdateResponse.Error) | | | + + + + + + + + +### BlockUpdateResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [BlockUpdateResponse.Error.Code](#anytype.BlockUpdateResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### BlocksList + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| blocks | [Block](#anytype.Block) | repeated | | + + + + + + + + +### Range + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| from | [int32](#int32) | | | +| to | [int32](#int32) | | | + + + + + + + + + + +### BlockContentDashboard.Style + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| MAIN_SCREEN | 0 | ... | + + + + + +### BlockContentPage.Style + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| EMPTY | 0 | | +| TASK | 1 | | +| BOOKMARK | 2 | | +| SET | 3 | ... | + + + + + +### BlockContentText.Mark.Type + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| STRIKETHROUGH | 0 | | +| KEYBOARD | 1 | | +| ITALIC | 2 | | +| BOLD | 3 | | +| LINK | 4 | | + + + + + +### BlockContentText.MarkerType + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| none | 0 | | +| number | 1 | | +| bullet | 2 | | + + + + + +### BlockContentText.Style + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| p | 0 | | +| h1 | 1 | | +| h2 | 2 | | +| h3 | 3 | | +| h4 | 4 | | +| quote | 5 | | + + + + + +### BlockCreateResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### BlockOpenResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### BlockType + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| DASHBOARD | 0 | | +| PAGE | 1 | | +| DATAVIEW | 2 | | +| TEXT | 3 | | +| FILE | 4 | | +| PICTURE | 5 | | +| VIDEO | 6 | | + + + + + +### BlockUpdateResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + + + + + + + +

Top

+ +## edit.proto + + + + + +### UserBlockFocus + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account | [Account](#anytype.Account) | | | +| blockId | [string](#string) | | | + + + + + + + + +### UserBlockJoin + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account | [Account](#anytype.Account) | | | + + + + + + + + +### UserBlockLeft + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account | [Account](#anytype.Account) | | | + + + + + + + + +### UserBlockSelectRange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account | [Account](#anytype.Account) | | | +| blockIdsArray | [string](#string) | repeated | | + + + + + + + + +### UserBlockTextRange + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account | [Account](#anytype.Account) | | | +| blockId | [string](#string) | | | +| range | [Range](#anytype.Range) | | | + + + + + + + + + + + + + + + + +

Top

+ +## event.proto + + + + + +### Event + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| accountShow | [AccountShow](#anytype.AccountShow) | | show wallet's accounts that were loaded from local or remote source | +| blockShow | [BlockShow](#anytype.BlockShow) | | | +| blockUpdate | [BlockUpdate](#anytype.BlockUpdate) | | | +| blockCreate | [BlockCreate](#anytype.BlockCreate) | | | + + + + + + + + + + + + + + + + +

Top

+ +## file.proto + + + + + +### Image + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| sizes | [ImageSize](#anytype.ImageSize) | repeated | | + + + + + + + + +### ImageGetBlobRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| size | [ImageSize](#anytype.ImageSize) | | | + + + + + + + + +### ImageGetBlobResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [ImageGetBlobResponse.Error](#anytype.ImageGetBlobResponse.Error) | | | +| blob | [bytes](#bytes) | | | + + + + + + + + +### ImageGetBlobResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [ImageGetBlobResponse.Error.Code](#anytype.ImageGetBlobResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### ImageGetFileRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| size | [ImageSize](#anytype.ImageSize) | | | + + + + + + + + +### ImageGetFileResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [ImageGetFileResponse.Error](#anytype.ImageGetFileResponse.Error) | | | +| localPath | [string](#string) | | | + + + + + + + + +### ImageGetFileResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [ImageGetFileResponse.Error.Code](#anytype.ImageGetFileResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### IpfsGetFileRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | + + + + + + + + +### IpfsGetFileResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [IpfsGetFileResponse.Error](#anytype.IpfsGetFileResponse.Error) | | | +| data | [bytes](#bytes) | | | +| media | [string](#string) | | | +| name | [string](#string) | | | + + + + + + + + +### IpfsGetFileResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [IpfsGetFileResponse.Error.Code](#anytype.IpfsGetFileResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Video + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| sizes | [VideoSize](#anytype.VideoSize) | repeated | | + + + + + + + + + + +### ImageGetBlobResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | +| NOT_FOUND | 101 | | +| TIMEOUT | 102 | | + + + + + +### ImageGetFileResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | +| NOT_FOUND | 101 | | +| TIMEOUT | 102 | | + + + + + +### ImageSize + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| LARGE | 0 | | +| SMALL | 1 | | +| THUMB | 2 | | + + + + + +### IpfsGetFileResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | +| NOT_FOUND | 101 | | +| TIMEOUT | 102 | | + + + + + +### VideoSize + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| SD_360p | 0 | | +| SD_480p | 1 | | +| HD_720p | 2 | | +| HD_1080p | 3 | | +| UHD_1440p | 4 | | +| UHD_2160p | 5 | | + + + + + + + + + + + +

Top

+ +## misc.proto + + + + + +### LogSendRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| message | [string](#string) | | | +| level | [LogSendRequest.Level](#anytype.LogSendRequest.Level) | | | + + + + + + + + +### LogSendResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [LogSendResponse.Error](#anytype.LogSendResponse.Error) | | | + + + + + + + + +### LogSendResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [LogSendResponse.Error.Code](#anytype.LogSendResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + +### VersionGetRequest + + + + + + + + + +### VersionGetResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [VersionGetResponse.Error](#anytype.VersionGetResponse.Error) | | | +| version | [string](#string) | | version is generate by git describe | +| details | [string](#string) | | | + + + + + + + + +### VersionGetResponse.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [VersionGetResponse.Error.Code](#anytype.VersionGetResponse.Error.Code) | | | +| description | [string](#string) | | | + + + + + + + + + + +### LogSendRequest.Level + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| DEBUG | 0 | | +| ERROR | 1 | | +| FATAL | 2 | | +| INFO | 3 | | +| PANIC | 4 | | +| WARNING | 5 | | + + + + + +### LogSendResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| NOT_FOUND | 101 | | +| TIMEOUT | 102 | | + + + + + +### VersionGetResponse.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| VERSION_IS_EMPTY | 3 | | +| NOT_FOUND | 101 | | +| TIMEOUT | 102 | | + + + + + + + + + + + +

Top

+ +## struct.proto + + + + + +### ListValue +`ListValue` is a wrapper around a repeated field of values. + +The JSON representation for `ListValue` is JSON array. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| values | [Value](#anytype.Value) | repeated | Repeated field of dynamically typed values. | + + + + + + + + +### Struct + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| fields | [Struct.FieldsEntry](#anytype.Struct.FieldsEntry) | repeated | Unordered map of dynamically typed values. | + + + + + + + + +### Struct.FieldsEntry + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| key | [string](#string) | | | +| value | [Value](#anytype.Value) | | | + + + + + + + + +### Value +`Value` represents a dynamically typed value which can be either +null, a number, a string, a boolean, a recursive struct value, or a +list of values. A producer of value is expected to set one of that +variants, absence of any variant indicates an error. + +The JSON representation for `Value` is JSON value. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| null_value | [NullValue](#anytype.NullValue) | | Represents a null value. | +| number_value | [double](#double) | | Represents a double value. | +| string_value | [string](#string) | | Represents a string value. | +| bool_value | [bool](#bool) | | Represents a boolean value. | +| struct_value | [Struct](#anytype.Struct) | | Represents a structured value. | +| list_value | [ListValue](#anytype.ListValue) | | Represents a repeated `Value`. | + + + + + + + + + + +### NullValue +`NullValue` is a singleton enumeration to represent the null value for the +`Value` type union. + + The JSON representation for `NullValue` is JSON `null`. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL_VALUE | 0 | Null value. | + + + + + + + + + + +## Scalar Value Types + +| .proto Type | Notes | C++ Type | Java Type | Python Type | +| ----------- | ----- | -------- | --------- | ----------- | +| double | | double | double | float | +| float | | float | float | float | +| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | +| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | +| uint32 | Uses variable-length encoding. | uint32 | int | int/long | +| uint64 | Uses variable-length encoding. | uint64 | long | int/long | +| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | +| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | +| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | +| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | +| sfixed32 | Always four bytes. | int32 | int | int | +| sfixed64 | Always eight bytes. | int64 | long | int/long | +| bool | | bool | boolean | boolean | +| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | +| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | + From 2f135cd5eb45d39092494cfcb6314d40620380bd Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Mon, 4 Nov 2019 16:17:15 +0300 Subject: [PATCH 19/24] install protoc-gen-doc while setup-protoc --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 847eb0a72..733a71e53 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,7 @@ setup-protoc: mkdir -p $(GOPATH)/src/github.com/gogo cd $(GOPATH)/src/github.com/gogo; git clone https://github.com/anytypeio/protobuf cd $(GOPATH)/src/github.com/gogo/protobuf; go install github.com/gogo/protobuf/protoc-gen-gogofaster + cd $(GOPATH); go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc export PATH=$(PATH):$(GOROOT)/bin:$(GOPATH)/bin # protos: # libprotoc 3.9.1 From 39a380eebe8cebc45079163c63e727ba70fc5d83 Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 4 Nov 2019 15:09:30 +0100 Subject: [PATCH 20/24] Update .go files to refactored protos --- core/account.go | 106 +-- core/account_test.go | 70 +- core/block.go | 47 +- core/history.go | 8 +- core/ipfs.go | 40 +- core/logger.go | 20 +- core/logger_test.go | 10 +- core/version.go | 10 +- core/wallet.go | 24 +- lib/service.pb.go | 62 +- pb/commands.pb.go | 1451 +++++++++++++++++++------------ pb/events.pb.go | 74 +- pb/protos/commands.proto | 156 ++-- pb/protos/events.proto | 2 +- pb/protos/service/service.proto | 4 +- 15 files changed, 1229 insertions(+), 855 deletions(-) diff --git a/core/account.go b/core/account.go index cf90e5dc8..bf76d1dd1 100644 --- a/core/account.go +++ b/core/account.go @@ -11,11 +11,11 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -var avatarSizes = []pb.ImageSize{pb.ImageSize_SMALL, pb.ImageSize_LARGE} +var avatarSizes = []pb.Model_Image_Size{pb.Model_Image_SMALL, pb.Model_Image_LARGE} -func (mw *Middleware) AccountCreate(req *pb.AccountCreateRequest) *pb.AccountCreateResponse { - response := func(account *pb.Account, code pb.AccountCreateResponse_Error_Code, err error) *pb.AccountCreateResponse { - m := &pb.AccountCreateResponse{Account: account, Error: &pb.AccountCreateResponse_Error{Code: code}} +func (mw *Middleware) AccountCreate(req *pb.Rpc_Account_Create_Request) *pb.Rpc_Account_Create_Response { + response := func(account *pb.Model_Account, code pb.Rpc_Account_Create_Response_Error_Code, err error) *pb.Rpc_Account_Create_Response { + m := &pb.Rpc_Account_Create_Response{Account: account, Error: &pb.Rpc_Account_Create_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -30,61 +30,61 @@ func (mw *Middleware) AccountCreate(req *pb.AccountCreateRequest) *pb.AccountCre account, err := core.WalletAccountAt(mw.mnemonic, len(mw.localAccounts), "") if err != nil { - return response(nil, pb.AccountCreateResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Account_Create_Response_Error_UNKNOWN_ERROR, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) if err != nil { - return response(nil, pb.AccountCreateResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Account_Create_Response_Error_UNKNOWN_ERROR, err) } anytype, err := core.New(mw.rootPath, account.Address()) if err != nil { - return response(nil, pb.AccountCreateResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Account_Create_Response_Error_UNKNOWN_ERROR, err) } mw.Anytype = anytype - newAcc := &pb.Account{Id: account.Address()} + newAcc := &pb.Model_Account{Id: account.Address()} err = mw.Run() if err != nil { - return response(newAcc, pb.AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE, err) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE, err) } err = mw.AccountSetName(req.Name) if err != nil { - return response(newAcc, pb.AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) } newAcc.Name, err = mw.Textile.Name() if err != nil { - return response(newAcc, pb.AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) } if req.GetAvatarLocalPath() != "" { _, err := mw.AccountSetAvatar(req.GetAvatarLocalPath()) if err != nil { - return response(newAcc, pb.AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) } hash, err := mw.Textile.Avatar() if err != nil { - return response(newAcc, pb.AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) } - newAcc.Avatar = &pb.Avatar{Avatar: &pb.Avatar_Image{Image: &pb.Image{hash, avatarSizes}}} + newAcc.Avatar = &pb.Model_Account_Avatar{Avatar: &pb.Model_Account_Avatar_Image{Image: &pb.Model_Image{hash, avatarSizes}}} } else if req.GetAvatarColor() != "" { err := mw.AccountSetAvatarColor(req.GetAvatarColor()) if err != nil { - return response(newAcc, pb.AccountCreateResponse_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) } } mw.localAccounts = append(mw.localAccounts, newAcc) - return response(newAcc, pb.AccountCreateResponse_Error_NULL, nil) + return response(newAcc, pb.Rpc_Account_Create_Response_Error_NULL, nil) } -func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRecoverResponse { - response := func(code pb.AccountRecoverResponse_Error_Code, err error) *pb.AccountRecoverResponse { - m := &pb.AccountRecoverResponse{Error: &pb.AccountRecoverResponse_Error{Code: code}} +func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_Account_Recover_Response { + response := func(code pb.Rpc_Account_Recover_Response_Error_Code, err error) *pb.Rpc_Account_Recover_Response { + m := &pb.Rpc_Account_Recover_Response{Error: &pb.Rpc_Account_Recover_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -92,15 +92,15 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec return m } - sendAccountAddEvent := func(index int, account *pb.Account) { - m := &pb.Event{Message: &pb.Event_Account_Show{Index: int64(index), Account: account}} + sendAccountAddEvent := func(index int, account *pb.Model_Account) { + m := &pb.Event{Message: &pb.Event_AccountShow{AccountShow: &pb.Event_Account_Show{Index: int64(index), Account: account}}} if mw.SendEvent != nil { mw.SendEvent(m) } } if mw.mnemonic == "" { - return response(pb.AccountRecoverResponse_Error_NEED_TO_RECOVER_WALLET_FIRST, nil) + return response(pb.Rpc_Account_Recover_Response_Error_NEED_TO_RECOVER_WALLET_FIRST, nil) } shouldCancel := false @@ -129,32 +129,32 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec sendAccountAddEvent(index, mw.localAccounts[index]) index++ if shouldCancel { - return response(pb.AccountRecoverResponse_Error_NULL, nil) + return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) } } // now let's start the first account to perform cafe contacts search queries account, err := core.WalletAccountAt(mw.mnemonic, 0, "") if err != nil { - return response(pb.AccountRecoverResponse_Error_WALLET_RECOVER_NOT_PERFORMED, err) + return response(pb.Rpc_Account_Recover_Response_Error_WALLET_RECOVER_NOT_PERFORMED, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) if err != nil && err != core.ErrRepoExists { - return response(pb.AccountRecoverResponse_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response(pb.Rpc_Account_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) } anytype, err := core.New(mw.rootPath, account.Address()) if err != nil { - return response(pb.AccountRecoverResponse_Error_UNKNOWN_ERROR, err) + return response(pb.Rpc_Account_Recover_Response_Error_UNKNOWN_ERROR, err) } err = anytype.Run() if err != nil { if err == core.ErrRepoCorrupted { - return response(pb.AccountRecoverResponse_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) + return response(pb.Rpc_Account_Recover_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) } - return response(pb.AccountRecoverResponse_Error_FAILED_TO_RUN_NODE, err) + return response(pb.Rpc_Account_Recover_Response_Error_FAILED_TO_RUN_NODE, err) } defer func() { @@ -165,7 +165,7 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec }() if shouldCancel { - return response(pb.AccountRecoverResponse_Error_NULL, nil) + return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) } for { @@ -190,7 +190,7 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec // todo: add goroutine to query multiple accounts at once account, err := core.WalletAccountAt(mw.mnemonic, index, "") if err != nil { - return response(pb.AccountRecoverResponse_Error_WALLET_RECOVER_NOT_PERFORMED, err) + return response(pb.Rpc_Account_Recover_Response_Error_WALLET_RECOVER_NOT_PERFORMED, err) } var ctx context.Context @@ -199,20 +199,20 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec if err != nil || contact == nil { if index == 0 { - return response(pb.AccountRecoverResponse_Error_NO_ACCOUNTS_FOUND, err) + return response(pb.Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND, err) } - return response(pb.AccountRecoverResponse_Error_NULL, nil) + return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) } if contact.Name == "" { if index == 0 { - return response(pb.AccountRecoverResponse_Error_NO_ACCOUNTS_FOUND, err) + return response(pb.Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND, err) } - return response(pb.AccountRecoverResponse_Error_NULL, nil) + return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) } - newAcc := &pb.Account{Id: account.Address(), Name: contact.Name} + newAcc := &pb.Model_Account{Id: account.Address(), Name: contact.Name} if contact.Avatar != "" { newAcc.Avatar = getAvatarFromString(contact.Avatar) @@ -222,15 +222,15 @@ func (mw *Middleware) AccountRecover(_ *pb.AccountRecoverRequest) *pb.AccountRec mw.localAccounts = append(mw.localAccounts, newAcc) if shouldCancel { - return response(pb.AccountRecoverResponse_Error_NULL, nil) + return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) } index++ } } -func (mw *Middleware) AccountSelect(req *pb.AccountSelectRequest) *pb.AccountSelectResponse { - response := func(account *pb.Account, code pb.AccountSelectResponse_Error_Code, err error) *pb.AccountSelectResponse { - m := &pb.AccountSelectResponse{Account: account, Error: &pb.AccountSelectResponse_Error{Code: code}} +func (mw *Middleware) AccountSelect(req *pb.Rpc_Account_Select_Request) *pb.Rpc_Account_Select_Response { + response := func(account *pb.Model_Account, code pb.Rpc_Account_Select_Response_Error_Code, err error) *pb.Rpc_Account_Select_Response { + m := &pb.Rpc_Account_Select_Response{Account: account, Error: &pb.Rpc_Account_Select_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -249,23 +249,23 @@ func (mw *Middleware) AccountSelect(req *pb.AccountSelectRequest) *pb.AccountSel if _, err := os.Stat(filepath.Join(mw.rootPath, req.Id)); os.IsNotExist(err) { if mw.mnemonic == "" { - return response(nil, pb.AccountSelectResponse_Error_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET, err) + return response(nil, pb.Rpc_Account_Select_Response_Error_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET, err) } account, err := core.WalletAccountAt(mw.mnemonic, len(mw.localAccounts), "") if err != nil { - return response(nil, pb.AccountSelectResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Account_Select_Response_Error_UNKNOWN_ERROR, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) if err != nil { - return response(nil, pb.AccountSelectResponse_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response(nil, pb.Rpc_Account_Select_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) } } anytype, err := core.New(mw.rootPath, req.Id) if err != nil { - return response(nil, pb.AccountSelectResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Account_Select_Response_Error_UNKNOWN_ERROR, err) } mw.Anytype = anytype @@ -273,22 +273,22 @@ func (mw *Middleware) AccountSelect(req *pb.AccountSelectRequest) *pb.AccountSel err = mw.Run() if err != nil { if err == core.ErrRepoCorrupted { - return response(nil, pb.AccountSelectResponse_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) + return response(nil, pb.Rpc_Account_Select_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) } - return response(nil, pb.AccountSelectResponse_Error_FAILED_TO_RUN_NODE, err) + return response(nil, pb.Rpc_Account_Select_Response_Error_FAILED_TO_RUN_NODE, err) } - acc := &pb.Account{Id: req.Id} + acc := &pb.Model_Account{Id: req.Id} acc.Name, err = mw.Anytype.Textile.Name() if err != nil { - return response(acc, pb.AccountSelectResponse_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) + return response(acc, pb.Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) } avatarHashOrColor, err := mw.Anytype.Textile.Avatar() if err != nil { - return response(acc, pb.AccountSelectResponse_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) + return response(acc, pb.Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) } if acc.Name == "" && avatarHashOrColor == "" { @@ -304,7 +304,7 @@ func (mw *Middleware) AccountSelect(req *pb.AccountSelectRequest) *pb.AccountSel contact, err := anytype.AccountRequestStoredContact(context.Background(), req.Id) if err != nil { - return response(acc, pb.AccountSelectResponse_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) + return response(acc, pb.Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) } acc.Name = contact.Name avatarHashOrColor = contact.Avatar @@ -314,13 +314,13 @@ func (mw *Middleware) AccountSelect(req *pb.AccountSelectRequest) *pb.AccountSel acc.Avatar = getAvatarFromString(avatarHashOrColor) } - return response(acc, pb.AccountSelectResponse_Error_NULL, nil) + return response(acc, pb.Rpc_Account_Select_Response_Error_NULL, nil) } -func getAvatarFromString(avatarHashOrColor string) *pb.Avatar { +func getAvatarFromString(avatarHashOrColor string) *pb.Model_Account_Avatar { if strings.HasPrefix(avatarHashOrColor, "#") { - return &pb.Avatar{&pb.Avatar_Color{avatarHashOrColor}} + return &pb.Model_Account_Avatar{&pb.Model_Account_Avatar_Color{avatarHashOrColor}} } else { - return &pb.Avatar{&pb.Avatar_Image{&pb.Image{avatarHashOrColor, avatarSizes}}} + return &pb.Model_Account_Avatar{&pb.Model_Account_Avatar_Image{&pb.Model_Image{avatarHashOrColor, avatarSizes}}} } } diff --git a/core/account_test.go b/core/account_test.go index 5a31f01e6..fa7be3e81 100644 --- a/core/account_test.go +++ b/core/account_test.go @@ -13,8 +13,8 @@ import ( func createWallet(t *testing.T) *Middleware { mw := &Middleware{} rootPath := os.TempDir() - resp := mw.WalletCreate(&pb.WalletCreateRequest{RootPath: rootPath}) - require.Equal(t, pb.WalletCreateResponse_Error_NULL, resp.Error.Code, resp.Error.Code, "WalletCreate error should be 0") + resp := mw.WalletCreate(&pb.Rpc_Wallet_Create_Request{RootPath: rootPath}) + require.Equal(t, pb.Rpc_Wallet_Create_Response_Error_NULL, resp.Error.Code, resp.Error.Code, "WalletCreate error should be 0") require.Equal(t, 12, len(strings.Split(resp.Mnemonic, " ")), "WalletCreate should return 12 words") return mw } @@ -22,19 +22,19 @@ func createWallet(t *testing.T) *Middleware { func recoverWallet(t *testing.T, mnemonic string) *Middleware { mw := &Middleware{} rootPath := os.TempDir() - resp := mw.WalletRecover(&pb.WalletRecoverRequest{RootPath: rootPath, Mnemonic: mnemonic}) - require.Equal(t, pb.WalletRecoverResponse_Error_NULL, resp.Error.Code, "WalletRecover error should be 0") + resp := mw.WalletRecover(&pb.Rpc_Wallet_Recover_Request{RootPath: rootPath, Mnemonic: mnemonic}) + require.Equal(t, pb.Rpc_Wallet_Recover_Response_Error_NULL, resp.Error.Code, "WalletRecover error should be 0") return mw } func Test_AccountCreate(t *testing.T) { mw := createWallet(t) - accountCreateResp := mw.AccountCreate(&pb.AccountCreateRequest{Name: "name_test", Avatar: &pb.AccountCreateRequest_AvatarLocalPath{"testdata/pic1.jpg"}}) - require.Equal(t, "name_test", accountCreateResp.Account.Name, "AccountCreateResponse has account with wrong name '%s'", accountCreateResp.Account.Name) + accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_test", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) + require.Equal(t, "name_test", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) - imageGetBlobResp := mw.ImageGetBlob(&pb.ImageGetBlobRequest{Id: accountCreateResp.Account.Avatar.GetImage().Id, Size_: pb.ImageSize_SMALL}) - require.Equal(t, pb.ImageGetBlobResponse_Error_NULL, imageGetBlobResp.Error.Code, "ImageGetBlobResponse contains error: %+v", imageGetBlobResp.Error) + imageGetBlobResp := mw.ImageGetBlob(&pb.Rpc_Image_Get_Blob_Request{Id: accountCreateResp.Account.Avatar.GetImage().Id, Size_: pb.ImageSize_SMALL}) + require.Equal(t, pb.Rpc_Image_Get_Blob_Response_Error_NULL, imageGetBlobResp.Error.Code, "ImageGetBlob_Response contains error: %+v", imageGetBlobResp.Error) require.True(t, len(imageGetBlobResp.Blob) > 0, "ava size should be greater than 0") err := mw.Stop() @@ -44,15 +44,15 @@ func Test_AccountCreate(t *testing.T) { func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { mw := createWallet(t) - accountCreateResp := mw.AccountCreate(&pb.AccountCreateRequest{Name: "name_to_test_recover", Avatar: &pb.AccountCreateRequest_AvatarLocalPath{"testdata/pic1.jpg"}}) - require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreateResponse has account with wrong name '%s'", accountCreateResp.Account.Name) + accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_to_test_recover", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) + require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) err := mw.Stop() require.NoError(t, err, "failed to stop node") - var accountCh = make(chan *pb.Account, 10) + var accountCh = make(chan *pb.Model_Account, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.Event_Account_Show); ok { if aa.AccountShow.Index != 0 { return } @@ -61,13 +61,13 @@ func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { } } - walletRecoverResp := mw.WalletRecover(&pb.WalletRecoverRequest{RootPath: mw.rootPath, Mnemonic: mw.mnemonic}) - require.Equal(t, pb.WalletRecoverResponse_Error_NULL, walletRecoverResp.Error.Code, "WalletRecoverResponse contains error: %+v", walletRecoverResp.Error) + walletRecoverResp := mw.WalletRecover(&pb.Rpc_Wallet_Recover_Request{RootPath: mw.rootPath, Mnemonic: mw.mnemonic}) + require.Equal(t, pb.Rpc_Wallet_Recover_Response_Error_NULL, walletRecoverResp.Error.Code, "WalletRecover_Response contains error: %+v", walletRecoverResp.Error) - accountRecoverResp := mw.AccountRecover(&pb.AccountRecoverRequest{}) - require.Equal(t, pb.AccountRecoverResponse_Error_NULL, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) + require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) - var account *pb.Account + var account *pb.Rpc_Account_ select { case account = <-accountCh: break @@ -83,8 +83,8 @@ func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { func Test_AccountRecover_LocalAfterRestart(t *testing.T) { mw := createWallet(t) - accountCreateResp := mw.AccountCreate(&pb.AccountCreateRequest{Name: "name_to_test_recover", Avatar: &pb.AccountCreateRequest_AvatarLocalPath{"testdata/pic1.jpg"}}) - require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreateResponse has account with wrong name '%s'", accountCreateResp.Account.Name) + accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_to_test_recover", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) + require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) err := mw.Stop() require.NoError(t, err, "failed to stop node") @@ -94,9 +94,9 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { // reset singleton to emulate restart mw = &Middleware{} - var accountCh = make(chan *pb.Account, 10) + var accountCh = make(chan *pb.Model_Account, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.Event_Account_Show); ok { if aa.AccountShow.Index != 0 { return } @@ -105,13 +105,13 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { } } - walletRecoverResp := mw.WalletRecover(&pb.WalletRecoverRequest{RootPath: rootPath, Mnemonic: mnemonic}) - require.Equal(t, pb.WalletRecoverResponse_Error_NULL, walletRecoverResp.Error.Code, "WalletRecoverResponse contains error: %+v", walletRecoverResp.Error) + walletRecoverResp := mw.WalletRecover(&pb.Rpc_Wallet_Recover_Request{RootPath: rootPath, Mnemonic: mnemonic}) + require.Equal(t, pb.Rpc_Wallet_Recover_Response_Error_NULL, walletRecoverResp.Error.Code, "WalletRecover_Response contains error: %+v", walletRecoverResp.Error) - accountRecoverResp := mw.AccountRecover(&pb.AccountRecoverRequest{}) - require.Equal(t, pb.AccountRecoverResponse_Error_NULL, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) + require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) - var account *pb.Account + var account *pb.Rpc_Account_ select { case account = <-accountCh: break @@ -128,15 +128,15 @@ func Test_AccountRecover_RemoteNotExisting(t *testing.T) { mw := recoverWallet(t, "limit oxygen february destroy subway toddler umbrella nose praise shield afford eager") require.Equal(t, len(mw.localAccounts), 0, "localAccounts should be empty, instead got length = %d", len(mw.localAccounts)) - var account *pb.Account + var account *pb.Rpc_Account_ mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.Event_Account_Show); ok { account = aa.AccountShow.Account } } - accountRecoverResp := mw.AccountRecover(&pb.AccountRecoverRequest{}) - require.Equal(t, pb.AccountRecoverResponse_Error_NO_ACCOUNTS_FOUND, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) + require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) require.Nil(t, account, "account shouldn't be recovered") @@ -148,9 +148,9 @@ func Test_RecoverRemoteExisting(t *testing.T) { mw := recoverWallet(t, "input blame switch simple fatigue fragile grab goose unusual identify abuse use") require.Equal(t, len(mw.localAccounts), 0, "localAccounts should be empty, instead got length = %d", len(mw.localAccounts)) - var accountCh = make(chan *pb.Account, 10) + var accountCh = make(chan *pb.Model_Account, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.Event_Account_Show); ok { if aa.AccountShow.Index != 0 { return } @@ -159,10 +159,10 @@ func Test_RecoverRemoteExisting(t *testing.T) { } } - accountRecoverResp := mw.AccountRecover(&pb.AccountRecoverRequest{}) - require.Equal(t, pb.AccountRecoverResponse_Error_NULL, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) + require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) - var account *pb.Account + var account *pb.Rpc_Account_ select { case account = <-accountCh: break diff --git a/core/block.go b/core/block.go index 5f7d9a142..445736f1a 100644 --- a/core/block.go +++ b/core/block.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) BlockCreate(req *pb.BlockCreateRequest) *pb.BlockCreateResponse { - response := func(code pb.BlockCreateResponse_Error_Code, err error) *pb.BlockCreateResponse { - m := &pb.BlockCreateResponse{Error: &pb.BlockCreateResponse_Error{Code: code}} +func (mw *Middleware) BlockCreate(req *pb.Rpc_Block_Create_Request) *pb.Rpc_Block_Create_Response { + response := func(code pb.Rpc_Block_Create_Response_Error_Code, err error) *pb.Rpc_Block_Create_Response { + m := &pb.Rpc_Block_Create_Response{Error: &pb.Rpc_Block_Create_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -14,20 +14,20 @@ func (mw *Middleware) BlockCreate(req *pb.BlockCreateRequest) *pb.BlockCreateRes return m } - block := &pb.Model_Block{} // TODO + /*block := &pb.Model_Block{} // TODO - m := &pb.Event{Message: &pb.Event_BlockCreate{&pb.BlockCreate{Block: block}}} + m := &pb.Event{Message: &pb.Event_Block_Create{&pb.Rpc_Block_Create{Block: block}}} if mw.SendEvent != nil { mw.SendEvent(m) - } + }*/ - return response(pb.BlockCreateResponse_Error_NULL, nil) + return response(pb.Rpc_Block_Create_Response_Error_NULL, nil) } -func (mw *Middleware) BlockOpen(req *pb.BlockOpenRequest) *pb.BlockOpenResponse { - response := func(code pb.BlockOpenResponse_Error_Code, err error) *pb.BlockOpenResponse { - m := &pb.BlockOpenResponse{Error: &pb.BlockOpenResponse_Error{Code: code}} +func (mw *Middleware) BlockOpen(req *pb.Rpc_Block_Open_Request) *pb.Rpc_Block_Open_Response { + response := func(code pb.Rpc_Block_Open_Response_Error_Code, err error) *pb.Rpc_Block_Open_Response { + m := &pb.Rpc_Block_Open_Response{Error: &pb.Rpc_Block_Open_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -35,20 +35,20 @@ func (mw *Middleware) BlockOpen(req *pb.BlockOpenRequest) *pb.BlockOpenResponse return m } - block := &pb.Model_Block{} // TODO + /*block := &pb.Model_Block{} // TODO - m := &pb.Event{Message: &pb.Event_BlockShow{&pb.BlockShow{Block: block}}} + m := &pb.Event{Message: &pb.Event_Block_Show{&pb.Rpc_Block_Show{Block: block}}} if mw.SendEvent != nil { mw.SendEvent(m) - } + }*/ - return response(pb.BlockOpenResponse_Error_NULL, nil) + return response(pb.Rpc_Block_Open_Response_Error_NULL, nil) } -func (mw *Middleware) BlockUpdate(req *pb.BlockUpdateRequest) *pb.BlockUpdateResponse { - response := func(code pb.BlockUpdateResponse_Error_Code, err error) *pb.BlockUpdateResponse { - m := &pb.BlockUpdateResponse{Error: &pb.BlockUpdateResponse_Error{Code: code}} +func (mw *Middleware) BlockUpdate(req *pb.Rpc_Block_Update_Request) *pb.Rpc_Block_Update_Response { + response := func(code pb.Rpc_Block_Update_Response_Error_Code, err error) *pb.Rpc_Block_Update_Response { + m := &pb.Rpc_Block_Update_Response{Error: &pb.Rpc_Block_Update_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -56,13 +56,14 @@ func (mw *Middleware) BlockUpdate(req *pb.BlockUpdateRequest) *pb.BlockUpdateRes return m } - changes := &pb.BlockChanges{} // TODO + /* + changes := &pb.Rpc_Block_Changes{} // TODO - m := &pb.Event{Message: &pb.Event_BlockUpdate{&pb.BlockUpdate{changes}}} + m := &pb.Event{Message: &pb.Event_Block_Update{&pb.Rpc_Block_Update{changes}}} - if mw.SendEvent != nil { - mw.SendEvent(m) - } + if mw.SendEvent != nil { + mw.SendEvent(m) + }*/ - return response(pb.BlockUpdateResponse_Error_NULL, nil) + return response(pb.Rpc_Block_Update_Response_Error_NULL, nil) } diff --git a/core/history.go b/core/history.go index 10ef66fdb..9289b01ba 100644 --- a/core/history.go +++ b/core/history.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) BlockHistoryMove(req *pb.BlockHistoryMoveRequest) *pb.BlockHistoryMoveResponse { - response := func(code pb.BlockHistoryMoveResponse_Error_Code, err error) *pb.BlockHistoryMoveResponse { - m := &pb.BlockHistoryMoveResponse{Error: &pb.BlockHistoryMoveResponse_Error{Code: code}} +func (mw *Middleware) BlockHistoryMove(req *pb.Rpc_Block_History_Move_Request) *pb.Rpc_Block_History_Move_Response { + response := func(code pb.Rpc_Block_History_Move_Response_Error_Code, err error) *pb.Rpc_Block_History_Move_Response { + m := &pb.Rpc_Block_History_Move_Response{Error: &pb.Rpc_Block_History_Move_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -16,5 +16,5 @@ func (mw *Middleware) BlockHistoryMove(req *pb.BlockHistoryMoveRequest) *pb.Bloc // TODO - return response(pb.BlockHistoryMoveResponse_Error_NULL, nil) + return response(pb.Rpc_Block_History_Move_Response_Error_NULL, nil) } diff --git a/core/ipfs.go b/core/ipfs.go index 2b5b55cb8..f62aca4ab 100644 --- a/core/ipfs.go +++ b/core/ipfs.go @@ -9,9 +9,9 @@ import ( "github.com/textileio/go-textile/ipfs" ) -func (mw *Middleware) IpfsGetFile(req *pb.IpfsGetFileRequest) *pb.IpfsGetFileResponse { - response := func(data []byte, media string, name string, code pb.IpfsGetFileResponse_Error_Code, err error) *pb.IpfsGetFileResponse { - m := &pb.IpfsGetFileResponse{Data: data, Media: media, Error: &pb.IpfsGetFileResponse_Error{Code: code}} +func (mw *Middleware) IpfsGetFile(req *pb.Rpc_Ipfs_Get_File_Request) *pb.Rpc_Ipfs_Get_File_Response { + response := func(data []byte, media string, name string, code pb.Rpc_Ipfs_Get_File_Response_Error_Code, err error) *pb.Rpc_Ipfs_Get_File_Response { + m := &pb.Rpc_Ipfs_Get_File_Response{Data: data, Media: media, Error: &pb.Rpc_Ipfs_Get_File_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -22,25 +22,25 @@ func (mw *Middleware) IpfsGetFile(req *pb.IpfsGetFileRequest) *pb.IpfsGetFileRes reader, info, err := mw.Anytype.Textile.Node().FileContent(req.Id) if err != nil { if err == core2.ErrFileNotFound { - return response(nil, "", "", pb.IpfsGetFileResponse_Error_NOT_FOUND, err) + return response(nil, "", "", pb.Rpc_Ipfs_Get_File_Response_Error_NOT_FOUND, err) } - return response(nil, "", "", pb.IpfsGetFileResponse_Error_UNKNOWN_ERROR, err) + return response(nil, "", "", pb.Rpc_Ipfs_Get_File_Response_Error_UNKNOWN_ERROR, err) } data, err := ioutil.ReadAll(reader) if err != nil { - return response(nil, "", "", pb.IpfsGetFileResponse_Error_UNKNOWN_ERROR, err) + return response(nil, "", "", pb.Rpc_Ipfs_Get_File_Response_Error_UNKNOWN_ERROR, err) } - return response(data, info.Media, info.Name, pb.IpfsGetFileResponse_Error_NULL, nil) + return response(data, info.Media, info.Name, pb.Rpc_Ipfs_Get_File_Response_Error_NULL, nil) } /* //exportMobile IpfsGetData func IpfsGetData(b []byte) []byte { - response := func(data []byte, code pb.IpfsGetDataResponse_Error_Code, err error) []byte { - m := &pb.IpfsGetDataResponse{Data: data, Error: &pb.IpfsGetDataResponse_Error{Code: code}} + response := func(data []byte, code pb.Rpc_Ipfs_GetData_Response_Error_Code, err error) []byte { + m := &pb.Rpc_Ipfs_GetData_Response{Data: data, Error: &pb.Rpc_Ipfs_GetData_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -48,29 +48,29 @@ func IpfsGetData(b []byte) []byte { return Marshal(m) } - var q pb.IpfsGetDataRequest + var q pb.Rpc_Ipfs_GetData_Request err := proto.Unmarshal(b, &q) if err != nil { - return response(nil, pb.IpfsGetDataResponse_Error_BAD_INPUT, err) + return response(nil, pb.Rpc_Ipfs_GetData_Response_Error_BAD_INPUT, err) } data, err := ipfs.DataAtPath(mw.Anytype.Textile.Node().Ipfs(), q.Id) if err != nil { if err == core2.ErrFileNotFound { - return response(nil, pb.IpfsGetDataResponse_Error_NOT_FOUND, err) + return response(nil, pb.Rpc_Ipfs_GetData_Response_Error_NOT_FOUND, err) } - return response(nil, pb.IpfsGetDataResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Ipfs_GetData_Response_Error_UNKNOWN_ERROR, err) } - return response(data, pb.IpfsGetDataResponse_Error_NULL, nil) + return response(data, pb.Rpc_Ipfs_GetData_Response_Error_NULL, nil) } */ -func (mw *Middleware) ImageGetBlob(req *pb.ImageGetBlobRequest) *pb.ImageGetBlobResponse { - response := func(blob []byte, code pb.ImageGetBlobResponse_Error_Code, err error) *pb.ImageGetBlobResponse { - m := &pb.ImageGetBlobResponse{Blob: blob, Error: &pb.ImageGetBlobResponse_Error{Code: code}} +func (mw *Middleware) ImageGetBlob(req *pb.Rpc_Image_Get_Blob_Request) *pb.Rpc_Image_Get_Blob_Response { + response := func(blob []byte, code pb.Rpc_Image_Get_Blob_Response_Error_Code, err error) *pb.Rpc_Image_Get_Blob_Response { + m := &pb.Rpc_Image_Get_Blob_Response{Blob: blob, Error: &pb.Rpc_Image_Get_Blob_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -81,11 +81,11 @@ func (mw *Middleware) ImageGetBlob(req *pb.ImageGetBlobRequest) *pb.ImageGetBlob data, err := ipfs.DataAtPath(mw.Anytype.Textile.Node().Ipfs(), req.Id+"/0/"+strings.ToLower(req.GetSize_().String())+"/content") if err != nil { if err == core2.ErrFileNotFound { - return response(nil, pb.ImageGetBlobResponse_Error_NOT_FOUND, err) + return response(nil, pb.Rpc_Image_Get_Blob_Response_Error_NOT_FOUND, err) } - return response(nil, pb.ImageGetBlobResponse_Error_UNKNOWN_ERROR, err) + return response(nil, pb.Rpc_Image_Get_Blob_Response_Error_UNKNOWN_ERROR, err) } - return response(data, pb.ImageGetBlobResponse_Error_NULL, nil) + return response(data, pb.Rpc_Image_Get_Blob_Response_Error_NULL, nil) } diff --git a/core/logger.go b/core/logger.go index b89888d0b..b48249d30 100644 --- a/core/logger.go +++ b/core/logger.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) LogSend(req *pb.LogSendRequest) *pb.LogSendResponse { - response := func(code pb.LogSendResponse_Error_Code, err error) *pb.LogSendResponse { - m := &pb.LogSendResponse{Error: &pb.LogSendResponse_Error{Code: code}} +func (mw *Middleware) LogSend(req *pb.Rpc_Log_Send_Request) *pb.Rpc_Log_Send_Response { + response := func(code pb.Rpc_Log_Send_Response_Error_Code, err error) *pb.Rpc_Log_Send_Response { + m := &pb.Rpc_Log_Send_Response{Error: &pb.Rpc_Log_Send_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -15,19 +15,19 @@ func (mw *Middleware) LogSend(req *pb.LogSendRequest) *pb.LogSendResponse { } switch req.Level { - case pb.LogSendRequest_FATAL: + case pb.Rpc_Log_Send_Request_FATAL: log.Fatal(req.Message) - case pb.LogSendRequest_PANIC: + case pb.Rpc_Log_Send_Request_PANIC: log.Panic(req.Message) - case pb.LogSendRequest_DEBUG: + case pb.Rpc_Log_Send_Request_DEBUG: log.Debug(req.Message) - case pb.LogSendRequest_INFO: + case pb.Rpc_Log_Send_Request_INFO: log.Info(req.Message) - case pb.LogSendRequest_WARNING: + case pb.Rpc_Log_Send_Request_WARNING: log.Warning(req.Message) - case pb.LogSendRequest_ERROR: + case pb.Rpc_Log_Send_Request_ERROR: log.Error(req.Message) } - return response(pb.LogSendResponse_Error_NULL, nil) + return response(pb.Rpc_Log_Send_Response_Error_NULL, nil) } diff --git a/core/logger_test.go b/core/logger_test.go index 1bcd7e629..4a60e415d 100644 --- a/core/logger_test.go +++ b/core/logger_test.go @@ -21,13 +21,13 @@ func Test_Log(t *testing.T) { os.Setenv("GOLOG_FILE", file.Name()) logger.SetupLogging() logger.SetDebugLogging() - for level, levelText := range map[pb.LogSendRequest_Level]string{ - pb.LogSendRequest_ERROR: "[31mERROR", - pb.LogSendRequest_WARNING: "[33mWARNI", + for level, levelText := range map[pb.Rpc_Log_Send_Request_Level]string{ + pb.Rpc_Log_Send_Request_ERROR: "[31mERROR", + pb.Rpc_Log_Send_Request_WARNING: "[33mWARNI", } { text := fmt.Sprintf("test_log_%s", time.Now().String()) - resp := mw.LogSend(&pb.LogSendRequest{Message: text, Level: level}) - require.Equal(t, pb.LogSendResponse_Error_NULL, resp.Error.Code, "LogSendResponse contains error: %+v", resp.Error) + resp := mw.LogSend(&pb.Rpc_Log_Send_Request{Message: text, Level: level}) + require.Equal(t, pb.Rpc_Log_Send_Response_Error_NULL, resp.Error.Code, "LogSendResponse contains error: %+v", resp.Error) b, err := ioutil.ReadFile(file.Name()) require.NoError(t, err) diff --git a/core/version.go b/core/version.go index c2c737171..86143b488 100644 --- a/core/version.go +++ b/core/version.go @@ -5,9 +5,9 @@ import "github.com/anytypeio/go-anytype-middleware/pb" // Set by ldflags var GitCommit, GitBranch, GitState, GitSummary, BuildDate string -func (mw *Middleware) VersionGet(req *pb.VersionGetRequest) *pb.VersionGetResponse { - response := func(version string, code pb.VersionGetResponse_Error_Code, err error) *pb.VersionGetResponse { - m := &pb.VersionGetResponse{Version: version, Error: &pb.VersionGetResponse_Error{Code: code}} +func (mw *Middleware) VersionGet(req *pb.Rpc_Version_Get_Request) *pb.Rpc_Version_Get_Response { + response := func(version string, code pb.Rpc_Version_Get_Response_Error_Code, err error) *pb.Rpc_Version_Get_Response { + m := &pb.Rpc_Version_Get_Response{Version: version, Error: &pb.Rpc_Version_Get_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -16,8 +16,8 @@ func (mw *Middleware) VersionGet(req *pb.VersionGetRequest) *pb.VersionGetRespon } if len(GitSummary) == 0 { - return response("", pb.VersionGetResponse_Error_VERSION_IS_EMPTY, nil) + return response("", pb.Rpc_Version_Get_Response_Error_VERSION_IS_EMPTY, nil) } - return response(GitSummary, pb.VersionGetResponse_Error_NULL, nil) + return response(GitSummary, pb.Rpc_Version_Get_Response_Error_NULL, nil) } diff --git a/core/wallet.go b/core/wallet.go index 6cf47c99c..155ae9499 100644 --- a/core/wallet.go +++ b/core/wallet.go @@ -9,9 +9,9 @@ import ( const wordCount int = 12 -func (mw *Middleware) WalletCreate(req *pb.WalletCreateRequest) *pb.WalletCreateResponse { - response := func(mnemonic string, code pb.WalletCreateResponse_Error_Code, err error) *pb.WalletCreateResponse { - m := &pb.WalletCreateResponse{Mnemonic: mnemonic, Error: &pb.WalletCreateResponse_Error{Code: code}} +func (mw *Middleware) WalletCreate(req *pb.Rpc_Wallet_Create_Request) *pb.Rpc_Wallet_Create_Response { + response := func(mnemonic string, code pb.Rpc_Wallet_Create_Response_Error_Code, err error) *pb.Rpc_Wallet_Create_Response { + m := &pb.Rpc_Wallet_Create_Response{Mnemonic: mnemonic, Error: &pb.Rpc_Wallet_Create_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -24,22 +24,22 @@ func (mw *Middleware) WalletCreate(req *pb.WalletCreateRequest) *pb.WalletCreate err := os.MkdirAll(mw.rootPath, 0700) if err != nil { - return response("", pb.WalletCreateResponse_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response("", pb.Rpc_Wallet_Create_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) } mnemonic, err := core.WalletGenerateMnemonic(wordCount) if err != nil { - return response("", pb.WalletCreateResponse_Error_UNKNOWN_ERROR, err) + return response("", pb.Rpc_Wallet_Create_Response_Error_UNKNOWN_ERROR, err) } mw.mnemonic = mnemonic - return response(mnemonic, pb.WalletCreateResponse_Error_NULL, nil) + return response(mnemonic, pb.Rpc_Wallet_Create_Response_Error_NULL, nil) } -func (mw *Middleware) WalletRecover(req *pb.WalletRecoverRequest) *pb.WalletRecoverResponse { - response := func(code pb.WalletRecoverResponse_Error_Code, err error) *pb.WalletRecoverResponse { - m := &pb.WalletRecoverResponse{Error: &pb.WalletRecoverResponse_Error{Code: code}} +func (mw *Middleware) WalletRecover(req *pb.Rpc_Wallet_Recover_Request) *pb.Rpc_Wallet_Recover_Response { + response := func(code pb.Rpc_Wallet_Recover_Response_Error_Code, err error) *pb.Rpc_Wallet_Recover_Response { + m := &pb.Rpc_Wallet_Recover_Response{Error: &pb.Rpc_Wallet_Recover_Response_Error{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -56,14 +56,14 @@ func (mw *Middleware) WalletRecover(req *pb.WalletRecoverRequest) *pb.WalletReco err := os.MkdirAll(mw.rootPath, 0700) if err != nil { - return response(pb.WalletRecoverResponse_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response(pb.Rpc_Wallet_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) } // test if mnemonic is correct _, err = core.WalletAccountAt(req.Mnemonic, 0, "") if err != nil { - return response(pb.WalletRecoverResponse_Error_BAD_INPUT, err) + return response(pb.Rpc_Wallet_Recover_Response_Error_BAD_INPUT, err) } - return response(pb.WalletRecoverResponse_Error_NULL, nil) + return response(pb.Rpc_Wallet_Recover_Response_Error_NULL, nil) } diff --git a/lib/service.pb.go b/lib/service.pb.go index fc6bc63dd..ca642ab6e 100644 --- a/lib/service.pb.go +++ b/lib/service.pb.go @@ -24,31 +24,31 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) } var fileDescriptor_a0b84a42fa06f626 = []byte{ - // 379 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcf, 0x4e, 0x2a, 0x31, - 0x18, 0x47, 0x43, 0x6e, 0x72, 0xb9, 0xb7, 0x17, 0xc8, 0xb5, 0x4b, 0x12, 0x47, 0xfe, 0xa9, 0xbb, - 0x2e, 0xf4, 0x09, 0x84, 0x05, 0x98, 0xa0, 0x46, 0x50, 0x49, 0x48, 0x5c, 0x0c, 0xe5, 0x0b, 0x99, - 0x58, 0xda, 0x71, 0x5a, 0x48, 0x78, 0x2e, 0x5f, 0xc2, 0xa5, 0x8f, 0x60, 0x78, 0x12, 0xc3, 0xf4, - 0x4b, 0x75, 0x86, 0x99, 0x61, 0xdb, 0x73, 0x7e, 0x07, 0xd2, 0x26, 0x43, 0xaa, 0x1a, 0xa2, 0x75, - 0xc0, 0x81, 0x85, 0x91, 0x32, 0x8a, 0x96, 0x7d, 0xb9, 0x31, 0x9b, 0x10, 0xea, 0x35, 0xae, 0x96, - 0x4b, 0x5f, 0xce, 0xb5, 0x05, 0x17, 0x6f, 0x7f, 0x48, 0xad, 0x27, 0x02, 0x90, 0xa6, 0x87, 0x80, - 0x4e, 0x48, 0x65, 0xe2, 0x0b, 0x01, 0xa6, 0x17, 0x81, 0x6f, 0x80, 0xb6, 0x18, 0x8e, 0xd9, 0x28, - 0xe4, 0xcc, 0x22, 0x66, 0x19, 0x1b, 0xc1, 0xeb, 0x0a, 0xb4, 0xa9, 0xb7, 0x0b, 0x1d, 0x1d, 0x2a, - 0xa9, 0x81, 0x4e, 0x49, 0xd5, 0x92, 0x11, 0x70, 0xb5, 0x86, 0x88, 0x66, 0xae, 0x10, 0xba, 0x74, - 0xa7, 0x58, 0xc2, 0xf6, 0x33, 0xa9, 0x5d, 0x71, 0xae, 0x56, 0xd2, 0xc5, 0x93, 0x3b, 0x84, 0x7b, - 0xf5, 0xd3, 0x03, 0xd6, 0xf7, 0x5f, 0x47, 0x86, 0x97, 0xd2, 0xce, 0xdc, 0xa5, 0x6e, 0xa5, 0x53, - 0x2c, 0xed, 0xb5, 0xc7, 0x20, 0x80, 0x9b, 0x9c, 0xb6, 0x85, 0x07, 0xda, 0x4e, 0xc2, 0xf6, 0x84, - 0x54, 0xae, 0x97, 0xfe, 0x02, 0xfa, 0x60, 0xba, 0x42, 0xcd, 0x52, 0x6f, 0x19, 0x23, 0x86, 0x2c, - 0xe7, 0x2d, 0xd3, 0x0e, 0x86, 0xef, 0x09, 0x79, 0x82, 0x48, 0x07, 0x4a, 0xf6, 0xc1, 0xd0, 0x46, - 0x62, 0x82, 0x60, 0x37, 0x72, 0xd1, 0x66, 0x81, 0x81, 0xc9, 0x01, 0x29, 0x0f, 0xd5, 0x62, 0x0c, - 0x72, 0x4e, 0x8f, 0x13, 0xf6, 0x50, 0x2d, 0xd8, 0xee, 0xd8, 0xc5, 0xbc, 0x3c, 0x8c, 0xa5, 0x5b, - 0xf2, 0xb7, 0x2b, 0x14, 0x7f, 0xb9, 0x0b, 0x41, 0xd2, 0x93, 0x84, 0x1c, 0x9f, 0xb3, 0x1d, 0x70, - 0xb5, 0x46, 0xbe, 0x80, 0xbd, 0x07, 0xf2, 0x2f, 0x3e, 0xc6, 0xb7, 0x6f, 0x66, 0x0c, 0x52, 0x2f, - 0xdf, 0x2a, 0x52, 0x52, 0xd5, 0xc7, 0x70, 0x9e, 0x57, 0xb5, 0xa8, 0xb0, 0xea, 0x14, 0xac, 0x72, - 0xf2, 0x3f, 0x06, 0x83, 0x40, 0x1b, 0x15, 0x6d, 0x6e, 0xd4, 0x1a, 0xe8, 0x59, 0xc6, 0xee, 0x07, - 0x77, 0xfd, 0xf3, 0x83, 0x9e, 0xfd, 0x91, 0xee, 0xd1, 0xfb, 0xd6, 0x2b, 0x7d, 0x6c, 0xbd, 0xd2, - 0xe7, 0xd6, 0x2b, 0x4d, 0x7f, 0x89, 0x60, 0x36, 0xfb, 0x1d, 0x7f, 0x4f, 0x2e, 0xbf, 0x02, 0x00, - 0x00, 0xff, 0xff, 0x74, 0x9c, 0xb9, 0xb6, 0x79, 0x04, 0x00, 0x00, + // 383 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcf, 0x4e, 0xea, 0x40, + 0x18, 0x47, 0x43, 0x6e, 0x72, 0xb9, 0x77, 0x04, 0xa2, 0xb3, 0x24, 0xb1, 0xf2, 0xcf, 0xe8, 0x6a, + 0x16, 0xfa, 0x04, 0xc2, 0x02, 0x4c, 0x50, 0x23, 0xa8, 0x44, 0x12, 0x17, 0x65, 0xf8, 0x42, 0x1a, + 0xcb, 0x4c, 0xed, 0x0c, 0x24, 0x3c, 0x99, 0xaf, 0xe0, 0xd2, 0x47, 0x30, 0x3c, 0x89, 0x69, 0xe7, + 0x73, 0x4c, 0x4b, 0x5b, 0xb6, 0x73, 0xce, 0xef, 0x94, 0xcc, 0x24, 0x90, 0xaa, 0x82, 0x70, 0xed, + 0x71, 0x60, 0x41, 0x28, 0xb5, 0xa4, 0x65, 0x57, 0x6c, 0xf4, 0x26, 0x80, 0x7a, 0x8d, 0xcb, 0xe5, + 0xd2, 0x15, 0x73, 0x65, 0xc0, 0xc5, 0xfb, 0x3f, 0x52, 0xeb, 0xf9, 0x1e, 0x08, 0xdd, 0x43, 0x40, + 0x27, 0xa4, 0x32, 0x71, 0x7d, 0x1f, 0x74, 0x2f, 0x04, 0x57, 0x03, 0x6d, 0x31, 0x1c, 0xb3, 0x51, + 0xc0, 0x99, 0x41, 0xcc, 0x30, 0x36, 0x82, 0xb7, 0x15, 0x28, 0x5d, 0x6f, 0x17, 0x3a, 0x2a, 0x90, + 0x42, 0x01, 0x9d, 0x92, 0xaa, 0x21, 0x23, 0xe0, 0x72, 0x0d, 0x21, 0xcd, 0x5c, 0x21, 0xb4, 0xe9, + 0x4e, 0xb1, 0x84, 0xed, 0x17, 0x52, 0xbb, 0xe2, 0x5c, 0xae, 0x84, 0x8d, 0x27, 0x77, 0x08, 0x77, + 0xea, 0xa7, 0x7b, 0xac, 0xdf, 0x9f, 0x8e, 0x0c, 0x2f, 0xa5, 0x9d, 0xb9, 0x4b, 0xdd, 0x4a, 0xa7, + 0x58, 0xda, 0x69, 0x8f, 0xc1, 0x07, 0xae, 0x73, 0xda, 0x06, 0xee, 0x69, 0x5b, 0x09, 0xdb, 0xcf, + 0xa4, 0x72, 0xbd, 0x74, 0x17, 0xd0, 0x07, 0xdd, 0xf5, 0xe5, 0x2c, 0x95, 0x8e, 0x11, 0xeb, 0x83, + 0x66, 0x11, 0xcc, 0x49, 0xef, 0x48, 0x98, 0xbe, 0x27, 0xe4, 0x09, 0x42, 0xe5, 0x49, 0xd1, 0x07, + 0x4d, 0x1b, 0x89, 0x0d, 0x82, 0x78, 0xf5, 0x53, 0x6d, 0x16, 0x18, 0x98, 0x1c, 0x90, 0xf2, 0x50, + 0x2e, 0xc6, 0x20, 0xe6, 0xf4, 0x38, 0x61, 0x0f, 0xe5, 0x82, 0x45, 0xc7, 0x36, 0xe6, 0xe4, 0x61, + 0x2c, 0xdd, 0x92, 0xff, 0x5d, 0x5f, 0xf2, 0xd7, 0xbb, 0x00, 0x04, 0x3d, 0x49, 0xc8, 0xf1, 0x39, + 0x8b, 0x80, 0xad, 0x35, 0xf2, 0x05, 0xec, 0x3d, 0x90, 0x83, 0xf8, 0x18, 0x5f, 0xbf, 0x99, 0x31, + 0x48, 0xbd, 0x7d, 0xab, 0x48, 0x49, 0x55, 0x1f, 0x83, 0x79, 0x5e, 0xd5, 0xa0, 0xc2, 0xaa, 0x55, + 0xb0, 0x0a, 0xe4, 0x30, 0x06, 0x03, 0x4f, 0x69, 0x19, 0x6e, 0x6e, 0xe4, 0x1a, 0xe8, 0x59, 0xc6, + 0x0e, 0x39, 0x8b, 0x04, 0xfb, 0x81, 0xf3, 0xfd, 0xa2, 0xf9, 0x4c, 0xf7, 0xe8, 0x63, 0xeb, 0x94, + 0x3e, 0xb7, 0x4e, 0xe9, 0x6b, 0xeb, 0x94, 0xa6, 0x7f, 0x7c, 0x6f, 0x36, 0xfb, 0x1b, 0xff, 0xa7, + 0x5c, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x38, 0x99, 0x52, 0x30, 0x7d, 0x04, 0x00, 0x00, } // This is a compile-time assertion to ensure that this generated file @@ -63,13 +63,13 @@ type ClientCommandsHandler interface { AccountRecover(*pb.Rpc_Account_Recover_Request) *pb.Rpc_Account_Recover_Response AccountCreate(*pb.Rpc_Account_Create_Request) *pb.Rpc_Account_Create_Response AccountSelect(*pb.Rpc_Account_Select_Request) *pb.Rpc_Account_Select_Response - ImageGetBlob(*pb.Rpc_Image_GetBlob_Request) *pb.Rpc_Image_GetBlob_Response + ImageGetBlob(*pb.Rpc_Image_Get_Blob_Request) *pb.Rpc_Image_Get_Blob_Response VersionGet(*pb.Rpc_Version_Get_Request) *pb.Rpc_Version_Get_Response LogSend(*pb.Rpc_Log_Send_Request) *pb.Rpc_Log_Send_Response BlockOpen(*pb.Rpc_Block_Open_Request) *pb.Rpc_Block_Open_Response BlockCreate(*pb.Rpc_Block_Create_Request) *pb.Rpc_Block_Create_Response BlockUpdate(*pb.Rpc_Block_Update_Request) *pb.Rpc_Block_Update_Response - BlockHistoryMove(*pb.Rpc_Block_HistoryMove_Request) *pb.Rpc_Block_HistoryMove_Response + BlockHistoryMove(*pb.Rpc_Block_History_Move_Request) *pb.Rpc_Block_History_Move_Response } func registerClientCommandsHandler(srv ClientCommandsHandler) { @@ -127,9 +127,9 @@ func AccountSelect(b []byte) []byte { } func ImageGetBlob(b []byte) []byte { - in := new(pb.Rpc_Image_GetBlob_Request) + in := new(pb.Rpc_Image_Get_Blob_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Image_GetBlob_Response{Error: &pb.Rpc_Image_GetBlob_Response_Error{Code: pb.Rpc_Image_GetBlob_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Image_Get_Blob_Response{Error: &pb.Rpc_Image_Get_Blob_Response_Error{Code: pb.Rpc_Image_Get_Blob_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.ImageGetBlob(in).Marshal() @@ -187,9 +187,9 @@ func BlockUpdate(b []byte) []byte { } func BlockHistoryMove(b []byte) []byte { - in := new(pb.Rpc_Block_HistoryMove_Request) + in := new(pb.Rpc_Block_History_Move_Request) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Block_HistoryMove_Response{Error: &pb.Rpc_Block_HistoryMove_Response_Error{Code: pb.Rpc_Block_HistoryMove_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.Rpc_Block_History_Move_Response{Error: &pb.Rpc_Block_History_Move_Response_Error{Code: pb.Rpc_Block_History_Move_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockHistoryMove(in).Marshal() diff --git a/pb/commands.pb.go b/pb/commands.pb.go index c242ff0ed..7b7703227 100644 --- a/pb/commands.pb.go +++ b/pb/commands.pb.go @@ -22,35 +22,35 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type Rpc_Block_HistoryMove_Response_Error_Code int32 +type Rpc_Block_History_Move_Response_Error_Code int32 const ( - Rpc_Block_HistoryMove_Response_Error_NULL Rpc_Block_HistoryMove_Response_Error_Code = 0 - Rpc_Block_HistoryMove_Response_Error_UNKNOWN_ERROR Rpc_Block_HistoryMove_Response_Error_Code = 1 - Rpc_Block_HistoryMove_Response_Error_BAD_INPUT Rpc_Block_HistoryMove_Response_Error_Code = 2 - Rpc_Block_HistoryMove_Response_Error_CAN_NOT_MOVE Rpc_Block_HistoryMove_Response_Error_Code = 3 + Rpc_Block_History_Move_Response_Error_NULL Rpc_Block_History_Move_Response_Error_Code = 0 + Rpc_Block_History_Move_Response_Error_UNKNOWN_ERROR Rpc_Block_History_Move_Response_Error_Code = 1 + Rpc_Block_History_Move_Response_Error_BAD_INPUT Rpc_Block_History_Move_Response_Error_Code = 2 + Rpc_Block_History_Move_Response_Error_CAN_NOT_MOVE Rpc_Block_History_Move_Response_Error_Code = 3 ) -var Rpc_Block_HistoryMove_Response_Error_Code_name = map[int32]string{ +var Rpc_Block_History_Move_Response_Error_Code_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", 3: "CAN_NOT_MOVE", } -var Rpc_Block_HistoryMove_Response_Error_Code_value = map[string]int32{ +var Rpc_Block_History_Move_Response_Error_Code_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, "CAN_NOT_MOVE": 3, } -func (x Rpc_Block_HistoryMove_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Block_HistoryMove_Response_Error_Code_name, int32(x)) +func (x Rpc_Block_History_Move_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Block_History_Move_Response_Error_Code_name, int32(x)) } -func (Rpc_Block_HistoryMove_Response_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 1, 0, 0} +func (Rpc_Block_History_Move_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 1, 0, 0} } type Rpc_Block_Open_Response_Error_Code int32 @@ -433,17 +433,17 @@ func (Rpc_Log_Send_Response_Error_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1, 0, 0} } -type Rpc_Ipfs_GetFile_Response_Error_Code int32 +type Rpc_Ipfs_Get_File_Response_Error_Code int32 const ( - Rpc_Ipfs_GetFile_Response_Error_NULL Rpc_Ipfs_GetFile_Response_Error_Code = 0 - Rpc_Ipfs_GetFile_Response_Error_UNKNOWN_ERROR Rpc_Ipfs_GetFile_Response_Error_Code = 1 - Rpc_Ipfs_GetFile_Response_Error_BAD_INPUT Rpc_Ipfs_GetFile_Response_Error_Code = 2 - Rpc_Ipfs_GetFile_Response_Error_NOT_FOUND Rpc_Ipfs_GetFile_Response_Error_Code = 101 - Rpc_Ipfs_GetFile_Response_Error_TIMEOUT Rpc_Ipfs_GetFile_Response_Error_Code = 102 + Rpc_Ipfs_Get_File_Response_Error_NULL Rpc_Ipfs_Get_File_Response_Error_Code = 0 + Rpc_Ipfs_Get_File_Response_Error_UNKNOWN_ERROR Rpc_Ipfs_Get_File_Response_Error_Code = 1 + Rpc_Ipfs_Get_File_Response_Error_BAD_INPUT Rpc_Ipfs_Get_File_Response_Error_Code = 2 + Rpc_Ipfs_Get_File_Response_Error_NOT_FOUND Rpc_Ipfs_Get_File_Response_Error_Code = 101 + Rpc_Ipfs_Get_File_Response_Error_TIMEOUT Rpc_Ipfs_Get_File_Response_Error_Code = 102 ) -var Rpc_Ipfs_GetFile_Response_Error_Code_name = map[int32]string{ +var Rpc_Ipfs_Get_File_Response_Error_Code_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -451,7 +451,7 @@ var Rpc_Ipfs_GetFile_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Ipfs_GetFile_Response_Error_Code_value = map[string]int32{ +var Rpc_Ipfs_Get_File_Response_Error_Code_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -459,25 +459,25 @@ var Rpc_Ipfs_GetFile_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Ipfs_GetFile_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Ipfs_GetFile_Response_Error_Code_name, int32(x)) +func (x Rpc_Ipfs_Get_File_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Ipfs_Get_File_Response_Error_Code_name, int32(x)) } -func (Rpc_Ipfs_GetFile_Response_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 1, 0, 0} +func (Rpc_Ipfs_Get_File_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 1, 0, 0} } -type Rpc_Image_GetBlob_Response_Error_Code int32 +type Rpc_Image_Get_Blob_Response_Error_Code int32 const ( - Rpc_Image_GetBlob_Response_Error_NULL Rpc_Image_GetBlob_Response_Error_Code = 0 - Rpc_Image_GetBlob_Response_Error_UNKNOWN_ERROR Rpc_Image_GetBlob_Response_Error_Code = 1 - Rpc_Image_GetBlob_Response_Error_BAD_INPUT Rpc_Image_GetBlob_Response_Error_Code = 2 - Rpc_Image_GetBlob_Response_Error_NOT_FOUND Rpc_Image_GetBlob_Response_Error_Code = 101 - Rpc_Image_GetBlob_Response_Error_TIMEOUT Rpc_Image_GetBlob_Response_Error_Code = 102 + Rpc_Image_Get_Blob_Response_Error_NULL Rpc_Image_Get_Blob_Response_Error_Code = 0 + Rpc_Image_Get_Blob_Response_Error_UNKNOWN_ERROR Rpc_Image_Get_Blob_Response_Error_Code = 1 + Rpc_Image_Get_Blob_Response_Error_BAD_INPUT Rpc_Image_Get_Blob_Response_Error_Code = 2 + Rpc_Image_Get_Blob_Response_Error_NOT_FOUND Rpc_Image_Get_Blob_Response_Error_Code = 101 + Rpc_Image_Get_Blob_Response_Error_TIMEOUT Rpc_Image_Get_Blob_Response_Error_Code = 102 ) -var Rpc_Image_GetBlob_Response_Error_Code_name = map[int32]string{ +var Rpc_Image_Get_Blob_Response_Error_Code_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -485,7 +485,7 @@ var Rpc_Image_GetBlob_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Image_GetBlob_Response_Error_Code_value = map[string]int32{ +var Rpc_Image_Get_Blob_Response_Error_Code_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -493,25 +493,25 @@ var Rpc_Image_GetBlob_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Image_GetBlob_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Image_GetBlob_Response_Error_Code_name, int32(x)) +func (x Rpc_Image_Get_Blob_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Image_Get_Blob_Response_Error_Code_name, int32(x)) } -func (Rpc_Image_GetBlob_Response_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 0, 0} +func (Rpc_Image_Get_Blob_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 1, 0, 0} } -type Rpc_Image_GetFile_Response_Error_Code int32 +type Rpc_Image_Get_File_Response_Error_Code int32 const ( - Rpc_Image_GetFile_Response_Error_NULL Rpc_Image_GetFile_Response_Error_Code = 0 - Rpc_Image_GetFile_Response_Error_UNKNOWN_ERROR Rpc_Image_GetFile_Response_Error_Code = 1 - Rpc_Image_GetFile_Response_Error_BAD_INPUT Rpc_Image_GetFile_Response_Error_Code = 2 - Rpc_Image_GetFile_Response_Error_NOT_FOUND Rpc_Image_GetFile_Response_Error_Code = 101 - Rpc_Image_GetFile_Response_Error_TIMEOUT Rpc_Image_GetFile_Response_Error_Code = 102 + Rpc_Image_Get_File_Response_Error_NULL Rpc_Image_Get_File_Response_Error_Code = 0 + Rpc_Image_Get_File_Response_Error_UNKNOWN_ERROR Rpc_Image_Get_File_Response_Error_Code = 1 + Rpc_Image_Get_File_Response_Error_BAD_INPUT Rpc_Image_Get_File_Response_Error_Code = 2 + Rpc_Image_Get_File_Response_Error_NOT_FOUND Rpc_Image_Get_File_Response_Error_Code = 101 + Rpc_Image_Get_File_Response_Error_TIMEOUT Rpc_Image_Get_File_Response_Error_Code = 102 ) -var Rpc_Image_GetFile_Response_Error_Code_name = map[int32]string{ +var Rpc_Image_Get_File_Response_Error_Code_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -519,7 +519,7 @@ var Rpc_Image_GetFile_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Image_GetFile_Response_Error_Code_value = map[string]int32{ +var Rpc_Image_Get_File_Response_Error_Code_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -527,12 +527,12 @@ var Rpc_Image_GetFile_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Image_GetFile_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Image_GetFile_Response_Error_Code_name, int32(x)) +func (x Rpc_Image_Get_File_Response_Error_Code) String() string { + return proto.EnumName(Rpc_Image_Get_File_Response_Error_Code_name, int32(x)) } -func (Rpc_Image_GetFile_Response_Error_Code) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 1, 0, 0} +func (Rpc_Image_Get_File_Response_Error_Code) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 1, 0, 0} } type Rpc struct { @@ -607,21 +607,21 @@ func (m *Rpc_Block) XXX_DiscardUnknown() { var xxx_messageInfo_Rpc_Block proto.InternalMessageInfo -type Rpc_Block_HistoryMove struct { +type Rpc_Block_History struct { } -func (m *Rpc_Block_HistoryMove) Reset() { *m = Rpc_Block_HistoryMove{} } -func (m *Rpc_Block_HistoryMove) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_HistoryMove) ProtoMessage() {} -func (*Rpc_Block_HistoryMove) Descriptor() ([]byte, []int) { +func (m *Rpc_Block_History) Reset() { *m = Rpc_Block_History{} } +func (m *Rpc_Block_History) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_History) ProtoMessage() {} +func (*Rpc_Block_History) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0} } -func (m *Rpc_Block_HistoryMove) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Block_History) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_HistoryMove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Block_History) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_HistoryMove.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Block_History.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -631,36 +631,72 @@ func (m *Rpc_Block_HistoryMove) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *Rpc_Block_HistoryMove) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_HistoryMove.Merge(m, src) +func (m *Rpc_Block_History) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_History.Merge(m, src) } -func (m *Rpc_Block_HistoryMove) XXX_Size() int { +func (m *Rpc_Block_History) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_HistoryMove) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_HistoryMove.DiscardUnknown(m) +func (m *Rpc_Block_History) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_History.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_HistoryMove proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Block_History proto.InternalMessageInfo -type Rpc_Block_HistoryMove_Request struct { +type Rpc_Block_History_Move struct { +} + +func (m *Rpc_Block_History_Move) Reset() { *m = Rpc_Block_History_Move{} } +func (m *Rpc_Block_History_Move) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_History_Move) ProtoMessage() {} +func (*Rpc_Block_History_Move) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0} +} +func (m *Rpc_Block_History_Move) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Block_History_Move) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Block_History_Move.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Block_History_Move) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_History_Move.Merge(m, src) +} +func (m *Rpc_Block_History_Move) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Block_History_Move) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_History_Move.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Block_History_Move proto.InternalMessageInfo + +type Rpc_Block_History_Move_Request struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` } -func (m *Rpc_Block_HistoryMove_Request) Reset() { *m = Rpc_Block_HistoryMove_Request{} } -func (m *Rpc_Block_HistoryMove_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_HistoryMove_Request) ProtoMessage() {} -func (*Rpc_Block_HistoryMove_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0} +func (m *Rpc_Block_History_Move_Request) Reset() { *m = Rpc_Block_History_Move_Request{} } +func (m *Rpc_Block_History_Move_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_History_Move_Request) ProtoMessage() {} +func (*Rpc_Block_History_Move_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 0} } -func (m *Rpc_Block_HistoryMove_Request) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Block_History_Move_Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_HistoryMove_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Block_History_Move_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_HistoryMove_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Block_History_Move_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -670,55 +706,55 @@ func (m *Rpc_Block_HistoryMove_Request) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *Rpc_Block_HistoryMove_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_HistoryMove_Request.Merge(m, src) +func (m *Rpc_Block_History_Move_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_History_Move_Request.Merge(m, src) } -func (m *Rpc_Block_HistoryMove_Request) XXX_Size() int { +func (m *Rpc_Block_History_Move_Request) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_HistoryMove_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_HistoryMove_Request.DiscardUnknown(m) +func (m *Rpc_Block_History_Move_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_History_Move_Request.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_HistoryMove_Request proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Block_History_Move_Request proto.InternalMessageInfo -func (m *Rpc_Block_HistoryMove_Request) GetId() string { +func (m *Rpc_Block_History_Move_Request) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Block_HistoryMove_Request) GetContextBlockId() string { +func (m *Rpc_Block_History_Move_Request) GetContextBlockId() string { if m != nil { return m.ContextBlockId } return "" } -func (m *Rpc_Block_HistoryMove_Request) GetMoveForward() bool { +func (m *Rpc_Block_History_Move_Request) GetMoveForward() bool { if m != nil { return m.MoveForward } return false } -type Rpc_Block_HistoryMove_Response struct { - Error *Rpc_Block_HistoryMove_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type Rpc_Block_History_Move_Response struct { + Error *Rpc_Block_History_Move_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Block_HistoryMove_Response) Reset() { *m = Rpc_Block_HistoryMove_Response{} } -func (m *Rpc_Block_HistoryMove_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_HistoryMove_Response) ProtoMessage() {} -func (*Rpc_Block_HistoryMove_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 1} +func (m *Rpc_Block_History_Move_Response) Reset() { *m = Rpc_Block_History_Move_Response{} } +func (m *Rpc_Block_History_Move_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_History_Move_Response) ProtoMessage() {} +func (*Rpc_Block_History_Move_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 1} } -func (m *Rpc_Block_HistoryMove_Response) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Block_History_Move_Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_HistoryMove_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Block_History_Move_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_HistoryMove_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Block_History_Move_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -728,42 +764,42 @@ func (m *Rpc_Block_HistoryMove_Response) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *Rpc_Block_HistoryMove_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_HistoryMove_Response.Merge(m, src) +func (m *Rpc_Block_History_Move_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_History_Move_Response.Merge(m, src) } -func (m *Rpc_Block_HistoryMove_Response) XXX_Size() int { +func (m *Rpc_Block_History_Move_Response) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_HistoryMove_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_HistoryMove_Response.DiscardUnknown(m) +func (m *Rpc_Block_History_Move_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_History_Move_Response.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_HistoryMove_Response proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Block_History_Move_Response proto.InternalMessageInfo -func (m *Rpc_Block_HistoryMove_Response) GetError() *Rpc_Block_HistoryMove_Response_Error { +func (m *Rpc_Block_History_Move_Response) GetError() *Rpc_Block_History_Move_Response_Error { if m != nil { return m.Error } return nil } -type Rpc_Block_HistoryMove_Response_Error struct { - Code Rpc_Block_HistoryMove_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_HistoryMove_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type Rpc_Block_History_Move_Response_Error struct { + Code Rpc_Block_History_Move_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_History_Move_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Block_HistoryMove_Response_Error) Reset() { *m = Rpc_Block_HistoryMove_Response_Error{} } -func (m *Rpc_Block_HistoryMove_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_HistoryMove_Response_Error) ProtoMessage() {} -func (*Rpc_Block_HistoryMove_Response_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 1, 0} +func (m *Rpc_Block_History_Move_Response_Error) Reset() { *m = Rpc_Block_History_Move_Response_Error{} } +func (m *Rpc_Block_History_Move_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Block_History_Move_Response_Error) ProtoMessage() {} +func (*Rpc_Block_History_Move_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 1, 0} } -func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Block_History_Move_Response_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Block_History_Move_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Block_History_Move_Response_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -773,26 +809,26 @@ func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error.Merge(m, src) +func (m *Rpc_Block_History_Move_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Block_History_Move_Response_Error.Merge(m, src) } -func (m *Rpc_Block_HistoryMove_Response_Error) XXX_Size() int { +func (m *Rpc_Block_History_Move_Response_Error) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_HistoryMove_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error.DiscardUnknown(m) +func (m *Rpc_Block_History_Move_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Block_History_Move_Response_Error.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_HistoryMove_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Block_History_Move_Response_Error proto.InternalMessageInfo -func (m *Rpc_Block_HistoryMove_Response_Error) GetCode() Rpc_Block_HistoryMove_Response_Error_Code { +func (m *Rpc_Block_History_Move_Response_Error) GetCode() Rpc_Block_History_Move_Response_Error_Code { if m != nil { return m.Code } - return Rpc_Block_HistoryMove_Response_Error_NULL + return Rpc_Block_History_Move_Response_Error_NULL } -func (m *Rpc_Block_HistoryMove_Response_Error) GetDescription() string { +func (m *Rpc_Block_History_Move_Response_Error) GetDescription() string { if m != nil { return m.Description } @@ -2866,21 +2902,21 @@ func (m *Rpc_Ipfs) XXX_DiscardUnknown() { var xxx_messageInfo_Rpc_Ipfs proto.InternalMessageInfo -type Rpc_Ipfs_GetFile struct { +type Rpc_Ipfs_Get struct { } -func (m *Rpc_Ipfs_GetFile) Reset() { *m = Rpc_Ipfs_GetFile{} } -func (m *Rpc_Ipfs_GetFile) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_GetFile) ProtoMessage() {} -func (*Rpc_Ipfs_GetFile) Descriptor() ([]byte, []int) { +func (m *Rpc_Ipfs_Get) Reset() { *m = Rpc_Ipfs_Get{} } +func (m *Rpc_Ipfs_Get) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_Get) ProtoMessage() {} +func (*Rpc_Ipfs_Get) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0} } -func (m *Rpc_Ipfs_GetFile) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Ipfs_Get) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_GetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Ipfs_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_GetFile.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Ipfs_Get.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2890,34 +2926,70 @@ func (m *Rpc_Ipfs_GetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *Rpc_Ipfs_GetFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_GetFile.Merge(m, src) +func (m *Rpc_Ipfs_Get) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_Get.Merge(m, src) } -func (m *Rpc_Ipfs_GetFile) XXX_Size() int { +func (m *Rpc_Ipfs_Get) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_GetFile) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_GetFile.DiscardUnknown(m) +func (m *Rpc_Ipfs_Get) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_Get.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_GetFile proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Ipfs_Get proto.InternalMessageInfo -type Rpc_Ipfs_GetFile_Request struct { +type Rpc_Ipfs_Get_File struct { +} + +func (m *Rpc_Ipfs_Get_File) Reset() { *m = Rpc_Ipfs_Get_File{} } +func (m *Rpc_Ipfs_Get_File) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_Get_File) ProtoMessage() {} +func (*Rpc_Ipfs_Get_File) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0} +} +func (m *Rpc_Ipfs_Get_File) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Ipfs_Get_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Ipfs_Get_File.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Ipfs_Get_File) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_Get_File.Merge(m, src) +} +func (m *Rpc_Ipfs_Get_File) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Ipfs_Get_File) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_Get_File.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Ipfs_Get_File proto.InternalMessageInfo + +type Rpc_Ipfs_Get_File_Request struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *Rpc_Ipfs_GetFile_Request) Reset() { *m = Rpc_Ipfs_GetFile_Request{} } -func (m *Rpc_Ipfs_GetFile_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_GetFile_Request) ProtoMessage() {} -func (*Rpc_Ipfs_GetFile_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0} +func (m *Rpc_Ipfs_Get_File_Request) Reset() { *m = Rpc_Ipfs_Get_File_Request{} } +func (m *Rpc_Ipfs_Get_File_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_Get_File_Request) ProtoMessage() {} +func (*Rpc_Ipfs_Get_File_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 0} } -func (m *Rpc_Ipfs_GetFile_Request) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Ipfs_Get_File_Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_GetFile_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Ipfs_Get_File_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_GetFile_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Ipfs_Get_File_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2927,44 +2999,44 @@ func (m *Rpc_Ipfs_GetFile_Request) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Rpc_Ipfs_GetFile_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_GetFile_Request.Merge(m, src) +func (m *Rpc_Ipfs_Get_File_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_Get_File_Request.Merge(m, src) } -func (m *Rpc_Ipfs_GetFile_Request) XXX_Size() int { +func (m *Rpc_Ipfs_Get_File_Request) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_GetFile_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_GetFile_Request.DiscardUnknown(m) +func (m *Rpc_Ipfs_Get_File_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_Get_File_Request.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_GetFile_Request proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Ipfs_Get_File_Request proto.InternalMessageInfo -func (m *Rpc_Ipfs_GetFile_Request) GetId() string { +func (m *Rpc_Ipfs_Get_File_Request) GetId() string { if m != nil { return m.Id } return "" } -type Rpc_Ipfs_GetFile_Response struct { - Error *Rpc_Ipfs_GetFile_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Media string `protobuf:"bytes,3,opt,name=media,proto3" json:"media,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` +type Rpc_Ipfs_Get_File_Response struct { + Error *Rpc_Ipfs_Get_File_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Media string `protobuf:"bytes,3,opt,name=media,proto3" json:"media,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` } -func (m *Rpc_Ipfs_GetFile_Response) Reset() { *m = Rpc_Ipfs_GetFile_Response{} } -func (m *Rpc_Ipfs_GetFile_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_GetFile_Response) ProtoMessage() {} -func (*Rpc_Ipfs_GetFile_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 1} +func (m *Rpc_Ipfs_Get_File_Response) Reset() { *m = Rpc_Ipfs_Get_File_Response{} } +func (m *Rpc_Ipfs_Get_File_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_Get_File_Response) ProtoMessage() {} +func (*Rpc_Ipfs_Get_File_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 1} } -func (m *Rpc_Ipfs_GetFile_Response) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Ipfs_Get_File_Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_GetFile_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Ipfs_Get_File_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_GetFile_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Ipfs_Get_File_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2974,63 +3046,63 @@ func (m *Rpc_Ipfs_GetFile_Response) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Ipfs_GetFile_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_GetFile_Response.Merge(m, src) +func (m *Rpc_Ipfs_Get_File_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_Get_File_Response.Merge(m, src) } -func (m *Rpc_Ipfs_GetFile_Response) XXX_Size() int { +func (m *Rpc_Ipfs_Get_File_Response) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_GetFile_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_GetFile_Response.DiscardUnknown(m) +func (m *Rpc_Ipfs_Get_File_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_Get_File_Response.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_GetFile_Response proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Ipfs_Get_File_Response proto.InternalMessageInfo -func (m *Rpc_Ipfs_GetFile_Response) GetError() *Rpc_Ipfs_GetFile_Response_Error { +func (m *Rpc_Ipfs_Get_File_Response) GetError() *Rpc_Ipfs_Get_File_Response_Error { if m != nil { return m.Error } return nil } -func (m *Rpc_Ipfs_GetFile_Response) GetData() []byte { +func (m *Rpc_Ipfs_Get_File_Response) GetData() []byte { if m != nil { return m.Data } return nil } -func (m *Rpc_Ipfs_GetFile_Response) GetMedia() string { +func (m *Rpc_Ipfs_Get_File_Response) GetMedia() string { if m != nil { return m.Media } return "" } -func (m *Rpc_Ipfs_GetFile_Response) GetName() string { +func (m *Rpc_Ipfs_Get_File_Response) GetName() string { if m != nil { return m.Name } return "" } -type Rpc_Ipfs_GetFile_Response_Error struct { - Code Rpc_Ipfs_GetFile_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Ipfs_GetFile_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type Rpc_Ipfs_Get_File_Response_Error struct { + Code Rpc_Ipfs_Get_File_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Ipfs_Get_File_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Ipfs_GetFile_Response_Error) Reset() { *m = Rpc_Ipfs_GetFile_Response_Error{} } -func (m *Rpc_Ipfs_GetFile_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_GetFile_Response_Error) ProtoMessage() {} -func (*Rpc_Ipfs_GetFile_Response_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 1, 0} +func (m *Rpc_Ipfs_Get_File_Response_Error) Reset() { *m = Rpc_Ipfs_Get_File_Response_Error{} } +func (m *Rpc_Ipfs_Get_File_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Ipfs_Get_File_Response_Error) ProtoMessage() {} +func (*Rpc_Ipfs_Get_File_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 1, 0} } -func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3040,26 +3112,26 @@ func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error.Merge(m, src) +func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error.Merge(m, src) } -func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_Size() int { +func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_GetFile_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error.DiscardUnknown(m) +func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_GetFile_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error proto.InternalMessageInfo -func (m *Rpc_Ipfs_GetFile_Response_Error) GetCode() Rpc_Ipfs_GetFile_Response_Error_Code { +func (m *Rpc_Ipfs_Get_File_Response_Error) GetCode() Rpc_Ipfs_Get_File_Response_Error_Code { if m != nil { return m.Code } - return Rpc_Ipfs_GetFile_Response_Error_NULL + return Rpc_Ipfs_Get_File_Response_Error_NULL } -func (m *Rpc_Ipfs_GetFile_Response_Error) GetDescription() string { +func (m *Rpc_Ipfs_Get_File_Response_Error) GetDescription() string { if m != nil { return m.Description } @@ -3102,21 +3174,21 @@ func (m *Rpc_Image) XXX_DiscardUnknown() { var xxx_messageInfo_Rpc_Image proto.InternalMessageInfo -type Rpc_Image_GetBlob struct { +type Rpc_Image_Get struct { } -func (m *Rpc_Image_GetBlob) Reset() { *m = Rpc_Image_GetBlob{} } -func (m *Rpc_Image_GetBlob) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetBlob) ProtoMessage() {} -func (*Rpc_Image_GetBlob) Descriptor() ([]byte, []int) { +func (m *Rpc_Image_Get) Reset() { *m = Rpc_Image_Get{} } +func (m *Rpc_Image_Get) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get) ProtoMessage() {} +func (*Rpc_Image_Get) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0} } -func (m *Rpc_Image_GetBlob) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetBlob.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3126,35 +3198,71 @@ func (m *Rpc_Image_GetBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *Rpc_Image_GetBlob) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetBlob.Merge(m, src) +func (m *Rpc_Image_Get) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get.Merge(m, src) } -func (m *Rpc_Image_GetBlob) XXX_Size() int { +func (m *Rpc_Image_Get) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetBlob) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetBlob.DiscardUnknown(m) +func (m *Rpc_Image_Get) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetBlob proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get proto.InternalMessageInfo -type Rpc_Image_GetBlob_Request struct { +type Rpc_Image_Get_Blob struct { +} + +func (m *Rpc_Image_Get_Blob) Reset() { *m = Rpc_Image_Get_Blob{} } +func (m *Rpc_Image_Get_Blob) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_Blob) ProtoMessage() {} +func (*Rpc_Image_Get_Blob) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0} +} +func (m *Rpc_Image_Get_Blob) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rpc_Image_Get_Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rpc_Image_Get_Blob.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Rpc_Image_Get_Blob) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_Blob.Merge(m, src) +} +func (m *Rpc_Image_Get_Blob) XXX_Size() int { + return m.Size() +} +func (m *Rpc_Image_Get_Blob) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_Blob.DiscardUnknown(m) +} + +var xxx_messageInfo_Rpc_Image_Get_Blob proto.InternalMessageInfo + +type Rpc_Image_Get_Blob_Request struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Size_ Model_Image_Size `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.Model_Image_Size" json:"size,omitempty"` } -func (m *Rpc_Image_GetBlob_Request) Reset() { *m = Rpc_Image_GetBlob_Request{} } -func (m *Rpc_Image_GetBlob_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetBlob_Request) ProtoMessage() {} -func (*Rpc_Image_GetBlob_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0} +func (m *Rpc_Image_Get_Blob_Request) Reset() { *m = Rpc_Image_Get_Blob_Request{} } +func (m *Rpc_Image_Get_Blob_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_Blob_Request) ProtoMessage() {} +func (*Rpc_Image_Get_Blob_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 0} } -func (m *Rpc_Image_GetBlob_Request) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_Blob_Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetBlob_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_Blob_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetBlob_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_Blob_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3164,49 +3272,49 @@ func (m *Rpc_Image_GetBlob_Request) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Image_GetBlob_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetBlob_Request.Merge(m, src) +func (m *Rpc_Image_Get_Blob_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_Blob_Request.Merge(m, src) } -func (m *Rpc_Image_GetBlob_Request) XXX_Size() int { +func (m *Rpc_Image_Get_Blob_Request) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetBlob_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetBlob_Request.DiscardUnknown(m) +func (m *Rpc_Image_Get_Blob_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_Blob_Request.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetBlob_Request proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_Blob_Request proto.InternalMessageInfo -func (m *Rpc_Image_GetBlob_Request) GetId() string { +func (m *Rpc_Image_Get_Blob_Request) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Image_GetBlob_Request) GetSize_() Model_Image_Size { +func (m *Rpc_Image_Get_Blob_Request) GetSize_() Model_Image_Size { if m != nil { return m.Size_ } return Model_Image_LARGE } -type Rpc_Image_GetBlob_Response struct { - Error *Rpc_Image_GetBlob_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` +type Rpc_Image_Get_Blob_Response struct { + Error *Rpc_Image_Get_Blob_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` } -func (m *Rpc_Image_GetBlob_Response) Reset() { *m = Rpc_Image_GetBlob_Response{} } -func (m *Rpc_Image_GetBlob_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetBlob_Response) ProtoMessage() {} -func (*Rpc_Image_GetBlob_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1} +func (m *Rpc_Image_Get_Blob_Response) Reset() { *m = Rpc_Image_Get_Blob_Response{} } +func (m *Rpc_Image_Get_Blob_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_Blob_Response) ProtoMessage() {} +func (*Rpc_Image_Get_Blob_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 1} } -func (m *Rpc_Image_GetBlob_Response) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_Blob_Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetBlob_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_Blob_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetBlob_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_Blob_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3216,49 +3324,49 @@ func (m *Rpc_Image_GetBlob_Response) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Image_GetBlob_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetBlob_Response.Merge(m, src) +func (m *Rpc_Image_Get_Blob_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_Blob_Response.Merge(m, src) } -func (m *Rpc_Image_GetBlob_Response) XXX_Size() int { +func (m *Rpc_Image_Get_Blob_Response) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetBlob_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetBlob_Response.DiscardUnknown(m) +func (m *Rpc_Image_Get_Blob_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_Blob_Response.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetBlob_Response proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_Blob_Response proto.InternalMessageInfo -func (m *Rpc_Image_GetBlob_Response) GetError() *Rpc_Image_GetBlob_Response_Error { +func (m *Rpc_Image_Get_Blob_Response) GetError() *Rpc_Image_Get_Blob_Response_Error { if m != nil { return m.Error } return nil } -func (m *Rpc_Image_GetBlob_Response) GetBlob() []byte { +func (m *Rpc_Image_Get_Blob_Response) GetBlob() []byte { if m != nil { return m.Blob } return nil } -type Rpc_Image_GetBlob_Response_Error struct { - Code Rpc_Image_GetBlob_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_GetBlob_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type Rpc_Image_Get_Blob_Response_Error struct { + Code Rpc_Image_Get_Blob_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_Get_Blob_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Image_GetBlob_Response_Error) Reset() { *m = Rpc_Image_GetBlob_Response_Error{} } -func (m *Rpc_Image_GetBlob_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetBlob_Response_Error) ProtoMessage() {} -func (*Rpc_Image_GetBlob_Response_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 0} +func (m *Rpc_Image_Get_Blob_Response_Error) Reset() { *m = Rpc_Image_Get_Blob_Response_Error{} } +func (m *Rpc_Image_Get_Blob_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_Blob_Response_Error) ProtoMessage() {} +func (*Rpc_Image_Get_Blob_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 1, 0} } -func (m *Rpc_Image_GetBlob_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetBlob_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetBlob_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3268,47 +3376,47 @@ func (m *Rpc_Image_GetBlob_Response_Error) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *Rpc_Image_GetBlob_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetBlob_Response_Error.Merge(m, src) +func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error.Merge(m, src) } -func (m *Rpc_Image_GetBlob_Response_Error) XXX_Size() int { +func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetBlob_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetBlob_Response_Error.DiscardUnknown(m) +func (m *Rpc_Image_Get_Blob_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetBlob_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error proto.InternalMessageInfo -func (m *Rpc_Image_GetBlob_Response_Error) GetCode() Rpc_Image_GetBlob_Response_Error_Code { +func (m *Rpc_Image_Get_Blob_Response_Error) GetCode() Rpc_Image_Get_Blob_Response_Error_Code { if m != nil { return m.Code } - return Rpc_Image_GetBlob_Response_Error_NULL + return Rpc_Image_Get_Blob_Response_Error_NULL } -func (m *Rpc_Image_GetBlob_Response_Error) GetDescription() string { +func (m *Rpc_Image_Get_Blob_Response_Error) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Image_GetFile struct { +type Rpc_Image_Get_File struct { } -func (m *Rpc_Image_GetFile) Reset() { *m = Rpc_Image_GetFile{} } -func (m *Rpc_Image_GetFile) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetFile) ProtoMessage() {} -func (*Rpc_Image_GetFile) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1} +func (m *Rpc_Image_Get_File) Reset() { *m = Rpc_Image_Get_File{} } +func (m *Rpc_Image_Get_File) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_File) ProtoMessage() {} +func (*Rpc_Image_Get_File) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1} } -func (m *Rpc_Image_GetFile) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_File) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetFile.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_File.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3318,35 +3426,35 @@ func (m *Rpc_Image_GetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *Rpc_Image_GetFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetFile.Merge(m, src) +func (m *Rpc_Image_Get_File) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_File.Merge(m, src) } -func (m *Rpc_Image_GetFile) XXX_Size() int { +func (m *Rpc_Image_Get_File) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetFile) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetFile.DiscardUnknown(m) +func (m *Rpc_Image_Get_File) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_File.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetFile proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_File proto.InternalMessageInfo -type Rpc_Image_GetFile_Request struct { +type Rpc_Image_Get_File_Request struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Size_ Model_Image_Size `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.Model_Image_Size" json:"size,omitempty"` } -func (m *Rpc_Image_GetFile_Request) Reset() { *m = Rpc_Image_GetFile_Request{} } -func (m *Rpc_Image_GetFile_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetFile_Request) ProtoMessage() {} -func (*Rpc_Image_GetFile_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 0} +func (m *Rpc_Image_Get_File_Request) Reset() { *m = Rpc_Image_Get_File_Request{} } +func (m *Rpc_Image_Get_File_Request) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_File_Request) ProtoMessage() {} +func (*Rpc_Image_Get_File_Request) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 0} } -func (m *Rpc_Image_GetFile_Request) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_File_Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetFile_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_File_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetFile_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_File_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3356,49 +3464,49 @@ func (m *Rpc_Image_GetFile_Request) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Image_GetFile_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetFile_Request.Merge(m, src) +func (m *Rpc_Image_Get_File_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_File_Request.Merge(m, src) } -func (m *Rpc_Image_GetFile_Request) XXX_Size() int { +func (m *Rpc_Image_Get_File_Request) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetFile_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetFile_Request.DiscardUnknown(m) +func (m *Rpc_Image_Get_File_Request) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_File_Request.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetFile_Request proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_File_Request proto.InternalMessageInfo -func (m *Rpc_Image_GetFile_Request) GetId() string { +func (m *Rpc_Image_Get_File_Request) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Image_GetFile_Request) GetSize_() Model_Image_Size { +func (m *Rpc_Image_Get_File_Request) GetSize_() Model_Image_Size { if m != nil { return m.Size_ } return Model_Image_LARGE } -type Rpc_Image_GetFile_Response struct { - Error *Rpc_Image_GetFile_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` +type Rpc_Image_Get_File_Response struct { + Error *Rpc_Image_Get_File_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` } -func (m *Rpc_Image_GetFile_Response) Reset() { *m = Rpc_Image_GetFile_Response{} } -func (m *Rpc_Image_GetFile_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetFile_Response) ProtoMessage() {} -func (*Rpc_Image_GetFile_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 1} +func (m *Rpc_Image_Get_File_Response) Reset() { *m = Rpc_Image_Get_File_Response{} } +func (m *Rpc_Image_Get_File_Response) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_File_Response) ProtoMessage() {} +func (*Rpc_Image_Get_File_Response) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 1} } -func (m *Rpc_Image_GetFile_Response) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_File_Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetFile_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_File_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetFile_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_File_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3408,49 +3516,49 @@ func (m *Rpc_Image_GetFile_Response) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Image_GetFile_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetFile_Response.Merge(m, src) +func (m *Rpc_Image_Get_File_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_File_Response.Merge(m, src) } -func (m *Rpc_Image_GetFile_Response) XXX_Size() int { +func (m *Rpc_Image_Get_File_Response) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetFile_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetFile_Response.DiscardUnknown(m) +func (m *Rpc_Image_Get_File_Response) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_File_Response.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetFile_Response proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_File_Response proto.InternalMessageInfo -func (m *Rpc_Image_GetFile_Response) GetError() *Rpc_Image_GetFile_Response_Error { +func (m *Rpc_Image_Get_File_Response) GetError() *Rpc_Image_Get_File_Response_Error { if m != nil { return m.Error } return nil } -func (m *Rpc_Image_GetFile_Response) GetLocalPath() string { +func (m *Rpc_Image_Get_File_Response) GetLocalPath() string { if m != nil { return m.LocalPath } return "" } -type Rpc_Image_GetFile_Response_Error struct { - Code Rpc_Image_GetFile_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_GetFile_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type Rpc_Image_Get_File_Response_Error struct { + Code Rpc_Image_Get_File_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_Get_File_Response_Error_Code" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Image_GetFile_Response_Error) Reset() { *m = Rpc_Image_GetFile_Response_Error{} } -func (m *Rpc_Image_GetFile_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_GetFile_Response_Error) ProtoMessage() {} -func (*Rpc_Image_GetFile_Response_Error) Descriptor() ([]byte, []int) { - return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 1, 1, 0} +func (m *Rpc_Image_Get_File_Response_Error) Reset() { *m = Rpc_Image_Get_File_Response_Error{} } +func (m *Rpc_Image_Get_File_Response_Error) String() string { return proto.CompactTextString(m) } +func (*Rpc_Image_Get_File_Response_Error) ProtoMessage() {} +func (*Rpc_Image_Get_File_Response_Error) Descriptor() ([]byte, []int) { + return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 1, 0} } -func (m *Rpc_Image_GetFile_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *Rpc_Image_Get_File_Response_Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_GetFile_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Rpc_Image_Get_File_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_GetFile_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_Rpc_Image_Get_File_Response_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3460,26 +3568,26 @@ func (m *Rpc_Image_GetFile_Response_Error) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *Rpc_Image_GetFile_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_GetFile_Response_Error.Merge(m, src) +func (m *Rpc_Image_Get_File_Response_Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rpc_Image_Get_File_Response_Error.Merge(m, src) } -func (m *Rpc_Image_GetFile_Response_Error) XXX_Size() int { +func (m *Rpc_Image_Get_File_Response_Error) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_GetFile_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_GetFile_Response_Error.DiscardUnknown(m) +func (m *Rpc_Image_Get_File_Response_Error) XXX_DiscardUnknown() { + xxx_messageInfo_Rpc_Image_Get_File_Response_Error.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_GetFile_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_Rpc_Image_Get_File_Response_Error proto.InternalMessageInfo -func (m *Rpc_Image_GetFile_Response_Error) GetCode() Rpc_Image_GetFile_Response_Error_Code { +func (m *Rpc_Image_Get_File_Response_Error) GetCode() Rpc_Image_Get_File_Response_Error_Code { if m != nil { return m.Code } - return Rpc_Image_GetFile_Response_Error_NULL + return Rpc_Image_Get_File_Response_Error_NULL } -func (m *Rpc_Image_GetFile_Response_Error) GetDescription() string { +func (m *Rpc_Image_Get_File_Response_Error) GetDescription() string { if m != nil { return m.Description } @@ -3487,7 +3595,7 @@ func (m *Rpc_Image_GetFile_Response_Error) GetDescription() string { } func init() { - proto.RegisterEnum("anytype.Rpc_Block_HistoryMove_Response_Error_Code", Rpc_Block_HistoryMove_Response_Error_Code_name, Rpc_Block_HistoryMove_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Block_History_Move_Response_Error_Code", Rpc_Block_History_Move_Response_Error_Code_name, Rpc_Block_History_Move_Response_Error_Code_value) proto.RegisterEnum("anytype.Rpc_Block_Open_Response_Error_Code", Rpc_Block_Open_Response_Error_Code_name, Rpc_Block_Open_Response_Error_Code_value) proto.RegisterEnum("anytype.Rpc_Block_Create_Response_Error_Code", Rpc_Block_Create_Response_Error_Code_name, Rpc_Block_Create_Response_Error_Code_value) proto.RegisterEnum("anytype.Rpc_Block_Update_Response_Error_Code", Rpc_Block_Update_Response_Error_Code_name, Rpc_Block_Update_Response_Error_Code_value) @@ -3499,15 +3607,16 @@ func init() { proto.RegisterEnum("anytype.Rpc_Version_Get_Response_Error_Code", Rpc_Version_Get_Response_Error_Code_name, Rpc_Version_Get_Response_Error_Code_value) proto.RegisterEnum("anytype.Rpc_Log_Send_Request_Level", Rpc_Log_Send_Request_Level_name, Rpc_Log_Send_Request_Level_value) proto.RegisterEnum("anytype.Rpc_Log_Send_Response_Error_Code", Rpc_Log_Send_Response_Error_Code_name, Rpc_Log_Send_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Ipfs_GetFile_Response_Error_Code", Rpc_Ipfs_GetFile_Response_Error_Code_name, Rpc_Ipfs_GetFile_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Image_GetBlob_Response_Error_Code", Rpc_Image_GetBlob_Response_Error_Code_name, Rpc_Image_GetBlob_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Image_GetFile_Response_Error_Code", Rpc_Image_GetFile_Response_Error_Code_name, Rpc_Image_GetFile_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Ipfs_Get_File_Response_Error_Code", Rpc_Ipfs_Get_File_Response_Error_Code_name, Rpc_Ipfs_Get_File_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Image_Get_Blob_Response_Error_Code", Rpc_Image_Get_Blob_Response_Error_Code_name, Rpc_Image_Get_Blob_Response_Error_Code_value) + proto.RegisterEnum("anytype.Rpc_Image_Get_File_Response_Error_Code", Rpc_Image_Get_File_Response_Error_Code_name, Rpc_Image_Get_File_Response_Error_Code_value) proto.RegisterType((*Rpc)(nil), "anytype.Rpc") proto.RegisterType((*Rpc_Block)(nil), "anytype.Rpc.Block") - proto.RegisterType((*Rpc_Block_HistoryMove)(nil), "anytype.Rpc.Block.HistoryMove") - proto.RegisterType((*Rpc_Block_HistoryMove_Request)(nil), "anytype.Rpc.Block.HistoryMove.Request") - proto.RegisterType((*Rpc_Block_HistoryMove_Response)(nil), "anytype.Rpc.Block.HistoryMove.Response") - proto.RegisterType((*Rpc_Block_HistoryMove_Response_Error)(nil), "anytype.Rpc.Block.HistoryMove.Response.Error") + proto.RegisterType((*Rpc_Block_History)(nil), "anytype.Rpc.Block.History") + proto.RegisterType((*Rpc_Block_History_Move)(nil), "anytype.Rpc.Block.History.Move") + proto.RegisterType((*Rpc_Block_History_Move_Request)(nil), "anytype.Rpc.Block.History.Move.Request") + proto.RegisterType((*Rpc_Block_History_Move_Response)(nil), "anytype.Rpc.Block.History.Move.Response") + proto.RegisterType((*Rpc_Block_History_Move_Response_Error)(nil), "anytype.Rpc.Block.History.Move.Response.Error") proto.RegisterType((*Rpc_Block_Open)(nil), "anytype.Rpc.Block.Open") proto.RegisterType((*Rpc_Block_Open_Request)(nil), "anytype.Rpc.Block.Open.Request") proto.RegisterType((*Rpc_Block_Open_Response)(nil), "anytype.Rpc.Block.Open.Response") @@ -3553,120 +3662,123 @@ func init() { proto.RegisterType((*Rpc_Log_Send_Response)(nil), "anytype.Rpc.Log.Send.Response") proto.RegisterType((*Rpc_Log_Send_Response_Error)(nil), "anytype.Rpc.Log.Send.Response.Error") proto.RegisterType((*Rpc_Ipfs)(nil), "anytype.Rpc.Ipfs") - proto.RegisterType((*Rpc_Ipfs_GetFile)(nil), "anytype.Rpc.Ipfs.GetFile") - proto.RegisterType((*Rpc_Ipfs_GetFile_Request)(nil), "anytype.Rpc.Ipfs.GetFile.Request") - proto.RegisterType((*Rpc_Ipfs_GetFile_Response)(nil), "anytype.Rpc.Ipfs.GetFile.Response") - proto.RegisterType((*Rpc_Ipfs_GetFile_Response_Error)(nil), "anytype.Rpc.Ipfs.GetFile.Response.Error") + proto.RegisterType((*Rpc_Ipfs_Get)(nil), "anytype.Rpc.Ipfs.Get") + proto.RegisterType((*Rpc_Ipfs_Get_File)(nil), "anytype.Rpc.Ipfs.Get.File") + proto.RegisterType((*Rpc_Ipfs_Get_File_Request)(nil), "anytype.Rpc.Ipfs.Get.File.Request") + proto.RegisterType((*Rpc_Ipfs_Get_File_Response)(nil), "anytype.Rpc.Ipfs.Get.File.Response") + proto.RegisterType((*Rpc_Ipfs_Get_File_Response_Error)(nil), "anytype.Rpc.Ipfs.Get.File.Response.Error") proto.RegisterType((*Rpc_Image)(nil), "anytype.Rpc.Image") - proto.RegisterType((*Rpc_Image_GetBlob)(nil), "anytype.Rpc.Image.GetBlob") - proto.RegisterType((*Rpc_Image_GetBlob_Request)(nil), "anytype.Rpc.Image.GetBlob.Request") - proto.RegisterType((*Rpc_Image_GetBlob_Response)(nil), "anytype.Rpc.Image.GetBlob.Response") - proto.RegisterType((*Rpc_Image_GetBlob_Response_Error)(nil), "anytype.Rpc.Image.GetBlob.Response.Error") - proto.RegisterType((*Rpc_Image_GetFile)(nil), "anytype.Rpc.Image.GetFile") - proto.RegisterType((*Rpc_Image_GetFile_Request)(nil), "anytype.Rpc.Image.GetFile.Request") - proto.RegisterType((*Rpc_Image_GetFile_Response)(nil), "anytype.Rpc.Image.GetFile.Response") - proto.RegisterType((*Rpc_Image_GetFile_Response_Error)(nil), "anytype.Rpc.Image.GetFile.Response.Error") + proto.RegisterType((*Rpc_Image_Get)(nil), "anytype.Rpc.Image.Get") + proto.RegisterType((*Rpc_Image_Get_Blob)(nil), "anytype.Rpc.Image.Get.Blob") + proto.RegisterType((*Rpc_Image_Get_Blob_Request)(nil), "anytype.Rpc.Image.Get.Blob.Request") + proto.RegisterType((*Rpc_Image_Get_Blob_Response)(nil), "anytype.Rpc.Image.Get.Blob.Response") + proto.RegisterType((*Rpc_Image_Get_Blob_Response_Error)(nil), "anytype.Rpc.Image.Get.Blob.Response.Error") + proto.RegisterType((*Rpc_Image_Get_File)(nil), "anytype.Rpc.Image.Get.File") + proto.RegisterType((*Rpc_Image_Get_File_Request)(nil), "anytype.Rpc.Image.Get.File.Request") + proto.RegisterType((*Rpc_Image_Get_File_Response)(nil), "anytype.Rpc.Image.Get.File.Response") + proto.RegisterType((*Rpc_Image_Get_File_Response_Error)(nil), "anytype.Rpc.Image.Get.File.Response.Error") } func init() { proto.RegisterFile("commands.proto", fileDescriptor_0dff099eb2e3dfdb) } var fileDescriptor_0dff099eb2e3dfdb = []byte{ - // 1508 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x5d, 0x6c, 0xdb, 0xd4, - 0x17, 0x6f, 0x9c, 0xa4, 0x69, 0x4f, 0xbb, 0xfe, 0x3d, 0x6b, 0x9b, 0xba, 0xbb, 0xa9, 0xab, 0xba, - 0xff, 0x7f, 0xff, 0xee, 0xcb, 0x9b, 0x0a, 0x3c, 0x30, 0x31, 0x36, 0xc7, 0x71, 0x5a, 0x43, 0x62, - 0x47, 0x37, 0x4e, 0x0b, 0xbc, 0x58, 0xae, 0x7d, 0x9b, 0x06, 0x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xc9, 0xfa, 0x61, 0x6a, 0x17, 0xba, 0x9e, 0x82, 0x45, 0x8e, 0xe7, - 0xe5, 0x9a, 0xa4, 0xf8, 0xaa, 0x16, 0xd4, 0x7c, 0x4d, 0x51, 0xfb, 0x5a, 0x57, 0x15, 0x0e, 0x2b, - 0xaa, 0x24, 0x17, 0x04, 0xda, 0x91, 0xeb, 0xd8, 0x1d, 0xac, 0x05, 0x45, 0x95, 0xb8, 0xb2, 0x40, - 0x6f, 0xc4, 0x40, 0x16, 0x14, 0x95, 0x5b, 0xe5, 0x14, 0x0e, 0xd3, 0x75, 0xf4, 0x79, 0xba, 0xdf, - 0xa2, 0x93, 0x41, 0xcd, 0xa0, 0x77, 0xc3, 0x2a, 0x72, 0x51, 0x15, 0x4f, 0x0e, 0x24, 0x72, 0x74, - 0xaf, 0xfd, 0x14, 0x88, 0x52, 0x88, 0x88, 0x72, 0x36, 0x01, 0x56, 0x32, 0x55, 0x7e, 0xdd, 0x8d, - 0x2a, 0xfb, 0x61, 0xaf, 0x24, 0xab, 0x3e, 0x7d, 0x55, 0xb5, 0x28, 0xd7, 0xa4, 0x02, 0xed, 0x78, - 0x3b, 0x2c, 0x09, 0x1e, 0x79, 0x58, 0xe0, 0xe5, 0x55, 0x01, 0xab, 0x6b, 0x5c, 0xa9, 0x24, 0x28, - 0x6a, 0x51, 0xc4, 0x55, 0x85, 0xde, 0xb8, 0x53, 0x9b, 0xd6, 0x99, 0xa3, 0x70, 0xa4, 0x3f, 0x56, - 0x85, 0xa7, 0xc4, 0xaa, 0x52, 0x75, 0x75, 0xe1, 0x65, 0x8c, 0x6b, 0x15, 0x45, 0x28, 0xd0, 0x9b, - 0xcc, 0x01, 0x60, 0xfa, 0x28, 0xb8, 0x26, 0x79, 0xf2, 0x37, 0x1c, 0xff, 0xbe, 0xbf, 0x9e, 0x7b, - 0xe7, 0xea, 0x5a, 0x11, 0x70, 0x51, 0xc6, 0x65, 0xa1, 0x40, 0x3f, 0x8b, 0x5e, 0xc9, 0xc0, 0x78, - 0x95, 0x34, 0x89, 0x6e, 0xa3, 0x47, 0x86, 0xbf, 0x1d, 0xc2, 0x1b, 0x2f, 0xb5, 0xe3, 0x68, 0xfb, - 0x3e, 0x71, 0xdf, 0x7a, 0xfe, 0xee, 0x5a, 0xdf, 0x7e, 0x97, 0xa8, 0x6f, 0x07, 0x3a, 0x4f, 0x56, - 0x21, 0x37, 0x53, 0xf7, 0x60, 0x3f, 0x8e, 0x23, 0xf4, 0xc6, 0x10, 0xa1, 0xeb, 0x51, 0xf4, 0xa2, - 0x28, 0x15, 0x7a, 0xb5, 0xa8, 0x8a, 0x52, 0x51, 0xa6, 0x37, 0x19, 0x16, 0x4e, 0x84, 0xd0, 0x9d, - 0x2a, 0xf0, 0x3d, 0x70, 0x52, 0x41, 0x2d, 0x4b, 0x42, 0x59, 0x96, 0x44, 0xde, 0x9d, 0xaf, 0x0a, - 0x0a, 0xdd, 0x40, 0x3f, 0x50, 0x90, 0x5b, 0x25, 0x56, 0xb7, 0x61, 0xb6, 0xd1, 0x57, 0x14, 0xa4, - 0x97, 0x89, 0x1d, 0x6e, 0xf3, 0xeb, 0xe1, 0x13, 0xf5, 0x7c, 0x54, 0xf4, 0xff, 0x47, 0x78, 0xf7, - 0x41, 0xd8, 0x65, 0x32, 0x4c, 0xf1, 0x59, 0xc8, 0x6d, 0x79, 0x46, 0x3e, 0xd9, 0xbd, 0x21, 0xfa, - 0x36, 0x38, 0x68, 0x2f, 0x46, 0x94, 0x3d, 0x15, 0xd3, 0x43, 0x32, 0x59, 0x8d, 0x5d, 0xa8, 0xba, - 0x0f, 0xe8, 0x55, 0x01, 0x57, 0x45, 0x59, 0x52, 0xc5, 0xaa, 0x2a, 0x94, 0x2b, 0xca, 0xd3, 0x74, - 0xda, 0x31, 0x72, 0x98, 0xec, 0xed, 0x02, 0x53, 0x90, 0x53, 0xc4, 0xb2, 0x20, 0xd7, 0x14, 0x7a, - 0x03, 0x7d, 0x92, 0x86, 0x74, 0x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x58, 0x24, 0x83, 0x14, + 0x9f, 0x86, 0xf4, 0xa6, 0x67, 0xe4, 0x93, 0xdd, 0x19, 0xa2, 0x1f, 0xba, 0x07, 0xed, 0x85, 0x90, + 0xb2, 0x27, 0x22, 0x7a, 0x88, 0x27, 0xab, 0xb9, 0x03, 0x55, 0xf7, 0x00, 0xb7, 0x22, 0xe1, 0x92, + 0xac, 0x2a, 0xba, 0x5c, 0xd2, 0xa5, 0xe2, 0xb2, 0xf6, 0x1c, 0x97, 0xa4, 0x46, 0x94, 0xc9, 0xce, + 0x2e, 0x30, 0x01, 0x69, 0x4d, 0x2e, 0x4a, 0x6a, 0x59, 0xe3, 0xd6, 0xd1, 0xe7, 0x49, 0x48, 0x16, + 0xac, 0x2a, 0xba, 0x9e, 0x04, 0xb6, 0x44, 0x9a, 0x26, 0x7a, 0x3f, 0xd1, 0xeb, 0xbb, 0x69, 0x48, + 0x37, 0x48, 0xbb, 0x6d, 0x54, 0x3b, 0x87, 0x6e, 0x67, 0xc8, 0x3f, 0x01, 0xa9, 0x3a, 0xd9, 0x24, + 0x75, 0x37, 0xf0, 0xa9, 0x85, 0xc3, 0x21, 0x06, 0x0a, 0x56, 0x55, 0xa0, 0x58, 0x82, 0x8f, 0x23, + 0x14, 0xa8, 0x29, 0xf6, 0x56, 0xcc, 0x3d, 0x0d, 0x29, 0x77, 0xcc, 0x8f, 0x43, 0x2a, 0x27, 0x65, + 0xca, 0x8b, 0xdc, 0x08, 0xfd, 0xec, 0x64, 0x34, 0x0e, 0xa9, 0xbc, 0xa8, 0x89, 0x05, 0x8e, 0xa1, + 0x99, 0xbb, 0xe5, 0x92, 0xa4, 0x93, 0xcb, 0xa2, 0x22, 0x67, 0x39, 0x96, 0x46, 0xbf, 0x2a, 0x62, + 0x45, 0x56, 0x16, 0xb9, 0x14, 0x7a, 0x25, 0xa8, 0xfb, 0xd9, 0xb0, 0xee, 0xff, 0x1d, 0x14, 0xd3, + 0xf0, 0x27, 0xff, 0xb9, 0x90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, 0x4e, 0xc8, 0x1c, 0xfc, + 0xfa, 0xd6, 0x4c, 0xe2, 0xc6, 0xad, 0x99, 0xc4, 0xef, 0xb7, 0x66, 0x12, 0x6f, 0xdc, 0x9e, 0x19, + 0xb9, 0x71, 0x7b, 0x66, 0xe4, 0x97, 0xdb, 0x33, 0x23, 0xcf, 0x33, 0xad, 0xb5, 0xb5, 0x51, 0xf7, + 0xcf, 0xe3, 0x33, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x83, 0x77, 0x03, 0x72, 0x74, 0x16, 0x00, + 0x00, } func (m *Rpc) Marshal() (dAtA []byte, err error) { @@ -3715,7 +3827,7 @@ func (m *Rpc_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_HistoryMove) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Block_History) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3725,12 +3837,12 @@ func (m *Rpc_Block_HistoryMove) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_HistoryMove) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Block_History) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_HistoryMove) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Block_History) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3738,7 +3850,7 @@ func (m *Rpc_Block_HistoryMove) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_HistoryMove_Request) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Block_History_Move) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3748,12 +3860,35 @@ func (m *Rpc_Block_HistoryMove_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_HistoryMove_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Block_History_Move) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_HistoryMove_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Block_History_Move) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Block_History_Move_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Block_History_Move_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Block_History_Move_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3785,7 +3920,7 @@ func (m *Rpc_Block_HistoryMove_Request) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Rpc_Block_HistoryMove_Response) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Block_History_Move_Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3795,12 +3930,12 @@ func (m *Rpc_Block_HistoryMove_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_HistoryMove_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Block_History_Move_Response) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_HistoryMove_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Block_History_Move_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3820,7 +3955,7 @@ func (m *Rpc_Block_HistoryMove_Response) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Rpc_Block_HistoryMove_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Block_History_Move_Response_Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3830,12 +3965,12 @@ func (m *Rpc_Block_HistoryMove_Response_Error) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *Rpc_Block_HistoryMove_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Block_History_Move_Response_Error) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_HistoryMove_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Block_History_Move_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5302,7 +5437,7 @@ func (m *Rpc_Ipfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_GetFile) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Ipfs_Get) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5312,12 +5447,12 @@ func (m *Rpc_Ipfs_GetFile) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_GetFile) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_GetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5325,7 +5460,7 @@ func (m *Rpc_Ipfs_GetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_GetFile_Request) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Ipfs_Get_File) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5335,12 +5470,35 @@ func (m *Rpc_Ipfs_GetFile_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_GetFile_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get_File) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_GetFile_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Ipfs_Get_File_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Ipfs_Get_File_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Ipfs_Get_File_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5355,7 +5513,7 @@ func (m *Rpc_Ipfs_GetFile_Request) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_GetFile_Response) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Ipfs_Get_File_Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5365,12 +5523,12 @@ func (m *Rpc_Ipfs_GetFile_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_GetFile_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get_File_Response) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_GetFile_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get_File_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5411,7 +5569,7 @@ func (m *Rpc_Ipfs_GetFile_Response) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_GetFile_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Ipfs_Get_File_Response_Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5421,12 +5579,12 @@ func (m *Rpc_Ipfs_GetFile_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_GetFile_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get_File_Response_Error) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_GetFile_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Ipfs_Get_File_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5469,7 +5627,7 @@ func (m *Rpc_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_GetBlob) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5479,12 +5637,12 @@ func (m *Rpc_Image_GetBlob) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetBlob) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5492,7 +5650,7 @@ func (m *Rpc_Image_GetBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_GetBlob_Request) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_Blob) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5502,12 +5660,35 @@ func (m *Rpc_Image_GetBlob_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetBlob_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_Blob) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetBlob_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Rpc_Image_Get_Blob_Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rpc_Image_Get_Blob_Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rpc_Image_Get_Blob_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5527,7 +5708,7 @@ func (m *Rpc_Image_GetBlob_Request) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Image_GetBlob_Response) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_Blob_Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5537,12 +5718,12 @@ func (m *Rpc_Image_GetBlob_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetBlob_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_Blob_Response) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetBlob_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_Blob_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5569,7 +5750,7 @@ func (m *Rpc_Image_GetBlob_Response) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Image_GetBlob_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_Blob_Response_Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5579,12 +5760,12 @@ func (m *Rpc_Image_GetBlob_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetBlob_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_Blob_Response_Error) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetBlob_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_Blob_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5604,7 +5785,7 @@ func (m *Rpc_Image_GetBlob_Response_Error) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *Rpc_Image_GetFile) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_File) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5614,12 +5795,12 @@ func (m *Rpc_Image_GetFile) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetFile) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5627,7 +5808,7 @@ func (m *Rpc_Image_GetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_GetFile_Request) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_File_Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5637,12 +5818,12 @@ func (m *Rpc_Image_GetFile_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetFile_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File_Request) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetFile_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5662,7 +5843,7 @@ func (m *Rpc_Image_GetFile_Request) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Image_GetFile_Response) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_File_Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5672,12 +5853,12 @@ func (m *Rpc_Image_GetFile_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetFile_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File_Response) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetFile_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5704,7 +5885,7 @@ func (m *Rpc_Image_GetFile_Response) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Image_GetFile_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *Rpc_Image_Get_File_Response_Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5714,12 +5895,12 @@ func (m *Rpc_Image_GetFile_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_GetFile_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File_Response_Error) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_GetFile_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Rpc_Image_Get_File_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5768,7 +5949,7 @@ func (m *Rpc_Block) Size() (n int) { return n } -func (m *Rpc_Block_HistoryMove) Size() (n int) { +func (m *Rpc_Block_History) Size() (n int) { if m == nil { return 0 } @@ -5777,7 +5958,16 @@ func (m *Rpc_Block_HistoryMove) Size() (n int) { return n } -func (m *Rpc_Block_HistoryMove_Request) Size() (n int) { +func (m *Rpc_Block_History_Move) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Block_History_Move_Request) Size() (n int) { if m == nil { return 0 } @@ -5797,7 +5987,7 @@ func (m *Rpc_Block_HistoryMove_Request) Size() (n int) { return n } -func (m *Rpc_Block_HistoryMove_Response) Size() (n int) { +func (m *Rpc_Block_History_Move_Response) Size() (n int) { if m == nil { return 0 } @@ -5810,7 +6000,7 @@ func (m *Rpc_Block_HistoryMove_Response) Size() (n int) { return n } -func (m *Rpc_Block_HistoryMove_Response_Error) Size() (n int) { +func (m *Rpc_Block_History_Move_Response_Error) Size() (n int) { if m == nil { return 0 } @@ -6430,7 +6620,7 @@ func (m *Rpc_Ipfs) Size() (n int) { return n } -func (m *Rpc_Ipfs_GetFile) Size() (n int) { +func (m *Rpc_Ipfs_Get) Size() (n int) { if m == nil { return 0 } @@ -6439,7 +6629,16 @@ func (m *Rpc_Ipfs_GetFile) Size() (n int) { return n } -func (m *Rpc_Ipfs_GetFile_Request) Size() (n int) { +func (m *Rpc_Ipfs_Get_File) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Ipfs_Get_File_Request) Size() (n int) { if m == nil { return 0 } @@ -6452,7 +6651,7 @@ func (m *Rpc_Ipfs_GetFile_Request) Size() (n int) { return n } -func (m *Rpc_Ipfs_GetFile_Response) Size() (n int) { +func (m *Rpc_Ipfs_Get_File_Response) Size() (n int) { if m == nil { return 0 } @@ -6477,7 +6676,7 @@ func (m *Rpc_Ipfs_GetFile_Response) Size() (n int) { return n } -func (m *Rpc_Ipfs_GetFile_Response_Error) Size() (n int) { +func (m *Rpc_Ipfs_Get_File_Response_Error) Size() (n int) { if m == nil { return 0 } @@ -6502,7 +6701,7 @@ func (m *Rpc_Image) Size() (n int) { return n } -func (m *Rpc_Image_GetBlob) Size() (n int) { +func (m *Rpc_Image_Get) Size() (n int) { if m == nil { return 0 } @@ -6511,7 +6710,16 @@ func (m *Rpc_Image_GetBlob) Size() (n int) { return n } -func (m *Rpc_Image_GetBlob_Request) Size() (n int) { +func (m *Rpc_Image_Get_Blob) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Rpc_Image_Get_Blob_Request) Size() (n int) { if m == nil { return 0 } @@ -6527,7 +6735,7 @@ func (m *Rpc_Image_GetBlob_Request) Size() (n int) { return n } -func (m *Rpc_Image_GetBlob_Response) Size() (n int) { +func (m *Rpc_Image_Get_Blob_Response) Size() (n int) { if m == nil { return 0 } @@ -6544,7 +6752,7 @@ func (m *Rpc_Image_GetBlob_Response) Size() (n int) { return n } -func (m *Rpc_Image_GetBlob_Response_Error) Size() (n int) { +func (m *Rpc_Image_Get_Blob_Response_Error) Size() (n int) { if m == nil { return 0 } @@ -6560,7 +6768,7 @@ func (m *Rpc_Image_GetBlob_Response_Error) Size() (n int) { return n } -func (m *Rpc_Image_GetFile) Size() (n int) { +func (m *Rpc_Image_Get_File) Size() (n int) { if m == nil { return 0 } @@ -6569,7 +6777,7 @@ func (m *Rpc_Image_GetFile) Size() (n int) { return n } -func (m *Rpc_Image_GetFile_Request) Size() (n int) { +func (m *Rpc_Image_Get_File_Request) Size() (n int) { if m == nil { return 0 } @@ -6585,7 +6793,7 @@ func (m *Rpc_Image_GetFile_Request) Size() (n int) { return n } -func (m *Rpc_Image_GetFile_Response) Size() (n int) { +func (m *Rpc_Image_Get_File_Response) Size() (n int) { if m == nil { return 0 } @@ -6602,7 +6810,7 @@ func (m *Rpc_Image_GetFile_Response) Size() (n int) { return n } -func (m *Rpc_Image_GetFile_Response_Error) Size() (n int) { +func (m *Rpc_Image_Get_File_Response_Error) Size() (n int) { if m == nil { return 0 } @@ -6730,7 +6938,7 @@ func (m *Rpc_Block) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_HistoryMove) Unmarshal(dAtA []byte) error { +func (m *Rpc_Block_History) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6753,10 +6961,10 @@ func (m *Rpc_Block_HistoryMove) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: HistoryMove: wiretype end group for non-group") + return fmt.Errorf("proto: History: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: HistoryMove: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: History: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6783,7 +6991,60 @@ func (m *Rpc_Block_HistoryMove) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_HistoryMove_Request) Unmarshal(dAtA []byte) error { +func (m *Rpc_Block_History_Move) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Move: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Move: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Block_History_Move_Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6920,7 +7181,7 @@ func (m *Rpc_Block_HistoryMove_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_HistoryMove_Response) Unmarshal(dAtA []byte) error { +func (m *Rpc_Block_History_Move_Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6979,7 +7240,7 @@ func (m *Rpc_Block_HistoryMove_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Block_HistoryMove_Response_Error{} + m.Error = &Rpc_Block_History_Move_Response_Error{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7009,7 +7270,7 @@ func (m *Rpc_Block_HistoryMove_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_HistoryMove_Response_Error) Unmarshal(dAtA []byte) error { +func (m *Rpc_Block_History_Move_Response_Error) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7052,7 +7313,7 @@ func (m *Rpc_Block_HistoryMove_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Block_HistoryMove_Response_Error_Code(b&0x7F) << shift + m.Code |= Rpc_Block_History_Move_Response_Error_Code(b&0x7F) << shift if b < 0x80 { break } @@ -10966,7 +11227,7 @@ func (m *Rpc_Ipfs) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_GetFile) Unmarshal(dAtA []byte) error { +func (m *Rpc_Ipfs_Get) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10989,10 +11250,10 @@ func (m *Rpc_Ipfs_GetFile) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetFile: wiretype end group for non-group") + return fmt.Errorf("proto: Get: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetFile: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Get: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11019,7 +11280,60 @@ func (m *Rpc_Ipfs_GetFile) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_GetFile_Request) Unmarshal(dAtA []byte) error { +func (m *Rpc_Ipfs_Get_File) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: File: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: File: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Ipfs_Get_File_Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11104,7 +11418,7 @@ func (m *Rpc_Ipfs_GetFile_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_GetFile_Response) Unmarshal(dAtA []byte) error { +func (m *Rpc_Ipfs_Get_File_Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11163,7 +11477,7 @@ func (m *Rpc_Ipfs_GetFile_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Ipfs_GetFile_Response_Error{} + m.Error = &Rpc_Ipfs_Get_File_Response_Error{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11291,7 +11605,7 @@ func (m *Rpc_Ipfs_GetFile_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_GetFile_Response_Error) Unmarshal(dAtA []byte) error { +func (m *Rpc_Ipfs_Get_File_Response_Error) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11334,7 +11648,7 @@ func (m *Rpc_Ipfs_GetFile_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Ipfs_GetFile_Response_Error_Code(b&0x7F) << shift + m.Code |= Rpc_Ipfs_Get_File_Response_Error_Code(b&0x7F) << shift if b < 0x80 { break } @@ -11448,7 +11762,7 @@ func (m *Rpc_Image) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetBlob) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11471,10 +11785,10 @@ func (m *Rpc_Image_GetBlob) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBlob: wiretype end group for non-group") + return fmt.Errorf("proto: Get: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBlob: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Get: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11501,7 +11815,60 @@ func (m *Rpc_Image_GetBlob) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetBlob_Request) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_Blob) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Blob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Blob: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rpc_Image_Get_Blob_Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11605,7 +11972,7 @@ func (m *Rpc_Image_GetBlob_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetBlob_Response) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_Blob_Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11664,7 +12031,7 @@ func (m *Rpc_Image_GetBlob_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Image_GetBlob_Response_Error{} + m.Error = &Rpc_Image_Get_Blob_Response_Error{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11728,7 +12095,7 @@ func (m *Rpc_Image_GetBlob_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetBlob_Response_Error) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_Blob_Response_Error) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11771,7 +12138,7 @@ func (m *Rpc_Image_GetBlob_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Image_GetBlob_Response_Error_Code(b&0x7F) << shift + m.Code |= Rpc_Image_Get_Blob_Response_Error_Code(b&0x7F) << shift if b < 0x80 { break } @@ -11832,7 +12199,7 @@ func (m *Rpc_Image_GetBlob_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetFile) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_File) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11855,10 +12222,10 @@ func (m *Rpc_Image_GetFile) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetFile: wiretype end group for non-group") + return fmt.Errorf("proto: File: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetFile: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: File: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11885,7 +12252,7 @@ func (m *Rpc_Image_GetFile) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetFile_Request) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_File_Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11989,7 +12356,7 @@ func (m *Rpc_Image_GetFile_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetFile_Response) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_File_Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12048,7 +12415,7 @@ func (m *Rpc_Image_GetFile_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Image_GetFile_Response_Error{} + m.Error = &Rpc_Image_Get_File_Response_Error{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -12110,7 +12477,7 @@ func (m *Rpc_Image_GetFile_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_GetFile_Response_Error) Unmarshal(dAtA []byte) error { +func (m *Rpc_Image_Get_File_Response_Error) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12153,7 +12520,7 @@ func (m *Rpc_Image_GetFile_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Image_GetFile_Response_Error_Code(b&0x7F) << shift + m.Code |= Rpc_Image_Get_File_Response_Error_Code(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/events.pb.go b/pb/events.pb.go index cd329bf22..a44151e5f 100644 --- a/pb/events.pb.go +++ b/pb/events.pb.go @@ -238,7 +238,7 @@ var xxx_messageInfo_Event_Account proto.InternalMessageInfo // Message, that will be sent to the front on each account found after an AccountRecoverRequest type Event_Account_Show struct { Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Account *Event_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` + Account *Model_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` } func (m *Event_Account_Show) Reset() { *m = Event_Account_Show{} } @@ -281,7 +281,7 @@ func (m *Event_Account_Show) GetIndex() int64 { return 0 } -func (m *Event_Account_Show) GetAccount() *Event_Account { +func (m *Event_Account_Show) GetAccount() *Model_Account { if m != nil { return m.Account } @@ -825,43 +825,43 @@ func init() { func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) } var fileDescriptor_8f22242cb04491f9 = []byte{ - // 562 bytes of a gzipped FileDescriptorProto + // 567 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xed, 0xfc, 0x73, 0x3d, 0x69, 0x2e, 0xab, 0x80, 0xcc, 0x82, 0xac, 0x88, 0x3f, 0x52, + 0x10, 0xc6, 0xed, 0xfc, 0x73, 0x3d, 0x6e, 0x2e, 0xab, 0x80, 0xcc, 0x82, 0xac, 0x88, 0x3f, 0x52, 0xc5, 0xc1, 0xa0, 0xc2, 0xa1, 0x3d, 0xa1, 0x26, 0x50, 0x05, 0x04, 0x08, 0x6d, 0xc9, 0x01, 0x38, 0x39, 0xf6, 0xb6, 0x89, 0x70, 0x6d, 0xcb, 0x76, 0xa1, 0x39, 0xf3, 0x02, 0x3c, 0x16, 0xc7, 0x1e, - 0xb9, 0x20, 0xa1, 0xe4, 0xc2, 0xb5, 0x6f, 0x80, 0x76, 0x76, 0xed, 0x38, 0x95, 0x03, 0xcd, 0x71, - 0x26, 0xdf, 0xf7, 0x1b, 0xef, 0xec, 0xb7, 0x81, 0x6d, 0xfe, 0x85, 0x87, 0x59, 0xea, 0xc4, 0x49, - 0x94, 0x45, 0xc4, 0x70, 0xc3, 0x59, 0x36, 0x8b, 0x39, 0xdd, 0x3e, 0x8d, 0x7c, 0x1e, 0xa8, 0x36, - 0xed, 0x78, 0x13, 0x37, 0x3c, 0xe1, 0xaa, 0xbc, 0xfb, 0x0b, 0xa0, 0xf9, 0x42, 0xd8, 0xc8, 0x33, - 0x68, 0xbb, 0x9e, 0x17, 0x9d, 0x85, 0xd9, 0xd1, 0x24, 0xfa, 0x6a, 0xe9, 0x3d, 0x7d, 0xa7, 0xbd, - 0x7b, 0xdb, 0x51, 0x14, 0x07, 0x45, 0xce, 0x81, 0x54, 0x38, 0x42, 0x32, 0xd4, 0x58, 0xd9, 0x41, - 0xf6, 0xc1, 0x1c, 0x07, 0x91, 0xf7, 0x19, 0xed, 0x35, 0xb4, 0xdf, 0xba, 0x62, 0xef, 0x8b, 0xdf, - 0x73, 0xf3, 0x52, 0x2d, 0x66, 0x63, 0x31, 0x8a, 0x7d, 0x37, 0xe3, 0x56, 0xbd, 0x72, 0xb6, 0x34, - 0x4b, 0x89, 0x98, 0x5d, 0x72, 0x14, 0x80, 0x41, 0xc2, 0x05, 0xa0, 0xf1, 0x0f, 0x80, 0x94, 0x14, - 0x00, 0x59, 0x92, 0x11, 0x90, 0xb3, 0x94, 0x27, 0x28, 0x79, 0xcf, 0xcf, 0x33, 0x26, 0x96, 0x64, - 0x35, 0x91, 0x73, 0xef, 0x0a, 0x67, 0x94, 0xf2, 0x44, 0xc1, 0x0a, 0xe9, 0x50, 0x63, 0x15, 0x00, - 0x72, 0x08, 0x9d, 0xa2, 0xfb, 0x2a, 0x9a, 0x86, 0x56, 0x0b, 0x89, 0xf6, 0x7a, 0xa2, 0x50, 0x0d, - 0x35, 0xb6, 0x6a, 0x5b, 0xe1, 0xbc, 0xe6, 0xc7, 0x99, 0x65, 0xfc, 0x8f, 0x23, 0x54, 0x2b, 0x1c, - 0xd1, 0x20, 0x9f, 0xa0, 0x5b, 0x34, 0x8e, 0x78, 0xc0, 0x3d, 0x75, 0xd0, 0x2d, 0xc4, 0x3d, 0x58, - 0x8f, 0x2b, 0x89, 0x87, 0x1a, 0xab, 0x84, 0x90, 0xe7, 0xd0, 0x3e, 0x9e, 0x06, 0x3c, 0x1d, 0xc5, - 0x41, 0xe4, 0xfa, 0x96, 0x89, 0xcc, 0x5e, 0xe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4, 0x62, 0x36, 0x16, 0xe3, 0xc8, 0x73, 0x52, 0x6e, 0x36, 0x6b, 0x67, 0x67, 0xe6, + 0x4c, 0x22, 0x66, 0x97, 0x1c, 0x05, 0x60, 0x18, 0x73, 0x01, 0x68, 0xfd, 0x03, 0x90, 0x49, 0x0a, + 0x40, 0x56, 0x92, 0x31, 0x90, 0x8b, 0x84, 0xc7, 0x28, 0x79, 0xcf, 0x2f, 0x53, 0x26, 0x96, 0x64, + 0xb6, 0x91, 0x73, 0x6f, 0x8d, 0x33, 0x4e, 0x78, 0x2c, 0x61, 0x85, 0x74, 0xa4, 0xb0, 0x1a, 0x00, + 0x39, 0x86, 0x6e, 0xd1, 0x7d, 0x15, 0xce, 0x02, 0xb3, 0x83, 0x44, 0x6b, 0x33, 0x51, 0xa8, 0x46, + 0x0a, 0xab, 0xda, 0x2a, 0x9c, 0xd7, 0xfc, 0x34, 0x35, 0xb5, 0xff, 0x71, 0x84, 0xaa, 0xc2, 0x11, + 0x0d, 0xf2, 0x09, 0x7a, 0x45, 0xe3, 0x84, 0xfb, 0xdc, 0x95, 0x07, 0xdd, 0x41, 0xdc, 0x83, 0xcd, + 0xb8, 0x92, 0x78, 0xa4, 0xb0, 0x5a, 0x08, 0x79, 0x0e, 0xc6, 0xe9, 0xcc, 0xe7, 0xc9, 0x38, 0xf2, + 0x43, 0xc7, 0x33, 0x75, 0x64, 0xf6, 0x6b, 0x2f, 0xe1, 0x78, 0xa5, 0x13, 0x37, 0x51, 0xb2, 0xd1, + 0x0f, 0xa0, 0xc9, 0x94, 0xd1, 0xb7, 0xd0, 0xc2, 0x78, 0xf4, 0xa0, 0x3d, 0x0b, 0x3c, 0x7e, 0x89, + 0xa1, 0x6c, 0xb2, 0xac, 0x20, 0x8f, 0x41, 0x93, 0xf1, 0x93, 0x69, 0xbb, 0x59, 0x8c, 0x7a, 0x23, + 0x12, 0x9f, 0x87, 0x95, 0xe5, 0x32, 0x7a, 0xad, 0x42, 0x1b, 0xe7, 0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0x1b, 0xd1, 0x64, 0xd2, 0xc1, 0x3f, 0xe1, 0x27, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xad, + 0x8b, 0xe3, 0x03, 0xba, 0x05, 0x00, 0x00, } func (m *Event) Marshal() (dAtA []byte, err error) { @@ -2341,7 +2341,7 @@ func (m *Event_Account_Show) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Event_Account{} + m.Account = &Model_Account{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/pb/protos/commands.proto b/pb/protos/commands.proto index bf228419e..fd4171b8d 100644 --- a/pb/protos/commands.proto +++ b/pb/protos/commands.proto @@ -7,28 +7,30 @@ import "changes.proto"; message Rpc { message Block { - message HistoryMove { - message Request { - string id = 1; - string contextBlockId = 2; - bool moveForward = 3; - } + message History { + message Move { + message Request { + string id = 1; + string contextBlockId = 2; + bool moveForward = 3; + } - message Response { - Error error = 1; + message Response { + Error error = 1; - message Error { - Code code = 1; - string description = 2; + message Error { + Code code = 1; + string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - CAN_NOT_MOVE = 3; - // ... - } - } + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + CAN_NOT_MOVE = 3; + // ... + } + } + } } } @@ -332,28 +334,30 @@ message Rpc { } message Ipfs { - message GetFile { - message Request { - string id = 1; - } + message Get { + message File { + message Request { + string id = 1; + } - message Response { - Error error = 1; - bytes data = 2; - string media = 3; - string name = 4; - message Error { - Code code = 1; - string description = 2; + message Response { + Error error = 1; + bytes data = 2; + string media = 3; + string name = 4; + message Error { + Code code = 1; + string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... - NOT_FOUND = 101; - TIMEOUT = 102; + NOT_FOUND = 101; + TIMEOUT = 102; + } } } } @@ -361,55 +365,57 @@ message Rpc { } message Image { - message GetBlob { - message Request { - string id = 1; - Model.Image.Size size = 2; - } + message Get { + message Blob { + message Request { + string id = 1; + Model.Image.Size size = 2; + } - message Response { - Error error = 1; - bytes blob = 2; + message Response { + Error error = 1; + bytes blob = 2; - message Error { - Code code = 1; - string description = 2; + message Error { + Code code = 1; + string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... - NOT_FOUND = 101; - TIMEOUT = 102; + NOT_FOUND = 101; + TIMEOUT = 102; + } } } } - } - message GetFile { - message Request { - string id = 1; - Model.Image.Size size = 2; - } + message File { + message Request { + string id = 1; + Model.Image.Size size = 2; + } - message Response { - Error error = 1; - string localPath = 2; + message Response { + Error error = 1; + string localPath = 2; - message Error { - Code code = 1; - string description = 2; + message Error { + Code code = 1; + string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... - NOT_FOUND = 101; - TIMEOUT = 102; + NOT_FOUND = 101; + TIMEOUT = 102; + } } } } diff --git a/pb/protos/events.proto b/pb/protos/events.proto index 43a5b98b7..bae4b3b66 100644 --- a/pb/protos/events.proto +++ b/pb/protos/events.proto @@ -26,7 +26,7 @@ message Event { */ message Show { int64 index = 1; // Number of an account in an all found accounts list - Account account = 2; // An Account, that has been found for the mnemonic + Model.Account account = 2; // An Account, that has been found for the mnemonic } } diff --git a/pb/protos/service/service.proto b/pb/protos/service/service.proto index 393940487..7366d15a0 100644 --- a/pb/protos/service/service.proto +++ b/pb/protos/service/service.proto @@ -11,7 +11,7 @@ service ClientCommands { rpc AccountCreate (anytype.Rpc.Account.Create.Request) returns (anytype.Rpc.Account.Create.Response); rpc AccountSelect (anytype.Rpc.Account.Select.Request) returns (anytype.Rpc.Account.Select.Response); - rpc ImageGetBlob (anytype.Rpc.Image.GetBlob.Request) returns (anytype.Rpc.Image.GetBlob.Response); + rpc ImageGetBlob (anytype.Rpc.Image.Get.Blob.Request) returns (anytype.Rpc.Image.Get.Blob.Response); rpc VersionGet (anytype.Rpc.Version.Get.Request) returns (anytype.Rpc.Version.Get.Response); rpc LogSend (anytype.Rpc.Log.Send.Request) returns (anytype.Rpc.Log.Send.Response); @@ -19,6 +19,6 @@ service ClientCommands { rpc BlockOpen (anytype.Rpc.Block.Open.Request) returns (anytype.Rpc.Block.Open.Response); rpc BlockCreate (anytype.Rpc.Block.Create.Request) returns (anytype.Rpc.Block.Create.Response); rpc BlockUpdate (anytype.Rpc.Block.Update.Request) returns (anytype.Rpc.Block.Update.Response); - rpc BlockHistoryMove (anytype.Rpc.Block.HistoryMove.Request) returns (anytype.Rpc.Block.HistoryMove.Response); + rpc BlockHistoryMove (anytype.Rpc.Block.History.Move.Request) returns (anytype.Rpc.Block.History.Move.Response); // rpc BlockFilesUpload (Block Rpc.History.Move.Request) returns (BlockRpc..History Move.Response); } From f822a1699a47e00de56308024366c56f7ea57b38 Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 4 Nov 2019 15:11:19 +0100 Subject: [PATCH 21/24] Remove blocks from Model.Page --- pb/models.pb.go | 277 ++++++++++++++++------------------------- pb/protos/models.proto | 1 - 2 files changed, 107 insertions(+), 171 deletions(-) diff --git a/pb/models.pb.go b/pb/models.pb.go index ef52f76e3..66a1d77f0 100644 --- a/pb/models.pb.go +++ b/pb/models.pb.go @@ -1411,8 +1411,7 @@ func (m *Model_Block_Content_Media_FilePreview) GetIcon() string { } type Model_Block_Content_Page struct { - Style Model_Block_Content_Page_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Page_Style" json:"style,omitempty"` - Blocks []*Model_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` + Style Model_Block_Content_Page_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Page_Style" json:"style,omitempty"` } func (m *Model_Block_Content_Page) Reset() { *m = Model_Block_Content_Page{} } @@ -1455,13 +1454,6 @@ func (m *Model_Block_Content_Page) GetStyle() Model_Block_Content_Page_Style { return Model_Block_Content_Page_EMPTY } -func (m *Model_Block_Content_Page) GetBlocks() []*Model_Block { - if m != nil { - return m.Blocks - } - return nil -} - type Model_Range struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` @@ -2041,113 +2033,112 @@ func init() { func init() { proto.RegisterFile("models.proto", fileDescriptor_0b5431a010549573) } var fileDescriptor_0b5431a010549573 = []byte{ - // 1692 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5f, 0x6f, 0xdb, 0xd6, - 0x15, 0x27, 0x25, 0x92, 0x92, 0x8e, 0x1c, 0xe7, 0xf6, 0x22, 0x0b, 0x38, 0x36, 0x73, 0x53, 0x15, - 0x6b, 0xb2, 0x35, 0x53, 0x1d, 0xdb, 0x59, 0xbb, 0x60, 0x5d, 0x2b, 0x59, 0x8c, 0x25, 0x98, 0x92, - 0x8c, 0x2b, 0xd9, 0x69, 0xf6, 0x62, 0x50, 0xe2, 0xb5, 0x4c, 0x98, 0x22, 0x55, 0x8a, 0x72, 0xeb, - 0x62, 0x0f, 0xfb, 0x08, 0xfb, 0x08, 0x03, 0x06, 0x0c, 0xfb, 0x06, 0x03, 0xf6, 0x30, 0x60, 0x6f, - 0x03, 0xf6, 0x52, 0xec, 0x65, 0x7b, 0x1c, 0x92, 0xef, 0xb0, 0xe7, 0xe1, 0xdc, 0x4b, 0x4a, 0x72, - 0xe2, 0xd8, 0x1a, 0xd0, 0x27, 0xdd, 0x73, 0xf9, 0xfb, 0x9d, 0x73, 0xee, 0x3d, 0xff, 0xae, 0x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, 0x7e, 0x49, 0x91, 0xe0, - 0xd3, 0x06, 0x68, 0x27, 0x7e, 0xc0, 0xcd, 0x91, 0xd0, 0x53, 0x5d, 0x41, 0xcf, 0x33, 0x3f, 0x58, - 0x52, 0x23, 0xd8, 0xd6, 0x11, 0xac, 0x2d, 0xfb, 0x89, 0x45, 0x91, 0x9c, 0xce, 0xc6, 0x83, 0xd0, - 0xf5, 0x83, 0xf4, 0x0e, 0x17, 0x1b, 0xd8, 0x3a, 0x42, 0x77, 0x2c, 0x2f, 0xb1, 0xc4, 0xc4, 0x1a, - 0x33, 0xea, 0x6b, 0xdf, 0x4b, 0x4e, 0x45, 0x46, 0xe9, 0x4c, 0x0a, 0xa8, 0x77, 0xd9, 0xed, 0xef, - 0x4d, 0xef, 0x13, 0x28, 0x2f, 0x1d, 0x63, 0x4e, 0x54, 0x97, 0x88, 0x14, 0x34, 0x7f, 0x18, 0x85, - 0x99, 0x32, 0x5c, 0x57, 0x5a, 0x98, 0x97, 0x18, 0xc7, 0x12, 0xe8, 0x76, 0xfb, 0xa0, 0xff, 0x82, - 0x28, 0x38, 0xb1, 0x0e, 0x0f, 0x9c, 0x6e, 0xad, 0xd1, 0xea, 0xec, 0x11, 0x55, 0x4c, 0x21, 0x66, - 0xa7, 0x63, 0xea, 0x36, 0x94, 0x1b, 0xdd, 0xe7, 0x9d, 0xec, 0xab, 0x48, 0xf1, 0x46, 0xb7, 0x63, - 0x13, 0xad, 0x5e, 0x82, 0xc2, 0x44, 0x5a, 0xb7, 0xfe, 0xa4, 0x82, 0x86, 0x2f, 0xb0, 0x45, 0xfb, - 0x54, 0x57, 0x68, 0x9f, 0xc8, 0xb8, 0xdc, 0x3e, 0x1f, 0x81, 0x31, 0x40, 0x48, 0xd6, 0xf6, 0xef, - 0x5c, 0xc5, 0x67, 0x29, 0xa6, 0xb2, 0x9d, 0xd5, 0xd8, 0xd2, 0x59, 0x70, 0xac, 0xd6, 0x7a, 0xfb, - 0x72, 0xdc, 0xce, 0x87, 0x66, 0x0e, 0xe7, 0x57, 0xcf, 0xee, 0x93, 0x3c, 0x7a, 0x9d, 0x96, 0x82, - 0xf5, 0x11, 0xe8, 0xa2, 0xa7, 0xe0, 0x45, 0x9d, 0xc4, 0xd1, 0x58, 0x38, 0xad, 0x33, 0xb1, 0xc6, - 0x97, 0x50, 0x12, 0x89, 0xab, 0xd3, 0x59, 0x2e, 0x89, 0xac, 0x3f, 0x6b, 0x60, 0xc8, 0x77, 0x0b, - 0xfd, 0xc5, 0xfc, 0x79, 0x23, 0xfb, 0xdd, 0xfb, 0x57, 0x3e, 0x6f, 0xaa, 0xcf, 0x04, 0xc6, 0x0e, - 0x93, 0xf8, 0x22, 0x7b, 0xea, 0x58, 0x47, 0x18, 0xb5, 0xf9, 0x36, 0x25, 0x90, 0x3f, 0xe3, 0x17, - 0x69, 0xd0, 0x70, 0x49, 0x1f, 0x83, 0x7e, 0xee, 0x06, 0x33, 0x99, 0x01, 0x6f, 0xce, 0xbd, 0x54, - 0xf5, 0x11, 0x42, 0x98, 0x44, 0x3e, 0xcd, 0x7d, 0xaa, 0x5a, 0x7f, 0xc9, 0x81, 0x2e, 0x36, 0xe9, - 0x17, 0x00, 0xe1, 0x2c, 0x08, 0x8e, 0xa5, 0x16, 0x19, 0x86, 0xf7, 0xae, 0xd6, 0xd2, 0x99, 0x05, - 0x81, 0x20, 0xe1, 0xb3, 0x3b, 0xcc, 0x04, 0xfa, 0x01, 0xac, 0xc9, 0xee, 0x72, 0xbc, 0xf0, 0x44, - 0x6d, 0x2a, 0xac, 0x2c, 0x77, 0xe7, 0xa0, 0x69, 0x12, 0xfb, 0xe1, 0x28, 0x05, 0x89, 0x2e, 0x8a, - 0x20, 0xb9, 0x2b, 0x41, 0xef, 0x01, 0x0c, 0xa2, 0x28, 0xf3, 0x45, 0x8c, 0x31, 0x34, 0x85, 0x7b, - 0x12, 0xf0, 0x54, 0x68, 0x99, 0x0d, 0x93, 0x14, 0xa2, 0x5f, 0xf3, 0x5c,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3, 0xb0, 0x5d, 0x27, 0x39, 0xeb, 0x0f, 0x2a, 0xe8, 0xa2, 0x1d, 0xff, 0xbf, 0x36, 0x05, - 0xe9, 0x92, 0xcd, 0x17, 0xa9, 0xcd, 0x32, 0x14, 0x7a, 0x8d, 0xe3, 0xed, 0x9f, 0x6f, 0xe2, 0x38, - 0x96, 0xc2, 0xce, 0xa7, 0x9b, 0x13, 0xd9, 0xf0, 0x9a, 0x8d, 0xe3, 0x4f, 0xb6, 0x36, 0x27, 0x24, - 0x87, 0x6d, 0xa3, 0xd9, 0x38, 0x7e, 0xbc, 0x89, 0x9f, 0xf2, 0xa2, 0x35, 0xa2, 0xb8, 0xb3, 0xb3, - 0x39, 0x21, 0x5a, 0x26, 0x6e, 0x3d, 0x46, 0x2d, 0x7a, 0xfd, 0xde, 0xdf, 0x5f, 0x6e, 0xa8, 0xdf, - 0xbd, 0xdc, 0x50, 0xff, 0xf3, 0x72, 0x43, 0xfd, 0xdd, 0xab, 0x0d, 0xe5, 0xbb, 0x57, 0x1b, 0xca, - 0xbf, 0x5f, 0x6d, 0x28, 0xbf, 0xce, 0x4d, 0x06, 0x03, 0x43, 0xfc, 0xf7, 0xde, 0xfe, 0x5f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x44, 0x64, 0x03, 0x7e, 0x8b, 0x0f, 0x00, 0x00, + // 1675 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4f, 0x6f, 0x1b, 0xc7, + 0x15, 0xdf, 0x25, 0x77, 0xf9, 0xe7, 0x51, 0x96, 0x27, 0x83, 0x24, 0xd8, 0x6e, 0x5c, 0xc5, 0x61, + 0xd0, 0xd8, 0x6d, 0x52, 0x46, 0x96, 0xe4, 0x26, 0x35, 0x9a, 0x26, 0xa4, 0xb8, 0x16, 0x09, 0x51, + 0xa2, 0x30, 0xa4, 0xe4, 0xb8, 0x17, 0x61, 0xc5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0x97, 0xea, 0xd5, 0xb5, 0xba, 0xf1, + 0xa3, 0xab, 0x0c, 0xd5, 0x7a, 0xfe, 0x73, 0xac, 0x58, 0xc4, 0x55, 0xef, 0x81, 0x81, 0x22, 0x16, + 0x6c, 0xa7, 0x2e, 0x76, 0x1c, 0xa6, 0xe1, 0xb2, 0xb7, 0x57, 0xef, 0x74, 0x98, 0x8e, 0xcb, 0x7e, + 0xeb, 0x70, 0xaf, 0xc1, 0x72, 0xf6, 0x1f, 0x75, 0x30, 0xa9, 0xbf, 0xfe, 0xbf, 0x36, 0x89, 0x74, + 0xc9, 0xe6, 0xd3, 0xd4, 0x66, 0x05, 0x8a, 0xbd, 0xe6, 0xf1, 0xe6, 0x2f, 0xd6, 0x71, 0xbe, 0x2a, + 0x61, 0xeb, 0xf3, 0xf5, 0xb1, 0xea, 0x60, 0xad, 0xe6, 0xf1, 0x67, 0x1b, 0xeb, 0x63, 0x96, 0xc3, + 0xb6, 0xd1, 0x6a, 0x1e, 0x3f, 0x58, 0xc7, 0x4f, 0x79, 0xea, 0x75, 0x28, 0x6e, 0x6d, 0xad, 0x8f, + 0x99, 0x91, 0x89, 0x1b, 0x0f, 0x50, 0x8b, 0xd9, 0xb8, 0xf3, 0xb7, 0x17, 0x6b, 0xfa, 0xf7, 0x2f, + 0xd6, 0xf4, 0x7f, 0xbf, 0x58, 0xd3, 0x7f, 0xf7, 0x72, 0x4d, 0xfb, 0xfe, 0xe5, 0x9a, 0xf6, 0xaf, + 0x97, 0x6b, 0xda, 0x6f, 0x72, 0xe3, 0x93, 0x93, 0x02, 0xfd, 0x99, 0xde, 0xfc, 0x5f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x9d, 0x24, 0xb1, 0x57, 0x5c, 0x0f, 0x00, 0x00, } func (m *Model) Marshal() (dAtA []byte, err error) { @@ -3068,20 +3059,6 @@ func (m *Model_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if len(m.Blocks) > 0 { - for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintModels(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } if m.Style != 0 { i = encodeVarintModels(dAtA, i, uint64(m.Style)) i-- @@ -3970,12 +3947,6 @@ func (m *Model_Block_Content_Page) Size() (n int) { if m.Style != 0 { n += 1 + sovModels(uint64(m.Style)) } - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovModels(uint64(l)) - } - } return n } @@ -6388,40 +6359,6 @@ func (m *Model_Block_Content_Page) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModels - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthModels - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthModels - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Blocks = append(m.Blocks, &Model_Block{}) - if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipModels(dAtA[iNdEx:]) diff --git a/pb/protos/models.proto b/pb/protos/models.proto index 0e4b7aa4b..5ff554fb2 100644 --- a/pb/protos/models.proto +++ b/pb/protos/models.proto @@ -167,7 +167,6 @@ message Model { } Style style = 1; - repeated Block blocks = 2; } } } From d87763ede0b9526b344a44eb8890876e752e4170 Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 4 Nov 2019 15:52:38 +0100 Subject: [PATCH 22/24] Update tests --- core/account_test.go | 18 +++++++++--------- lib/lib_test.go | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/account_test.go b/core/account_test.go index fa7be3e81..91c74fca7 100644 --- a/core/account_test.go +++ b/core/account_test.go @@ -33,7 +33,7 @@ func Test_AccountCreate(t *testing.T) { accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_test", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) require.Equal(t, "name_test", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) - imageGetBlobResp := mw.ImageGetBlob(&pb.Rpc_Image_Get_Blob_Request{Id: accountCreateResp.Account.Avatar.GetImage().Id, Size_: pb.ImageSize_SMALL}) + imageGetBlobResp := mw.ImageGetBlob(&pb.Rpc_Image_Get_Blob_Request{Id: accountCreateResp.Account.Avatar.GetImage().Id, Size_: pb.Model_Image_SMALL}) require.Equal(t, pb.Rpc_Image_Get_Blob_Response_Error_NULL, imageGetBlobResp.Error.Code, "ImageGetBlob_Response contains error: %+v", imageGetBlobResp.Error) require.True(t, len(imageGetBlobResp.Blob) > 0, "ava size should be greater than 0") @@ -52,7 +52,7 @@ func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { var accountCh = make(chan *pb.Model_Account, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_Account_Show); ok { + if aa, ok := event.Message.(*pb.Event_AccountShow); ok { if aa.AccountShow.Index != 0 { return } @@ -67,7 +67,7 @@ func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) - var account *pb.Rpc_Account_ + var account *pb.Model_Account select { case account = <-accountCh: break @@ -96,7 +96,7 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { var accountCh = make(chan *pb.Model_Account, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_Account_Show); ok { + if aa, ok := event.Message.(*pb.Event_AccountShow); ok { if aa.AccountShow.Index != 0 { return } @@ -111,7 +111,7 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) - var account *pb.Rpc_Account_ + var account *pb.Model_Account select { case account = <-accountCh: break @@ -128,9 +128,9 @@ func Test_AccountRecover_RemoteNotExisting(t *testing.T) { mw := recoverWallet(t, "limit oxygen february destroy subway toddler umbrella nose praise shield afford eager") require.Equal(t, len(mw.localAccounts), 0, "localAccounts should be empty, instead got length = %d", len(mw.localAccounts)) - var account *pb.Rpc_Account_ + var account *pb.Model_Account mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_Account_Show); ok { + if aa, ok := event.Message.(*pb.Event_AccountShow); ok { account = aa.AccountShow.Account } } @@ -150,7 +150,7 @@ func Test_RecoverRemoteExisting(t *testing.T) { var accountCh = make(chan *pb.Model_Account, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_Account_Show); ok { + if aa, ok := event.Message.(*pb.Event_AccountShow); ok { if aa.AccountShow.Index != 0 { return } @@ -162,7 +162,7 @@ func Test_RecoverRemoteExisting(t *testing.T) { accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) - var account *pb.Rpc_Account_ + var account *pb.Model_Account select { case account = <-accountCh: break diff --git a/lib/lib_test.go b/lib/lib_test.go index a283cc6ee..07c98cc4c 100644 --- a/lib/lib_test.go +++ b/lib/lib_test.go @@ -11,9 +11,9 @@ import ( ) func Test_Unpack(t *testing.T) { - b, _ := proto.Marshal(&pb.WalletRecoverResponse{}) + b, _ := proto.Marshal(&pb.Rpc_Wallet_Recover_Response{}) - var msg pb.WalletRecoverResponse + var msg pb.Rpc_Wallet_Recover_Response err := proto.Unmarshal(b, &msg) if err != nil { fmt.Println(err.Error()) @@ -27,7 +27,7 @@ func Test_EventHandler(t *testing.T) { eventReceived = event }) - eventSent := &pb.Event{Message: &pb.Event_AccountShow{AccountShow: &pb.AccountShow{Index: 0, Account: &pb.Account{Id: "1", Name: "name"}}}} + eventSent := &pb.Event{Message: &pb.Event_AccountShow{AccountShow: &pb.Event_Account_Show{Index: 0, Account: &pb.Model_Account{Id: "1", Name: "name"}}}} mw.SendEvent(eventSent) require.Equal(t, eventSent, eventReceived, "eventReceived not equal to eventSent: %s %s", eventSent, eventReceived) From 824f9932e3f6fa12e64bab04138ad4e2741add2e Mon Sep 17 00:00:00 2001 From: requilence Date: Wed, 6 Nov 2019 16:18:26 +0100 Subject: [PATCH 23/24] refactor for the new protoc gen w/o underscores --- Makefile | 4 +- core/account.go | 106 ++++++++++++++++++++--------------------- core/account_test.go | 80 +++++++++++++++---------------- core/block.go | 36 +++++++------- core/core.go | 2 +- core/history.go | 8 ++-- core/ipfs.go | 40 ++++++++-------- core/logger.go | 20 ++++---- core/logger_test.go | 12 ++--- core/version.go | 10 ++-- core/wallet.go | 24 +++++----- lib/lib_test.go | 10 ++-- lib/service.pb.go | 72 ++++++++++++++-------------- pb/changes.pb.go | 96 ++++++++++++++++++------------------- pb/commands.pb.go | 12 ++--- pb/events.pb.go | 26 +++++----- pb/models.pb.go | 68 +++++++++++++------------- pb/protos/models.proto | 24 +++++----- 18 files changed, 325 insertions(+), 325 deletions(-) diff --git a/Makefile b/Makefile index 733a71e53..4af187d33 100644 --- a/Makefile +++ b/Makefile @@ -68,5 +68,5 @@ setup-protoc: protos: $(eval P_STRUCT := Mgoogle/protobuf/struct.proto=github.com/golang/protobuf/ptypes/struct) cd pb/protos; protoc --gogofaster_out=$(P_STRUCT):.. *.proto - cd pb/protos/service; PACKAGE_PATH=github.com/anytypeio/go-anytype-middleware/pb protoc -I=.. -I=. --gogofast_out=plugins=gomobile:../../../lib service.proto - cd pb/protos; protoc --doc_out=../../docs --doc_opt=markdown,proto.md service/*.proto *.proto + cd pb/protos/service; GOGO_NO_UNDERSCORE=1 PACKAGE_PATH=github.com/anytypeio/go-anytype-middleware/pb protoc -I=.. -I=. --gogofast_out=plugins=gomobile:../../../lib service.proto + cd pb/protos; GOGO_NO_UNDERSCORE=1 protoc --doc_out=../../docs --doc_opt=markdown,proto.md service/*.proto *.proto diff --git a/core/account.go b/core/account.go index bf76d1dd1..7234bded1 100644 --- a/core/account.go +++ b/core/account.go @@ -11,11 +11,11 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -var avatarSizes = []pb.Model_Image_Size{pb.Model_Image_SMALL, pb.Model_Image_LARGE} +var avatarSizes = []pb.ModelImageSize{pb.ModelImage_SMALL, pb.ModelImage_LARGE} -func (mw *Middleware) AccountCreate(req *pb.Rpc_Account_Create_Request) *pb.Rpc_Account_Create_Response { - response := func(account *pb.Model_Account, code pb.Rpc_Account_Create_Response_Error_Code, err error) *pb.Rpc_Account_Create_Response { - m := &pb.Rpc_Account_Create_Response{Account: account, Error: &pb.Rpc_Account_Create_Response_Error{Code: code}} +func (mw *Middleware) AccountCreate(req *pb.RpcAccountCreateRequest) *pb.RpcAccountCreateResponse { + response := func(account *pb.ModelAccount, code pb.RpcAccountCreateResponseErrorCode, err error) *pb.RpcAccountCreateResponse { + m := &pb.RpcAccountCreateResponse{Account: account, Error: &pb.RpcAccountCreateResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -30,61 +30,61 @@ func (mw *Middleware) AccountCreate(req *pb.Rpc_Account_Create_Request) *pb.Rpc_ account, err := core.WalletAccountAt(mw.mnemonic, len(mw.localAccounts), "") if err != nil { - return response(nil, pb.Rpc_Account_Create_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcAccountCreateResponseError_UNKNOWN_ERROR, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) if err != nil { - return response(nil, pb.Rpc_Account_Create_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcAccountCreateResponseError_UNKNOWN_ERROR, err) } anytype, err := core.New(mw.rootPath, account.Address()) if err != nil { - return response(nil, pb.Rpc_Account_Create_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcAccountCreateResponseError_UNKNOWN_ERROR, err) } mw.Anytype = anytype - newAcc := &pb.Model_Account{Id: account.Address()} + newAcc := &pb.ModelAccount{Id: account.Address()} err = mw.Run() if err != nil { - return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE, err) + return response(newAcc, pb.RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE, err) } err = mw.AccountSetName(req.Name) if err != nil { - return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) + return response(newAcc, pb.RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) } newAcc.Name, err = mw.Textile.Name() if err != nil { - return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) + return response(newAcc, pb.RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME, err) } if req.GetAvatarLocalPath() != "" { _, err := mw.AccountSetAvatar(req.GetAvatarLocalPath()) if err != nil { - return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) + return response(newAcc, pb.RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) } hash, err := mw.Textile.Avatar() if err != nil { - return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) + return response(newAcc, pb.RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) } - newAcc.Avatar = &pb.Model_Account_Avatar{Avatar: &pb.Model_Account_Avatar_Image{Image: &pb.Model_Image{hash, avatarSizes}}} + newAcc.Avatar = &pb.ModelAccountAvatar{Avatar: &pb.ModelAccountAvatarAvatarOfImage{Image: &pb.ModelImage{hash, avatarSizes}}} } else if req.GetAvatarColor() != "" { err := mw.AccountSetAvatarColor(req.GetAvatarColor()) if err != nil { - return response(newAcc, pb.Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) + return response(newAcc, pb.RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR, err) } } mw.localAccounts = append(mw.localAccounts, newAcc) - return response(newAcc, pb.Rpc_Account_Create_Response_Error_NULL, nil) + return response(newAcc, pb.RpcAccountCreateResponseError_NULL, nil) } -func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_Account_Recover_Response { - response := func(code pb.Rpc_Account_Recover_Response_Error_Code, err error) *pb.Rpc_Account_Recover_Response { - m := &pb.Rpc_Account_Recover_Response{Error: &pb.Rpc_Account_Recover_Response_Error{Code: code}} +func (mw *Middleware) AccountRecover(_ *pb.RpcAccountRecoverRequest) *pb.RpcAccountRecoverResponse { + response := func(code pb.RpcAccountRecoverResponseErrorCode, err error) *pb.RpcAccountRecoverResponse { + m := &pb.RpcAccountRecoverResponse{Error: &pb.RpcAccountRecoverResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -92,15 +92,15 @@ func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_ return m } - sendAccountAddEvent := func(index int, account *pb.Model_Account) { - m := &pb.Event{Message: &pb.Event_AccountShow{AccountShow: &pb.Event_Account_Show{Index: int64(index), Account: account}}} + sendAccountAddEvent := func(index int, account *pb.ModelAccount) { + m := &pb.Event{Message: &pb.EventMessageOfAccountShow{AccountShow: &pb.EventAccountShow{Index: int64(index), Account: account}}} if mw.SendEvent != nil { mw.SendEvent(m) } } if mw.mnemonic == "" { - return response(pb.Rpc_Account_Recover_Response_Error_NEED_TO_RECOVER_WALLET_FIRST, nil) + return response(pb.RpcAccountRecoverResponseError_NEED_TO_RECOVER_WALLET_FIRST, nil) } shouldCancel := false @@ -129,32 +129,32 @@ func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_ sendAccountAddEvent(index, mw.localAccounts[index]) index++ if shouldCancel { - return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) + return response(pb.RpcAccountRecoverResponseError_NULL, nil) } } // now let's start the first account to perform cafe contacts search queries account, err := core.WalletAccountAt(mw.mnemonic, 0, "") if err != nil { - return response(pb.Rpc_Account_Recover_Response_Error_WALLET_RECOVER_NOT_PERFORMED, err) + return response(pb.RpcAccountRecoverResponseError_WALLET_RECOVER_NOT_PERFORMED, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) if err != nil && err != core.ErrRepoExists { - return response(pb.Rpc_Account_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response(pb.RpcAccountRecoverResponseError_FAILED_TO_CREATE_LOCAL_REPO, err) } anytype, err := core.New(mw.rootPath, account.Address()) if err != nil { - return response(pb.Rpc_Account_Recover_Response_Error_UNKNOWN_ERROR, err) + return response(pb.RpcAccountRecoverResponseError_UNKNOWN_ERROR, err) } err = anytype.Run() if err != nil { if err == core.ErrRepoCorrupted { - return response(pb.Rpc_Account_Recover_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) + return response(pb.RpcAccountRecoverResponseError_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) } - return response(pb.Rpc_Account_Recover_Response_Error_FAILED_TO_RUN_NODE, err) + return response(pb.RpcAccountRecoverResponseError_FAILED_TO_RUN_NODE, err) } defer func() { @@ -165,7 +165,7 @@ func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_ }() if shouldCancel { - return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) + return response(pb.RpcAccountRecoverResponseError_NULL, nil) } for { @@ -190,7 +190,7 @@ func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_ // todo: add goroutine to query multiple accounts at once account, err := core.WalletAccountAt(mw.mnemonic, index, "") if err != nil { - return response(pb.Rpc_Account_Recover_Response_Error_WALLET_RECOVER_NOT_PERFORMED, err) + return response(pb.RpcAccountRecoverResponseError_WALLET_RECOVER_NOT_PERFORMED, err) } var ctx context.Context @@ -199,20 +199,20 @@ func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_ if err != nil || contact == nil { if index == 0 { - return response(pb.Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND, err) + return response(pb.RpcAccountRecoverResponseError_NO_ACCOUNTS_FOUND, err) } - return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) + return response(pb.RpcAccountRecoverResponseError_NULL, nil) } if contact.Name == "" { if index == 0 { - return response(pb.Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND, err) + return response(pb.RpcAccountRecoverResponseError_NO_ACCOUNTS_FOUND, err) } - return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) + return response(pb.RpcAccountRecoverResponseError_NULL, nil) } - newAcc := &pb.Model_Account{Id: account.Address(), Name: contact.Name} + newAcc := &pb.ModelAccount{Id: account.Address(), Name: contact.Name} if contact.Avatar != "" { newAcc.Avatar = getAvatarFromString(contact.Avatar) @@ -222,15 +222,15 @@ func (mw *Middleware) AccountRecover(_ *pb.Rpc_Account_Recover_Request) *pb.Rpc_ mw.localAccounts = append(mw.localAccounts, newAcc) if shouldCancel { - return response(pb.Rpc_Account_Recover_Response_Error_NULL, nil) + return response(pb.RpcAccountRecoverResponseError_NULL, nil) } index++ } } -func (mw *Middleware) AccountSelect(req *pb.Rpc_Account_Select_Request) *pb.Rpc_Account_Select_Response { - response := func(account *pb.Model_Account, code pb.Rpc_Account_Select_Response_Error_Code, err error) *pb.Rpc_Account_Select_Response { - m := &pb.Rpc_Account_Select_Response{Account: account, Error: &pb.Rpc_Account_Select_Response_Error{Code: code}} +func (mw *Middleware) AccountSelect(req *pb.RpcAccountSelectRequest) *pb.RpcAccountSelectResponse { + response := func(account *pb.ModelAccount, code pb.RpcAccountSelectResponseErrorCode, err error) *pb.RpcAccountSelectResponse { + m := &pb.RpcAccountSelectResponse{Account: account, Error: &pb.RpcAccountSelectResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -249,23 +249,23 @@ func (mw *Middleware) AccountSelect(req *pb.Rpc_Account_Select_Request) *pb.Rpc_ if _, err := os.Stat(filepath.Join(mw.rootPath, req.Id)); os.IsNotExist(err) { if mw.mnemonic == "" { - return response(nil, pb.Rpc_Account_Select_Response_Error_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET, err) + return response(nil, pb.RpcAccountSelectResponseError_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET, err) } account, err := core.WalletAccountAt(mw.mnemonic, len(mw.localAccounts), "") if err != nil { - return response(nil, pb.Rpc_Account_Select_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcAccountSelectResponseError_UNKNOWN_ERROR, err) } err = core.WalletInitRepo(mw.rootPath, account.Seed()) if err != nil { - return response(nil, pb.Rpc_Account_Select_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response(nil, pb.RpcAccountSelectResponseError_FAILED_TO_CREATE_LOCAL_REPO, err) } } anytype, err := core.New(mw.rootPath, req.Id) if err != nil { - return response(nil, pb.Rpc_Account_Select_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcAccountSelectResponseError_UNKNOWN_ERROR, err) } mw.Anytype = anytype @@ -273,22 +273,22 @@ func (mw *Middleware) AccountSelect(req *pb.Rpc_Account_Select_Request) *pb.Rpc_ err = mw.Run() if err != nil { if err == core.ErrRepoCorrupted { - return response(nil, pb.Rpc_Account_Select_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) + return response(nil, pb.RpcAccountSelectResponseError_LOCAL_REPO_EXISTS_BUT_CORRUPTED, err) } - return response(nil, pb.Rpc_Account_Select_Response_Error_FAILED_TO_RUN_NODE, err) + return response(nil, pb.RpcAccountSelectResponseError_FAILED_TO_RUN_NODE, err) } - acc := &pb.Model_Account{Id: req.Id} + acc := &pb.ModelAccount{Id: req.Id} acc.Name, err = mw.Anytype.Textile.Name() if err != nil { - return response(acc, pb.Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) + return response(acc, pb.RpcAccountSelectResponseError_FAILED_TO_FIND_ACCOUNT_INFO, err) } avatarHashOrColor, err := mw.Anytype.Textile.Avatar() if err != nil { - return response(acc, pb.Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) + return response(acc, pb.RpcAccountSelectResponseError_FAILED_TO_FIND_ACCOUNT_INFO, err) } if acc.Name == "" && avatarHashOrColor == "" { @@ -304,7 +304,7 @@ func (mw *Middleware) AccountSelect(req *pb.Rpc_Account_Select_Request) *pb.Rpc_ contact, err := anytype.AccountRequestStoredContact(context.Background(), req.Id) if err != nil { - return response(acc, pb.Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO, err) + return response(acc, pb.RpcAccountSelectResponseError_FAILED_TO_FIND_ACCOUNT_INFO, err) } acc.Name = contact.Name avatarHashOrColor = contact.Avatar @@ -314,13 +314,13 @@ func (mw *Middleware) AccountSelect(req *pb.Rpc_Account_Select_Request) *pb.Rpc_ acc.Avatar = getAvatarFromString(avatarHashOrColor) } - return response(acc, pb.Rpc_Account_Select_Response_Error_NULL, nil) + return response(acc, pb.RpcAccountSelectResponseError_NULL, nil) } -func getAvatarFromString(avatarHashOrColor string) *pb.Model_Account_Avatar { +func getAvatarFromString(avatarHashOrColor string) *pb.ModelAccountAvatar { if strings.HasPrefix(avatarHashOrColor, "#") { - return &pb.Model_Account_Avatar{&pb.Model_Account_Avatar_Color{avatarHashOrColor}} + return &pb.ModelAccountAvatar{&pb.ModelAccountAvatarAvatarOfColor{avatarHashOrColor}} } else { - return &pb.Model_Account_Avatar{&pb.Model_Account_Avatar_Image{&pb.Model_Image{avatarHashOrColor, avatarSizes}}} + return &pb.ModelAccountAvatar{&pb.ModelAccountAvatarAvatarOfImage{&pb.ModelImage{avatarHashOrColor, avatarSizes}}} } } diff --git a/core/account_test.go b/core/account_test.go index 91c74fca7..14e59ccbb 100644 --- a/core/account_test.go +++ b/core/account_test.go @@ -13,8 +13,8 @@ import ( func createWallet(t *testing.T) *Middleware { mw := &Middleware{} rootPath := os.TempDir() - resp := mw.WalletCreate(&pb.Rpc_Wallet_Create_Request{RootPath: rootPath}) - require.Equal(t, pb.Rpc_Wallet_Create_Response_Error_NULL, resp.Error.Code, resp.Error.Code, "WalletCreate error should be 0") + resp := mw.WalletCreate(&pb.RpcWalletCreateRequest{RootPath: rootPath}) + require.Equal(t, pb.RpcWalletCreateResponseError_NULL, resp.Error.Code, resp.Error.Code, "WalletCreate error should be 0") require.Equal(t, 12, len(strings.Split(resp.Mnemonic, " ")), "WalletCreate should return 12 words") return mw } @@ -22,37 +22,37 @@ func createWallet(t *testing.T) *Middleware { func recoverWallet(t *testing.T, mnemonic string) *Middleware { mw := &Middleware{} rootPath := os.TempDir() - resp := mw.WalletRecover(&pb.Rpc_Wallet_Recover_Request{RootPath: rootPath, Mnemonic: mnemonic}) - require.Equal(t, pb.Rpc_Wallet_Recover_Response_Error_NULL, resp.Error.Code, "WalletRecover error should be 0") + resp := mw.WalletRecover(&pb.RpcWalletRecoverRequest{RootPath: rootPath, Mnemonic: mnemonic}) + require.Equal(t, pb.RpcWalletRecoverResponseError_NULL, resp.Error.Code, "WalletRecover error should be 0") return mw } -func Test_AccountCreate(t *testing.T) { +func TestAccountCreate(t *testing.T) { mw := createWallet(t) - accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_test", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) - require.Equal(t, "name_test", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) + accountCreateResp := mw.AccountCreate(&pb.RpcAccountCreateRequest{Name: "name_test", Avatar: &pb.RpcAccountCreateRequestAvatarOfAvatarLocalPath{"testdata/pic1.jpg"}}) + require.Equal(t, "name_test", accountCreateResp.Account.Name, "AccountCreateResponse has account with wrong name '%s'", accountCreateResp.Account.Name) - imageGetBlobResp := mw.ImageGetBlob(&pb.Rpc_Image_Get_Blob_Request{Id: accountCreateResp.Account.Avatar.GetImage().Id, Size_: pb.Model_Image_SMALL}) - require.Equal(t, pb.Rpc_Image_Get_Blob_Response_Error_NULL, imageGetBlobResp.Error.Code, "ImageGetBlob_Response contains error: %+v", imageGetBlobResp.Error) + imageGetBlobResp := mw.ImageGetBlob(&pb.RpcImageGetBlobRequest{Id: accountCreateResp.Account.Avatar.GetImage().Id, Size_: pb.ModelImage_SMALL}) + require.Equal(t, pb.RpcImageGetBlobResponseError_NULL, imageGetBlobResp.Error.Code, "ImageGetBlobResponse contains error: %+v", imageGetBlobResp.Error) require.True(t, len(imageGetBlobResp.Blob) > 0, "ava size should be greater than 0") err := mw.Stop() require.NoError(t, err, "failed to stop mw") } -func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { +func TestAccountRecoverLocalWithoutRestart(t *testing.T) { mw := createWallet(t) - accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_to_test_recover", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) - require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) + accountCreateResp := mw.AccountCreate(&pb.RpcAccountCreateRequest{Name: "name_to_test_recover", Avatar: &pb.RpcAccountCreateRequestAvatarOfAvatarLocalPath{"testdata/pic1.jpg"}}) + require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreateResponse has account with wrong name '%s'", accountCreateResp.Account.Name) err := mw.Stop() require.NoError(t, err, "failed to stop node") - var accountCh = make(chan *pb.Model_Account, 10) + var accountCh = make(chan *pb.ModelAccount, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.EventMessageOfAccountShow); ok { if aa.AccountShow.Index != 0 { return } @@ -61,13 +61,13 @@ func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { } } - walletRecoverResp := mw.WalletRecover(&pb.Rpc_Wallet_Recover_Request{RootPath: mw.rootPath, Mnemonic: mw.mnemonic}) - require.Equal(t, pb.Rpc_Wallet_Recover_Response_Error_NULL, walletRecoverResp.Error.Code, "WalletRecover_Response contains error: %+v", walletRecoverResp.Error) + walletRecoverResp := mw.WalletRecover(&pb.RpcWalletRecoverRequest{RootPath: mw.rootPath, Mnemonic: mw.mnemonic}) + require.Equal(t, pb.RpcWalletRecoverResponseError_NULL, walletRecoverResp.Error.Code, "WalletRecoverResponse contains error: %+v", walletRecoverResp.Error) - accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) - require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.RpcAccountRecoverRequest{}) + require.Equal(t, pb.RpcAccountRecoverResponseError_NULL, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) - var account *pb.Model_Account + var account *pb.ModelAccount select { case account = <-accountCh: break @@ -80,11 +80,11 @@ func Test_AccountRecover_LocalWithoutRestart(t *testing.T) { require.NoError(t, err, "failed to stop mw") } -func Test_AccountRecover_LocalAfterRestart(t *testing.T) { +func TestAccountRecoverLocalAfterRestart(t *testing.T) { mw := createWallet(t) - accountCreateResp := mw.AccountCreate(&pb.Rpc_Account_Create_Request{Name: "name_to_test_recover", Avatar: &pb.Rpc_Account_Create_Request_AvatarLocalPath{"testdata/pic1.jpg"}}) - require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreate_Response has account with wrong name '%s'", accountCreateResp.Account.Name) + accountCreateResp := mw.AccountCreate(&pb.RpcAccountCreateRequest{Name: "name_to_test_recover", Avatar: &pb.RpcAccountCreateRequestAvatarOfAvatarLocalPath{"testdata/pic1.jpg"}}) + require.Equal(t, "name_to_test_recover", accountCreateResp.Account.Name, "AccountCreateResponse has account with wrong name '%s'", accountCreateResp.Account.Name) err := mw.Stop() require.NoError(t, err, "failed to stop node") @@ -94,9 +94,9 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { // reset singleton to emulate restart mw = &Middleware{} - var accountCh = make(chan *pb.Model_Account, 10) + var accountCh = make(chan *pb.ModelAccount, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.EventMessageOfAccountShow); ok { if aa.AccountShow.Index != 0 { return } @@ -105,13 +105,13 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { } } - walletRecoverResp := mw.WalletRecover(&pb.Rpc_Wallet_Recover_Request{RootPath: rootPath, Mnemonic: mnemonic}) - require.Equal(t, pb.Rpc_Wallet_Recover_Response_Error_NULL, walletRecoverResp.Error.Code, "WalletRecover_Response contains error: %+v", walletRecoverResp.Error) + walletRecoverResp := mw.WalletRecover(&pb.RpcWalletRecoverRequest{RootPath: rootPath, Mnemonic: mnemonic}) + require.Equal(t, pb.RpcWalletRecoverResponseError_NULL, walletRecoverResp.Error.Code, "WalletRecoverResponse contains error: %+v", walletRecoverResp.Error) - accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) - require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.RpcAccountRecoverRequest{}) + require.Equal(t, pb.RpcAccountRecoverResponseError_NULL, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) - var account *pb.Model_Account + var account *pb.ModelAccount select { case account = <-accountCh: break @@ -124,19 +124,19 @@ func Test_AccountRecover_LocalAfterRestart(t *testing.T) { err = mw.Stop() } -func Test_AccountRecover_RemoteNotExisting(t *testing.T) { +func TestAccountRecoverRemoteNotExisting(t *testing.T) { mw := recoverWallet(t, "limit oxygen february destroy subway toddler umbrella nose praise shield afford eager") require.Equal(t, len(mw.localAccounts), 0, "localAccounts should be empty, instead got length = %d", len(mw.localAccounts)) - var account *pb.Model_Account + var account *pb.ModelAccount mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.EventMessageOfAccountShow); ok { account = aa.AccountShow.Account } } - accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) - require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.RpcAccountRecoverRequest{}) + require.Equal(t, pb.RpcAccountRecoverResponseError_NO_ACCOUNTS_FOUND, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) require.Nil(t, account, "account shouldn't be recovered") @@ -144,13 +144,13 @@ func Test_AccountRecover_RemoteNotExisting(t *testing.T) { require.NoError(t, err, "failed to stop mw") } -func Test_RecoverRemoteExisting(t *testing.T) { +func TestRecoverRemoteExisting(t *testing.T) { mw := recoverWallet(t, "input blame switch simple fatigue fragile grab goose unusual identify abuse use") require.Equal(t, len(mw.localAccounts), 0, "localAccounts should be empty, instead got length = %d", len(mw.localAccounts)) - var accountCh = make(chan *pb.Model_Account, 10) + var accountCh = make(chan *pb.ModelAccount, 10) mw.SendEvent = func(event *pb.Event) { - if aa, ok := event.Message.(*pb.Event_AccountShow); ok { + if aa, ok := event.Message.(*pb.EventMessageOfAccountShow); ok { if aa.AccountShow.Index != 0 { return } @@ -159,10 +159,10 @@ func Test_RecoverRemoteExisting(t *testing.T) { } } - accountRecoverResp := mw.AccountRecover(&pb.Rpc_Account_Recover_Request{}) - require.Equal(t, pb.Rpc_Account_Recover_Response_Error_NULL, accountRecoverResp.Error.Code, "AccountRecover_Response contains error: %+v", accountRecoverResp.Error) + accountRecoverResp := mw.AccountRecover(&pb.RpcAccountRecoverRequest{}) + require.Equal(t, pb.RpcAccountRecoverResponseError_NULL, accountRecoverResp.Error.Code, "AccountRecoverResponse contains error: %+v", accountRecoverResp.Error) - var account *pb.Model_Account + var account *pb.ModelAccount select { case account = <-accountCh: break diff --git a/core/block.go b/core/block.go index 445736f1a..f76e677c9 100644 --- a/core/block.go +++ b/core/block.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) BlockCreate(req *pb.Rpc_Block_Create_Request) *pb.Rpc_Block_Create_Response { - response := func(code pb.Rpc_Block_Create_Response_Error_Code, err error) *pb.Rpc_Block_Create_Response { - m := &pb.Rpc_Block_Create_Response{Error: &pb.Rpc_Block_Create_Response_Error{Code: code}} +func (mw *Middleware) BlockCreate(req *pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse { + response := func(code pb.RpcBlockCreateResponseErrorCode, err error) *pb.RpcBlockCreateResponse { + m := &pb.RpcBlockCreateResponse{Error: &pb.RpcBlockCreateResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -14,20 +14,20 @@ func (mw *Middleware) BlockCreate(req *pb.Rpc_Block_Create_Request) *pb.Rpc_Bloc return m } - /*block := &pb.Model_Block{} // TODO + /*block := &pb.ModelBlock{} // TODO - m := &pb.Event{Message: &pb.Event_Block_Create{&pb.Rpc_Block_Create{Block: block}}} + m := &pb.Event{Message: &pb.EventBlockCreate{&pb.RpcBlockCreate{Block: block}}} if mw.SendEvent != nil { mw.SendEvent(m) }*/ - return response(pb.Rpc_Block_Create_Response_Error_NULL, nil) + return response(pb.RpcBlockCreateResponseError_NULL, nil) } -func (mw *Middleware) BlockOpen(req *pb.Rpc_Block_Open_Request) *pb.Rpc_Block_Open_Response { - response := func(code pb.Rpc_Block_Open_Response_Error_Code, err error) *pb.Rpc_Block_Open_Response { - m := &pb.Rpc_Block_Open_Response{Error: &pb.Rpc_Block_Open_Response_Error{Code: code}} +func (mw *Middleware) BlockOpen(req *pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse { + response := func(code pb.RpcBlockOpenResponseErrorCode, err error) *pb.RpcBlockOpenResponse { + m := &pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -35,20 +35,20 @@ func (mw *Middleware) BlockOpen(req *pb.Rpc_Block_Open_Request) *pb.Rpc_Block_Op return m } - /*block := &pb.Model_Block{} // TODO + /*block := &pb.ModelBlock{} // TODO - m := &pb.Event{Message: &pb.Event_Block_Show{&pb.Rpc_Block_Show{Block: block}}} + m := &pb.Event{Message: &pb.EventBlockShow{&pb.RpcBlockShow{Block: block}}} if mw.SendEvent != nil { mw.SendEvent(m) }*/ - return response(pb.Rpc_Block_Open_Response_Error_NULL, nil) + return response(pb.RpcBlockOpenResponseError_NULL, nil) } -func (mw *Middleware) BlockUpdate(req *pb.Rpc_Block_Update_Request) *pb.Rpc_Block_Update_Response { - response := func(code pb.Rpc_Block_Update_Response_Error_Code, err error) *pb.Rpc_Block_Update_Response { - m := &pb.Rpc_Block_Update_Response{Error: &pb.Rpc_Block_Update_Response_Error{Code: code}} +func (mw *Middleware) BlockUpdate(req *pb.RpcBlockUpdateRequest) *pb.RpcBlockUpdateResponse { + response := func(code pb.RpcBlockUpdateResponseErrorCode, err error) *pb.RpcBlockUpdateResponse { + m := &pb.RpcBlockUpdateResponse{Error: &pb.RpcBlockUpdateResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -57,13 +57,13 @@ func (mw *Middleware) BlockUpdate(req *pb.Rpc_Block_Update_Request) *pb.Rpc_Bloc } /* - changes := &pb.Rpc_Block_Changes{} // TODO + changes := &pb.RpcBlockChanges{} // TODO - m := &pb.Event{Message: &pb.Event_Block_Update{&pb.Rpc_Block_Update{changes}}} + m := &pb.Event{Message: &pb.EventBlockUpdate{&pb.RpcBlockUpdate{changes}}} if mw.SendEvent != nil { mw.SendEvent(m) }*/ - return response(pb.Rpc_Block_Update_Response_Error_NULL, nil) + return response(pb.RpcBlockUpdateResponseError_NULL, nil) } diff --git a/core/core.go b/core/core.go index 09ac2a749..49582d9a1 100644 --- a/core/core.go +++ b/core/core.go @@ -23,7 +23,7 @@ type Middleware struct { pin string mnemonic string accountSearchCancel context.CancelFunc - localAccounts []*pb.Model_Account + localAccounts []*pb.ModelAccount SendEvent func(event *pb.Event) *libCore.Anytype } diff --git a/core/history.go b/core/history.go index 9289b01ba..7a530d849 100644 --- a/core/history.go +++ b/core/history.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) BlockHistoryMove(req *pb.Rpc_Block_History_Move_Request) *pb.Rpc_Block_History_Move_Response { - response := func(code pb.Rpc_Block_History_Move_Response_Error_Code, err error) *pb.Rpc_Block_History_Move_Response { - m := &pb.Rpc_Block_History_Move_Response{Error: &pb.Rpc_Block_History_Move_Response_Error{Code: code}} +func (mw *Middleware) BlockHistoryMove(req *pb.RpcBlockHistoryMoveRequest) *pb.RpcBlockHistoryMoveResponse { + response := func(code pb.RpcBlockHistoryMoveResponseErrorCode, err error) *pb.RpcBlockHistoryMoveResponse { + m := &pb.RpcBlockHistoryMoveResponse{Error: &pb.RpcBlockHistoryMoveResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -16,5 +16,5 @@ func (mw *Middleware) BlockHistoryMove(req *pb.Rpc_Block_History_Move_Request) * // TODO - return response(pb.Rpc_Block_History_Move_Response_Error_NULL, nil) + return response(pb.RpcBlockHistoryMoveResponseError_NULL, nil) } diff --git a/core/ipfs.go b/core/ipfs.go index f62aca4ab..37ede5fea 100644 --- a/core/ipfs.go +++ b/core/ipfs.go @@ -9,9 +9,9 @@ import ( "github.com/textileio/go-textile/ipfs" ) -func (mw *Middleware) IpfsGetFile(req *pb.Rpc_Ipfs_Get_File_Request) *pb.Rpc_Ipfs_Get_File_Response { - response := func(data []byte, media string, name string, code pb.Rpc_Ipfs_Get_File_Response_Error_Code, err error) *pb.Rpc_Ipfs_Get_File_Response { - m := &pb.Rpc_Ipfs_Get_File_Response{Data: data, Media: media, Error: &pb.Rpc_Ipfs_Get_File_Response_Error{Code: code}} +func (mw *Middleware) IpfsGetFile(req *pb.RpcIpfsGetFileRequest) *pb.RpcIpfsGetFileResponse { + response := func(data []byte, media string, name string, code pb.RpcIpfsGetFileResponseErrorCode, err error) *pb.RpcIpfsGetFileResponse { + m := &pb.RpcIpfsGetFileResponse{Data: data, Media: media, Error: &pb.RpcIpfsGetFileResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -22,25 +22,25 @@ func (mw *Middleware) IpfsGetFile(req *pb.Rpc_Ipfs_Get_File_Request) *pb.Rpc_Ipf reader, info, err := mw.Anytype.Textile.Node().FileContent(req.Id) if err != nil { if err == core2.ErrFileNotFound { - return response(nil, "", "", pb.Rpc_Ipfs_Get_File_Response_Error_NOT_FOUND, err) + return response(nil, "", "", pb.RpcIpfsGetFileResponseError_NOT_FOUND, err) } - return response(nil, "", "", pb.Rpc_Ipfs_Get_File_Response_Error_UNKNOWN_ERROR, err) + return response(nil, "", "", pb.RpcIpfsGetFileResponseError_UNKNOWN_ERROR, err) } data, err := ioutil.ReadAll(reader) if err != nil { - return response(nil, "", "", pb.Rpc_Ipfs_Get_File_Response_Error_UNKNOWN_ERROR, err) + return response(nil, "", "", pb.RpcIpfsGetFileResponseError_UNKNOWN_ERROR, err) } - return response(data, info.Media, info.Name, pb.Rpc_Ipfs_Get_File_Response_Error_NULL, nil) + return response(data, info.Media, info.Name, pb.RpcIpfsGetFileResponseError_NULL, nil) } /* //exportMobile IpfsGetData func IpfsGetData(b []byte) []byte { - response := func(data []byte, code pb.Rpc_Ipfs_GetData_Response_Error_Code, err error) []byte { - m := &pb.Rpc_Ipfs_GetData_Response{Data: data, Error: &pb.Rpc_Ipfs_GetData_Response_Error{Code: code}} + response := func(data []byte, code pb.RpcIpfsGetDataResponseErrorCode, err error) []byte { + m := &pb.RpcIpfsGetDataResponse{Data: data, Error: &pb.RpcIpfsGetDataResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -48,29 +48,29 @@ func IpfsGetData(b []byte) []byte { return Marshal(m) } - var q pb.Rpc_Ipfs_GetData_Request + var q pb.RpcIpfsGetDataRequest err := proto.Unmarshal(b, &q) if err != nil { - return response(nil, pb.Rpc_Ipfs_GetData_Response_Error_BAD_INPUT, err) + return response(nil, pb.RpcIpfsGetDataResponseError_BAD_INPUT, err) } data, err := ipfs.DataAtPath(mw.Anytype.Textile.Node().Ipfs(), q.Id) if err != nil { if err == core2.ErrFileNotFound { - return response(nil, pb.Rpc_Ipfs_GetData_Response_Error_NOT_FOUND, err) + return response(nil, pb.RpcIpfsGetDataResponseError_NOT_FOUND, err) } - return response(nil, pb.Rpc_Ipfs_GetData_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcIpfsGetDataResponseError_UNKNOWN_ERROR, err) } - return response(data, pb.Rpc_Ipfs_GetData_Response_Error_NULL, nil) + return response(data, pb.RpcIpfsGetDataResponseError_NULL, nil) } */ -func (mw *Middleware) ImageGetBlob(req *pb.Rpc_Image_Get_Blob_Request) *pb.Rpc_Image_Get_Blob_Response { - response := func(blob []byte, code pb.Rpc_Image_Get_Blob_Response_Error_Code, err error) *pb.Rpc_Image_Get_Blob_Response { - m := &pb.Rpc_Image_Get_Blob_Response{Blob: blob, Error: &pb.Rpc_Image_Get_Blob_Response_Error{Code: code}} +func (mw *Middleware) ImageGetBlob(req *pb.RpcImageGetBlobRequest) *pb.RpcImageGetBlobResponse { + response := func(blob []byte, code pb.RpcImageGetBlobResponseErrorCode, err error) *pb.RpcImageGetBlobResponse { + m := &pb.RpcImageGetBlobResponse{Blob: blob, Error: &pb.RpcImageGetBlobResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -81,11 +81,11 @@ func (mw *Middleware) ImageGetBlob(req *pb.Rpc_Image_Get_Blob_Request) *pb.Rpc_I data, err := ipfs.DataAtPath(mw.Anytype.Textile.Node().Ipfs(), req.Id+"/0/"+strings.ToLower(req.GetSize_().String())+"/content") if err != nil { if err == core2.ErrFileNotFound { - return response(nil, pb.Rpc_Image_Get_Blob_Response_Error_NOT_FOUND, err) + return response(nil, pb.RpcImageGetBlobResponseError_NOT_FOUND, err) } - return response(nil, pb.Rpc_Image_Get_Blob_Response_Error_UNKNOWN_ERROR, err) + return response(nil, pb.RpcImageGetBlobResponseError_UNKNOWN_ERROR, err) } - return response(data, pb.Rpc_Image_Get_Blob_Response_Error_NULL, nil) + return response(data, pb.RpcImageGetBlobResponseError_NULL, nil) } diff --git a/core/logger.go b/core/logger.go index b48249d30..c40b482fb 100644 --- a/core/logger.go +++ b/core/logger.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) LogSend(req *pb.Rpc_Log_Send_Request) *pb.Rpc_Log_Send_Response { - response := func(code pb.Rpc_Log_Send_Response_Error_Code, err error) *pb.Rpc_Log_Send_Response { - m := &pb.Rpc_Log_Send_Response{Error: &pb.Rpc_Log_Send_Response_Error{Code: code}} +func (mw *Middleware) LogSend(req *pb.RpcLogSendRequest) *pb.RpcLogSendResponse { + response := func(code pb.RpcLogSendResponseErrorCode, err error) *pb.RpcLogSendResponse { + m := &pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -15,19 +15,19 @@ func (mw *Middleware) LogSend(req *pb.Rpc_Log_Send_Request) *pb.Rpc_Log_Send_Res } switch req.Level { - case pb.Rpc_Log_Send_Request_FATAL: + case pb.RpcLogSendRequest_FATAL: log.Fatal(req.Message) - case pb.Rpc_Log_Send_Request_PANIC: + case pb.RpcLogSendRequest_PANIC: log.Panic(req.Message) - case pb.Rpc_Log_Send_Request_DEBUG: + case pb.RpcLogSendRequest_DEBUG: log.Debug(req.Message) - case pb.Rpc_Log_Send_Request_INFO: + case pb.RpcLogSendRequest_INFO: log.Info(req.Message) - case pb.Rpc_Log_Send_Request_WARNING: + case pb.RpcLogSendRequest_WARNING: log.Warning(req.Message) - case pb.Rpc_Log_Send_Request_ERROR: + case pb.RpcLogSendRequest_ERROR: log.Error(req.Message) } - return response(pb.Rpc_Log_Send_Response_Error_NULL, nil) + return response(pb.RpcLogSendResponseError_NULL, nil) } diff --git a/core/logger_test.go b/core/logger_test.go index 4a60e415d..2d21baeb4 100644 --- a/core/logger_test.go +++ b/core/logger_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/require" ) -func Test_Log(t *testing.T) { +func TestLog(t *testing.T) { mw := Middleware{} file, err := ioutil.TempFile("", "testlog") require.NoError(t, err) @@ -21,13 +21,13 @@ func Test_Log(t *testing.T) { os.Setenv("GOLOG_FILE", file.Name()) logger.SetupLogging() logger.SetDebugLogging() - for level, levelText := range map[pb.Rpc_Log_Send_Request_Level]string{ - pb.Rpc_Log_Send_Request_ERROR: "[31mERROR", - pb.Rpc_Log_Send_Request_WARNING: "[33mWARNI", + for level, levelText := range map[pb.RpcLogSendRequestLevel]string{ + pb.RpcLogSendRequest_ERROR: "[31mERROR", + pb.RpcLogSendRequest_WARNING: "[33mWARNI", } { text := fmt.Sprintf("test_log_%s", time.Now().String()) - resp := mw.LogSend(&pb.Rpc_Log_Send_Request{Message: text, Level: level}) - require.Equal(t, pb.Rpc_Log_Send_Response_Error_NULL, resp.Error.Code, "LogSendResponse contains error: %+v", resp.Error) + resp := mw.LogSend(&pb.RpcLogSendRequest{Message: text, Level: level}) + require.Equal(t, pb.RpcLogSendResponseError_NULL, resp.Error.Code, "LogSendResponse contains error: %+v", resp.Error) b, err := ioutil.ReadFile(file.Name()) require.NoError(t, err) diff --git a/core/version.go b/core/version.go index 51f9eed44..e0b40e28e 100644 --- a/core/version.go +++ b/core/version.go @@ -9,9 +9,9 @@ import ( // Set by ldflags var GitCommit, GitBranch, GitState, GitSummary, BuildDate string -func (mw *Middleware) VersionGet(req *pb.Rpc_Version_Get_Request) *pb.Rpc_Version_Get_Response { - response := func(version, details string, code pb.Rpc_Version_Get_Response_Error_Code, err error) *pb.Rpc_Version_Get_Response { - m := &pb.Rpc_Version_Get_Response{Version: version, Error: &pb.Rpc_Version_Get_Response_Error{Code: code}} +func (mw *Middleware) VersionGet(req *pb.RpcVersionGetRequest) *pb.RpcVersionGetResponse { + response := func(version, details string, code pb.RpcVersionGetResponseErrorCode, err error) *pb.RpcVersionGetResponse { + m := &pb.RpcVersionGetResponse{Version: version, Error: &pb.RpcVersionGetResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -20,10 +20,10 @@ func (mw *Middleware) VersionGet(req *pb.Rpc_Version_Get_Request) *pb.Rpc_Versio } if len(GitSummary) == 0 { - return response("", "", pb.Rpc_Version_Get_Response_Error_VERSION_IS_EMPTY, nil) + return response("", "", pb.RpcVersionGetResponseError_VERSION_IS_EMPTY, nil) } details := fmt.Sprintf("build on %s from %s at #%s(%s)", BuildDate, GitCommit, GitBranch, GitState) - return response(GitSummary, details, pb.Rpc_Version_Get_Response_Error_NULL, nil) + return response(GitSummary, details, pb.RpcVersionGetResponseError_NULL, nil) } diff --git a/core/wallet.go b/core/wallet.go index 155ae9499..5a262aaef 100644 --- a/core/wallet.go +++ b/core/wallet.go @@ -9,9 +9,9 @@ import ( const wordCount int = 12 -func (mw *Middleware) WalletCreate(req *pb.Rpc_Wallet_Create_Request) *pb.Rpc_Wallet_Create_Response { - response := func(mnemonic string, code pb.Rpc_Wallet_Create_Response_Error_Code, err error) *pb.Rpc_Wallet_Create_Response { - m := &pb.Rpc_Wallet_Create_Response{Mnemonic: mnemonic, Error: &pb.Rpc_Wallet_Create_Response_Error{Code: code}} +func (mw *Middleware) WalletCreate(req *pb.RpcWalletCreateRequest) *pb.RpcWalletCreateResponse { + response := func(mnemonic string, code pb.RpcWalletCreateResponseErrorCode, err error) *pb.RpcWalletCreateResponse { + m := &pb.RpcWalletCreateResponse{Mnemonic: mnemonic, Error: &pb.RpcWalletCreateResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -24,22 +24,22 @@ func (mw *Middleware) WalletCreate(req *pb.Rpc_Wallet_Create_Request) *pb.Rpc_Wa err := os.MkdirAll(mw.rootPath, 0700) if err != nil { - return response("", pb.Rpc_Wallet_Create_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response("", pb.RpcWalletCreateResponseError_FAILED_TO_CREATE_LOCAL_REPO, err) } mnemonic, err := core.WalletGenerateMnemonic(wordCount) if err != nil { - return response("", pb.Rpc_Wallet_Create_Response_Error_UNKNOWN_ERROR, err) + return response("", pb.RpcWalletCreateResponseError_UNKNOWN_ERROR, err) } mw.mnemonic = mnemonic - return response(mnemonic, pb.Rpc_Wallet_Create_Response_Error_NULL, nil) + return response(mnemonic, pb.RpcWalletCreateResponseError_NULL, nil) } -func (mw *Middleware) WalletRecover(req *pb.Rpc_Wallet_Recover_Request) *pb.Rpc_Wallet_Recover_Response { - response := func(code pb.Rpc_Wallet_Recover_Response_Error_Code, err error) *pb.Rpc_Wallet_Recover_Response { - m := &pb.Rpc_Wallet_Recover_Response{Error: &pb.Rpc_Wallet_Recover_Response_Error{Code: code}} +func (mw *Middleware) WalletRecover(req *pb.RpcWalletRecoverRequest) *pb.RpcWalletRecoverResponse { + response := func(code pb.RpcWalletRecoverResponseErrorCode, err error) *pb.RpcWalletRecoverResponse { + m := &pb.RpcWalletRecoverResponse{Error: &pb.RpcWalletRecoverResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -56,14 +56,14 @@ func (mw *Middleware) WalletRecover(req *pb.Rpc_Wallet_Recover_Request) *pb.Rpc_ err := os.MkdirAll(mw.rootPath, 0700) if err != nil { - return response(pb.Rpc_Wallet_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO, err) + return response(pb.RpcWalletRecoverResponseError_FAILED_TO_CREATE_LOCAL_REPO, err) } // test if mnemonic is correct _, err = core.WalletAccountAt(req.Mnemonic, 0, "") if err != nil { - return response(pb.Rpc_Wallet_Recover_Response_Error_BAD_INPUT, err) + return response(pb.RpcWalletRecoverResponseError_BAD_INPUT, err) } - return response(pb.Rpc_Wallet_Recover_Response_Error_NULL, nil) + return response(pb.RpcWalletRecoverResponseError_NULL, nil) } diff --git a/lib/lib_test.go b/lib/lib_test.go index 07c98cc4c..68376ffd6 100644 --- a/lib/lib_test.go +++ b/lib/lib_test.go @@ -10,24 +10,24 @@ import ( "github.com/stretchr/testify/require" ) -func Test_Unpack(t *testing.T) { - b, _ := proto.Marshal(&pb.Rpc_Wallet_Recover_Response{}) +func TestUnpack(t *testing.T) { + b, _ := proto.Marshal(&pb.RpcWalletRecoverResponse{}) - var msg pb.Rpc_Wallet_Recover_Response + var msg pb.RpcWalletRecoverResponse err := proto.Unmarshal(b, &msg) if err != nil { fmt.Println(err.Error()) } } -func Test_EventHandler(t *testing.T) { +func TestEventHandler(t *testing.T) { var eventReceived *pb.Event mw = &core.Middleware{} SetEventHandler(func(event *pb.Event) { eventReceived = event }) - eventSent := &pb.Event{Message: &pb.Event_AccountShow{AccountShow: &pb.Event_Account_Show{Index: 0, Account: &pb.Model_Account{Id: "1", Name: "name"}}}} + eventSent := &pb.Event{Message: &pb.EventMessageOfAccountShow{AccountShow: &pb.EventAccountShow{Index: 0, Account: &pb.ModelAccount{Id: "1", Name: "name"}}}} mw.SendEvent(eventSent) require.Equal(t, eventSent, eventReceived, "eventReceived not equal to eventSent: %s %s", eventSent, eventReceived) diff --git a/lib/service.pb.go b/lib/service.pb.go index ca642ab6e..4e7ca67af 100644 --- a/lib/service.pb.go +++ b/lib/service.pb.go @@ -58,18 +58,18 @@ var fileDescriptor_a0b84a42fa06f626 = []byte{ var clientCommandsHandler ClientCommandsHandler type ClientCommandsHandler interface { - WalletCreate(*pb.Rpc_Wallet_Create_Request) *pb.Rpc_Wallet_Create_Response - WalletRecover(*pb.Rpc_Wallet_Recover_Request) *pb.Rpc_Wallet_Recover_Response - AccountRecover(*pb.Rpc_Account_Recover_Request) *pb.Rpc_Account_Recover_Response - AccountCreate(*pb.Rpc_Account_Create_Request) *pb.Rpc_Account_Create_Response - AccountSelect(*pb.Rpc_Account_Select_Request) *pb.Rpc_Account_Select_Response - ImageGetBlob(*pb.Rpc_Image_Get_Blob_Request) *pb.Rpc_Image_Get_Blob_Response - VersionGet(*pb.Rpc_Version_Get_Request) *pb.Rpc_Version_Get_Response - LogSend(*pb.Rpc_Log_Send_Request) *pb.Rpc_Log_Send_Response - BlockOpen(*pb.Rpc_Block_Open_Request) *pb.Rpc_Block_Open_Response - BlockCreate(*pb.Rpc_Block_Create_Request) *pb.Rpc_Block_Create_Response - BlockUpdate(*pb.Rpc_Block_Update_Request) *pb.Rpc_Block_Update_Response - BlockHistoryMove(*pb.Rpc_Block_History_Move_Request) *pb.Rpc_Block_History_Move_Response + WalletCreate(*pb.RpcWalletCreateRequest) *pb.RpcWalletCreateResponse + WalletRecover(*pb.RpcWalletRecoverRequest) *pb.RpcWalletRecoverResponse + AccountRecover(*pb.RpcAccountRecoverRequest) *pb.RpcAccountRecoverResponse + AccountCreate(*pb.RpcAccountCreateRequest) *pb.RpcAccountCreateResponse + AccountSelect(*pb.RpcAccountSelectRequest) *pb.RpcAccountSelectResponse + ImageGetBlob(*pb.RpcImageGetBlobRequest) *pb.RpcImageGetBlobResponse + VersionGet(*pb.RpcVersionGetRequest) *pb.RpcVersionGetResponse + LogSend(*pb.RpcLogSendRequest) *pb.RpcLogSendResponse + BlockOpen(*pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse + BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse + BlockUpdate(*pb.RpcBlockUpdateRequest) *pb.RpcBlockUpdateResponse + BlockHistoryMove(*pb.RpcBlockHistoryMoveRequest) *pb.RpcBlockHistoryMoveResponse } func registerClientCommandsHandler(srv ClientCommandsHandler) { @@ -77,9 +77,9 @@ func registerClientCommandsHandler(srv ClientCommandsHandler) { } func WalletCreate(b []byte) []byte { - in := new(pb.Rpc_Wallet_Create_Request) + in := new(pb.RpcWalletCreateRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Wallet_Create_Response{Error: &pb.Rpc_Wallet_Create_Response_Error{Code: pb.Rpc_Wallet_Create_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcWalletCreateResponse{Error: &pb.RpcWalletCreateResponseError{Code: pb.RpcWalletCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.WalletCreate(in).Marshal() @@ -87,9 +87,9 @@ func WalletCreate(b []byte) []byte { } func WalletRecover(b []byte) []byte { - in := new(pb.Rpc_Wallet_Recover_Request) + in := new(pb.RpcWalletRecoverRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Wallet_Recover_Response{Error: &pb.Rpc_Wallet_Recover_Response_Error{Code: pb.Rpc_Wallet_Recover_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcWalletRecoverResponse{Error: &pb.RpcWalletRecoverResponseError{Code: pb.RpcWalletRecoverResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.WalletRecover(in).Marshal() @@ -97,9 +97,9 @@ func WalletRecover(b []byte) []byte { } func AccountRecover(b []byte) []byte { - in := new(pb.Rpc_Account_Recover_Request) + in := new(pb.RpcAccountRecoverRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Account_Recover_Response{Error: &pb.Rpc_Account_Recover_Response_Error{Code: pb.Rpc_Account_Recover_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcAccountRecoverResponse{Error: &pb.RpcAccountRecoverResponseError{Code: pb.RpcAccountRecoverResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.AccountRecover(in).Marshal() @@ -107,9 +107,9 @@ func AccountRecover(b []byte) []byte { } func AccountCreate(b []byte) []byte { - in := new(pb.Rpc_Account_Create_Request) + in := new(pb.RpcAccountCreateRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Account_Create_Response{Error: &pb.Rpc_Account_Create_Response_Error{Code: pb.Rpc_Account_Create_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcAccountCreateResponse{Error: &pb.RpcAccountCreateResponseError{Code: pb.RpcAccountCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.AccountCreate(in).Marshal() @@ -117,9 +117,9 @@ func AccountCreate(b []byte) []byte { } func AccountSelect(b []byte) []byte { - in := new(pb.Rpc_Account_Select_Request) + in := new(pb.RpcAccountSelectRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Account_Select_Response{Error: &pb.Rpc_Account_Select_Response_Error{Code: pb.Rpc_Account_Select_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcAccountSelectResponse{Error: &pb.RpcAccountSelectResponseError{Code: pb.RpcAccountSelectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.AccountSelect(in).Marshal() @@ -127,9 +127,9 @@ func AccountSelect(b []byte) []byte { } func ImageGetBlob(b []byte) []byte { - in := new(pb.Rpc_Image_Get_Blob_Request) + in := new(pb.RpcImageGetBlobRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Image_Get_Blob_Response{Error: &pb.Rpc_Image_Get_Blob_Response_Error{Code: pb.Rpc_Image_Get_Blob_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcImageGetBlobResponse{Error: &pb.RpcImageGetBlobResponseError{Code: pb.RpcImageGetBlobResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.ImageGetBlob(in).Marshal() @@ -137,9 +137,9 @@ func ImageGetBlob(b []byte) []byte { } func VersionGet(b []byte) []byte { - in := new(pb.Rpc_Version_Get_Request) + in := new(pb.RpcVersionGetRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Version_Get_Response{Error: &pb.Rpc_Version_Get_Response_Error{Code: pb.Rpc_Version_Get_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcVersionGetResponse{Error: &pb.RpcVersionGetResponseError{Code: pb.RpcVersionGetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.VersionGet(in).Marshal() @@ -147,9 +147,9 @@ func VersionGet(b []byte) []byte { } func LogSend(b []byte) []byte { - in := new(pb.Rpc_Log_Send_Request) + in := new(pb.RpcLogSendRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Log_Send_Response{Error: &pb.Rpc_Log_Send_Response_Error{Code: pb.Rpc_Log_Send_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: pb.RpcLogSendResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.LogSend(in).Marshal() @@ -157,9 +157,9 @@ func LogSend(b []byte) []byte { } func BlockOpen(b []byte) []byte { - in := new(pb.Rpc_Block_Open_Request) + in := new(pb.RpcBlockOpenRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Block_Open_Response{Error: &pb.Rpc_Block_Open_Response_Error{Code: pb.Rpc_Block_Open_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: pb.RpcBlockOpenResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockOpen(in).Marshal() @@ -167,9 +167,9 @@ func BlockOpen(b []byte) []byte { } func BlockCreate(b []byte) []byte { - in := new(pb.Rpc_Block_Create_Request) + in := new(pb.RpcBlockCreateRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Block_Create_Response{Error: &pb.Rpc_Block_Create_Response_Error{Code: pb.Rpc_Block_Create_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcBlockCreateResponse{Error: &pb.RpcBlockCreateResponseError{Code: pb.RpcBlockCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockCreate(in).Marshal() @@ -177,9 +177,9 @@ func BlockCreate(b []byte) []byte { } func BlockUpdate(b []byte) []byte { - in := new(pb.Rpc_Block_Update_Request) + in := new(pb.RpcBlockUpdateRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Block_Update_Response{Error: &pb.Rpc_Block_Update_Response_Error{Code: pb.Rpc_Block_Update_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcBlockUpdateResponse{Error: &pb.RpcBlockUpdateResponseError{Code: pb.RpcBlockUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockUpdate(in).Marshal() @@ -187,9 +187,9 @@ func BlockUpdate(b []byte) []byte { } func BlockHistoryMove(b []byte) []byte { - in := new(pb.Rpc_Block_History_Move_Request) + in := new(pb.RpcBlockHistoryMoveRequest) if err := in.Unmarshal(b); err != nil { - resp, _ := (&pb.Rpc_Block_History_Move_Response{Error: &pb.Rpc_Block_History_Move_Response_Error{Code: pb.Rpc_Block_History_Move_Response_Error_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ := (&pb.RpcBlockHistoryMoveResponse{Error: &pb.RpcBlockHistoryMoveResponseError{Code: pb.RpcBlockHistoryMoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } resp, _ := clientCommandsHandler.BlockHistoryMove(in).Marshal() diff --git a/pb/changes.pb.go b/pb/changes.pb.go index 2fd4574ab..8eeb7384e 100644 --- a/pb/changes.pb.go +++ b/pb/changes.pb.go @@ -101,7 +101,7 @@ type Change_Block_Header struct { // *Change_Block_Header_Name // *Change_Block_Header_Icon // *Change_Block_Header_Permissions - Change isChange_Block_Header_Change `protobuf_oneof:"change"` + Change isChange_Block_HeaderChange `protobuf_oneof:"change"` } func (m *Change_Block_Header) Reset() { *m = Change_Block_Header{} } @@ -137,8 +137,8 @@ func (m *Change_Block_Header) XXX_DiscardUnknown() { var xxx_messageInfo_Change_Block_Header proto.InternalMessageInfo -type isChange_Block_Header_Change interface { - isChange_Block_Header_Change() +type isChange_Block_HeaderChange interface { + isChange_Block_HeaderChange() MarshalTo([]byte) (int, error) Size() int } @@ -159,13 +159,13 @@ type Change_Block_Header_Permissions struct { Permissions *Model_Block_Header_Permissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` } -func (*Change_Block_Header_Id) isChange_Block_Header_Change() {} -func (*Change_Block_Header_Type) isChange_Block_Header_Change() {} -func (*Change_Block_Header_Name) isChange_Block_Header_Change() {} -func (*Change_Block_Header_Icon) isChange_Block_Header_Change() {} -func (*Change_Block_Header_Permissions) isChange_Block_Header_Change() {} +func (*Change_Block_Header_Id) isChange_Block_HeaderChange() {} +func (*Change_Block_Header_Type) isChange_Block_HeaderChange() {} +func (*Change_Block_Header_Name) isChange_Block_HeaderChange() {} +func (*Change_Block_Header_Icon) isChange_Block_HeaderChange() {} +func (*Change_Block_Header_Permissions) isChange_Block_HeaderChange() {} -func (m *Change_Block_Header) GetChange() isChange_Block_Header_Change { +func (m *Change_Block_Header) GetChange() isChange_Block_HeaderChange { if m != nil { return m.Change } @@ -302,7 +302,7 @@ type Change_Block_Content_Page struct { // Types that are valid to be assigned to Change: // *Change_Block_Content_Page_Style // *Change_Block_Content_Page_Block - Change isChange_Block_Content_Page_Change `protobuf_oneof:"change"` + Change isChange_Block_Content_PageChange `protobuf_oneof:"change"` } func (m *Change_Block_Content_Page) Reset() { *m = Change_Block_Content_Page{} } @@ -338,8 +338,8 @@ func (m *Change_Block_Content_Page) XXX_DiscardUnknown() { var xxx_messageInfo_Change_Block_Content_Page proto.InternalMessageInfo -type isChange_Block_Content_Page_Change interface { - isChange_Block_Content_Page_Change() +type isChange_Block_Content_PageChange interface { + isChange_Block_Content_PageChange() MarshalTo([]byte) (int, error) Size() int } @@ -351,10 +351,10 @@ type Change_Block_Content_Page_Block struct { Block *Model_Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` } -func (*Change_Block_Content_Page_Style) isChange_Block_Content_Page_Change() {} -func (*Change_Block_Content_Page_Block) isChange_Block_Content_Page_Change() {} +func (*Change_Block_Content_Page_Style) isChange_Block_Content_PageChange() {} +func (*Change_Block_Content_Page_Block) isChange_Block_Content_PageChange() {} -func (m *Change_Block_Content_Page) GetChange() isChange_Block_Content_Page_Change { +func (m *Change_Block_Content_Page) GetChange() isChange_Block_Content_PageChange { if m != nil { return m.Change } @@ -387,7 +387,7 @@ type Change_Block_Content_Dashboard struct { // Types that are valid to be assigned to Change: // *Change_Block_Content_Dashboard_Style // *Change_Block_Content_Dashboard_Header - Change isChange_Block_Content_Dashboard_Change `protobuf_oneof:"change"` + Change isChange_Block_Content_DashboardChange `protobuf_oneof:"change"` } func (m *Change_Block_Content_Dashboard) Reset() { *m = Change_Block_Content_Dashboard{} } @@ -423,8 +423,8 @@ func (m *Change_Block_Content_Dashboard) XXX_DiscardUnknown() { var xxx_messageInfo_Change_Block_Content_Dashboard proto.InternalMessageInfo -type isChange_Block_Content_Dashboard_Change interface { - isChange_Block_Content_Dashboard_Change() +type isChange_Block_Content_DashboardChange interface { + isChange_Block_Content_DashboardChange() MarshalTo([]byte) (int, error) Size() int } @@ -436,10 +436,10 @@ type Change_Block_Content_Dashboard_Header struct { Header *Model_Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` } -func (*Change_Block_Content_Dashboard_Style) isChange_Block_Content_Dashboard_Change() {} -func (*Change_Block_Content_Dashboard_Header) isChange_Block_Content_Dashboard_Change() {} +func (*Change_Block_Content_Dashboard_Style) isChange_Block_Content_DashboardChange() {} +func (*Change_Block_Content_Dashboard_Header) isChange_Block_Content_DashboardChange() {} -func (m *Change_Block_Content_Dashboard) GetChange() isChange_Block_Content_Dashboard_Change { +func (m *Change_Block_Content_Dashboard) GetChange() isChange_Block_Content_DashboardChange { if m != nil { return m.Change } @@ -472,7 +472,7 @@ type Change_Block_Content_Media struct { // Types that are valid to be assigned to Change: // *Change_Block_Content_Media_Link // *Change_Block_Content_Media_State - Change isChange_Block_Content_Media_Change `protobuf_oneof:"change"` + Change isChange_Block_Content_MediaChange `protobuf_oneof:"change"` } func (m *Change_Block_Content_Media) Reset() { *m = Change_Block_Content_Media{} } @@ -508,8 +508,8 @@ func (m *Change_Block_Content_Media) XXX_DiscardUnknown() { var xxx_messageInfo_Change_Block_Content_Media proto.InternalMessageInfo -type isChange_Block_Content_Media_Change interface { - isChange_Block_Content_Media_Change() +type isChange_Block_Content_MediaChange interface { + isChange_Block_Content_MediaChange() MarshalTo([]byte) (int, error) Size() int } @@ -521,10 +521,10 @@ type Change_Block_Content_Media_State struct { State Model_Block_Content_Media_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_Content_Media_State,oneof" json:"state,omitempty"` } -func (*Change_Block_Content_Media_Link) isChange_Block_Content_Media_Change() {} -func (*Change_Block_Content_Media_State) isChange_Block_Content_Media_Change() {} +func (*Change_Block_Content_Media_Link) isChange_Block_Content_MediaChange() {} +func (*Change_Block_Content_Media_State) isChange_Block_Content_MediaChange() {} -func (m *Change_Block_Content_Media) GetChange() isChange_Block_Content_Media_Change { +func (m *Change_Block_Content_Media) GetChange() isChange_Block_Content_MediaChange { if m != nil { return m.Change } @@ -562,7 +562,7 @@ type Change_Block_Content_Text struct { // *Change_Block_Content_Text_MarkerType // *Change_Block_Content_Text_Checkable // *Change_Block_Content_Text_Checked - Change isChange_Block_Content_Text_Change `protobuf_oneof:"change"` + Change isChange_Block_Content_TextChange `protobuf_oneof:"change"` } func (m *Change_Block_Content_Text) Reset() { *m = Change_Block_Content_Text{} } @@ -598,8 +598,8 @@ func (m *Change_Block_Content_Text) XXX_DiscardUnknown() { var xxx_messageInfo_Change_Block_Content_Text proto.InternalMessageInfo -type isChange_Block_Content_Text_Change interface { - isChange_Block_Content_Text_Change() +type isChange_Block_Content_TextChange interface { + isChange_Block_Content_TextChange() MarshalTo([]byte) (int, error) Size() int } @@ -626,15 +626,15 @@ type Change_Block_Content_Text_Checked struct { Checked bool `protobuf:"varint,7,opt,name=checked,proto3,oneof" json:"checked,omitempty"` } -func (*Change_Block_Content_Text_Text) isChange_Block_Content_Text_Change() {} -func (*Change_Block_Content_Text_Style) isChange_Block_Content_Text_Change() {} -func (*Change_Block_Content_Text_Marks) isChange_Block_Content_Text_Change() {} -func (*Change_Block_Content_Text_Toggleable) isChange_Block_Content_Text_Change() {} -func (*Change_Block_Content_Text_MarkerType) isChange_Block_Content_Text_Change() {} -func (*Change_Block_Content_Text_Checkable) isChange_Block_Content_Text_Change() {} -func (*Change_Block_Content_Text_Checked) isChange_Block_Content_Text_Change() {} +func (*Change_Block_Content_Text_Text) isChange_Block_Content_TextChange() {} +func (*Change_Block_Content_Text_Style) isChange_Block_Content_TextChange() {} +func (*Change_Block_Content_Text_Marks) isChange_Block_Content_TextChange() {} +func (*Change_Block_Content_Text_Toggleable) isChange_Block_Content_TextChange() {} +func (*Change_Block_Content_Text_MarkerType) isChange_Block_Content_TextChange() {} +func (*Change_Block_Content_Text_Checkable) isChange_Block_Content_TextChange() {} +func (*Change_Block_Content_Text_Checked) isChange_Block_Content_TextChange() {} -func (m *Change_Block_Content_Text) GetChange() isChange_Block_Content_Text_Change { +func (m *Change_Block_Content_Text) GetChange() isChange_Block_Content_TextChange { if m != nil { return m.Change } @@ -712,7 +712,7 @@ type BlocksListSingleChange struct { // *BlocksListSingleChange_Page // *BlocksListSingleChange_Dashboard // *BlocksListSingleChange_Media - Change isBlocksListSingleChange_Change `protobuf_oneof:"change"` + Change isBlocksListSingleChangeChange `protobuf_oneof:"change"` } func (m *BlocksListSingleChange) Reset() { *m = BlocksListSingleChange{} } @@ -748,8 +748,8 @@ func (m *BlocksListSingleChange) XXX_DiscardUnknown() { var xxx_messageInfo_BlocksListSingleChange proto.InternalMessageInfo -type isBlocksListSingleChange_Change interface { - isBlocksListSingleChange_Change() +type isBlocksListSingleChangeChange interface { + isBlocksListSingleChangeChange() MarshalTo([]byte) (int, error) Size() int } @@ -773,14 +773,14 @@ type BlocksListSingleChange_Media struct { Media *Change_Block_Content_Media `protobuf:"bytes,7,opt,name=media,proto3,oneof" json:"media,omitempty"` } -func (*BlocksListSingleChange_Text) isBlocksListSingleChange_Change() {} -func (*BlocksListSingleChange_BlockHeader) isBlocksListSingleChange_Change() {} -func (*BlocksListSingleChange_BlockChildren) isBlocksListSingleChange_Change() {} -func (*BlocksListSingleChange_Page) isBlocksListSingleChange_Change() {} -func (*BlocksListSingleChange_Dashboard) isBlocksListSingleChange_Change() {} -func (*BlocksListSingleChange_Media) isBlocksListSingleChange_Change() {} +func (*BlocksListSingleChange_Text) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChange_BlockHeader) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChange_BlockChildren) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChange_Page) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChange_Dashboard) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChange_Media) isBlocksListSingleChangeChange() {} -func (m *BlocksListSingleChange) GetChange() isBlocksListSingleChange_Change { +func (m *BlocksListSingleChange) GetChange() isBlocksListSingleChangeChange { if m != nil { return m.Change } diff --git a/pb/commands.pb.go b/pb/commands.pb.go index 7b7703227..131cc09da 100644 --- a/pb/commands.pb.go +++ b/pb/commands.pb.go @@ -1870,7 +1870,7 @@ type Rpc_Account_Create_Request struct { // Types that are valid to be assigned to Avatar: // *Rpc_Account_Create_Request_AvatarLocalPath // *Rpc_Account_Create_Request_AvatarColor - Avatar isRpc_Account_Create_Request_Avatar `protobuf_oneof:"avatar"` + Avatar isRpc_Account_Create_RequestAvatar `protobuf_oneof:"avatar"` } func (m *Rpc_Account_Create_Request) Reset() { *m = Rpc_Account_Create_Request{} } @@ -1906,8 +1906,8 @@ func (m *Rpc_Account_Create_Request) XXX_DiscardUnknown() { var xxx_messageInfo_Rpc_Account_Create_Request proto.InternalMessageInfo -type isRpc_Account_Create_Request_Avatar interface { - isRpc_Account_Create_Request_Avatar() +type isRpc_Account_Create_RequestAvatar interface { + isRpc_Account_Create_RequestAvatar() MarshalTo([]byte) (int, error) Size() int } @@ -1919,10 +1919,10 @@ type Rpc_Account_Create_Request_AvatarColor struct { AvatarColor string `protobuf:"bytes,3,opt,name=avatarColor,proto3,oneof" json:"avatarColor,omitempty"` } -func (*Rpc_Account_Create_Request_AvatarLocalPath) isRpc_Account_Create_Request_Avatar() {} -func (*Rpc_Account_Create_Request_AvatarColor) isRpc_Account_Create_Request_Avatar() {} +func (*Rpc_Account_Create_Request_AvatarLocalPath) isRpc_Account_Create_RequestAvatar() {} +func (*Rpc_Account_Create_Request_AvatarColor) isRpc_Account_Create_RequestAvatar() {} -func (m *Rpc_Account_Create_Request) GetAvatar() isRpc_Account_Create_Request_Avatar { +func (m *Rpc_Account_Create_Request) GetAvatar() isRpc_Account_Create_RequestAvatar { if m != nil { return m.Avatar } diff --git a/pb/events.pb.go b/pb/events.pb.go index a44151e5f..3bff3f57f 100644 --- a/pb/events.pb.go +++ b/pb/events.pb.go @@ -33,7 +33,7 @@ type Event struct { // *Event_UserBlockLeft // *Event_UserBlockSelectRange // *Event_FilesUpload - Message isEvent_Message `protobuf_oneof:"message"` + Message isEventMessage `protobuf_oneof:"message"` } func (m *Event) Reset() { *m = Event{} } @@ -69,8 +69,8 @@ func (m *Event) XXX_DiscardUnknown() { var xxx_messageInfo_Event proto.InternalMessageInfo -type isEvent_Message interface { - isEvent_Message() +type isEventMessage interface { + isEventMessage() MarshalTo([]byte) (int, error) Size() int } @@ -103,17 +103,17 @@ type Event_FilesUpload struct { FilesUpload *Event_Block_FilesUpload `protobuf:"bytes,9,opt,name=filesUpload,proto3,oneof" json:"filesUpload,omitempty"` } -func (*Event_AccountShow) isEvent_Message() {} -func (*Event_BlockShow) isEvent_Message() {} -func (*Event_BlockUpdate) isEvent_Message() {} -func (*Event_BlockCreate) isEvent_Message() {} -func (*Event_UserBlockTextRange) isEvent_Message() {} -func (*Event_UserBlockJoin) isEvent_Message() {} -func (*Event_UserBlockLeft) isEvent_Message() {} -func (*Event_UserBlockSelectRange) isEvent_Message() {} -func (*Event_FilesUpload) isEvent_Message() {} +func (*Event_AccountShow) isEventMessage() {} +func (*Event_BlockShow) isEventMessage() {} +func (*Event_BlockUpdate) isEventMessage() {} +func (*Event_BlockCreate) isEventMessage() {} +func (*Event_UserBlockTextRange) isEventMessage() {} +func (*Event_UserBlockJoin) isEventMessage() {} +func (*Event_UserBlockLeft) isEventMessage() {} +func (*Event_UserBlockSelectRange) isEventMessage() {} +func (*Event_FilesUpload) isEventMessage() {} -func (m *Event) GetMessage() isEvent_Message { +func (m *Event) GetMessage() isEventMessage { if m != nil { return m.Message } diff --git a/pb/models.pb.go b/pb/models.pb.go index 66a1d77f0..143d852fb 100644 --- a/pb/models.pb.go +++ b/pb/models.pb.go @@ -421,7 +421,7 @@ type Model_Block struct { // *Model_Block_Media // *Model_Block_Layout // *Model_Block_Div - Content isModel_Block_Content `protobuf_oneof:"content"` + Content isModel_BlockContent `protobuf_oneof:"content"` } func (m *Model_Block) Reset() { *m = Model_Block{} } @@ -457,8 +457,8 @@ func (m *Model_Block) XXX_DiscardUnknown() { var xxx_messageInfo_Model_Block proto.InternalMessageInfo -type isModel_Block_Content interface { - isModel_Block_Content() +type isModel_BlockContent interface { + isModel_BlockContent() MarshalTo([]byte) (int, error) Size() int } @@ -485,15 +485,15 @@ type Model_Block_Div struct { Div *Model_Block_Content_Div `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` } -func (*Model_Block_Dashboard) isModel_Block_Content() {} -func (*Model_Block_Page) isModel_Block_Content() {} -func (*Model_Block_Dataview) isModel_Block_Content() {} -func (*Model_Block_Text) isModel_Block_Content() {} -func (*Model_Block_Media) isModel_Block_Content() {} -func (*Model_Block_Layout) isModel_Block_Content() {} -func (*Model_Block_Div) isModel_Block_Content() {} +func (*Model_Block_Dashboard) isModel_BlockContent() {} +func (*Model_Block_Page) isModel_BlockContent() {} +func (*Model_Block_Dataview) isModel_BlockContent() {} +func (*Model_Block_Text) isModel_BlockContent() {} +func (*Model_Block_Media) isModel_BlockContent() {} +func (*Model_Block_Layout) isModel_BlockContent() {} +func (*Model_Block_Div) isModel_BlockContent() {} -func (m *Model_Block) GetContent() isModel_Block_Content { +func (m *Model_Block) GetContent() isModel_BlockContent { if m != nil { return m.Content } @@ -1127,7 +1127,7 @@ type Model_Block_Content_Media struct { // *Model_Block_Content_Media_Video // *Model_Block_Content_Media_Image // *Model_Block_Content_Media_File - Preview isModel_Block_Content_Media_Preview `protobuf_oneof:"preview"` + Preview isModel_Block_Content_MediaPreview `protobuf_oneof:"preview"` } func (m *Model_Block_Content_Media) Reset() { *m = Model_Block_Content_Media{} } @@ -1163,8 +1163,8 @@ func (m *Model_Block_Content_Media) XXX_DiscardUnknown() { var xxx_messageInfo_Model_Block_Content_Media proto.InternalMessageInfo -type isModel_Block_Content_Media_Preview interface { - isModel_Block_Content_Media_Preview() +type isModel_Block_Content_MediaPreview interface { + isModel_Block_Content_MediaPreview() MarshalTo([]byte) (int, error) Size() int } @@ -1179,11 +1179,11 @@ type Model_Block_Content_Media_File struct { File *Model_Block_Content_Media_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` } -func (*Model_Block_Content_Media_Video) isModel_Block_Content_Media_Preview() {} -func (*Model_Block_Content_Media_Image) isModel_Block_Content_Media_Preview() {} -func (*Model_Block_Content_Media_File) isModel_Block_Content_Media_Preview() {} +func (*Model_Block_Content_Media_Video) isModel_Block_Content_MediaPreview() {} +func (*Model_Block_Content_Media_Image) isModel_Block_Content_MediaPreview() {} +func (*Model_Block_Content_Media_File) isModel_Block_Content_MediaPreview() {} -func (m *Model_Block_Content_Media) GetPreview() isModel_Block_Content_Media_Preview { +func (m *Model_Block_Content_Media) GetPreview() isModel_Block_Content_MediaPreview { if m != nil { return m.Preview } @@ -1563,7 +1563,7 @@ type Model_Struct_Value struct { // *Model_Struct_Value_BoolValue // *Model_Struct_Value_StructValue // *Model_Struct_Value_ListValue - Kind isModel_Struct_Value_Kind `protobuf_oneof:"kind"` + Kind isModel_Struct_ValueKind `protobuf_oneof:"kind"` } func (m *Model_Struct_Value) Reset() { *m = Model_Struct_Value{} } @@ -1599,8 +1599,8 @@ func (m *Model_Struct_Value) XXX_DiscardUnknown() { var xxx_messageInfo_Model_Struct_Value proto.InternalMessageInfo -type isModel_Struct_Value_Kind interface { - isModel_Struct_Value_Kind() +type isModel_Struct_ValueKind interface { + isModel_Struct_ValueKind() MarshalTo([]byte) (int, error) Size() int } @@ -1624,14 +1624,14 @@ type Model_Struct_Value_ListValue struct { ListValue *Model_Struct_ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof" json:"list_value,omitempty"` } -func (*Model_Struct_Value_NullValue) isModel_Struct_Value_Kind() {} -func (*Model_Struct_Value_NumberValue) isModel_Struct_Value_Kind() {} -func (*Model_Struct_Value_StringValue) isModel_Struct_Value_Kind() {} -func (*Model_Struct_Value_BoolValue) isModel_Struct_Value_Kind() {} -func (*Model_Struct_Value_StructValue) isModel_Struct_Value_Kind() {} -func (*Model_Struct_Value_ListValue) isModel_Struct_Value_Kind() {} +func (*Model_Struct_Value_NullValue) isModel_Struct_ValueKind() {} +func (*Model_Struct_Value_NumberValue) isModel_Struct_ValueKind() {} +func (*Model_Struct_Value_StringValue) isModel_Struct_ValueKind() {} +func (*Model_Struct_Value_BoolValue) isModel_Struct_ValueKind() {} +func (*Model_Struct_Value_StructValue) isModel_Struct_ValueKind() {} +func (*Model_Struct_Value_ListValue) isModel_Struct_ValueKind() {} -func (m *Model_Struct_Value) GetKind() isModel_Struct_Value_Kind { +func (m *Model_Struct_Value) GetKind() isModel_Struct_ValueKind { if m != nil { return m.Kind } @@ -1805,7 +1805,7 @@ type Model_Account_Avatar struct { // Types that are valid to be assigned to Avatar: // *Model_Account_Avatar_Image // *Model_Account_Avatar_Color - Avatar isModel_Account_Avatar_Avatar `protobuf_oneof:"avatar"` + Avatar isModel_Account_AvatarAvatar `protobuf_oneof:"avatar"` } func (m *Model_Account_Avatar) Reset() { *m = Model_Account_Avatar{} } @@ -1841,8 +1841,8 @@ func (m *Model_Account_Avatar) XXX_DiscardUnknown() { var xxx_messageInfo_Model_Account_Avatar proto.InternalMessageInfo -type isModel_Account_Avatar_Avatar interface { - isModel_Account_Avatar_Avatar() +type isModel_Account_AvatarAvatar interface { + isModel_Account_AvatarAvatar() MarshalTo([]byte) (int, error) Size() int } @@ -1854,10 +1854,10 @@ type Model_Account_Avatar_Color struct { Color string `protobuf:"bytes,2,opt,name=color,proto3,oneof" json:"color,omitempty"` } -func (*Model_Account_Avatar_Image) isModel_Account_Avatar_Avatar() {} -func (*Model_Account_Avatar_Color) isModel_Account_Avatar_Avatar() {} +func (*Model_Account_Avatar_Image) isModel_Account_AvatarAvatar() {} +func (*Model_Account_Avatar_Color) isModel_Account_AvatarAvatar() {} -func (m *Model_Account_Avatar) GetAvatar() isModel_Account_Avatar_Avatar { +func (m *Model_Account_Avatar) GetAvatar() isModel_Account_AvatarAvatar { if m != nil { return m.Avatar } diff --git a/pb/protos/models.proto b/pb/protos/models.proto index 5ff554fb2..c9ddf86b4 100644 --- a/pb/protos/models.proto +++ b/pb/protos/models.proto @@ -45,17 +45,17 @@ message Model { LAYOUT = 8; DIV = 9; - } + } } message Content { message Layout { Style style = 1; - + enum Style { ROW = 0; COLUMN = 1; - } + } } message Div {} @@ -146,7 +146,7 @@ message Model { message FilePreview { string name = 1; string icon = 2; - } + } enum State { EMPTY = 0; @@ -167,14 +167,14 @@ message Model { } Style style = 1; - } - } + } + } } message Range { int32 from = 1; int32 to = 2; - } + } message Struct { // Unordered map of dynamically typed values. @@ -203,7 +203,7 @@ message Model { // `ListValue` is a wrapper around a repeated field of values. message ListValue { repeated Value values = 1; - } + } } /** @@ -223,7 +223,7 @@ message Model { string color = 2; // Color of the avatar, if no image } } - } + } message Image { string id = 1; @@ -233,7 +233,7 @@ message Model { LARGE = 0; SMALL = 1; THUMB = 2; - } + } } message Video { @@ -247,7 +247,7 @@ message Model { HD_1080p = 3; UHD_1440p = 4; UHD_2160p = 5; - } - } + } + } } From 84315284598f37cee2b403e59b44cc44d11285e4 Mon Sep 17 00:00:00 2001 From: requilence Date: Wed, 6 Nov 2019 16:21:33 +0100 Subject: [PATCH 24/24] update generated files --- Makefile | 5 +- pb/changes.pb.go | 940 ++++++------- pb/commands.pb.go | 3422 ++++++++++++++++++++++----------------------- pb/events.pb.go | 802 +++++------ pb/models.pb.go | 1908 +++++++++++++------------ 5 files changed, 3537 insertions(+), 3540 deletions(-) diff --git a/Makefile b/Makefile index 4af187d33..ac2547d87 100644 --- a/Makefile +++ b/Makefile @@ -54,10 +54,11 @@ build-android: mkdir -p dist/android/ && mv mobile.aar mobile/dist/android/ setup-protoc: - rm -rf $(GOPATH)/src/github.com/gogo/protobuf + rm -rf $(GOPATH)/src/github.com/gogo mkdir -p $(GOPATH)/src/github.com/gogo cd $(GOPATH)/src/github.com/gogo; git clone https://github.com/anytypeio/protobuf cd $(GOPATH)/src/github.com/gogo/protobuf; go install github.com/gogo/protobuf/protoc-gen-gogofaster + cd $(GOPATH)/src/github.com/gogo/protobuf; go install github.com/gogo/protobuf/protoc-gen-gogofast cd $(GOPATH); go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc export PATH=$(PATH):$(GOROOT)/bin:$(GOPATH)/bin @@ -67,6 +68,6 @@ setup-protoc: protos: $(eval P_STRUCT := Mgoogle/protobuf/struct.proto=github.com/golang/protobuf/ptypes/struct) - cd pb/protos; protoc --gogofaster_out=$(P_STRUCT):.. *.proto + cd pb/protos; GOGO_NO_UNDERSCORE=1 protoc --gogofaster_out=$(P_STRUCT):.. *.proto cd pb/protos/service; GOGO_NO_UNDERSCORE=1 PACKAGE_PATH=github.com/anytypeio/go-anytype-middleware/pb protoc -I=.. -I=. --gogofast_out=plugins=gomobile:../../../lib service.proto cd pb/protos; GOGO_NO_UNDERSCORE=1 protoc --doc_out=../../docs --doc_opt=markdown,proto.md service/*.proto *.proto diff --git a/pb/changes.pb.go b/pb/changes.pb.go index 8eeb7384e..f12f3fc99 100644 --- a/pb/changes.pb.go +++ b/pb/changes.pb.go @@ -58,21 +58,21 @@ func (m *Change) XXX_DiscardUnknown() { var xxx_messageInfo_Change proto.InternalMessageInfo -type Change_Block struct { +type ChangeBlock struct { } -func (m *Change_Block) Reset() { *m = Change_Block{} } -func (m *Change_Block) String() string { return proto.CompactTextString(m) } -func (*Change_Block) ProtoMessage() {} -func (*Change_Block) Descriptor() ([]byte, []int) { +func (m *ChangeBlock) Reset() { *m = ChangeBlock{} } +func (m *ChangeBlock) String() string { return proto.CompactTextString(m) } +func (*ChangeBlock) ProtoMessage() {} +func (*ChangeBlock) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0} } -func (m *Change_Block) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -82,40 +82,40 @@ func (m *Change_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Change_Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block.Merge(m, src) +func (m *ChangeBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlock.Merge(m, src) } -func (m *Change_Block) XXX_Size() int { +func (m *ChangeBlock) XXX_Size() int { return m.Size() } -func (m *Change_Block) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block.DiscardUnknown(m) +func (m *ChangeBlock) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlock.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlock proto.InternalMessageInfo -type Change_Block_Header struct { +type ChangeBlockHeader struct { // Types that are valid to be assigned to Change: - // *Change_Block_Header_Id - // *Change_Block_Header_Type - // *Change_Block_Header_Name - // *Change_Block_Header_Icon - // *Change_Block_Header_Permissions - Change isChange_Block_HeaderChange `protobuf_oneof:"change"` + // *ChangeBlockHeaderChangeOfId + // *ChangeBlockHeaderChangeOfType + // *ChangeBlockHeaderChangeOfName + // *ChangeBlockHeaderChangeOfIcon + // *ChangeBlockHeaderChangeOfPermissions + Change isChangeBlockHeaderChange `protobuf_oneof:"change"` } -func (m *Change_Block_Header) Reset() { *m = Change_Block_Header{} } -func (m *Change_Block_Header) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Header) ProtoMessage() {} -func (*Change_Block_Header) Descriptor() ([]byte, []int) { +func (m *ChangeBlockHeader) Reset() { *m = ChangeBlockHeader{} } +func (m *ChangeBlockHeader) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockHeader) ProtoMessage() {} +func (*ChangeBlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 0} } -func (m *Change_Block_Header) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Header.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -125,115 +125,115 @@ func (m *Change_Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Change_Block_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Header.Merge(m, src) +func (m *ChangeBlockHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockHeader.Merge(m, src) } -func (m *Change_Block_Header) XXX_Size() int { +func (m *ChangeBlockHeader) XXX_Size() int { return m.Size() } -func (m *Change_Block_Header) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Header.DiscardUnknown(m) +func (m *ChangeBlockHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockHeader.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Header proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockHeader proto.InternalMessageInfo -type isChange_Block_HeaderChange interface { - isChange_Block_HeaderChange() +type isChangeBlockHeaderChange interface { + isChangeBlockHeaderChange() MarshalTo([]byte) (int, error) Size() int } -type Change_Block_Header_Id struct { +type ChangeBlockHeaderChangeOfId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` } -type Change_Block_Header_Type struct { - Type Model_Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type,oneof" json:"type,omitempty"` +type ChangeBlockHeaderChangeOfType struct { + Type ModelBlockHeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.ModelBlockHeaderType,oneof" json:"type,omitempty"` } -type Change_Block_Header_Name struct { +type ChangeBlockHeaderChangeOfName struct { Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` } -type Change_Block_Header_Icon struct { +type ChangeBlockHeaderChangeOfIcon struct { Icon string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` } -type Change_Block_Header_Permissions struct { - Permissions *Model_Block_Header_Permissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` +type ChangeBlockHeaderChangeOfPermissions struct { + Permissions *ModelBlockHeaderPermissions `protobuf:"bytes,5,opt,name=permissions,proto3,oneof" json:"permissions,omitempty"` } -func (*Change_Block_Header_Id) isChange_Block_HeaderChange() {} -func (*Change_Block_Header_Type) isChange_Block_HeaderChange() {} -func (*Change_Block_Header_Name) isChange_Block_HeaderChange() {} -func (*Change_Block_Header_Icon) isChange_Block_HeaderChange() {} -func (*Change_Block_Header_Permissions) isChange_Block_HeaderChange() {} +func (*ChangeBlockHeaderChangeOfId) isChangeBlockHeaderChange() {} +func (*ChangeBlockHeaderChangeOfType) isChangeBlockHeaderChange() {} +func (*ChangeBlockHeaderChangeOfName) isChangeBlockHeaderChange() {} +func (*ChangeBlockHeaderChangeOfIcon) isChangeBlockHeaderChange() {} +func (*ChangeBlockHeaderChangeOfPermissions) isChangeBlockHeaderChange() {} -func (m *Change_Block_Header) GetChange() isChange_Block_HeaderChange { +func (m *ChangeBlockHeader) GetChange() isChangeBlockHeaderChange { if m != nil { return m.Change } return nil } -func (m *Change_Block_Header) GetId() string { - if x, ok := m.GetChange().(*Change_Block_Header_Id); ok { +func (m *ChangeBlockHeader) GetId() string { + if x, ok := m.GetChange().(*ChangeBlockHeaderChangeOfId); ok { return x.Id } return "" } -func (m *Change_Block_Header) GetType() Model_Block_Header_Type { - if x, ok := m.GetChange().(*Change_Block_Header_Type); ok { +func (m *ChangeBlockHeader) GetType() ModelBlockHeaderType { + if x, ok := m.GetChange().(*ChangeBlockHeaderChangeOfType); ok { return x.Type } - return Model_Block_Header_DASHBOARD + return ModelBlockHeader_DASHBOARD } -func (m *Change_Block_Header) GetName() string { - if x, ok := m.GetChange().(*Change_Block_Header_Name); ok { +func (m *ChangeBlockHeader) GetName() string { + if x, ok := m.GetChange().(*ChangeBlockHeaderChangeOfName); ok { return x.Name } return "" } -func (m *Change_Block_Header) GetIcon() string { - if x, ok := m.GetChange().(*Change_Block_Header_Icon); ok { +func (m *ChangeBlockHeader) GetIcon() string { + if x, ok := m.GetChange().(*ChangeBlockHeaderChangeOfIcon); ok { return x.Icon } return "" } -func (m *Change_Block_Header) GetPermissions() *Model_Block_Header_Permissions { - if x, ok := m.GetChange().(*Change_Block_Header_Permissions); ok { +func (m *ChangeBlockHeader) GetPermissions() *ModelBlockHeaderPermissions { + if x, ok := m.GetChange().(*ChangeBlockHeaderChangeOfPermissions); ok { return x.Permissions } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Change_Block_Header) XXX_OneofWrappers() []interface{} { +func (*ChangeBlockHeader) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Change_Block_Header_Id)(nil), - (*Change_Block_Header_Type)(nil), - (*Change_Block_Header_Name)(nil), - (*Change_Block_Header_Icon)(nil), - (*Change_Block_Header_Permissions)(nil), + (*ChangeBlockHeaderChangeOfId)(nil), + (*ChangeBlockHeaderChangeOfType)(nil), + (*ChangeBlockHeaderChangeOfName)(nil), + (*ChangeBlockHeaderChangeOfIcon)(nil), + (*ChangeBlockHeaderChangeOfPermissions)(nil), } } -type Change_Block_Children struct { +type ChangeBlockChildren struct { Children []string `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` } -func (m *Change_Block_Children) Reset() { *m = Change_Block_Children{} } -func (m *Change_Block_Children) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Children) ProtoMessage() {} -func (*Change_Block_Children) Descriptor() ([]byte, []int) { +func (m *ChangeBlockChildren) Reset() { *m = ChangeBlockChildren{} } +func (m *ChangeBlockChildren) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockChildren) ProtoMessage() {} +func (*ChangeBlockChildren) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 1} } -func (m *Change_Block_Children) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockChildren) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Children) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockChildren) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Children.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockChildren.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -243,40 +243,40 @@ func (m *Change_Block_Children) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *Change_Block_Children) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Children.Merge(m, src) +func (m *ChangeBlockChildren) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockChildren.Merge(m, src) } -func (m *Change_Block_Children) XXX_Size() int { +func (m *ChangeBlockChildren) XXX_Size() int { return m.Size() } -func (m *Change_Block_Children) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Children.DiscardUnknown(m) +func (m *ChangeBlockChildren) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockChildren.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Children proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockChildren proto.InternalMessageInfo -func (m *Change_Block_Children) GetChildren() []string { +func (m *ChangeBlockChildren) GetChildren() []string { if m != nil { return m.Children } return nil } -type Change_Block_Content struct { +type ChangeBlockContent struct { } -func (m *Change_Block_Content) Reset() { *m = Change_Block_Content{} } -func (m *Change_Block_Content) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Content) ProtoMessage() {} -func (*Change_Block_Content) Descriptor() ([]byte, []int) { +func (m *ChangeBlockContent) Reset() { *m = ChangeBlockContent{} } +func (m *ChangeBlockContent) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockContent) ProtoMessage() {} +func (*ChangeBlockContent) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2} } -func (m *Change_Block_Content) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Content.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockContent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -286,37 +286,37 @@ func (m *Change_Block_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *Change_Block_Content) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Content.Merge(m, src) +func (m *ChangeBlockContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockContent.Merge(m, src) } -func (m *Change_Block_Content) XXX_Size() int { +func (m *ChangeBlockContent) XXX_Size() int { return m.Size() } -func (m *Change_Block_Content) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Content.DiscardUnknown(m) +func (m *ChangeBlockContent) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockContent.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Content proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockContent proto.InternalMessageInfo -type Change_Block_Content_Page struct { +type ChangeBlockContentPage struct { // Types that are valid to be assigned to Change: - // *Change_Block_Content_Page_Style - // *Change_Block_Content_Page_Block - Change isChange_Block_Content_PageChange `protobuf_oneof:"change"` + // *ChangeBlockContentPageChangeOfStyle + // *ChangeBlockContentPageChangeOfBlock + Change isChangeBlockContentPageChange `protobuf_oneof:"change"` } -func (m *Change_Block_Content_Page) Reset() { *m = Change_Block_Content_Page{} } -func (m *Change_Block_Content_Page) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Content_Page) ProtoMessage() {} -func (*Change_Block_Content_Page) Descriptor() ([]byte, []int) { +func (m *ChangeBlockContentPage) Reset() { *m = ChangeBlockContentPage{} } +func (m *ChangeBlockContentPage) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockContentPage) ProtoMessage() {} +func (*ChangeBlockContentPage) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 0} } -func (m *Change_Block_Content_Page) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Content_Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Content_Page.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockContentPage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -326,82 +326,82 @@ func (m *Change_Block_Content_Page) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Change_Block_Content_Page) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Content_Page.Merge(m, src) +func (m *ChangeBlockContentPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockContentPage.Merge(m, src) } -func (m *Change_Block_Content_Page) XXX_Size() int { +func (m *ChangeBlockContentPage) XXX_Size() int { return m.Size() } -func (m *Change_Block_Content_Page) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Content_Page.DiscardUnknown(m) +func (m *ChangeBlockContentPage) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockContentPage.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Content_Page proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockContentPage proto.InternalMessageInfo -type isChange_Block_Content_PageChange interface { - isChange_Block_Content_PageChange() +type isChangeBlockContentPageChange interface { + isChangeBlockContentPageChange() MarshalTo([]byte) (int, error) Size() int } -type Change_Block_Content_Page_Style struct { - Style Model_Block_Content_Page_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Page_Style,oneof" json:"style,omitempty"` +type ChangeBlockContentPageChangeOfStyle struct { + Style ModelBlockContentPageStyle `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.ModelBlockContentPageStyle,oneof" json:"style,omitempty"` } -type Change_Block_Content_Page_Block struct { - Block *Model_Block `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` +type ChangeBlockContentPageChangeOfBlock struct { + Block *ModelBlock `protobuf:"bytes,2,opt,name=block,proto3,oneof" json:"block,omitempty"` } -func (*Change_Block_Content_Page_Style) isChange_Block_Content_PageChange() {} -func (*Change_Block_Content_Page_Block) isChange_Block_Content_PageChange() {} +func (*ChangeBlockContentPageChangeOfStyle) isChangeBlockContentPageChange() {} +func (*ChangeBlockContentPageChangeOfBlock) isChangeBlockContentPageChange() {} -func (m *Change_Block_Content_Page) GetChange() isChange_Block_Content_PageChange { +func (m *ChangeBlockContentPage) GetChange() isChangeBlockContentPageChange { if m != nil { return m.Change } return nil } -func (m *Change_Block_Content_Page) GetStyle() Model_Block_Content_Page_Style { - if x, ok := m.GetChange().(*Change_Block_Content_Page_Style); ok { +func (m *ChangeBlockContentPage) GetStyle() ModelBlockContentPageStyle { + if x, ok := m.GetChange().(*ChangeBlockContentPageChangeOfStyle); ok { return x.Style } - return Model_Block_Content_Page_EMPTY + return ModelBlockContentPage_EMPTY } -func (m *Change_Block_Content_Page) GetBlock() *Model_Block { - if x, ok := m.GetChange().(*Change_Block_Content_Page_Block); ok { +func (m *ChangeBlockContentPage) GetBlock() *ModelBlock { + if x, ok := m.GetChange().(*ChangeBlockContentPageChangeOfBlock); ok { return x.Block } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Change_Block_Content_Page) XXX_OneofWrappers() []interface{} { +func (*ChangeBlockContentPage) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Change_Block_Content_Page_Style)(nil), - (*Change_Block_Content_Page_Block)(nil), + (*ChangeBlockContentPageChangeOfStyle)(nil), + (*ChangeBlockContentPageChangeOfBlock)(nil), } } -type Change_Block_Content_Dashboard struct { +type ChangeBlockContentDashboard struct { // Types that are valid to be assigned to Change: - // *Change_Block_Content_Dashboard_Style - // *Change_Block_Content_Dashboard_Header - Change isChange_Block_Content_DashboardChange `protobuf_oneof:"change"` + // *ChangeBlockContentDashboardChangeOfStyle + // *ChangeBlockContentDashboardChangeOfHeader + Change isChangeBlockContentDashboardChange `protobuf_oneof:"change"` } -func (m *Change_Block_Content_Dashboard) Reset() { *m = Change_Block_Content_Dashboard{} } -func (m *Change_Block_Content_Dashboard) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Content_Dashboard) ProtoMessage() {} -func (*Change_Block_Content_Dashboard) Descriptor() ([]byte, []int) { +func (m *ChangeBlockContentDashboard) Reset() { *m = ChangeBlockContentDashboard{} } +func (m *ChangeBlockContentDashboard) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockContentDashboard) ProtoMessage() {} +func (*ChangeBlockContentDashboard) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 1} } -func (m *Change_Block_Content_Dashboard) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Content_Dashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Content_Dashboard.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockContentDashboard.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -411,82 +411,82 @@ func (m *Change_Block_Content_Dashboard) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *Change_Block_Content_Dashboard) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Content_Dashboard.Merge(m, src) +func (m *ChangeBlockContentDashboard) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockContentDashboard.Merge(m, src) } -func (m *Change_Block_Content_Dashboard) XXX_Size() int { +func (m *ChangeBlockContentDashboard) XXX_Size() int { return m.Size() } -func (m *Change_Block_Content_Dashboard) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Content_Dashboard.DiscardUnknown(m) +func (m *ChangeBlockContentDashboard) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockContentDashboard.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Content_Dashboard proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockContentDashboard proto.InternalMessageInfo -type isChange_Block_Content_DashboardChange interface { - isChange_Block_Content_DashboardChange() +type isChangeBlockContentDashboardChange interface { + isChangeBlockContentDashboardChange() MarshalTo([]byte) (int, error) Size() int } -type Change_Block_Content_Dashboard_Style struct { - Style Model_Block_Content_Dashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Dashboard_Style,oneof" json:"style,omitempty"` +type ChangeBlockContentDashboardChangeOfStyle struct { + Style ModelBlockContentDashboardStyle `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.ModelBlockContentDashboardStyle,oneof" json:"style,omitempty"` } -type Change_Block_Content_Dashboard_Header struct { - Header *Model_Block_Header `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` +type ChangeBlockContentDashboardChangeOfHeader struct { + Header *ModelBlockHeader `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` } -func (*Change_Block_Content_Dashboard_Style) isChange_Block_Content_DashboardChange() {} -func (*Change_Block_Content_Dashboard_Header) isChange_Block_Content_DashboardChange() {} +func (*ChangeBlockContentDashboardChangeOfStyle) isChangeBlockContentDashboardChange() {} +func (*ChangeBlockContentDashboardChangeOfHeader) isChangeBlockContentDashboardChange() {} -func (m *Change_Block_Content_Dashboard) GetChange() isChange_Block_Content_DashboardChange { +func (m *ChangeBlockContentDashboard) GetChange() isChangeBlockContentDashboardChange { if m != nil { return m.Change } return nil } -func (m *Change_Block_Content_Dashboard) GetStyle() Model_Block_Content_Dashboard_Style { - if x, ok := m.GetChange().(*Change_Block_Content_Dashboard_Style); ok { +func (m *ChangeBlockContentDashboard) GetStyle() ModelBlockContentDashboardStyle { + if x, ok := m.GetChange().(*ChangeBlockContentDashboardChangeOfStyle); ok { return x.Style } - return Model_Block_Content_Dashboard_MAIN_SCREEN + return ModelBlockContentDashboard_MAIN_SCREEN } -func (m *Change_Block_Content_Dashboard) GetHeader() *Model_Block_Header { - if x, ok := m.GetChange().(*Change_Block_Content_Dashboard_Header); ok { +func (m *ChangeBlockContentDashboard) GetHeader() *ModelBlockHeader { + if x, ok := m.GetChange().(*ChangeBlockContentDashboardChangeOfHeader); ok { return x.Header } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Change_Block_Content_Dashboard) XXX_OneofWrappers() []interface{} { +func (*ChangeBlockContentDashboard) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Change_Block_Content_Dashboard_Style)(nil), - (*Change_Block_Content_Dashboard_Header)(nil), + (*ChangeBlockContentDashboardChangeOfStyle)(nil), + (*ChangeBlockContentDashboardChangeOfHeader)(nil), } } -type Change_Block_Content_Media struct { +type ChangeBlockContentMedia struct { // Types that are valid to be assigned to Change: - // *Change_Block_Content_Media_Link - // *Change_Block_Content_Media_State - Change isChange_Block_Content_MediaChange `protobuf_oneof:"change"` + // *ChangeBlockContentMediaChangeOfLink + // *ChangeBlockContentMediaChangeOfState + Change isChangeBlockContentMediaChange `protobuf_oneof:"change"` } -func (m *Change_Block_Content_Media) Reset() { *m = Change_Block_Content_Media{} } -func (m *Change_Block_Content_Media) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Content_Media) ProtoMessage() {} -func (*Change_Block_Content_Media) Descriptor() ([]byte, []int) { +func (m *ChangeBlockContentMedia) Reset() { *m = ChangeBlockContentMedia{} } +func (m *ChangeBlockContentMedia) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockContentMedia) ProtoMessage() {} +func (*ChangeBlockContentMedia) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 2} } -func (m *Change_Block_Content_Media) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Content_Media) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Content_Media.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockContentMedia.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -496,87 +496,87 @@ func (m *Change_Block_Content_Media) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Change_Block_Content_Media) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Content_Media.Merge(m, src) +func (m *ChangeBlockContentMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockContentMedia.Merge(m, src) } -func (m *Change_Block_Content_Media) XXX_Size() int { +func (m *ChangeBlockContentMedia) XXX_Size() int { return m.Size() } -func (m *Change_Block_Content_Media) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Content_Media.DiscardUnknown(m) +func (m *ChangeBlockContentMedia) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockContentMedia.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Content_Media proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockContentMedia proto.InternalMessageInfo -type isChange_Block_Content_MediaChange interface { - isChange_Block_Content_MediaChange() +type isChangeBlockContentMediaChange interface { + isChangeBlockContentMediaChange() MarshalTo([]byte) (int, error) Size() int } -type Change_Block_Content_Media_Link struct { +type ChangeBlockContentMediaChangeOfLink struct { Link string `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` } -type Change_Block_Content_Media_State struct { - State Model_Block_Content_Media_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_Content_Media_State,oneof" json:"state,omitempty"` +type ChangeBlockContentMediaChangeOfState struct { + State ModelBlockContentMediaState `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.ModelBlockContentMediaState,oneof" json:"state,omitempty"` } -func (*Change_Block_Content_Media_Link) isChange_Block_Content_MediaChange() {} -func (*Change_Block_Content_Media_State) isChange_Block_Content_MediaChange() {} +func (*ChangeBlockContentMediaChangeOfLink) isChangeBlockContentMediaChange() {} +func (*ChangeBlockContentMediaChangeOfState) isChangeBlockContentMediaChange() {} -func (m *Change_Block_Content_Media) GetChange() isChange_Block_Content_MediaChange { +func (m *ChangeBlockContentMedia) GetChange() isChangeBlockContentMediaChange { if m != nil { return m.Change } return nil } -func (m *Change_Block_Content_Media) GetLink() string { - if x, ok := m.GetChange().(*Change_Block_Content_Media_Link); ok { +func (m *ChangeBlockContentMedia) GetLink() string { + if x, ok := m.GetChange().(*ChangeBlockContentMediaChangeOfLink); ok { return x.Link } return "" } -func (m *Change_Block_Content_Media) GetState() Model_Block_Content_Media_State { - if x, ok := m.GetChange().(*Change_Block_Content_Media_State); ok { +func (m *ChangeBlockContentMedia) GetState() ModelBlockContentMediaState { + if x, ok := m.GetChange().(*ChangeBlockContentMediaChangeOfState); ok { return x.State } - return Model_Block_Content_Media_EMPTY + return ModelBlockContentMedia_EMPTY } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Change_Block_Content_Media) XXX_OneofWrappers() []interface{} { +func (*ChangeBlockContentMedia) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Change_Block_Content_Media_Link)(nil), - (*Change_Block_Content_Media_State)(nil), + (*ChangeBlockContentMediaChangeOfLink)(nil), + (*ChangeBlockContentMediaChangeOfState)(nil), } } -type Change_Block_Content_Text struct { +type ChangeBlockContentText struct { // Types that are valid to be assigned to Change: - // *Change_Block_Content_Text_Text - // *Change_Block_Content_Text_Style - // *Change_Block_Content_Text_Marks - // *Change_Block_Content_Text_Toggleable - // *Change_Block_Content_Text_MarkerType - // *Change_Block_Content_Text_Checkable - // *Change_Block_Content_Text_Checked - Change isChange_Block_Content_TextChange `protobuf_oneof:"change"` + // *ChangeBlockContentTextChangeOfText + // *ChangeBlockContentTextChangeOfStyle + // *ChangeBlockContentTextChangeOfMarks + // *ChangeBlockContentTextChangeOfToggleable + // *ChangeBlockContentTextChangeOfMarkerType + // *ChangeBlockContentTextChangeOfCheckable + // *ChangeBlockContentTextChangeOfChecked + Change isChangeBlockContentTextChange `protobuf_oneof:"change"` } -func (m *Change_Block_Content_Text) Reset() { *m = Change_Block_Content_Text{} } -func (m *Change_Block_Content_Text) String() string { return proto.CompactTextString(m) } -func (*Change_Block_Content_Text) ProtoMessage() {} -func (*Change_Block_Content_Text) Descriptor() ([]byte, []int) { +func (m *ChangeBlockContentText) Reset() { *m = ChangeBlockContentText{} } +func (m *ChangeBlockContentText) String() string { return proto.CompactTextString(m) } +func (*ChangeBlockContentText) ProtoMessage() {} +func (*ChangeBlockContentText) Descriptor() ([]byte, []int) { return fileDescriptor_b16a38c6509bd894, []int{0, 0, 2, 3} } -func (m *Change_Block_Content_Text) XXX_Unmarshal(b []byte) error { +func (m *ChangeBlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Change_Block_Content_Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ChangeBlockContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Change_Block_Content_Text.Marshal(b, m, deterministic) + return xxx_messageInfo_ChangeBlockContentText.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -586,132 +586,132 @@ func (m *Change_Block_Content_Text) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Change_Block_Content_Text) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change_Block_Content_Text.Merge(m, src) +func (m *ChangeBlockContentText) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeBlockContentText.Merge(m, src) } -func (m *Change_Block_Content_Text) XXX_Size() int { +func (m *ChangeBlockContentText) XXX_Size() int { return m.Size() } -func (m *Change_Block_Content_Text) XXX_DiscardUnknown() { - xxx_messageInfo_Change_Block_Content_Text.DiscardUnknown(m) +func (m *ChangeBlockContentText) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeBlockContentText.DiscardUnknown(m) } -var xxx_messageInfo_Change_Block_Content_Text proto.InternalMessageInfo +var xxx_messageInfo_ChangeBlockContentText proto.InternalMessageInfo -type isChange_Block_Content_TextChange interface { - isChange_Block_Content_TextChange() +type isChangeBlockContentTextChange interface { + isChangeBlockContentTextChange() MarshalTo([]byte) (int, error) Size() int } -type Change_Block_Content_Text_Text struct { +type ChangeBlockContentTextChangeOfText struct { Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` } -type Change_Block_Content_Text_Style struct { - Style Model_Block_Content_Text_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_Content_Text_Style,oneof" json:"style,omitempty"` +type ChangeBlockContentTextChangeOfStyle struct { + Style ModelBlockContentTextStyle `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.ModelBlockContentTextStyle,oneof" json:"style,omitempty"` } -type Change_Block_Content_Text_Marks struct { - Marks *Model_Block_Content_Text_Marks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` +type ChangeBlockContentTextChangeOfMarks struct { + Marks *ModelBlockContentTextMarks `protobuf:"bytes,3,opt,name=marks,proto3,oneof" json:"marks,omitempty"` } -type Change_Block_Content_Text_Toggleable struct { +type ChangeBlockContentTextChangeOfToggleable struct { Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3,oneof" json:"toggleable,omitempty"` } -type Change_Block_Content_Text_MarkerType struct { - MarkerType Model_Block_Content_Text_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_Content_Text_MarkerType,oneof" json:"markerType,omitempty"` +type ChangeBlockContentTextChangeOfMarkerType struct { + MarkerType ModelBlockContentTextMarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.ModelBlockContentTextMarkerType,oneof" json:"markerType,omitempty"` } -type Change_Block_Content_Text_Checkable struct { +type ChangeBlockContentTextChangeOfCheckable struct { Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3,oneof" json:"checkable,omitempty"` } -type Change_Block_Content_Text_Checked struct { +type ChangeBlockContentTextChangeOfChecked struct { Checked bool `protobuf:"varint,7,opt,name=checked,proto3,oneof" json:"checked,omitempty"` } -func (*Change_Block_Content_Text_Text) isChange_Block_Content_TextChange() {} -func (*Change_Block_Content_Text_Style) isChange_Block_Content_TextChange() {} -func (*Change_Block_Content_Text_Marks) isChange_Block_Content_TextChange() {} -func (*Change_Block_Content_Text_Toggleable) isChange_Block_Content_TextChange() {} -func (*Change_Block_Content_Text_MarkerType) isChange_Block_Content_TextChange() {} -func (*Change_Block_Content_Text_Checkable) isChange_Block_Content_TextChange() {} -func (*Change_Block_Content_Text_Checked) isChange_Block_Content_TextChange() {} +func (*ChangeBlockContentTextChangeOfText) isChangeBlockContentTextChange() {} +func (*ChangeBlockContentTextChangeOfStyle) isChangeBlockContentTextChange() {} +func (*ChangeBlockContentTextChangeOfMarks) isChangeBlockContentTextChange() {} +func (*ChangeBlockContentTextChangeOfToggleable) isChangeBlockContentTextChange() {} +func (*ChangeBlockContentTextChangeOfMarkerType) isChangeBlockContentTextChange() {} +func (*ChangeBlockContentTextChangeOfCheckable) isChangeBlockContentTextChange() {} +func (*ChangeBlockContentTextChangeOfChecked) isChangeBlockContentTextChange() {} -func (m *Change_Block_Content_Text) GetChange() isChange_Block_Content_TextChange { +func (m *ChangeBlockContentText) GetChange() isChangeBlockContentTextChange { if m != nil { return m.Change } return nil } -func (m *Change_Block_Content_Text) GetText() string { - if x, ok := m.GetChange().(*Change_Block_Content_Text_Text); ok { +func (m *ChangeBlockContentText) GetText() string { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfText); ok { return x.Text } return "" } -func (m *Change_Block_Content_Text) GetStyle() Model_Block_Content_Text_Style { - if x, ok := m.GetChange().(*Change_Block_Content_Text_Style); ok { +func (m *ChangeBlockContentText) GetStyle() ModelBlockContentTextStyle { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfStyle); ok { return x.Style } - return Model_Block_Content_Text_p + return ModelBlockContentText_p } -func (m *Change_Block_Content_Text) GetMarks() *Model_Block_Content_Text_Marks { - if x, ok := m.GetChange().(*Change_Block_Content_Text_Marks); ok { +func (m *ChangeBlockContentText) GetMarks() *ModelBlockContentTextMarks { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfMarks); ok { return x.Marks } return nil } -func (m *Change_Block_Content_Text) GetToggleable() bool { - if x, ok := m.GetChange().(*Change_Block_Content_Text_Toggleable); ok { +func (m *ChangeBlockContentText) GetToggleable() bool { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfToggleable); ok { return x.Toggleable } return false } -func (m *Change_Block_Content_Text) GetMarkerType() Model_Block_Content_Text_MarkerType { - if x, ok := m.GetChange().(*Change_Block_Content_Text_MarkerType); ok { +func (m *ChangeBlockContentText) GetMarkerType() ModelBlockContentTextMarkerType { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfMarkerType); ok { return x.MarkerType } - return Model_Block_Content_Text_none + return ModelBlockContentText_none } -func (m *Change_Block_Content_Text) GetCheckable() bool { - if x, ok := m.GetChange().(*Change_Block_Content_Text_Checkable); ok { +func (m *ChangeBlockContentText) GetCheckable() bool { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfCheckable); ok { return x.Checkable } return false } -func (m *Change_Block_Content_Text) GetChecked() bool { - if x, ok := m.GetChange().(*Change_Block_Content_Text_Checked); ok { +func (m *ChangeBlockContentText) GetChecked() bool { + if x, ok := m.GetChange().(*ChangeBlockContentTextChangeOfChecked); ok { return x.Checked } return false } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Change_Block_Content_Text) XXX_OneofWrappers() []interface{} { +func (*ChangeBlockContentText) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Change_Block_Content_Text_Text)(nil), - (*Change_Block_Content_Text_Style)(nil), - (*Change_Block_Content_Text_Marks)(nil), - (*Change_Block_Content_Text_Toggleable)(nil), - (*Change_Block_Content_Text_MarkerType)(nil), - (*Change_Block_Content_Text_Checkable)(nil), - (*Change_Block_Content_Text_Checked)(nil), + (*ChangeBlockContentTextChangeOfText)(nil), + (*ChangeBlockContentTextChangeOfStyle)(nil), + (*ChangeBlockContentTextChangeOfMarks)(nil), + (*ChangeBlockContentTextChangeOfToggleable)(nil), + (*ChangeBlockContentTextChangeOfMarkerType)(nil), + (*ChangeBlockContentTextChangeOfCheckable)(nil), + (*ChangeBlockContentTextChangeOfChecked)(nil), } } type BlocksListSingleChange struct { Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"` // Types that are valid to be assigned to Change: - // *BlocksListSingleChange_Text - // *BlocksListSingleChange_BlockHeader - // *BlocksListSingleChange_BlockChildren - // *BlocksListSingleChange_Page - // *BlocksListSingleChange_Dashboard - // *BlocksListSingleChange_Media + // *BlocksListSingleChangeChangeOfText + // *BlocksListSingleChangeChangeOfBlockHeader + // *BlocksListSingleChangeChangeOfBlockChildren + // *BlocksListSingleChangeChangeOfPage + // *BlocksListSingleChangeChangeOfDashboard + // *BlocksListSingleChangeChangeOfMedia Change isBlocksListSingleChangeChange `protobuf_oneof:"change"` } @@ -754,31 +754,31 @@ type isBlocksListSingleChangeChange interface { Size() int } -type BlocksListSingleChange_Text struct { - Text *Change_Block_Content_Text `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"` +type BlocksListSingleChangeChangeOfText struct { + Text *ChangeBlockContentText `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"` } -type BlocksListSingleChange_BlockHeader struct { - BlockHeader *Change_Block_Header `protobuf:"bytes,3,opt,name=blockHeader,proto3,oneof" json:"blockHeader,omitempty"` +type BlocksListSingleChangeChangeOfBlockHeader struct { + BlockHeader *ChangeBlockHeader `protobuf:"bytes,3,opt,name=blockHeader,proto3,oneof" json:"blockHeader,omitempty"` } -type BlocksListSingleChange_BlockChildren struct { - BlockChildren *Change_Block_Children `protobuf:"bytes,4,opt,name=blockChildren,proto3,oneof" json:"blockChildren,omitempty"` +type BlocksListSingleChangeChangeOfBlockChildren struct { + BlockChildren *ChangeBlockChildren `protobuf:"bytes,4,opt,name=blockChildren,proto3,oneof" json:"blockChildren,omitempty"` } -type BlocksListSingleChange_Page struct { - Page *Change_Block_Content_Page `protobuf:"bytes,5,opt,name=page,proto3,oneof" json:"page,omitempty"` +type BlocksListSingleChangeChangeOfPage struct { + Page *ChangeBlockContentPage `protobuf:"bytes,5,opt,name=page,proto3,oneof" json:"page,omitempty"` } -type BlocksListSingleChange_Dashboard struct { - Dashboard *Change_Block_Content_Dashboard `protobuf:"bytes,6,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` +type BlocksListSingleChangeChangeOfDashboard struct { + Dashboard *ChangeBlockContentDashboard `protobuf:"bytes,6,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` } -type BlocksListSingleChange_Media struct { - Media *Change_Block_Content_Media `protobuf:"bytes,7,opt,name=media,proto3,oneof" json:"media,omitempty"` +type BlocksListSingleChangeChangeOfMedia struct { + Media *ChangeBlockContentMedia `protobuf:"bytes,7,opt,name=media,proto3,oneof" json:"media,omitempty"` } -func (*BlocksListSingleChange_Text) isBlocksListSingleChangeChange() {} -func (*BlocksListSingleChange_BlockHeader) isBlocksListSingleChangeChange() {} -func (*BlocksListSingleChange_BlockChildren) isBlocksListSingleChangeChange() {} -func (*BlocksListSingleChange_Page) isBlocksListSingleChangeChange() {} -func (*BlocksListSingleChange_Dashboard) isBlocksListSingleChangeChange() {} -func (*BlocksListSingleChange_Media) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChangeChangeOfText) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChangeChangeOfBlockHeader) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChangeChangeOfBlockChildren) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChangeChangeOfPage) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChangeChangeOfDashboard) isBlocksListSingleChangeChange() {} +func (*BlocksListSingleChangeChangeOfMedia) isBlocksListSingleChangeChange() {} func (m *BlocksListSingleChange) GetChange() isBlocksListSingleChangeChange { if m != nil { @@ -794,43 +794,43 @@ func (m *BlocksListSingleChange) GetId() []string { return nil } -func (m *BlocksListSingleChange) GetText() *Change_Block_Content_Text { - if x, ok := m.GetChange().(*BlocksListSingleChange_Text); ok { +func (m *BlocksListSingleChange) GetText() *ChangeBlockContentText { + if x, ok := m.GetChange().(*BlocksListSingleChangeChangeOfText); ok { return x.Text } return nil } -func (m *BlocksListSingleChange) GetBlockHeader() *Change_Block_Header { - if x, ok := m.GetChange().(*BlocksListSingleChange_BlockHeader); ok { +func (m *BlocksListSingleChange) GetBlockHeader() *ChangeBlockHeader { + if x, ok := m.GetChange().(*BlocksListSingleChangeChangeOfBlockHeader); ok { return x.BlockHeader } return nil } -func (m *BlocksListSingleChange) GetBlockChildren() *Change_Block_Children { - if x, ok := m.GetChange().(*BlocksListSingleChange_BlockChildren); ok { +func (m *BlocksListSingleChange) GetBlockChildren() *ChangeBlockChildren { + if x, ok := m.GetChange().(*BlocksListSingleChangeChangeOfBlockChildren); ok { return x.BlockChildren } return nil } -func (m *BlocksListSingleChange) GetPage() *Change_Block_Content_Page { - if x, ok := m.GetChange().(*BlocksListSingleChange_Page); ok { +func (m *BlocksListSingleChange) GetPage() *ChangeBlockContentPage { + if x, ok := m.GetChange().(*BlocksListSingleChangeChangeOfPage); ok { return x.Page } return nil } -func (m *BlocksListSingleChange) GetDashboard() *Change_Block_Content_Dashboard { - if x, ok := m.GetChange().(*BlocksListSingleChange_Dashboard); ok { +func (m *BlocksListSingleChange) GetDashboard() *ChangeBlockContentDashboard { + if x, ok := m.GetChange().(*BlocksListSingleChangeChangeOfDashboard); ok { return x.Dashboard } return nil } -func (m *BlocksListSingleChange) GetMedia() *Change_Block_Content_Media { - if x, ok := m.GetChange().(*BlocksListSingleChange_Media); ok { +func (m *BlocksListSingleChange) GetMedia() *ChangeBlockContentMedia { + if x, ok := m.GetChange().(*BlocksListSingleChangeChangeOfMedia); ok { return x.Media } return nil @@ -839,12 +839,12 @@ func (m *BlocksListSingleChange) GetMedia() *Change_Block_Content_Media { // XXX_OneofWrappers is for the internal use of the proto package. func (*BlocksListSingleChange) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*BlocksListSingleChange_Text)(nil), - (*BlocksListSingleChange_BlockHeader)(nil), - (*BlocksListSingleChange_BlockChildren)(nil), - (*BlocksListSingleChange_Page)(nil), - (*BlocksListSingleChange_Dashboard)(nil), - (*BlocksListSingleChange_Media)(nil), + (*BlocksListSingleChangeChangeOfText)(nil), + (*BlocksListSingleChangeChangeOfBlockHeader)(nil), + (*BlocksListSingleChangeChangeOfBlockChildren)(nil), + (*BlocksListSingleChangeChangeOfPage)(nil), + (*BlocksListSingleChangeChangeOfDashboard)(nil), + (*BlocksListSingleChangeChangeOfMedia)(nil), } } @@ -894,14 +894,14 @@ func (m *BlockChanges) GetChanges() []*BlocksListSingleChange { func init() { proto.RegisterType((*Change)(nil), "anytype.Change") - proto.RegisterType((*Change_Block)(nil), "anytype.Change.Block") - proto.RegisterType((*Change_Block_Header)(nil), "anytype.Change.Block.Header") - proto.RegisterType((*Change_Block_Children)(nil), "anytype.Change.Block.Children") - proto.RegisterType((*Change_Block_Content)(nil), "anytype.Change.Block.Content") - proto.RegisterType((*Change_Block_Content_Page)(nil), "anytype.Change.Block.Content.Page") - proto.RegisterType((*Change_Block_Content_Dashboard)(nil), "anytype.Change.Block.Content.Dashboard") - proto.RegisterType((*Change_Block_Content_Media)(nil), "anytype.Change.Block.Content.Media") - proto.RegisterType((*Change_Block_Content_Text)(nil), "anytype.Change.Block.Content.Text") + proto.RegisterType((*ChangeBlock)(nil), "anytype.Change.Block") + proto.RegisterType((*ChangeBlockHeader)(nil), "anytype.Change.Block.Header") + proto.RegisterType((*ChangeBlockChildren)(nil), "anytype.Change.Block.Children") + proto.RegisterType((*ChangeBlockContent)(nil), "anytype.Change.Block.Content") + proto.RegisterType((*ChangeBlockContentPage)(nil), "anytype.Change.Block.Content.Page") + proto.RegisterType((*ChangeBlockContentDashboard)(nil), "anytype.Change.Block.Content.Dashboard") + proto.RegisterType((*ChangeBlockContentMedia)(nil), "anytype.Change.Block.Content.Media") + proto.RegisterType((*ChangeBlockContentText)(nil), "anytype.Change.Block.Content.Text") proto.RegisterType((*BlocksListSingleChange)(nil), "anytype.BlocksListSingleChange") proto.RegisterType((*BlockChanges)(nil), "anytype.BlockChanges") } @@ -978,7 +978,7 @@ func (m *Change) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Change_Block) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -988,12 +988,12 @@ func (m *Change_Block) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1001,7 +1001,7 @@ func (m *Change_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Change_Block_Header) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1011,12 +1011,12 @@ func (m *Change_Block_Header) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Header) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1033,12 +1033,12 @@ func (m *Change_Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Change_Block_Header_Id) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Header_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Id) copy(dAtA[i:], m.Id) @@ -1047,24 +1047,24 @@ func (m *Change_Block_Header_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *Change_Block_Header_Type) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfType) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Header_Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfType) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintChanges(dAtA, i, uint64(m.Type)) i-- dAtA[i] = 0x10 return len(dAtA) - i, nil } -func (m *Change_Block_Header_Name) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfName) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Header_Name) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfName) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Name) copy(dAtA[i:], m.Name) @@ -1073,12 +1073,12 @@ func (m *Change_Block_Header_Name) MarshalToSizedBuffer(dAtA []byte) (int, error dAtA[i] = 0x1a return len(dAtA) - i, nil } -func (m *Change_Block_Header_Icon) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfIcon) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Header_Icon) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfIcon) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Icon) copy(dAtA[i:], m.Icon) @@ -1087,12 +1087,12 @@ func (m *Change_Block_Header_Icon) MarshalToSizedBuffer(dAtA []byte) (int, error dAtA[i] = 0x22 return len(dAtA) - i, nil } -func (m *Change_Block_Header_Permissions) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfPermissions) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockHeaderChangeOfPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Permissions != nil { { @@ -1108,7 +1108,7 @@ func (m *Change_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } -func (m *Change_Block_Children) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockChildren) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1118,12 +1118,12 @@ func (m *Change_Block_Children) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Children) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockChildren) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Children) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1140,7 +1140,7 @@ func (m *Change_Block_Children) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Change_Block_Content) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockContent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1150,12 +1150,12 @@ func (m *Change_Block_Content) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Content) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContent) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1163,7 +1163,7 @@ func (m *Change_Block_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Change_Block_Content_Page) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockContentPage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1173,12 +1173,12 @@ func (m *Change_Block_Content_Page) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Content_Page) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentPage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1195,24 +1195,24 @@ func (m *Change_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Change_Block_Content_Page_Style) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentPageChangeOfStyle) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Page_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentPageChangeOfStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintChanges(dAtA, i, uint64(m.Style)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Page_Block) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentPageChangeOfBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Page_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentPageChangeOfBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Block != nil { { @@ -1228,7 +1228,7 @@ func (m *Change_Block_Content_Page_Block) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } -func (m *Change_Block_Content_Dashboard) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockContentDashboard) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1238,12 +1238,12 @@ func (m *Change_Block_Content_Dashboard) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Content_Dashboard) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentDashboard) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1260,24 +1260,24 @@ func (m *Change_Block_Content_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Change_Block_Content_Dashboard_Style) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentDashboardChangeOfStyle) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Dashboard_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentDashboardChangeOfStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintChanges(dAtA, i, uint64(m.Style)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Dashboard_Header) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentDashboardChangeOfHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Dashboard_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentDashboardChangeOfHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Header != nil { { @@ -1293,7 +1293,7 @@ func (m *Change_Block_Content_Dashboard_Header) MarshalToSizedBuffer(dAtA []byte } return len(dAtA) - i, nil } -func (m *Change_Block_Content_Media) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockContentMedia) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1303,12 +1303,12 @@ func (m *Change_Block_Content_Media) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Content_Media) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentMedia) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1325,12 +1325,12 @@ func (m *Change_Block_Content_Media) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Change_Block_Content_Media_Link) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentMediaChangeOfLink) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Media_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentMediaChangeOfLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Link) copy(dAtA[i:], m.Link) @@ -1339,19 +1339,19 @@ func (m *Change_Block_Content_Media_Link) MarshalToSizedBuffer(dAtA []byte) (int dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *Change_Block_Content_Media_State) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentMediaChangeOfState) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Media_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentMediaChangeOfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintChanges(dAtA, i, uint64(m.State)) i-- dAtA[i] = 0x10 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text) Marshal() (dAtA []byte, err error) { +func (m *ChangeBlockContentText) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1361,12 +1361,12 @@ func (m *Change_Block_Content_Text) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Change_Block_Content_Text) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentText) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1383,12 +1383,12 @@ func (m *Change_Block_Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_Text) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfText) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfText) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Text) copy(dAtA[i:], m.Text) @@ -1397,24 +1397,24 @@ func (m *Change_Block_Content_Text_Text) MarshalToSizedBuffer(dAtA []byte) (int, dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_Style) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfStyle) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_Style) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintChanges(dAtA, i, uint64(m.Style)) i-- dAtA[i] = 0x10 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_Marks) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfMarks) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfMarks) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Marks != nil { { @@ -1430,12 +1430,12 @@ func (m *Change_Block_Content_Text_Marks) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_Toggleable) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfToggleable) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_Toggleable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfToggleable) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Toggleable { @@ -1447,24 +1447,24 @@ func (m *Change_Block_Content_Text_Toggleable) MarshalToSizedBuffer(dAtA []byte) dAtA[i] = 0x20 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_MarkerType) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfMarkerType) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_MarkerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfMarkerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintChanges(dAtA, i, uint64(m.MarkerType)) i-- dAtA[i] = 0x28 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_Checkable) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfCheckable) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_Checkable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfCheckable) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Checkable { @@ -1476,12 +1476,12 @@ func (m *Change_Block_Content_Text_Checkable) MarshalToSizedBuffer(dAtA []byte) dAtA[i] = 0x30 return len(dAtA) - i, nil } -func (m *Change_Block_Content_Text_Checked) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfChecked) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Change_Block_Content_Text_Checked) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangeBlockContentTextChangeOfChecked) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Checked { @@ -1534,12 +1534,12 @@ func (m *BlocksListSingleChange) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *BlocksListSingleChange_Text) MarshalTo(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfText) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlocksListSingleChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfText) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Text != nil { { @@ -1555,12 +1555,12 @@ func (m *BlocksListSingleChange_Text) MarshalToSizedBuffer(dAtA []byte) (int, er } return len(dAtA) - i, nil } -func (m *BlocksListSingleChange_BlockHeader) MarshalTo(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfBlockHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlocksListSingleChange_BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfBlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.BlockHeader != nil { { @@ -1576,12 +1576,12 @@ func (m *BlocksListSingleChange_BlockHeader) MarshalToSizedBuffer(dAtA []byte) ( } return len(dAtA) - i, nil } -func (m *BlocksListSingleChange_BlockChildren) MarshalTo(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfBlockChildren) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlocksListSingleChange_BlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfBlockChildren) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.BlockChildren != nil { { @@ -1597,12 +1597,12 @@ func (m *BlocksListSingleChange_BlockChildren) MarshalToSizedBuffer(dAtA []byte) } return len(dAtA) - i, nil } -func (m *BlocksListSingleChange_Page) MarshalTo(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfPage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlocksListSingleChange_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Page != nil { { @@ -1618,12 +1618,12 @@ func (m *BlocksListSingleChange_Page) MarshalToSizedBuffer(dAtA []byte) (int, er } return len(dAtA) - i, nil } -func (m *BlocksListSingleChange_Dashboard) MarshalTo(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfDashboard) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlocksListSingleChange_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Dashboard != nil { { @@ -1639,12 +1639,12 @@ func (m *BlocksListSingleChange_Dashboard) MarshalToSizedBuffer(dAtA []byte) (in } return len(dAtA) - i, nil } -func (m *BlocksListSingleChange_Media) MarshalTo(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfMedia) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BlocksListSingleChange_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BlocksListSingleChangeChangeOfMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Media != nil { { @@ -1717,7 +1717,7 @@ func (m *Change) Size() (n int) { return n } -func (m *Change_Block) Size() (n int) { +func (m *ChangeBlock) Size() (n int) { if m == nil { return 0 } @@ -1726,7 +1726,7 @@ func (m *Change_Block) Size() (n int) { return n } -func (m *Change_Block_Header) Size() (n int) { +func (m *ChangeBlockHeader) Size() (n int) { if m == nil { return 0 } @@ -1738,7 +1738,7 @@ func (m *Change_Block_Header) Size() (n int) { return n } -func (m *Change_Block_Header_Id) Size() (n int) { +func (m *ChangeBlockHeaderChangeOfId) Size() (n int) { if m == nil { return 0 } @@ -1748,7 +1748,7 @@ func (m *Change_Block_Header_Id) Size() (n int) { n += 1 + l + sovChanges(uint64(l)) return n } -func (m *Change_Block_Header_Type) Size() (n int) { +func (m *ChangeBlockHeaderChangeOfType) Size() (n int) { if m == nil { return 0 } @@ -1757,7 +1757,7 @@ func (m *Change_Block_Header_Type) Size() (n int) { n += 1 + sovChanges(uint64(m.Type)) return n } -func (m *Change_Block_Header_Name) Size() (n int) { +func (m *ChangeBlockHeaderChangeOfName) Size() (n int) { if m == nil { return 0 } @@ -1767,7 +1767,7 @@ func (m *Change_Block_Header_Name) Size() (n int) { n += 1 + l + sovChanges(uint64(l)) return n } -func (m *Change_Block_Header_Icon) Size() (n int) { +func (m *ChangeBlockHeaderChangeOfIcon) Size() (n int) { if m == nil { return 0 } @@ -1777,7 +1777,7 @@ func (m *Change_Block_Header_Icon) Size() (n int) { n += 1 + l + sovChanges(uint64(l)) return n } -func (m *Change_Block_Header_Permissions) Size() (n int) { +func (m *ChangeBlockHeaderChangeOfPermissions) Size() (n int) { if m == nil { return 0 } @@ -1789,7 +1789,7 @@ func (m *Change_Block_Header_Permissions) Size() (n int) { } return n } -func (m *Change_Block_Children) Size() (n int) { +func (m *ChangeBlockChildren) Size() (n int) { if m == nil { return 0 } @@ -1804,7 +1804,7 @@ func (m *Change_Block_Children) Size() (n int) { return n } -func (m *Change_Block_Content) Size() (n int) { +func (m *ChangeBlockContent) Size() (n int) { if m == nil { return 0 } @@ -1813,7 +1813,7 @@ func (m *Change_Block_Content) Size() (n int) { return n } -func (m *Change_Block_Content_Page) Size() (n int) { +func (m *ChangeBlockContentPage) Size() (n int) { if m == nil { return 0 } @@ -1825,7 +1825,7 @@ func (m *Change_Block_Content_Page) Size() (n int) { return n } -func (m *Change_Block_Content_Page_Style) Size() (n int) { +func (m *ChangeBlockContentPageChangeOfStyle) Size() (n int) { if m == nil { return 0 } @@ -1834,7 +1834,7 @@ func (m *Change_Block_Content_Page_Style) Size() (n int) { n += 1 + sovChanges(uint64(m.Style)) return n } -func (m *Change_Block_Content_Page_Block) Size() (n int) { +func (m *ChangeBlockContentPageChangeOfBlock) Size() (n int) { if m == nil { return 0 } @@ -1846,7 +1846,7 @@ func (m *Change_Block_Content_Page_Block) Size() (n int) { } return n } -func (m *Change_Block_Content_Dashboard) Size() (n int) { +func (m *ChangeBlockContentDashboard) Size() (n int) { if m == nil { return 0 } @@ -1858,7 +1858,7 @@ func (m *Change_Block_Content_Dashboard) Size() (n int) { return n } -func (m *Change_Block_Content_Dashboard_Style) Size() (n int) { +func (m *ChangeBlockContentDashboardChangeOfStyle) Size() (n int) { if m == nil { return 0 } @@ -1867,7 +1867,7 @@ func (m *Change_Block_Content_Dashboard_Style) Size() (n int) { n += 1 + sovChanges(uint64(m.Style)) return n } -func (m *Change_Block_Content_Dashboard_Header) Size() (n int) { +func (m *ChangeBlockContentDashboardChangeOfHeader) Size() (n int) { if m == nil { return 0 } @@ -1879,7 +1879,7 @@ func (m *Change_Block_Content_Dashboard_Header) Size() (n int) { } return n } -func (m *Change_Block_Content_Media) Size() (n int) { +func (m *ChangeBlockContentMedia) Size() (n int) { if m == nil { return 0 } @@ -1891,7 +1891,7 @@ func (m *Change_Block_Content_Media) Size() (n int) { return n } -func (m *Change_Block_Content_Media_Link) Size() (n int) { +func (m *ChangeBlockContentMediaChangeOfLink) Size() (n int) { if m == nil { return 0 } @@ -1901,7 +1901,7 @@ func (m *Change_Block_Content_Media_Link) Size() (n int) { n += 1 + l + sovChanges(uint64(l)) return n } -func (m *Change_Block_Content_Media_State) Size() (n int) { +func (m *ChangeBlockContentMediaChangeOfState) Size() (n int) { if m == nil { return 0 } @@ -1910,7 +1910,7 @@ func (m *Change_Block_Content_Media_State) Size() (n int) { n += 1 + sovChanges(uint64(m.State)) return n } -func (m *Change_Block_Content_Text) Size() (n int) { +func (m *ChangeBlockContentText) Size() (n int) { if m == nil { return 0 } @@ -1922,7 +1922,7 @@ func (m *Change_Block_Content_Text) Size() (n int) { return n } -func (m *Change_Block_Content_Text_Text) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfText) Size() (n int) { if m == nil { return 0 } @@ -1932,7 +1932,7 @@ func (m *Change_Block_Content_Text_Text) Size() (n int) { n += 1 + l + sovChanges(uint64(l)) return n } -func (m *Change_Block_Content_Text_Style) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfStyle) Size() (n int) { if m == nil { return 0 } @@ -1941,7 +1941,7 @@ func (m *Change_Block_Content_Text_Style) Size() (n int) { n += 1 + sovChanges(uint64(m.Style)) return n } -func (m *Change_Block_Content_Text_Marks) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfMarks) Size() (n int) { if m == nil { return 0 } @@ -1953,7 +1953,7 @@ func (m *Change_Block_Content_Text_Marks) Size() (n int) { } return n } -func (m *Change_Block_Content_Text_Toggleable) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfToggleable) Size() (n int) { if m == nil { return 0 } @@ -1962,7 +1962,7 @@ func (m *Change_Block_Content_Text_Toggleable) Size() (n int) { n += 2 return n } -func (m *Change_Block_Content_Text_MarkerType) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfMarkerType) Size() (n int) { if m == nil { return 0 } @@ -1971,7 +1971,7 @@ func (m *Change_Block_Content_Text_MarkerType) Size() (n int) { n += 1 + sovChanges(uint64(m.MarkerType)) return n } -func (m *Change_Block_Content_Text_Checkable) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfCheckable) Size() (n int) { if m == nil { return 0 } @@ -1980,7 +1980,7 @@ func (m *Change_Block_Content_Text_Checkable) Size() (n int) { n += 2 return n } -func (m *Change_Block_Content_Text_Checked) Size() (n int) { +func (m *ChangeBlockContentTextChangeOfChecked) Size() (n int) { if m == nil { return 0 } @@ -2007,7 +2007,7 @@ func (m *BlocksListSingleChange) Size() (n int) { return n } -func (m *BlocksListSingleChange_Text) Size() (n int) { +func (m *BlocksListSingleChangeChangeOfText) Size() (n int) { if m == nil { return 0 } @@ -2019,7 +2019,7 @@ func (m *BlocksListSingleChange_Text) Size() (n int) { } return n } -func (m *BlocksListSingleChange_BlockHeader) Size() (n int) { +func (m *BlocksListSingleChangeChangeOfBlockHeader) Size() (n int) { if m == nil { return 0 } @@ -2031,7 +2031,7 @@ func (m *BlocksListSingleChange_BlockHeader) Size() (n int) { } return n } -func (m *BlocksListSingleChange_BlockChildren) Size() (n int) { +func (m *BlocksListSingleChangeChangeOfBlockChildren) Size() (n int) { if m == nil { return 0 } @@ -2043,7 +2043,7 @@ func (m *BlocksListSingleChange_BlockChildren) Size() (n int) { } return n } -func (m *BlocksListSingleChange_Page) Size() (n int) { +func (m *BlocksListSingleChangeChangeOfPage) Size() (n int) { if m == nil { return 0 } @@ -2055,7 +2055,7 @@ func (m *BlocksListSingleChange_Page) Size() (n int) { } return n } -func (m *BlocksListSingleChange_Dashboard) Size() (n int) { +func (m *BlocksListSingleChangeChangeOfDashboard) Size() (n int) { if m == nil { return 0 } @@ -2067,7 +2067,7 @@ func (m *BlocksListSingleChange_Dashboard) Size() (n int) { } return n } -func (m *BlocksListSingleChange_Media) Size() (n int) { +func (m *BlocksListSingleChangeChangeOfMedia) Size() (n int) { if m == nil { return 0 } @@ -2153,7 +2153,7 @@ func (m *Change) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block) Unmarshal(dAtA []byte) error { +func (m *ChangeBlock) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2206,7 +2206,7 @@ func (m *Change_Block) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockHeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2265,13 +2265,13 @@ func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &Change_Block_Header_Id{string(dAtA[iNdEx:postIndex])} + m.Change = &ChangeBlockHeaderChangeOfId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - var v Model_Block_Header_Type + var v ModelBlockHeaderType for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2281,12 +2281,12 @@ func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_Header_Type(b&0x7F) << shift + v |= ModelBlockHeaderType(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &Change_Block_Header_Type{v} + m.Change = &ChangeBlockHeaderChangeOfType{v} case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) @@ -2317,7 +2317,7 @@ func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &Change_Block_Header_Name{string(dAtA[iNdEx:postIndex])} + m.Change = &ChangeBlockHeaderChangeOfName{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 2 { @@ -2349,7 +2349,7 @@ func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &Change_Block_Header_Icon{string(dAtA[iNdEx:postIndex])} + m.Change = &ChangeBlockHeaderChangeOfIcon{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 5: if wireType != 2 { @@ -2380,11 +2380,11 @@ func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Header_Permissions{} + v := &ModelBlockHeaderPermissions{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &Change_Block_Header_Permissions{v} + m.Change = &ChangeBlockHeaderChangeOfPermissions{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2410,7 +2410,7 @@ func (m *Change_Block_Header) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Children) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockChildren) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2495,7 +2495,7 @@ func (m *Change_Block_Children) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Content) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockContent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2548,7 +2548,7 @@ func (m *Change_Block_Content) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockContentPage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2581,7 +2581,7 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Model_Block_Content_Page_Style + var v ModelBlockContentPageStyle for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2591,12 +2591,12 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_Content_Page_Style(b&0x7F) << shift + v |= ModelBlockContentPageStyle(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &Change_Block_Content_Page_Style{v} + m.Change = &ChangeBlockContentPageChangeOfStyle{v} case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) @@ -2626,11 +2626,11 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block{} + v := &ModelBlock{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &Change_Block_Content_Page_Block{v} + m.Change = &ChangeBlockContentPageChangeOfBlock{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2656,7 +2656,7 @@ func (m *Change_Block_Content_Page) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockContentDashboard) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2689,7 +2689,7 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Model_Block_Content_Dashboard_Style + var v ModelBlockContentDashboardStyle for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2699,12 +2699,12 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_Content_Dashboard_Style(b&0x7F) << shift + v |= ModelBlockContentDashboardStyle(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &Change_Block_Content_Dashboard_Style{v} + m.Change = &ChangeBlockContentDashboardChangeOfStyle{v} case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) @@ -2734,11 +2734,11 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Header{} + v := &ModelBlockHeader{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &Change_Block_Content_Dashboard_Header{v} + m.Change = &ChangeBlockContentDashboardChangeOfHeader{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2764,7 +2764,7 @@ func (m *Change_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockContentMedia) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2823,13 +2823,13 @@ func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &Change_Block_Content_Media_Link{string(dAtA[iNdEx:postIndex])} + m.Change = &ChangeBlockContentMediaChangeOfLink{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } - var v Model_Block_Content_Media_State + var v ModelBlockContentMediaState for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2839,12 +2839,12 @@ func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_Content_Media_State(b&0x7F) << shift + v |= ModelBlockContentMediaState(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &Change_Block_Content_Media_State{v} + m.Change = &ChangeBlockContentMediaChangeOfState{v} default: iNdEx = preIndex skippy, err := skipChanges(dAtA[iNdEx:]) @@ -2869,7 +2869,7 @@ func (m *Change_Block_Content_Media) Unmarshal(dAtA []byte) error { } return nil } -func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { +func (m *ChangeBlockContentText) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2928,13 +2928,13 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Change = &Change_Block_Content_Text_Text{string(dAtA[iNdEx:postIndex])} + m.Change = &ChangeBlockContentTextChangeOfText{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) } - var v Model_Block_Content_Text_Style + var v ModelBlockContentTextStyle for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -2944,12 +2944,12 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_Content_Text_Style(b&0x7F) << shift + v |= ModelBlockContentTextStyle(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &Change_Block_Content_Text_Style{v} + m.Change = &ChangeBlockContentTextChangeOfStyle{v} case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Marks", wireType) @@ -2979,11 +2979,11 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Text_Marks{} + v := &ModelBlockContentTextMarks{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &Change_Block_Content_Text_Marks{v} + m.Change = &ChangeBlockContentTextChangeOfMarks{v} iNdEx = postIndex case 4: if wireType != 0 { @@ -3005,12 +3005,12 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } } b := bool(v != 0) - m.Change = &Change_Block_Content_Text_Toggleable{b} + m.Change = &ChangeBlockContentTextChangeOfToggleable{b} case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MarkerType", wireType) } - var v Model_Block_Content_Text_MarkerType + var v ModelBlockContentTextMarkerType for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChanges @@ -3020,12 +3020,12 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Block_Content_Text_MarkerType(b&0x7F) << shift + v |= ModelBlockContentTextMarkerType(b&0x7F) << shift if b < 0x80 { break } } - m.Change = &Change_Block_Content_Text_MarkerType{v} + m.Change = &ChangeBlockContentTextChangeOfMarkerType{v} case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Checkable", wireType) @@ -3046,7 +3046,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } } b := bool(v != 0) - m.Change = &Change_Block_Content_Text_Checkable{b} + m.Change = &ChangeBlockContentTextChangeOfCheckable{b} case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) @@ -3067,7 +3067,7 @@ func (m *Change_Block_Content_Text) Unmarshal(dAtA []byte) error { } } b := bool(v != 0) - m.Change = &Change_Block_Content_Text_Checked{b} + m.Change = &ChangeBlockContentTextChangeOfChecked{b} default: iNdEx = preIndex skippy, err := skipChanges(dAtA[iNdEx:]) @@ -3182,11 +3182,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Content_Text{} + v := &ChangeBlockContentText{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlocksListSingleChange_Text{v} + m.Change = &BlocksListSingleChangeChangeOfText{v} iNdEx = postIndex case 3: if wireType != 2 { @@ -3217,11 +3217,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Header{} + v := &ChangeBlockHeader{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlocksListSingleChange_BlockHeader{v} + m.Change = &BlocksListSingleChangeChangeOfBlockHeader{v} iNdEx = postIndex case 4: if wireType != 2 { @@ -3252,11 +3252,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Children{} + v := &ChangeBlockChildren{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlocksListSingleChange_BlockChildren{v} + m.Change = &BlocksListSingleChangeChangeOfBlockChildren{v} iNdEx = postIndex case 5: if wireType != 2 { @@ -3287,11 +3287,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Content_Page{} + v := &ChangeBlockContentPage{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlocksListSingleChange_Page{v} + m.Change = &BlocksListSingleChangeChangeOfPage{v} iNdEx = postIndex case 6: if wireType != 2 { @@ -3322,11 +3322,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Content_Dashboard{} + v := &ChangeBlockContentDashboard{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlocksListSingleChange_Dashboard{v} + m.Change = &BlocksListSingleChangeChangeOfDashboard{v} iNdEx = postIndex case 7: if wireType != 2 { @@ -3357,11 +3357,11 @@ func (m *BlocksListSingleChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Change_Block_Content_Media{} + v := &ChangeBlockContentMedia{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Change = &BlocksListSingleChange_Media{v} + m.Change = &BlocksListSingleChangeChangeOfMedia{v} iNdEx = postIndex default: iNdEx = preIndex diff --git a/pb/commands.pb.go b/pb/commands.pb.go index 131cc09da..ae1d68a0c 100644 --- a/pb/commands.pb.go +++ b/pb/commands.pb.go @@ -22,195 +22,195 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type Rpc_Block_History_Move_Response_Error_Code int32 +type RpcBlockHistoryMoveResponseErrorCode int32 const ( - Rpc_Block_History_Move_Response_Error_NULL Rpc_Block_History_Move_Response_Error_Code = 0 - Rpc_Block_History_Move_Response_Error_UNKNOWN_ERROR Rpc_Block_History_Move_Response_Error_Code = 1 - Rpc_Block_History_Move_Response_Error_BAD_INPUT Rpc_Block_History_Move_Response_Error_Code = 2 - Rpc_Block_History_Move_Response_Error_CAN_NOT_MOVE Rpc_Block_History_Move_Response_Error_Code = 3 + RpcBlockHistoryMoveResponseError_NULL RpcBlockHistoryMoveResponseErrorCode = 0 + RpcBlockHistoryMoveResponseError_UNKNOWN_ERROR RpcBlockHistoryMoveResponseErrorCode = 1 + RpcBlockHistoryMoveResponseError_BAD_INPUT RpcBlockHistoryMoveResponseErrorCode = 2 + RpcBlockHistoryMoveResponseError_CAN_NOT_MOVE RpcBlockHistoryMoveResponseErrorCode = 3 ) -var Rpc_Block_History_Move_Response_Error_Code_name = map[int32]string{ +var RpcBlockHistoryMoveResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", 3: "CAN_NOT_MOVE", } -var Rpc_Block_History_Move_Response_Error_Code_value = map[string]int32{ +var RpcBlockHistoryMoveResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, "CAN_NOT_MOVE": 3, } -func (x Rpc_Block_History_Move_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Block_History_Move_Response_Error_Code_name, int32(x)) +func (x RpcBlockHistoryMoveResponseErrorCode) String() string { + return proto.EnumName(RpcBlockHistoryMoveResponseErrorCode_name, int32(x)) } -func (Rpc_Block_History_Move_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcBlockHistoryMoveResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 1, 0, 0} } -type Rpc_Block_Open_Response_Error_Code int32 +type RpcBlockOpenResponseErrorCode int32 const ( - Rpc_Block_Open_Response_Error_NULL Rpc_Block_Open_Response_Error_Code = 0 - Rpc_Block_Open_Response_Error_UNKNOWN_ERROR Rpc_Block_Open_Response_Error_Code = 1 - Rpc_Block_Open_Response_Error_BAD_INPUT Rpc_Block_Open_Response_Error_Code = 2 + RpcBlockOpenResponseError_NULL RpcBlockOpenResponseErrorCode = 0 + RpcBlockOpenResponseError_UNKNOWN_ERROR RpcBlockOpenResponseErrorCode = 1 + RpcBlockOpenResponseError_BAD_INPUT RpcBlockOpenResponseErrorCode = 2 ) -var Rpc_Block_Open_Response_Error_Code_name = map[int32]string{ +var RpcBlockOpenResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var Rpc_Block_Open_Response_Error_Code_value = map[string]int32{ +var RpcBlockOpenResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x Rpc_Block_Open_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Block_Open_Response_Error_Code_name, int32(x)) +func (x RpcBlockOpenResponseErrorCode) String() string { + return proto.EnumName(RpcBlockOpenResponseErrorCode_name, int32(x)) } -func (Rpc_Block_Open_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcBlockOpenResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 1, 0, 0} } -type Rpc_Block_Create_Response_Error_Code int32 +type RpcBlockCreateResponseErrorCode int32 const ( - Rpc_Block_Create_Response_Error_NULL Rpc_Block_Create_Response_Error_Code = 0 - Rpc_Block_Create_Response_Error_UNKNOWN_ERROR Rpc_Block_Create_Response_Error_Code = 1 - Rpc_Block_Create_Response_Error_BAD_INPUT Rpc_Block_Create_Response_Error_Code = 2 + RpcBlockCreateResponseError_NULL RpcBlockCreateResponseErrorCode = 0 + RpcBlockCreateResponseError_UNKNOWN_ERROR RpcBlockCreateResponseErrorCode = 1 + RpcBlockCreateResponseError_BAD_INPUT RpcBlockCreateResponseErrorCode = 2 ) -var Rpc_Block_Create_Response_Error_Code_name = map[int32]string{ +var RpcBlockCreateResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var Rpc_Block_Create_Response_Error_Code_value = map[string]int32{ +var RpcBlockCreateResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x Rpc_Block_Create_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Block_Create_Response_Error_Code_name, int32(x)) +func (x RpcBlockCreateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockCreateResponseErrorCode_name, int32(x)) } -func (Rpc_Block_Create_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcBlockCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 1, 0, 0} } -type Rpc_Block_Update_Response_Error_Code int32 +type RpcBlockUpdateResponseErrorCode int32 const ( - Rpc_Block_Update_Response_Error_NULL Rpc_Block_Update_Response_Error_Code = 0 - Rpc_Block_Update_Response_Error_UNKNOWN_ERROR Rpc_Block_Update_Response_Error_Code = 1 - Rpc_Block_Update_Response_Error_BAD_INPUT Rpc_Block_Update_Response_Error_Code = 2 + RpcBlockUpdateResponseError_NULL RpcBlockUpdateResponseErrorCode = 0 + RpcBlockUpdateResponseError_UNKNOWN_ERROR RpcBlockUpdateResponseErrorCode = 1 + RpcBlockUpdateResponseError_BAD_INPUT RpcBlockUpdateResponseErrorCode = 2 ) -var Rpc_Block_Update_Response_Error_Code_name = map[int32]string{ +var RpcBlockUpdateResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var Rpc_Block_Update_Response_Error_Code_value = map[string]int32{ +var RpcBlockUpdateResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x Rpc_Block_Update_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Block_Update_Response_Error_Code_name, int32(x)) +func (x RpcBlockUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockUpdateResponseErrorCode_name, int32(x)) } -func (Rpc_Block_Update_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcBlockUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 1, 0, 0} } -type Rpc_Wallet_Create_Response_Error_Code int32 +type RpcWalletCreateResponseErrorCode int32 const ( - Rpc_Wallet_Create_Response_Error_NULL Rpc_Wallet_Create_Response_Error_Code = 0 - Rpc_Wallet_Create_Response_Error_UNKNOWN_ERROR Rpc_Wallet_Create_Response_Error_Code = 1 - Rpc_Wallet_Create_Response_Error_BAD_INPUT Rpc_Wallet_Create_Response_Error_Code = 2 - Rpc_Wallet_Create_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Wallet_Create_Response_Error_Code = 101 + RpcWalletCreateResponseError_NULL RpcWalletCreateResponseErrorCode = 0 + RpcWalletCreateResponseError_UNKNOWN_ERROR RpcWalletCreateResponseErrorCode = 1 + RpcWalletCreateResponseError_BAD_INPUT RpcWalletCreateResponseErrorCode = 2 + RpcWalletCreateResponseError_FAILED_TO_CREATE_LOCAL_REPO RpcWalletCreateResponseErrorCode = 101 ) -var Rpc_Wallet_Create_Response_Error_Code_name = map[int32]string{ +var RpcWalletCreateResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", 101: "FAILED_TO_CREATE_LOCAL_REPO", } -var Rpc_Wallet_Create_Response_Error_Code_value = map[string]int32{ +var RpcWalletCreateResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, "FAILED_TO_CREATE_LOCAL_REPO": 101, } -func (x Rpc_Wallet_Create_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Wallet_Create_Response_Error_Code_name, int32(x)) +func (x RpcWalletCreateResponseErrorCode) String() string { + return proto.EnumName(RpcWalletCreateResponseErrorCode_name, int32(x)) } -func (Rpc_Wallet_Create_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcWalletCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 1, 0, 0} } -type Rpc_Wallet_Recover_Response_Error_Code int32 +type RpcWalletRecoverResponseErrorCode int32 const ( - Rpc_Wallet_Recover_Response_Error_NULL Rpc_Wallet_Recover_Response_Error_Code = 0 - Rpc_Wallet_Recover_Response_Error_UNKNOWN_ERROR Rpc_Wallet_Recover_Response_Error_Code = 1 - Rpc_Wallet_Recover_Response_Error_BAD_INPUT Rpc_Wallet_Recover_Response_Error_Code = 2 - Rpc_Wallet_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Wallet_Recover_Response_Error_Code = 101 + RpcWalletRecoverResponseError_NULL RpcWalletRecoverResponseErrorCode = 0 + RpcWalletRecoverResponseError_UNKNOWN_ERROR RpcWalletRecoverResponseErrorCode = 1 + RpcWalletRecoverResponseError_BAD_INPUT RpcWalletRecoverResponseErrorCode = 2 + RpcWalletRecoverResponseError_FAILED_TO_CREATE_LOCAL_REPO RpcWalletRecoverResponseErrorCode = 101 ) -var Rpc_Wallet_Recover_Response_Error_Code_name = map[int32]string{ +var RpcWalletRecoverResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", 101: "FAILED_TO_CREATE_LOCAL_REPO", } -var Rpc_Wallet_Recover_Response_Error_Code_value = map[string]int32{ +var RpcWalletRecoverResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, "FAILED_TO_CREATE_LOCAL_REPO": 101, } -func (x Rpc_Wallet_Recover_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Wallet_Recover_Response_Error_Code_name, int32(x)) +func (x RpcWalletRecoverResponseErrorCode) String() string { + return proto.EnumName(RpcWalletRecoverResponseErrorCode_name, int32(x)) } -func (Rpc_Wallet_Recover_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcWalletRecoverResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 1, 0, 0} } -type Rpc_Account_Create_Response_Error_Code int32 +type RpcAccountCreateResponseErrorCode int32 const ( - Rpc_Account_Create_Response_Error_NULL Rpc_Account_Create_Response_Error_Code = 0 - Rpc_Account_Create_Response_Error_UNKNOWN_ERROR Rpc_Account_Create_Response_Error_Code = 1 - Rpc_Account_Create_Response_Error_BAD_INPUT Rpc_Account_Create_Response_Error_Code = 2 - Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE Rpc_Account_Create_Response_Error_Code = 101 - Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME Rpc_Account_Create_Response_Error_Code = 102 - Rpc_Account_Create_Response_Error_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR Rpc_Account_Create_Response_Error_Code = 103 + RpcAccountCreateResponseError_NULL RpcAccountCreateResponseErrorCode = 0 + RpcAccountCreateResponseError_UNKNOWN_ERROR RpcAccountCreateResponseErrorCode = 1 + RpcAccountCreateResponseError_BAD_INPUT RpcAccountCreateResponseErrorCode = 2 + RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE RpcAccountCreateResponseErrorCode = 101 + RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME RpcAccountCreateResponseErrorCode = 102 + RpcAccountCreateResponseError_ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR RpcAccountCreateResponseErrorCode = 103 ) -var Rpc_Account_Create_Response_Error_Code_name = map[int32]string{ +var RpcAccountCreateResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -219,7 +219,7 @@ var Rpc_Account_Create_Response_Error_Code_name = map[int32]string{ 103: "ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR", } -var Rpc_Account_Create_Response_Error_Code_value = map[string]int32{ +var RpcAccountCreateResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -228,29 +228,29 @@ var Rpc_Account_Create_Response_Error_Code_value = map[string]int32{ "ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR": 103, } -func (x Rpc_Account_Create_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Account_Create_Response_Error_Code_name, int32(x)) +func (x RpcAccountCreateResponseErrorCode) String() string { + return proto.EnumName(RpcAccountCreateResponseErrorCode_name, int32(x)) } -func (Rpc_Account_Create_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcAccountCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 1, 0, 0} } -type Rpc_Account_Recover_Response_Error_Code int32 +type RpcAccountRecoverResponseErrorCode int32 const ( - Rpc_Account_Recover_Response_Error_NULL Rpc_Account_Recover_Response_Error_Code = 0 - Rpc_Account_Recover_Response_Error_UNKNOWN_ERROR Rpc_Account_Recover_Response_Error_Code = 1 - Rpc_Account_Recover_Response_Error_BAD_INPUT Rpc_Account_Recover_Response_Error_Code = 2 - Rpc_Account_Recover_Response_Error_NO_ACCOUNTS_FOUND Rpc_Account_Recover_Response_Error_Code = 101 - Rpc_Account_Recover_Response_Error_NEED_TO_RECOVER_WALLET_FIRST Rpc_Account_Recover_Response_Error_Code = 102 - Rpc_Account_Recover_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Account_Recover_Response_Error_Code = 103 - Rpc_Account_Recover_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED Rpc_Account_Recover_Response_Error_Code = 104 - Rpc_Account_Recover_Response_Error_FAILED_TO_RUN_NODE Rpc_Account_Recover_Response_Error_Code = 105 - Rpc_Account_Recover_Response_Error_WALLET_RECOVER_NOT_PERFORMED Rpc_Account_Recover_Response_Error_Code = 106 + RpcAccountRecoverResponseError_NULL RpcAccountRecoverResponseErrorCode = 0 + RpcAccountRecoverResponseError_UNKNOWN_ERROR RpcAccountRecoverResponseErrorCode = 1 + RpcAccountRecoverResponseError_BAD_INPUT RpcAccountRecoverResponseErrorCode = 2 + RpcAccountRecoverResponseError_NO_ACCOUNTS_FOUND RpcAccountRecoverResponseErrorCode = 101 + RpcAccountRecoverResponseError_NEED_TO_RECOVER_WALLET_FIRST RpcAccountRecoverResponseErrorCode = 102 + RpcAccountRecoverResponseError_FAILED_TO_CREATE_LOCAL_REPO RpcAccountRecoverResponseErrorCode = 103 + RpcAccountRecoverResponseError_LOCAL_REPO_EXISTS_BUT_CORRUPTED RpcAccountRecoverResponseErrorCode = 104 + RpcAccountRecoverResponseError_FAILED_TO_RUN_NODE RpcAccountRecoverResponseErrorCode = 105 + RpcAccountRecoverResponseError_WALLET_RECOVER_NOT_PERFORMED RpcAccountRecoverResponseErrorCode = 106 ) -var Rpc_Account_Recover_Response_Error_Code_name = map[int32]string{ +var RpcAccountRecoverResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -262,7 +262,7 @@ var Rpc_Account_Recover_Response_Error_Code_name = map[int32]string{ 106: "WALLET_RECOVER_NOT_PERFORMED", } -var Rpc_Account_Recover_Response_Error_Code_value = map[string]int32{ +var RpcAccountRecoverResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -274,28 +274,28 @@ var Rpc_Account_Recover_Response_Error_Code_value = map[string]int32{ "WALLET_RECOVER_NOT_PERFORMED": 106, } -func (x Rpc_Account_Recover_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Account_Recover_Response_Error_Code_name, int32(x)) +func (x RpcAccountRecoverResponseErrorCode) String() string { + return proto.EnumName(RpcAccountRecoverResponseErrorCode_name, int32(x)) } -func (Rpc_Account_Recover_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcAccountRecoverResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 1, 0, 0} } -type Rpc_Account_Select_Response_Error_Code int32 +type RpcAccountSelectResponseErrorCode int32 const ( - Rpc_Account_Select_Response_Error_NULL Rpc_Account_Select_Response_Error_Code = 0 - Rpc_Account_Select_Response_Error_UNKNOWN_ERROR Rpc_Account_Select_Response_Error_Code = 1 - Rpc_Account_Select_Response_Error_BAD_INPUT Rpc_Account_Select_Response_Error_Code = 2 - Rpc_Account_Select_Response_Error_FAILED_TO_CREATE_LOCAL_REPO Rpc_Account_Select_Response_Error_Code = 101 - Rpc_Account_Select_Response_Error_LOCAL_REPO_EXISTS_BUT_CORRUPTED Rpc_Account_Select_Response_Error_Code = 102 - Rpc_Account_Select_Response_Error_FAILED_TO_RUN_NODE Rpc_Account_Select_Response_Error_Code = 103 - Rpc_Account_Select_Response_Error_FAILED_TO_FIND_ACCOUNT_INFO Rpc_Account_Select_Response_Error_Code = 104 - Rpc_Account_Select_Response_Error_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET Rpc_Account_Select_Response_Error_Code = 105 + RpcAccountSelectResponseError_NULL RpcAccountSelectResponseErrorCode = 0 + RpcAccountSelectResponseError_UNKNOWN_ERROR RpcAccountSelectResponseErrorCode = 1 + RpcAccountSelectResponseError_BAD_INPUT RpcAccountSelectResponseErrorCode = 2 + RpcAccountSelectResponseError_FAILED_TO_CREATE_LOCAL_REPO RpcAccountSelectResponseErrorCode = 101 + RpcAccountSelectResponseError_LOCAL_REPO_EXISTS_BUT_CORRUPTED RpcAccountSelectResponseErrorCode = 102 + RpcAccountSelectResponseError_FAILED_TO_RUN_NODE RpcAccountSelectResponseErrorCode = 103 + RpcAccountSelectResponseError_FAILED_TO_FIND_ACCOUNT_INFO RpcAccountSelectResponseErrorCode = 104 + RpcAccountSelectResponseError_LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET RpcAccountSelectResponseErrorCode = 105 ) -var Rpc_Account_Select_Response_Error_Code_name = map[int32]string{ +var RpcAccountSelectResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -306,7 +306,7 @@ var Rpc_Account_Select_Response_Error_Code_name = map[int32]string{ 105: "LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET", } -var Rpc_Account_Select_Response_Error_Code_value = map[string]int32{ +var RpcAccountSelectResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -317,26 +317,26 @@ var Rpc_Account_Select_Response_Error_Code_value = map[string]int32{ "LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET": 105, } -func (x Rpc_Account_Select_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Account_Select_Response_Error_Code_name, int32(x)) +func (x RpcAccountSelectResponseErrorCode) String() string { + return proto.EnumName(RpcAccountSelectResponseErrorCode_name, int32(x)) } -func (Rpc_Account_Select_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcAccountSelectResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 1, 0, 0} } -type Rpc_Version_Get_Response_Error_Code int32 +type RpcVersionGetResponseErrorCode int32 const ( - Rpc_Version_Get_Response_Error_NULL Rpc_Version_Get_Response_Error_Code = 0 - Rpc_Version_Get_Response_Error_UNKNOWN_ERROR Rpc_Version_Get_Response_Error_Code = 1 - Rpc_Version_Get_Response_Error_BAD_INPUT Rpc_Version_Get_Response_Error_Code = 2 - Rpc_Version_Get_Response_Error_VERSION_IS_EMPTY Rpc_Version_Get_Response_Error_Code = 3 - Rpc_Version_Get_Response_Error_NOT_FOUND Rpc_Version_Get_Response_Error_Code = 101 - Rpc_Version_Get_Response_Error_TIMEOUT Rpc_Version_Get_Response_Error_Code = 102 + RpcVersionGetResponseError_NULL RpcVersionGetResponseErrorCode = 0 + RpcVersionGetResponseError_UNKNOWN_ERROR RpcVersionGetResponseErrorCode = 1 + RpcVersionGetResponseError_BAD_INPUT RpcVersionGetResponseErrorCode = 2 + RpcVersionGetResponseError_VERSION_IS_EMPTY RpcVersionGetResponseErrorCode = 3 + RpcVersionGetResponseError_NOT_FOUND RpcVersionGetResponseErrorCode = 101 + RpcVersionGetResponseError_TIMEOUT RpcVersionGetResponseErrorCode = 102 ) -var Rpc_Version_Get_Response_Error_Code_name = map[int32]string{ +var RpcVersionGetResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -345,7 +345,7 @@ var Rpc_Version_Get_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Version_Get_Response_Error_Code_value = map[string]int32{ +var RpcVersionGetResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -354,26 +354,26 @@ var Rpc_Version_Get_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Version_Get_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Version_Get_Response_Error_Code_name, int32(x)) +func (x RpcVersionGetResponseErrorCode) String() string { + return proto.EnumName(RpcVersionGetResponseErrorCode_name, int32(x)) } -func (Rpc_Version_Get_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcVersionGetResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 1, 0, 0} } -type Rpc_Log_Send_Request_Level int32 +type RpcLogSendRequestLevel int32 const ( - Rpc_Log_Send_Request_DEBUG Rpc_Log_Send_Request_Level = 0 - Rpc_Log_Send_Request_ERROR Rpc_Log_Send_Request_Level = 1 - Rpc_Log_Send_Request_FATAL Rpc_Log_Send_Request_Level = 2 - Rpc_Log_Send_Request_INFO Rpc_Log_Send_Request_Level = 3 - Rpc_Log_Send_Request_PANIC Rpc_Log_Send_Request_Level = 4 - Rpc_Log_Send_Request_WARNING Rpc_Log_Send_Request_Level = 5 + RpcLogSendRequest_DEBUG RpcLogSendRequestLevel = 0 + RpcLogSendRequest_ERROR RpcLogSendRequestLevel = 1 + RpcLogSendRequest_FATAL RpcLogSendRequestLevel = 2 + RpcLogSendRequest_INFO RpcLogSendRequestLevel = 3 + RpcLogSendRequest_PANIC RpcLogSendRequestLevel = 4 + RpcLogSendRequest_WARNING RpcLogSendRequestLevel = 5 ) -var Rpc_Log_Send_Request_Level_name = map[int32]string{ +var RpcLogSendRequestLevel_name = map[int32]string{ 0: "DEBUG", 1: "ERROR", 2: "FATAL", @@ -382,7 +382,7 @@ var Rpc_Log_Send_Request_Level_name = map[int32]string{ 5: "WARNING", } -var Rpc_Log_Send_Request_Level_value = map[string]int32{ +var RpcLogSendRequestLevel_value = map[string]int32{ "DEBUG": 0, "ERROR": 1, "FATAL": 2, @@ -391,25 +391,25 @@ var Rpc_Log_Send_Request_Level_value = map[string]int32{ "WARNING": 5, } -func (x Rpc_Log_Send_Request_Level) String() string { - return proto.EnumName(Rpc_Log_Send_Request_Level_name, int32(x)) +func (x RpcLogSendRequestLevel) String() string { + return proto.EnumName(RpcLogSendRequestLevel_name, int32(x)) } -func (Rpc_Log_Send_Request_Level) EnumDescriptor() ([]byte, []int) { +func (RpcLogSendRequestLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 0, 0} } -type Rpc_Log_Send_Response_Error_Code int32 +type RpcLogSendResponseErrorCode int32 const ( - Rpc_Log_Send_Response_Error_NULL Rpc_Log_Send_Response_Error_Code = 0 - Rpc_Log_Send_Response_Error_UNKNOWN_ERROR Rpc_Log_Send_Response_Error_Code = 1 - Rpc_Log_Send_Response_Error_BAD_INPUT Rpc_Log_Send_Response_Error_Code = 2 - Rpc_Log_Send_Response_Error_NOT_FOUND Rpc_Log_Send_Response_Error_Code = 101 - Rpc_Log_Send_Response_Error_TIMEOUT Rpc_Log_Send_Response_Error_Code = 102 + RpcLogSendResponseError_NULL RpcLogSendResponseErrorCode = 0 + RpcLogSendResponseError_UNKNOWN_ERROR RpcLogSendResponseErrorCode = 1 + RpcLogSendResponseError_BAD_INPUT RpcLogSendResponseErrorCode = 2 + RpcLogSendResponseError_NOT_FOUND RpcLogSendResponseErrorCode = 101 + RpcLogSendResponseError_TIMEOUT RpcLogSendResponseErrorCode = 102 ) -var Rpc_Log_Send_Response_Error_Code_name = map[int32]string{ +var RpcLogSendResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -417,7 +417,7 @@ var Rpc_Log_Send_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Log_Send_Response_Error_Code_value = map[string]int32{ +var RpcLogSendResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -425,25 +425,25 @@ var Rpc_Log_Send_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Log_Send_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Log_Send_Response_Error_Code_name, int32(x)) +func (x RpcLogSendResponseErrorCode) String() string { + return proto.EnumName(RpcLogSendResponseErrorCode_name, int32(x)) } -func (Rpc_Log_Send_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcLogSendResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1, 0, 0} } -type Rpc_Ipfs_Get_File_Response_Error_Code int32 +type RpcIpfsGetFileResponseErrorCode int32 const ( - Rpc_Ipfs_Get_File_Response_Error_NULL Rpc_Ipfs_Get_File_Response_Error_Code = 0 - Rpc_Ipfs_Get_File_Response_Error_UNKNOWN_ERROR Rpc_Ipfs_Get_File_Response_Error_Code = 1 - Rpc_Ipfs_Get_File_Response_Error_BAD_INPUT Rpc_Ipfs_Get_File_Response_Error_Code = 2 - Rpc_Ipfs_Get_File_Response_Error_NOT_FOUND Rpc_Ipfs_Get_File_Response_Error_Code = 101 - Rpc_Ipfs_Get_File_Response_Error_TIMEOUT Rpc_Ipfs_Get_File_Response_Error_Code = 102 + RpcIpfsGetFileResponseError_NULL RpcIpfsGetFileResponseErrorCode = 0 + RpcIpfsGetFileResponseError_UNKNOWN_ERROR RpcIpfsGetFileResponseErrorCode = 1 + RpcIpfsGetFileResponseError_BAD_INPUT RpcIpfsGetFileResponseErrorCode = 2 + RpcIpfsGetFileResponseError_NOT_FOUND RpcIpfsGetFileResponseErrorCode = 101 + RpcIpfsGetFileResponseError_TIMEOUT RpcIpfsGetFileResponseErrorCode = 102 ) -var Rpc_Ipfs_Get_File_Response_Error_Code_name = map[int32]string{ +var RpcIpfsGetFileResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -451,7 +451,7 @@ var Rpc_Ipfs_Get_File_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Ipfs_Get_File_Response_Error_Code_value = map[string]int32{ +var RpcIpfsGetFileResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -459,25 +459,25 @@ var Rpc_Ipfs_Get_File_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Ipfs_Get_File_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Ipfs_Get_File_Response_Error_Code_name, int32(x)) +func (x RpcIpfsGetFileResponseErrorCode) String() string { + return proto.EnumName(RpcIpfsGetFileResponseErrorCode_name, int32(x)) } -func (Rpc_Ipfs_Get_File_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcIpfsGetFileResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 1, 0, 0} } -type Rpc_Image_Get_Blob_Response_Error_Code int32 +type RpcImageGetBlobResponseErrorCode int32 const ( - Rpc_Image_Get_Blob_Response_Error_NULL Rpc_Image_Get_Blob_Response_Error_Code = 0 - Rpc_Image_Get_Blob_Response_Error_UNKNOWN_ERROR Rpc_Image_Get_Blob_Response_Error_Code = 1 - Rpc_Image_Get_Blob_Response_Error_BAD_INPUT Rpc_Image_Get_Blob_Response_Error_Code = 2 - Rpc_Image_Get_Blob_Response_Error_NOT_FOUND Rpc_Image_Get_Blob_Response_Error_Code = 101 - Rpc_Image_Get_Blob_Response_Error_TIMEOUT Rpc_Image_Get_Blob_Response_Error_Code = 102 + RpcImageGetBlobResponseError_NULL RpcImageGetBlobResponseErrorCode = 0 + RpcImageGetBlobResponseError_UNKNOWN_ERROR RpcImageGetBlobResponseErrorCode = 1 + RpcImageGetBlobResponseError_BAD_INPUT RpcImageGetBlobResponseErrorCode = 2 + RpcImageGetBlobResponseError_NOT_FOUND RpcImageGetBlobResponseErrorCode = 101 + RpcImageGetBlobResponseError_TIMEOUT RpcImageGetBlobResponseErrorCode = 102 ) -var Rpc_Image_Get_Blob_Response_Error_Code_name = map[int32]string{ +var RpcImageGetBlobResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -485,7 +485,7 @@ var Rpc_Image_Get_Blob_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Image_Get_Blob_Response_Error_Code_value = map[string]int32{ +var RpcImageGetBlobResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -493,25 +493,25 @@ var Rpc_Image_Get_Blob_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Image_Get_Blob_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Image_Get_Blob_Response_Error_Code_name, int32(x)) +func (x RpcImageGetBlobResponseErrorCode) String() string { + return proto.EnumName(RpcImageGetBlobResponseErrorCode_name, int32(x)) } -func (Rpc_Image_Get_Blob_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcImageGetBlobResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 1, 0, 0} } -type Rpc_Image_Get_File_Response_Error_Code int32 +type RpcImageGetFileResponseErrorCode int32 const ( - Rpc_Image_Get_File_Response_Error_NULL Rpc_Image_Get_File_Response_Error_Code = 0 - Rpc_Image_Get_File_Response_Error_UNKNOWN_ERROR Rpc_Image_Get_File_Response_Error_Code = 1 - Rpc_Image_Get_File_Response_Error_BAD_INPUT Rpc_Image_Get_File_Response_Error_Code = 2 - Rpc_Image_Get_File_Response_Error_NOT_FOUND Rpc_Image_Get_File_Response_Error_Code = 101 - Rpc_Image_Get_File_Response_Error_TIMEOUT Rpc_Image_Get_File_Response_Error_Code = 102 + RpcImageGetFileResponseError_NULL RpcImageGetFileResponseErrorCode = 0 + RpcImageGetFileResponseError_UNKNOWN_ERROR RpcImageGetFileResponseErrorCode = 1 + RpcImageGetFileResponseError_BAD_INPUT RpcImageGetFileResponseErrorCode = 2 + RpcImageGetFileResponseError_NOT_FOUND RpcImageGetFileResponseErrorCode = 101 + RpcImageGetFileResponseError_TIMEOUT RpcImageGetFileResponseErrorCode = 102 ) -var Rpc_Image_Get_File_Response_Error_Code_name = map[int32]string{ +var RpcImageGetFileResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", @@ -519,7 +519,7 @@ var Rpc_Image_Get_File_Response_Error_Code_name = map[int32]string{ 102: "TIMEOUT", } -var Rpc_Image_Get_File_Response_Error_Code_value = map[string]int32{ +var RpcImageGetFileResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, @@ -527,11 +527,11 @@ var Rpc_Image_Get_File_Response_Error_Code_value = map[string]int32{ "TIMEOUT": 102, } -func (x Rpc_Image_Get_File_Response_Error_Code) String() string { - return proto.EnumName(Rpc_Image_Get_File_Response_Error_Code_name, int32(x)) +func (x RpcImageGetFileResponseErrorCode) String() string { + return proto.EnumName(RpcImageGetFileResponseErrorCode_name, int32(x)) } -func (Rpc_Image_Get_File_Response_Error_Code) EnumDescriptor() ([]byte, []int) { +func (RpcImageGetFileResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 1, 0, 0} } @@ -571,21 +571,21 @@ func (m *Rpc) XXX_DiscardUnknown() { var xxx_messageInfo_Rpc proto.InternalMessageInfo -type Rpc_Block struct { +type RpcBlock struct { } -func (m *Rpc_Block) Reset() { *m = Rpc_Block{} } -func (m *Rpc_Block) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block) ProtoMessage() {} -func (*Rpc_Block) Descriptor() ([]byte, []int) { +func (m *RpcBlock) Reset() { *m = RpcBlock{} } +func (m *RpcBlock) String() string { return proto.CompactTextString(m) } +func (*RpcBlock) ProtoMessage() {} +func (*RpcBlock) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0} } -func (m *Rpc_Block) XXX_Unmarshal(b []byte) error { +func (m *RpcBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -595,33 +595,33 @@ func (m *Rpc_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rpc_Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block.Merge(m, src) +func (m *RpcBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlock.Merge(m, src) } -func (m *Rpc_Block) XXX_Size() int { +func (m *RpcBlock) XXX_Size() int { return m.Size() } -func (m *Rpc_Block) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block.DiscardUnknown(m) +func (m *RpcBlock) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlock.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block proto.InternalMessageInfo +var xxx_messageInfo_RpcBlock proto.InternalMessageInfo -type Rpc_Block_History struct { +type RpcBlockHistory struct { } -func (m *Rpc_Block_History) Reset() { *m = Rpc_Block_History{} } -func (m *Rpc_Block_History) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_History) ProtoMessage() {} -func (*Rpc_Block_History) Descriptor() ([]byte, []int) { +func (m *RpcBlockHistory) Reset() { *m = RpcBlockHistory{} } +func (m *RpcBlockHistory) String() string { return proto.CompactTextString(m) } +func (*RpcBlockHistory) ProtoMessage() {} +func (*RpcBlockHistory) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0} } -func (m *Rpc_Block_History) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockHistory) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_History) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_History.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockHistory.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -631,33 +631,33 @@ func (m *Rpc_Block_History) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *Rpc_Block_History) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_History.Merge(m, src) +func (m *RpcBlockHistory) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockHistory.Merge(m, src) } -func (m *Rpc_Block_History) XXX_Size() int { +func (m *RpcBlockHistory) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_History) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_History.DiscardUnknown(m) +func (m *RpcBlockHistory) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockHistory.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_History proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockHistory proto.InternalMessageInfo -type Rpc_Block_History_Move struct { +type RpcBlockHistoryMove struct { } -func (m *Rpc_Block_History_Move) Reset() { *m = Rpc_Block_History_Move{} } -func (m *Rpc_Block_History_Move) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_History_Move) ProtoMessage() {} -func (*Rpc_Block_History_Move) Descriptor() ([]byte, []int) { +func (m *RpcBlockHistoryMove) Reset() { *m = RpcBlockHistoryMove{} } +func (m *RpcBlockHistoryMove) String() string { return proto.CompactTextString(m) } +func (*RpcBlockHistoryMove) ProtoMessage() {} +func (*RpcBlockHistoryMove) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0} } -func (m *Rpc_Block_History_Move) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockHistoryMove) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_History_Move) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockHistoryMove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_History_Move.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockHistoryMove.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -667,36 +667,36 @@ func (m *Rpc_Block_History_Move) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *Rpc_Block_History_Move) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_History_Move.Merge(m, src) +func (m *RpcBlockHistoryMove) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockHistoryMove.Merge(m, src) } -func (m *Rpc_Block_History_Move) XXX_Size() int { +func (m *RpcBlockHistoryMove) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_History_Move) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_History_Move.DiscardUnknown(m) +func (m *RpcBlockHistoryMove) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockHistoryMove.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_History_Move proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockHistoryMove proto.InternalMessageInfo -type Rpc_Block_History_Move_Request struct { +type RpcBlockHistoryMoveRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` MoveForward bool `protobuf:"varint,3,opt,name=moveForward,proto3" json:"moveForward,omitempty"` } -func (m *Rpc_Block_History_Move_Request) Reset() { *m = Rpc_Block_History_Move_Request{} } -func (m *Rpc_Block_History_Move_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_History_Move_Request) ProtoMessage() {} -func (*Rpc_Block_History_Move_Request) Descriptor() ([]byte, []int) { +func (m *RpcBlockHistoryMoveRequest) Reset() { *m = RpcBlockHistoryMoveRequest{} } +func (m *RpcBlockHistoryMoveRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockHistoryMoveRequest) ProtoMessage() {} +func (*RpcBlockHistoryMoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 0} } -func (m *Rpc_Block_History_Move_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockHistoryMoveRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_History_Move_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockHistoryMoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_History_Move_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockHistoryMoveRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -706,55 +706,55 @@ func (m *Rpc_Block_History_Move_Request) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *Rpc_Block_History_Move_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_History_Move_Request.Merge(m, src) +func (m *RpcBlockHistoryMoveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockHistoryMoveRequest.Merge(m, src) } -func (m *Rpc_Block_History_Move_Request) XXX_Size() int { +func (m *RpcBlockHistoryMoveRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_History_Move_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_History_Move_Request.DiscardUnknown(m) +func (m *RpcBlockHistoryMoveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockHistoryMoveRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_History_Move_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockHistoryMoveRequest proto.InternalMessageInfo -func (m *Rpc_Block_History_Move_Request) GetId() string { +func (m *RpcBlockHistoryMoveRequest) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Block_History_Move_Request) GetContextBlockId() string { +func (m *RpcBlockHistoryMoveRequest) GetContextBlockId() string { if m != nil { return m.ContextBlockId } return "" } -func (m *Rpc_Block_History_Move_Request) GetMoveForward() bool { +func (m *RpcBlockHistoryMoveRequest) GetMoveForward() bool { if m != nil { return m.MoveForward } return false } -type Rpc_Block_History_Move_Response struct { - Error *Rpc_Block_History_Move_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcBlockHistoryMoveResponse struct { + Error *RpcBlockHistoryMoveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Block_History_Move_Response) Reset() { *m = Rpc_Block_History_Move_Response{} } -func (m *Rpc_Block_History_Move_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_History_Move_Response) ProtoMessage() {} -func (*Rpc_Block_History_Move_Response) Descriptor() ([]byte, []int) { +func (m *RpcBlockHistoryMoveResponse) Reset() { *m = RpcBlockHistoryMoveResponse{} } +func (m *RpcBlockHistoryMoveResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockHistoryMoveResponse) ProtoMessage() {} +func (*RpcBlockHistoryMoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 1} } -func (m *Rpc_Block_History_Move_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockHistoryMoveResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_History_Move_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockHistoryMoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_History_Move_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockHistoryMoveResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -764,42 +764,42 @@ func (m *Rpc_Block_History_Move_Response) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *Rpc_Block_History_Move_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_History_Move_Response.Merge(m, src) +func (m *RpcBlockHistoryMoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockHistoryMoveResponse.Merge(m, src) } -func (m *Rpc_Block_History_Move_Response) XXX_Size() int { +func (m *RpcBlockHistoryMoveResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_History_Move_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_History_Move_Response.DiscardUnknown(m) +func (m *RpcBlockHistoryMoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockHistoryMoveResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_History_Move_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockHistoryMoveResponse proto.InternalMessageInfo -func (m *Rpc_Block_History_Move_Response) GetError() *Rpc_Block_History_Move_Response_Error { +func (m *RpcBlockHistoryMoveResponse) GetError() *RpcBlockHistoryMoveResponseError { if m != nil { return m.Error } return nil } -type Rpc_Block_History_Move_Response_Error struct { - Code Rpc_Block_History_Move_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_History_Move_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcBlockHistoryMoveResponseError struct { + Code RpcBlockHistoryMoveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockHistoryMoveResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Block_History_Move_Response_Error) Reset() { *m = Rpc_Block_History_Move_Response_Error{} } -func (m *Rpc_Block_History_Move_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_History_Move_Response_Error) ProtoMessage() {} -func (*Rpc_Block_History_Move_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcBlockHistoryMoveResponseError) Reset() { *m = RpcBlockHistoryMoveResponseError{} } +func (m *RpcBlockHistoryMoveResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockHistoryMoveResponseError) ProtoMessage() {} +func (*RpcBlockHistoryMoveResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 0, 0, 1, 0} } -func (m *Rpc_Block_History_Move_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockHistoryMoveResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_History_Move_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockHistoryMoveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_History_Move_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockHistoryMoveResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -809,47 +809,47 @@ func (m *Rpc_Block_History_Move_Response_Error) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *Rpc_Block_History_Move_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_History_Move_Response_Error.Merge(m, src) +func (m *RpcBlockHistoryMoveResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockHistoryMoveResponseError.Merge(m, src) } -func (m *Rpc_Block_History_Move_Response_Error) XXX_Size() int { +func (m *RpcBlockHistoryMoveResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_History_Move_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_History_Move_Response_Error.DiscardUnknown(m) +func (m *RpcBlockHistoryMoveResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockHistoryMoveResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_History_Move_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockHistoryMoveResponseError proto.InternalMessageInfo -func (m *Rpc_Block_History_Move_Response_Error) GetCode() Rpc_Block_History_Move_Response_Error_Code { +func (m *RpcBlockHistoryMoveResponseError) GetCode() RpcBlockHistoryMoveResponseErrorCode { if m != nil { return m.Code } - return Rpc_Block_History_Move_Response_Error_NULL + return RpcBlockHistoryMoveResponseError_NULL } -func (m *Rpc_Block_History_Move_Response_Error) GetDescription() string { +func (m *RpcBlockHistoryMoveResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Block_Open struct { +type RpcBlockOpen struct { } -func (m *Rpc_Block_Open) Reset() { *m = Rpc_Block_Open{} } -func (m *Rpc_Block_Open) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Open) ProtoMessage() {} -func (*Rpc_Block_Open) Descriptor() ([]byte, []int) { +func (m *RpcBlockOpen) Reset() { *m = RpcBlockOpen{} } +func (m *RpcBlockOpen) String() string { return proto.CompactTextString(m) } +func (*RpcBlockOpen) ProtoMessage() {} +func (*RpcBlockOpen) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1} } -func (m *Rpc_Block_Open) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockOpen) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Open) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Open.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockOpen.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -859,34 +859,34 @@ func (m *Rpc_Block_Open) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return b[:n], nil } } -func (m *Rpc_Block_Open) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Open.Merge(m, src) +func (m *RpcBlockOpen) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockOpen.Merge(m, src) } -func (m *Rpc_Block_Open) XXX_Size() int { +func (m *RpcBlockOpen) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Open) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Open.DiscardUnknown(m) +func (m *RpcBlockOpen) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockOpen.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Open proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockOpen proto.InternalMessageInfo -type Rpc_Block_Open_Request struct { +type RpcBlockOpenRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *Rpc_Block_Open_Request) Reset() { *m = Rpc_Block_Open_Request{} } -func (m *Rpc_Block_Open_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Open_Request) ProtoMessage() {} -func (*Rpc_Block_Open_Request) Descriptor() ([]byte, []int) { +func (m *RpcBlockOpenRequest) Reset() { *m = RpcBlockOpenRequest{} } +func (m *RpcBlockOpenRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockOpenRequest) ProtoMessage() {} +func (*RpcBlockOpenRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 0} } -func (m *Rpc_Block_Open_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockOpenRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Open_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Open_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockOpenRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -896,42 +896,42 @@ func (m *Rpc_Block_Open_Request) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *Rpc_Block_Open_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Open_Request.Merge(m, src) +func (m *RpcBlockOpenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockOpenRequest.Merge(m, src) } -func (m *Rpc_Block_Open_Request) XXX_Size() int { +func (m *RpcBlockOpenRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Open_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Open_Request.DiscardUnknown(m) +func (m *RpcBlockOpenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockOpenRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Open_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockOpenRequest proto.InternalMessageInfo -func (m *Rpc_Block_Open_Request) GetId() string { +func (m *RpcBlockOpenRequest) GetId() string { if m != nil { return m.Id } return "" } -type Rpc_Block_Open_Response struct { - Error *Rpc_Block_Open_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockHeader *Model_Block_Header `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` +type RpcBlockOpenResponse struct { + Error *RpcBlockOpenResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockHeader *ModelBlockHeader `protobuf:"bytes,2,opt,name=blockHeader,proto3" json:"blockHeader,omitempty"` } -func (m *Rpc_Block_Open_Response) Reset() { *m = Rpc_Block_Open_Response{} } -func (m *Rpc_Block_Open_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Open_Response) ProtoMessage() {} -func (*Rpc_Block_Open_Response) Descriptor() ([]byte, []int) { +func (m *RpcBlockOpenResponse) Reset() { *m = RpcBlockOpenResponse{} } +func (m *RpcBlockOpenResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockOpenResponse) ProtoMessage() {} +func (*RpcBlockOpenResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 1} } -func (m *Rpc_Block_Open_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockOpenResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Open_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Open_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockOpenResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -941,49 +941,49 @@ func (m *Rpc_Block_Open_Response) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *Rpc_Block_Open_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Open_Response.Merge(m, src) +func (m *RpcBlockOpenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockOpenResponse.Merge(m, src) } -func (m *Rpc_Block_Open_Response) XXX_Size() int { +func (m *RpcBlockOpenResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Open_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Open_Response.DiscardUnknown(m) +func (m *RpcBlockOpenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockOpenResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Open_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockOpenResponse proto.InternalMessageInfo -func (m *Rpc_Block_Open_Response) GetError() *Rpc_Block_Open_Response_Error { +func (m *RpcBlockOpenResponse) GetError() *RpcBlockOpenResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Block_Open_Response) GetBlockHeader() *Model_Block_Header { +func (m *RpcBlockOpenResponse) GetBlockHeader() *ModelBlockHeader { if m != nil { return m.BlockHeader } return nil } -type Rpc_Block_Open_Response_Error struct { - Code Rpc_Block_Open_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_Open_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcBlockOpenResponseError struct { + Code RpcBlockOpenResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockOpenResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Block_Open_Response_Error) Reset() { *m = Rpc_Block_Open_Response_Error{} } -func (m *Rpc_Block_Open_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Open_Response_Error) ProtoMessage() {} -func (*Rpc_Block_Open_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcBlockOpenResponseError) Reset() { *m = RpcBlockOpenResponseError{} } +func (m *RpcBlockOpenResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockOpenResponseError) ProtoMessage() {} +func (*RpcBlockOpenResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 1, 1, 0} } -func (m *Rpc_Block_Open_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockOpenResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Open_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockOpenResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Open_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockOpenResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -993,47 +993,47 @@ func (m *Rpc_Block_Open_Response_Error) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *Rpc_Block_Open_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Open_Response_Error.Merge(m, src) +func (m *RpcBlockOpenResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockOpenResponseError.Merge(m, src) } -func (m *Rpc_Block_Open_Response_Error) XXX_Size() int { +func (m *RpcBlockOpenResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Open_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Open_Response_Error.DiscardUnknown(m) +func (m *RpcBlockOpenResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockOpenResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Open_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockOpenResponseError proto.InternalMessageInfo -func (m *Rpc_Block_Open_Response_Error) GetCode() Rpc_Block_Open_Response_Error_Code { +func (m *RpcBlockOpenResponseError) GetCode() RpcBlockOpenResponseErrorCode { if m != nil { return m.Code } - return Rpc_Block_Open_Response_Error_NULL + return RpcBlockOpenResponseError_NULL } -func (m *Rpc_Block_Open_Response_Error) GetDescription() string { +func (m *RpcBlockOpenResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Block_Create struct { +type RpcBlockCreate struct { } -func (m *Rpc_Block_Create) Reset() { *m = Rpc_Block_Create{} } -func (m *Rpc_Block_Create) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Create) ProtoMessage() {} -func (*Rpc_Block_Create) Descriptor() ([]byte, []int) { +func (m *RpcBlockCreate) Reset() { *m = RpcBlockCreate{} } +func (m *RpcBlockCreate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCreate) ProtoMessage() {} +func (*RpcBlockCreate) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2} } -func (m *Rpc_Block_Create) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Create.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockCreate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1043,35 +1043,35 @@ func (m *Rpc_Block_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *Rpc_Block_Create) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Create.Merge(m, src) +func (m *RpcBlockCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreate.Merge(m, src) } -func (m *Rpc_Block_Create) XXX_Size() int { +func (m *RpcBlockCreate) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Create) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Create.DiscardUnknown(m) +func (m *RpcBlockCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreate.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Create proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockCreate proto.InternalMessageInfo -type Rpc_Block_Create_Request struct { - Type Model_Block_Header_Type `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` - ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` +type RpcBlockCreateRequest struct { + Type ModelBlockHeaderType `protobuf:"varint,1,opt,name=type,proto3,enum=anytype.ModelBlockHeaderType" json:"type,omitempty"` + ContextBlockId string `protobuf:"bytes,2,opt,name=contextBlockId,proto3" json:"contextBlockId,omitempty"` } -func (m *Rpc_Block_Create_Request) Reset() { *m = Rpc_Block_Create_Request{} } -func (m *Rpc_Block_Create_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Create_Request) ProtoMessage() {} -func (*Rpc_Block_Create_Request) Descriptor() ([]byte, []int) { +func (m *RpcBlockCreateRequest) Reset() { *m = RpcBlockCreateRequest{} } +func (m *RpcBlockCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCreateRequest) ProtoMessage() {} +func (*RpcBlockCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 0} } -func (m *Rpc_Block_Create_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockCreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Create_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockCreateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1081,48 +1081,48 @@ func (m *Rpc_Block_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Rpc_Block_Create_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Create_Request.Merge(m, src) +func (m *RpcBlockCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreateRequest.Merge(m, src) } -func (m *Rpc_Block_Create_Request) XXX_Size() int { +func (m *RpcBlockCreateRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Create_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Create_Request.DiscardUnknown(m) +func (m *RpcBlockCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreateRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Create_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockCreateRequest proto.InternalMessageInfo -func (m *Rpc_Block_Create_Request) GetType() Model_Block_Header_Type { +func (m *RpcBlockCreateRequest) GetType() ModelBlockHeaderType { if m != nil { return m.Type } - return Model_Block_Header_DASHBOARD + return ModelBlockHeader_DASHBOARD } -func (m *Rpc_Block_Create_Request) GetContextBlockId() string { +func (m *RpcBlockCreateRequest) GetContextBlockId() string { if m != nil { return m.ContextBlockId } return "" } -type Rpc_Block_Create_Response struct { - Error *Rpc_Block_Create_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcBlockCreateResponse struct { + Error *RpcBlockCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Block_Create_Response) Reset() { *m = Rpc_Block_Create_Response{} } -func (m *Rpc_Block_Create_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Create_Response) ProtoMessage() {} -func (*Rpc_Block_Create_Response) Descriptor() ([]byte, []int) { +func (m *RpcBlockCreateResponse) Reset() { *m = RpcBlockCreateResponse{} } +func (m *RpcBlockCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCreateResponse) ProtoMessage() {} +func (*RpcBlockCreateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 1} } -func (m *Rpc_Block_Create_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Create_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockCreateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1132,42 +1132,42 @@ func (m *Rpc_Block_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Block_Create_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Create_Response.Merge(m, src) +func (m *RpcBlockCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreateResponse.Merge(m, src) } -func (m *Rpc_Block_Create_Response) XXX_Size() int { +func (m *RpcBlockCreateResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Create_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Create_Response.DiscardUnknown(m) +func (m *RpcBlockCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreateResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Create_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockCreateResponse proto.InternalMessageInfo -func (m *Rpc_Block_Create_Response) GetError() *Rpc_Block_Create_Response_Error { +func (m *RpcBlockCreateResponse) GetError() *RpcBlockCreateResponseError { if m != nil { return m.Error } return nil } -type Rpc_Block_Create_Response_Error struct { - Code Rpc_Block_Create_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_Create_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcBlockCreateResponseError struct { + Code RpcBlockCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Block_Create_Response_Error) Reset() { *m = Rpc_Block_Create_Response_Error{} } -func (m *Rpc_Block_Create_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Create_Response_Error) ProtoMessage() {} -func (*Rpc_Block_Create_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcBlockCreateResponseError) Reset() { *m = RpcBlockCreateResponseError{} } +func (m *RpcBlockCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCreateResponseError) ProtoMessage() {} +func (*RpcBlockCreateResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 2, 1, 0} } -func (m *Rpc_Block_Create_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockCreateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Create_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Create_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockCreateResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1177,47 +1177,47 @@ func (m *Rpc_Block_Create_Response_Error) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *Rpc_Block_Create_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Create_Response_Error.Merge(m, src) +func (m *RpcBlockCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreateResponseError.Merge(m, src) } -func (m *Rpc_Block_Create_Response_Error) XXX_Size() int { +func (m *RpcBlockCreateResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Create_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Create_Response_Error.DiscardUnknown(m) +func (m *RpcBlockCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreateResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Create_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockCreateResponseError proto.InternalMessageInfo -func (m *Rpc_Block_Create_Response_Error) GetCode() Rpc_Block_Create_Response_Error_Code { +func (m *RpcBlockCreateResponseError) GetCode() RpcBlockCreateResponseErrorCode { if m != nil { return m.Code } - return Rpc_Block_Create_Response_Error_NULL + return RpcBlockCreateResponseError_NULL } -func (m *Rpc_Block_Create_Response_Error) GetDescription() string { +func (m *RpcBlockCreateResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Block_Update struct { +type RpcBlockUpdate struct { } -func (m *Rpc_Block_Update) Reset() { *m = Rpc_Block_Update{} } -func (m *Rpc_Block_Update) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Update) ProtoMessage() {} -func (*Rpc_Block_Update) Descriptor() ([]byte, []int) { +func (m *RpcBlockUpdate) Reset() { *m = RpcBlockUpdate{} } +func (m *RpcBlockUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUpdate) ProtoMessage() {} +func (*RpcBlockUpdate) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3} } -func (m *Rpc_Block_Update) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Update.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockUpdate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1227,34 +1227,34 @@ func (m *Rpc_Block_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *Rpc_Block_Update) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Update.Merge(m, src) +func (m *RpcBlockUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUpdate.Merge(m, src) } -func (m *Rpc_Block_Update) XXX_Size() int { +func (m *RpcBlockUpdate) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Update) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Update.DiscardUnknown(m) +func (m *RpcBlockUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUpdate.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Update proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockUpdate proto.InternalMessageInfo -type Rpc_Block_Update_Request struct { +type RpcBlockUpdateRequest struct { Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` } -func (m *Rpc_Block_Update_Request) Reset() { *m = Rpc_Block_Update_Request{} } -func (m *Rpc_Block_Update_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Update_Request) ProtoMessage() {} -func (*Rpc_Block_Update_Request) Descriptor() ([]byte, []int) { +func (m *RpcBlockUpdateRequest) Reset() { *m = RpcBlockUpdateRequest{} } +func (m *RpcBlockUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUpdateRequest) ProtoMessage() {} +func (*RpcBlockUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 0} } -func (m *Rpc_Block_Update_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockUpdateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Update_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Update_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockUpdateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1264,41 +1264,41 @@ func (m *Rpc_Block_Update_Request) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Rpc_Block_Update_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Update_Request.Merge(m, src) +func (m *RpcBlockUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUpdateRequest.Merge(m, src) } -func (m *Rpc_Block_Update_Request) XXX_Size() int { +func (m *RpcBlockUpdateRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Update_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Update_Request.DiscardUnknown(m) +func (m *RpcBlockUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUpdateRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Update_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockUpdateRequest proto.InternalMessageInfo -func (m *Rpc_Block_Update_Request) GetChanges() *BlockChanges { +func (m *RpcBlockUpdateRequest) GetChanges() *BlockChanges { if m != nil { return m.Changes } return nil } -type Rpc_Block_Update_Response struct { - Error *Rpc_Block_Update_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcBlockUpdateResponse struct { + Error *RpcBlockUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Block_Update_Response) Reset() { *m = Rpc_Block_Update_Response{} } -func (m *Rpc_Block_Update_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Update_Response) ProtoMessage() {} -func (*Rpc_Block_Update_Response) Descriptor() ([]byte, []int) { +func (m *RpcBlockUpdateResponse) Reset() { *m = RpcBlockUpdateResponse{} } +func (m *RpcBlockUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUpdateResponse) ProtoMessage() {} +func (*RpcBlockUpdateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 1} } -func (m *Rpc_Block_Update_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockUpdateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Update_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Update_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockUpdateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1308,42 +1308,42 @@ func (m *Rpc_Block_Update_Response) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Block_Update_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Update_Response.Merge(m, src) +func (m *RpcBlockUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUpdateResponse.Merge(m, src) } -func (m *Rpc_Block_Update_Response) XXX_Size() int { +func (m *RpcBlockUpdateResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Update_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Update_Response.DiscardUnknown(m) +func (m *RpcBlockUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUpdateResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Update_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockUpdateResponse proto.InternalMessageInfo -func (m *Rpc_Block_Update_Response) GetError() *Rpc_Block_Update_Response_Error { +func (m *RpcBlockUpdateResponse) GetError() *RpcBlockUpdateResponseError { if m != nil { return m.Error } return nil } -type Rpc_Block_Update_Response_Error struct { - Code Rpc_Block_Update_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Block_Update_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcBlockUpdateResponseError struct { + Code RpcBlockUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Block_Update_Response_Error) Reset() { *m = Rpc_Block_Update_Response_Error{} } -func (m *Rpc_Block_Update_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Block_Update_Response_Error) ProtoMessage() {} -func (*Rpc_Block_Update_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcBlockUpdateResponseError) Reset() { *m = RpcBlockUpdateResponseError{} } +func (m *RpcBlockUpdateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUpdateResponseError) ProtoMessage() {} +func (*RpcBlockUpdateResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 0, 3, 1, 0} } -func (m *Rpc_Block_Update_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockUpdateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Block_Update_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Block_Update_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockUpdateResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1353,47 +1353,47 @@ func (m *Rpc_Block_Update_Response_Error) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *Rpc_Block_Update_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Block_Update_Response_Error.Merge(m, src) +func (m *RpcBlockUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUpdateResponseError.Merge(m, src) } -func (m *Rpc_Block_Update_Response_Error) XXX_Size() int { +func (m *RpcBlockUpdateResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Block_Update_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Block_Update_Response_Error.DiscardUnknown(m) +func (m *RpcBlockUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUpdateResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Block_Update_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockUpdateResponseError proto.InternalMessageInfo -func (m *Rpc_Block_Update_Response_Error) GetCode() Rpc_Block_Update_Response_Error_Code { +func (m *RpcBlockUpdateResponseError) GetCode() RpcBlockUpdateResponseErrorCode { if m != nil { return m.Code } - return Rpc_Block_Update_Response_Error_NULL + return RpcBlockUpdateResponseError_NULL } -func (m *Rpc_Block_Update_Response_Error) GetDescription() string { +func (m *RpcBlockUpdateResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Wallet struct { +type RpcWallet struct { } -func (m *Rpc_Wallet) Reset() { *m = Rpc_Wallet{} } -func (m *Rpc_Wallet) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet) ProtoMessage() {} -func (*Rpc_Wallet) Descriptor() ([]byte, []int) { +func (m *RpcWallet) Reset() { *m = RpcWallet{} } +func (m *RpcWallet) String() string { return proto.CompactTextString(m) } +func (*RpcWallet) ProtoMessage() {} +func (*RpcWallet) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1} } -func (m *Rpc_Wallet) XXX_Unmarshal(b []byte) error { +func (m *RpcWallet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWallet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1403,33 +1403,33 @@ func (m *Rpc_Wallet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rpc_Wallet) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet.Merge(m, src) +func (m *RpcWallet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWallet.Merge(m, src) } -func (m *Rpc_Wallet) XXX_Size() int { +func (m *RpcWallet) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet.DiscardUnknown(m) +func (m *RpcWallet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWallet.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet proto.InternalMessageInfo +var xxx_messageInfo_RpcWallet proto.InternalMessageInfo -type Rpc_Wallet_Create struct { +type RpcWalletCreate struct { } -func (m *Rpc_Wallet_Create) Reset() { *m = Rpc_Wallet_Create{} } -func (m *Rpc_Wallet_Create) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Create) ProtoMessage() {} -func (*Rpc_Wallet_Create) Descriptor() ([]byte, []int) { +func (m *RpcWalletCreate) Reset() { *m = RpcWalletCreate{} } +func (m *RpcWalletCreate) String() string { return proto.CompactTextString(m) } +func (*RpcWalletCreate) ProtoMessage() {} +func (*RpcWalletCreate) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0} } -func (m *Rpc_Wallet_Create) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Create.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletCreate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1439,36 +1439,36 @@ func (m *Rpc_Wallet_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *Rpc_Wallet_Create) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Create.Merge(m, src) +func (m *RpcWalletCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletCreate.Merge(m, src) } -func (m *Rpc_Wallet_Create) XXX_Size() int { +func (m *RpcWalletCreate) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Create) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Create.DiscardUnknown(m) +func (m *RpcWalletCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletCreate.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Create proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletCreate proto.InternalMessageInfo //* // Front-end-to-middleware request to create a new wallet -type Rpc_Wallet_Create_Request struct { +type RpcWalletCreateRequest struct { RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` } -func (m *Rpc_Wallet_Create_Request) Reset() { *m = Rpc_Wallet_Create_Request{} } -func (m *Rpc_Wallet_Create_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Create_Request) ProtoMessage() {} -func (*Rpc_Wallet_Create_Request) Descriptor() ([]byte, []int) { +func (m *RpcWalletCreateRequest) Reset() { *m = RpcWalletCreateRequest{} } +func (m *RpcWalletCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWalletCreateRequest) ProtoMessage() {} +func (*RpcWalletCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 0} } -func (m *Rpc_Wallet_Create_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletCreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Create_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletCreateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1478,19 +1478,19 @@ func (m *Rpc_Wallet_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Wallet_Create_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Create_Request.Merge(m, src) +func (m *RpcWalletCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletCreateRequest.Merge(m, src) } -func (m *Rpc_Wallet_Create_Request) XXX_Size() int { +func (m *RpcWalletCreateRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Create_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Create_Request.DiscardUnknown(m) +func (m *RpcWalletCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletCreateRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Create_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletCreateRequest proto.InternalMessageInfo -func (m *Rpc_Wallet_Create_Request) GetRootPath() string { +func (m *RpcWalletCreateRequest) GetRootPath() string { if m != nil { return m.RootPath } @@ -1499,23 +1499,23 @@ func (m *Rpc_Wallet_Create_Request) GetRootPath() string { //* // Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error -type Rpc_Wallet_Create_Response struct { - Error *Rpc_Wallet_Create_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` +type RpcWalletCreateResponse struct { + Error *RpcWalletCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` } -func (m *Rpc_Wallet_Create_Response) Reset() { *m = Rpc_Wallet_Create_Response{} } -func (m *Rpc_Wallet_Create_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Create_Response) ProtoMessage() {} -func (*Rpc_Wallet_Create_Response) Descriptor() ([]byte, []int) { +func (m *RpcWalletCreateResponse) Reset() { *m = RpcWalletCreateResponse{} } +func (m *RpcWalletCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWalletCreateResponse) ProtoMessage() {} +func (*RpcWalletCreateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 1} } -func (m *Rpc_Wallet_Create_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Create_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletCreateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1525,49 +1525,49 @@ func (m *Rpc_Wallet_Create_Response) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Wallet_Create_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Create_Response.Merge(m, src) +func (m *RpcWalletCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletCreateResponse.Merge(m, src) } -func (m *Rpc_Wallet_Create_Response) XXX_Size() int { +func (m *RpcWalletCreateResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Create_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Create_Response.DiscardUnknown(m) +func (m *RpcWalletCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletCreateResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Create_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletCreateResponse proto.InternalMessageInfo -func (m *Rpc_Wallet_Create_Response) GetError() *Rpc_Wallet_Create_Response_Error { +func (m *RpcWalletCreateResponse) GetError() *RpcWalletCreateResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Wallet_Create_Response) GetMnemonic() string { +func (m *RpcWalletCreateResponse) GetMnemonic() string { if m != nil { return m.Mnemonic } return "" } -type Rpc_Wallet_Create_Response_Error struct { - Code Rpc_Wallet_Create_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Wallet_Create_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcWalletCreateResponseError struct { + Code RpcWalletCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWalletCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Wallet_Create_Response_Error) Reset() { *m = Rpc_Wallet_Create_Response_Error{} } -func (m *Rpc_Wallet_Create_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Create_Response_Error) ProtoMessage() {} -func (*Rpc_Wallet_Create_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcWalletCreateResponseError) Reset() { *m = RpcWalletCreateResponseError{} } +func (m *RpcWalletCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWalletCreateResponseError) ProtoMessage() {} +func (*RpcWalletCreateResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 0, 1, 0} } -func (m *Rpc_Wallet_Create_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletCreateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Create_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Create_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletCreateResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1577,47 +1577,47 @@ func (m *Rpc_Wallet_Create_Response_Error) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *Rpc_Wallet_Create_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Create_Response_Error.Merge(m, src) +func (m *RpcWalletCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletCreateResponseError.Merge(m, src) } -func (m *Rpc_Wallet_Create_Response_Error) XXX_Size() int { +func (m *RpcWalletCreateResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Create_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Create_Response_Error.DiscardUnknown(m) +func (m *RpcWalletCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletCreateResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Create_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletCreateResponseError proto.InternalMessageInfo -func (m *Rpc_Wallet_Create_Response_Error) GetCode() Rpc_Wallet_Create_Response_Error_Code { +func (m *RpcWalletCreateResponseError) GetCode() RpcWalletCreateResponseErrorCode { if m != nil { return m.Code } - return Rpc_Wallet_Create_Response_Error_NULL + return RpcWalletCreateResponseError_NULL } -func (m *Rpc_Wallet_Create_Response_Error) GetDescription() string { +func (m *RpcWalletCreateResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Wallet_Recover struct { +type RpcWalletRecover struct { } -func (m *Rpc_Wallet_Recover) Reset() { *m = Rpc_Wallet_Recover{} } -func (m *Rpc_Wallet_Recover) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Recover) ProtoMessage() {} -func (*Rpc_Wallet_Recover) Descriptor() ([]byte, []int) { +func (m *RpcWalletRecover) Reset() { *m = RpcWalletRecover{} } +func (m *RpcWalletRecover) String() string { return proto.CompactTextString(m) } +func (*RpcWalletRecover) ProtoMessage() {} +func (*RpcWalletRecover) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1} } -func (m *Rpc_Wallet_Recover) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletRecover) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Recover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletRecover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Recover.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletRecover.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1627,37 +1627,37 @@ func (m *Rpc_Wallet_Recover) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Rpc_Wallet_Recover) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Recover.Merge(m, src) +func (m *RpcWalletRecover) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletRecover.Merge(m, src) } -func (m *Rpc_Wallet_Recover) XXX_Size() int { +func (m *RpcWalletRecover) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Recover) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Recover.DiscardUnknown(m) +func (m *RpcWalletRecover) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletRecover.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Recover proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletRecover proto.InternalMessageInfo //* // Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath -type Rpc_Wallet_Recover_Request struct { +type RpcWalletRecoverRequest struct { RootPath string `protobuf:"bytes,1,opt,name=rootPath,proto3" json:"rootPath,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` } -func (m *Rpc_Wallet_Recover_Request) Reset() { *m = Rpc_Wallet_Recover_Request{} } -func (m *Rpc_Wallet_Recover_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Recover_Request) ProtoMessage() {} -func (*Rpc_Wallet_Recover_Request) Descriptor() ([]byte, []int) { +func (m *RpcWalletRecoverRequest) Reset() { *m = RpcWalletRecoverRequest{} } +func (m *RpcWalletRecoverRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWalletRecoverRequest) ProtoMessage() {} +func (*RpcWalletRecoverRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 0} } -func (m *Rpc_Wallet_Recover_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletRecoverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Recover_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Recover_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletRecoverRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1667,26 +1667,26 @@ func (m *Rpc_Wallet_Recover_Request) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Wallet_Recover_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Recover_Request.Merge(m, src) +func (m *RpcWalletRecoverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletRecoverRequest.Merge(m, src) } -func (m *Rpc_Wallet_Recover_Request) XXX_Size() int { +func (m *RpcWalletRecoverRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Recover_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Recover_Request.DiscardUnknown(m) +func (m *RpcWalletRecoverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletRecoverRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Recover_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletRecoverRequest proto.InternalMessageInfo -func (m *Rpc_Wallet_Recover_Request) GetRootPath() string { +func (m *RpcWalletRecoverRequest) GetRootPath() string { if m != nil { return m.RootPath } return "" } -func (m *Rpc_Wallet_Recover_Request) GetMnemonic() string { +func (m *RpcWalletRecoverRequest) GetMnemonic() string { if m != nil { return m.Mnemonic } @@ -1695,22 +1695,22 @@ func (m *Rpc_Wallet_Recover_Request) GetMnemonic() string { //* // Middleware-to-front-end response, that can contain a NULL error or a non-NULL error -type Rpc_Wallet_Recover_Response struct { - Error *Rpc_Wallet_Recover_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcWalletRecoverResponse struct { + Error *RpcWalletRecoverResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Wallet_Recover_Response) Reset() { *m = Rpc_Wallet_Recover_Response{} } -func (m *Rpc_Wallet_Recover_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Recover_Response) ProtoMessage() {} -func (*Rpc_Wallet_Recover_Response) Descriptor() ([]byte, []int) { +func (m *RpcWalletRecoverResponse) Reset() { *m = RpcWalletRecoverResponse{} } +func (m *RpcWalletRecoverResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWalletRecoverResponse) ProtoMessage() {} +func (*RpcWalletRecoverResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 1} } -func (m *Rpc_Wallet_Recover_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletRecoverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Recover_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Recover_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletRecoverResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1720,42 +1720,42 @@ func (m *Rpc_Wallet_Recover_Response) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Wallet_Recover_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Recover_Response.Merge(m, src) +func (m *RpcWalletRecoverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletRecoverResponse.Merge(m, src) } -func (m *Rpc_Wallet_Recover_Response) XXX_Size() int { +func (m *RpcWalletRecoverResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Recover_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Recover_Response.DiscardUnknown(m) +func (m *RpcWalletRecoverResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletRecoverResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Recover_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletRecoverResponse proto.InternalMessageInfo -func (m *Rpc_Wallet_Recover_Response) GetError() *Rpc_Wallet_Recover_Response_Error { +func (m *RpcWalletRecoverResponse) GetError() *RpcWalletRecoverResponseError { if m != nil { return m.Error } return nil } -type Rpc_Wallet_Recover_Response_Error struct { - Code Rpc_Wallet_Recover_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Wallet_Recover_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcWalletRecoverResponseError struct { + Code RpcWalletRecoverResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWalletRecoverResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Wallet_Recover_Response_Error) Reset() { *m = Rpc_Wallet_Recover_Response_Error{} } -func (m *Rpc_Wallet_Recover_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Wallet_Recover_Response_Error) ProtoMessage() {} -func (*Rpc_Wallet_Recover_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcWalletRecoverResponseError) Reset() { *m = RpcWalletRecoverResponseError{} } +func (m *RpcWalletRecoverResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWalletRecoverResponseError) ProtoMessage() {} +func (*RpcWalletRecoverResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 1, 1, 1, 0} } -func (m *Rpc_Wallet_Recover_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcWalletRecoverResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Wallet_Recover_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWalletRecoverResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Wallet_Recover_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWalletRecoverResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1765,47 +1765,47 @@ func (m *Rpc_Wallet_Recover_Response_Error) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *Rpc_Wallet_Recover_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Wallet_Recover_Response_Error.Merge(m, src) +func (m *RpcWalletRecoverResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWalletRecoverResponseError.Merge(m, src) } -func (m *Rpc_Wallet_Recover_Response_Error) XXX_Size() int { +func (m *RpcWalletRecoverResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Wallet_Recover_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Wallet_Recover_Response_Error.DiscardUnknown(m) +func (m *RpcWalletRecoverResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWalletRecoverResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Wallet_Recover_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcWalletRecoverResponseError proto.InternalMessageInfo -func (m *Rpc_Wallet_Recover_Response_Error) GetCode() Rpc_Wallet_Recover_Response_Error_Code { +func (m *RpcWalletRecoverResponseError) GetCode() RpcWalletRecoverResponseErrorCode { if m != nil { return m.Code } - return Rpc_Wallet_Recover_Response_Error_NULL + return RpcWalletRecoverResponseError_NULL } -func (m *Rpc_Wallet_Recover_Response_Error) GetDescription() string { +func (m *RpcWalletRecoverResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Account struct { +type RpcAccount struct { } -func (m *Rpc_Account) Reset() { *m = Rpc_Account{} } -func (m *Rpc_Account) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account) ProtoMessage() {} -func (*Rpc_Account) Descriptor() ([]byte, []int) { +func (m *RpcAccount) Reset() { *m = RpcAccount{} } +func (m *RpcAccount) String() string { return proto.CompactTextString(m) } +func (*RpcAccount) ProtoMessage() {} +func (*RpcAccount) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2} } -func (m *Rpc_Account) XXX_Unmarshal(b []byte) error { +func (m *RpcAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccount.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1815,33 +1815,33 @@ func (m *Rpc_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Rpc_Account) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account.Merge(m, src) +func (m *RpcAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccount.Merge(m, src) } -func (m *Rpc_Account) XXX_Size() int { +func (m *RpcAccount) XXX_Size() int { return m.Size() } -func (m *Rpc_Account) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account.DiscardUnknown(m) +func (m *RpcAccount) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccount.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account proto.InternalMessageInfo +var xxx_messageInfo_RpcAccount proto.InternalMessageInfo -type Rpc_Account_Create struct { +type RpcAccountCreate struct { } -func (m *Rpc_Account_Create) Reset() { *m = Rpc_Account_Create{} } -func (m *Rpc_Account_Create) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Create) ProtoMessage() {} -func (*Rpc_Account_Create) Descriptor() ([]byte, []int) { +func (m *RpcAccountCreate) Reset() { *m = RpcAccountCreate{} } +func (m *RpcAccountCreate) String() string { return proto.CompactTextString(m) } +func (*RpcAccountCreate) ProtoMessage() {} +func (*RpcAccountCreate) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0} } -func (m *Rpc_Account_Create) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Create.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountCreate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1851,40 +1851,40 @@ func (m *Rpc_Account_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Rpc_Account_Create) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Create.Merge(m, src) +func (m *RpcAccountCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountCreate.Merge(m, src) } -func (m *Rpc_Account_Create) XXX_Size() int { +func (m *RpcAccountCreate) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Create) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Create.DiscardUnknown(m) +func (m *RpcAccountCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountCreate.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Create proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountCreate proto.InternalMessageInfo //* // Front end to middleware request-to-create-an account -type Rpc_Account_Create_Request struct { +type RpcAccountCreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Avatar: - // *Rpc_Account_Create_Request_AvatarLocalPath - // *Rpc_Account_Create_Request_AvatarColor - Avatar isRpc_Account_Create_RequestAvatar `protobuf_oneof:"avatar"` + // *RpcAccountCreateRequestAvatarOfAvatarLocalPath + // *RpcAccountCreateRequestAvatarOfAvatarColor + Avatar isRpcAccountCreateRequestAvatar `protobuf_oneof:"avatar"` } -func (m *Rpc_Account_Create_Request) Reset() { *m = Rpc_Account_Create_Request{} } -func (m *Rpc_Account_Create_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Create_Request) ProtoMessage() {} -func (*Rpc_Account_Create_Request) Descriptor() ([]byte, []int) { +func (m *RpcAccountCreateRequest) Reset() { *m = RpcAccountCreateRequest{} } +func (m *RpcAccountCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAccountCreateRequest) ProtoMessage() {} +func (*RpcAccountCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 0} } -func (m *Rpc_Account_Create_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountCreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Create_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Create_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountCreateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1894,89 +1894,89 @@ func (m *Rpc_Account_Create_Request) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Account_Create_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Create_Request.Merge(m, src) +func (m *RpcAccountCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountCreateRequest.Merge(m, src) } -func (m *Rpc_Account_Create_Request) XXX_Size() int { +func (m *RpcAccountCreateRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Create_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Create_Request.DiscardUnknown(m) +func (m *RpcAccountCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountCreateRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Create_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountCreateRequest proto.InternalMessageInfo -type isRpc_Account_Create_RequestAvatar interface { - isRpc_Account_Create_RequestAvatar() +type isRpcAccountCreateRequestAvatar interface { + isRpcAccountCreateRequestAvatar() MarshalTo([]byte) (int, error) Size() int } -type Rpc_Account_Create_Request_AvatarLocalPath struct { +type RpcAccountCreateRequestAvatarOfAvatarLocalPath struct { AvatarLocalPath string `protobuf:"bytes,2,opt,name=avatarLocalPath,proto3,oneof" json:"avatarLocalPath,omitempty"` } -type Rpc_Account_Create_Request_AvatarColor struct { +type RpcAccountCreateRequestAvatarOfAvatarColor struct { AvatarColor string `protobuf:"bytes,3,opt,name=avatarColor,proto3,oneof" json:"avatarColor,omitempty"` } -func (*Rpc_Account_Create_Request_AvatarLocalPath) isRpc_Account_Create_RequestAvatar() {} -func (*Rpc_Account_Create_Request_AvatarColor) isRpc_Account_Create_RequestAvatar() {} +func (*RpcAccountCreateRequestAvatarOfAvatarLocalPath) isRpcAccountCreateRequestAvatar() {} +func (*RpcAccountCreateRequestAvatarOfAvatarColor) isRpcAccountCreateRequestAvatar() {} -func (m *Rpc_Account_Create_Request) GetAvatar() isRpc_Account_Create_RequestAvatar { +func (m *RpcAccountCreateRequest) GetAvatar() isRpcAccountCreateRequestAvatar { if m != nil { return m.Avatar } return nil } -func (m *Rpc_Account_Create_Request) GetName() string { +func (m *RpcAccountCreateRequest) GetName() string { if m != nil { return m.Name } return "" } -func (m *Rpc_Account_Create_Request) GetAvatarLocalPath() string { - if x, ok := m.GetAvatar().(*Rpc_Account_Create_Request_AvatarLocalPath); ok { +func (m *RpcAccountCreateRequest) GetAvatarLocalPath() string { + if x, ok := m.GetAvatar().(*RpcAccountCreateRequestAvatarOfAvatarLocalPath); ok { return x.AvatarLocalPath } return "" } -func (m *Rpc_Account_Create_Request) GetAvatarColor() string { - if x, ok := m.GetAvatar().(*Rpc_Account_Create_Request_AvatarColor); ok { +func (m *RpcAccountCreateRequest) GetAvatarColor() string { + if x, ok := m.GetAvatar().(*RpcAccountCreateRequestAvatarOfAvatarColor); ok { return x.AvatarColor } return "" } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Rpc_Account_Create_Request) XXX_OneofWrappers() []interface{} { +func (*RpcAccountCreateRequest) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Rpc_Account_Create_Request_AvatarLocalPath)(nil), - (*Rpc_Account_Create_Request_AvatarColor)(nil), + (*RpcAccountCreateRequestAvatarOfAvatarLocalPath)(nil), + (*RpcAccountCreateRequestAvatarOfAvatarColor)(nil), } } //* // Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account -type Rpc_Account_Create_Response struct { - Error *Rpc_Account_Create_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Account *Model_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +type RpcAccountCreateResponse struct { + Error *RpcAccountCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Account *ModelAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` } -func (m *Rpc_Account_Create_Response) Reset() { *m = Rpc_Account_Create_Response{} } -func (m *Rpc_Account_Create_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Create_Response) ProtoMessage() {} -func (*Rpc_Account_Create_Response) Descriptor() ([]byte, []int) { +func (m *RpcAccountCreateResponse) Reset() { *m = RpcAccountCreateResponse{} } +func (m *RpcAccountCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcAccountCreateResponse) ProtoMessage() {} +func (*RpcAccountCreateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 1} } -func (m *Rpc_Account_Create_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Create_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Create_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountCreateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1986,49 +1986,49 @@ func (m *Rpc_Account_Create_Response) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Account_Create_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Create_Response.Merge(m, src) +func (m *RpcAccountCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountCreateResponse.Merge(m, src) } -func (m *Rpc_Account_Create_Response) XXX_Size() int { +func (m *RpcAccountCreateResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Create_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Create_Response.DiscardUnknown(m) +func (m *RpcAccountCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountCreateResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Create_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountCreateResponse proto.InternalMessageInfo -func (m *Rpc_Account_Create_Response) GetError() *Rpc_Account_Create_Response_Error { +func (m *RpcAccountCreateResponse) GetError() *RpcAccountCreateResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Account_Create_Response) GetAccount() *Model_Account { +func (m *RpcAccountCreateResponse) GetAccount() *ModelAccount { if m != nil { return m.Account } return nil } -type Rpc_Account_Create_Response_Error struct { - Code Rpc_Account_Create_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Account_Create_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcAccountCreateResponseError struct { + Code RpcAccountCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcAccountCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Account_Create_Response_Error) Reset() { *m = Rpc_Account_Create_Response_Error{} } -func (m *Rpc_Account_Create_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Create_Response_Error) ProtoMessage() {} -func (*Rpc_Account_Create_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcAccountCreateResponseError) Reset() { *m = RpcAccountCreateResponseError{} } +func (m *RpcAccountCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcAccountCreateResponseError) ProtoMessage() {} +func (*RpcAccountCreateResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 0, 1, 0} } -func (m *Rpc_Account_Create_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountCreateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Create_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Create_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountCreateResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2038,47 +2038,47 @@ func (m *Rpc_Account_Create_Response_Error) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *Rpc_Account_Create_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Create_Response_Error.Merge(m, src) +func (m *RpcAccountCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountCreateResponseError.Merge(m, src) } -func (m *Rpc_Account_Create_Response_Error) XXX_Size() int { +func (m *RpcAccountCreateResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Create_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Create_Response_Error.DiscardUnknown(m) +func (m *RpcAccountCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountCreateResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Create_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountCreateResponseError proto.InternalMessageInfo -func (m *Rpc_Account_Create_Response_Error) GetCode() Rpc_Account_Create_Response_Error_Code { +func (m *RpcAccountCreateResponseError) GetCode() RpcAccountCreateResponseErrorCode { if m != nil { return m.Code } - return Rpc_Account_Create_Response_Error_NULL + return RpcAccountCreateResponseError_NULL } -func (m *Rpc_Account_Create_Response_Error) GetDescription() string { +func (m *RpcAccountCreateResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Account_Recover struct { +type RpcAccountRecover struct { } -func (m *Rpc_Account_Recover) Reset() { *m = Rpc_Account_Recover{} } -func (m *Rpc_Account_Recover) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Recover) ProtoMessage() {} -func (*Rpc_Account_Recover) Descriptor() ([]byte, []int) { +func (m *RpcAccountRecover) Reset() { *m = RpcAccountRecover{} } +func (m *RpcAccountRecover) String() string { return proto.CompactTextString(m) } +func (*RpcAccountRecover) ProtoMessage() {} +func (*RpcAccountRecover) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1} } -func (m *Rpc_Account_Recover) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountRecover) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Recover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountRecover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Recover.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountRecover.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2088,36 +2088,36 @@ func (m *Rpc_Account_Recover) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Rpc_Account_Recover) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Recover.Merge(m, src) +func (m *RpcAccountRecover) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountRecover.Merge(m, src) } -func (m *Rpc_Account_Recover) XXX_Size() int { +func (m *RpcAccountRecover) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Recover) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Recover.DiscardUnknown(m) +func (m *RpcAccountRecover) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountRecover.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Recover proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountRecover proto.InternalMessageInfo //* // Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. // Each of an account that would be found will come with an AccountAdd event -type Rpc_Account_Recover_Request struct { +type RpcAccountRecoverRequest struct { } -func (m *Rpc_Account_Recover_Request) Reset() { *m = Rpc_Account_Recover_Request{} } -func (m *Rpc_Account_Recover_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Recover_Request) ProtoMessage() {} -func (*Rpc_Account_Recover_Request) Descriptor() ([]byte, []int) { +func (m *RpcAccountRecoverRequest) Reset() { *m = RpcAccountRecoverRequest{} } +func (m *RpcAccountRecoverRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAccountRecoverRequest) ProtoMessage() {} +func (*RpcAccountRecoverRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 0} } -func (m *Rpc_Account_Recover_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountRecoverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Recover_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Recover_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountRecoverRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2127,36 +2127,36 @@ func (m *Rpc_Account_Recover_Request) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Account_Recover_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Recover_Request.Merge(m, src) +func (m *RpcAccountRecoverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountRecoverRequest.Merge(m, src) } -func (m *Rpc_Account_Recover_Request) XXX_Size() int { +func (m *RpcAccountRecoverRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Recover_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Recover_Request.DiscardUnknown(m) +func (m *RpcAccountRecoverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountRecoverRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Recover_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountRecoverRequest proto.InternalMessageInfo //* // Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account -type Rpc_Account_Recover_Response struct { - Error *Rpc_Account_Recover_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcAccountRecoverResponse struct { + Error *RpcAccountRecoverResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Account_Recover_Response) Reset() { *m = Rpc_Account_Recover_Response{} } -func (m *Rpc_Account_Recover_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Recover_Response) ProtoMessage() {} -func (*Rpc_Account_Recover_Response) Descriptor() ([]byte, []int) { +func (m *RpcAccountRecoverResponse) Reset() { *m = RpcAccountRecoverResponse{} } +func (m *RpcAccountRecoverResponse) String() string { return proto.CompactTextString(m) } +func (*RpcAccountRecoverResponse) ProtoMessage() {} +func (*RpcAccountRecoverResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 1} } -func (m *Rpc_Account_Recover_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountRecoverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Recover_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Recover_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountRecoverResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2166,42 +2166,42 @@ func (m *Rpc_Account_Recover_Response) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Account_Recover_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Recover_Response.Merge(m, src) +func (m *RpcAccountRecoverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountRecoverResponse.Merge(m, src) } -func (m *Rpc_Account_Recover_Response) XXX_Size() int { +func (m *RpcAccountRecoverResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Recover_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Recover_Response.DiscardUnknown(m) +func (m *RpcAccountRecoverResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountRecoverResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Recover_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountRecoverResponse proto.InternalMessageInfo -func (m *Rpc_Account_Recover_Response) GetError() *Rpc_Account_Recover_Response_Error { +func (m *RpcAccountRecoverResponse) GetError() *RpcAccountRecoverResponseError { if m != nil { return m.Error } return nil } -type Rpc_Account_Recover_Response_Error struct { - Code Rpc_Account_Recover_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Account_Recover_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcAccountRecoverResponseError struct { + Code RpcAccountRecoverResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcAccountRecoverResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Account_Recover_Response_Error) Reset() { *m = Rpc_Account_Recover_Response_Error{} } -func (m *Rpc_Account_Recover_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Recover_Response_Error) ProtoMessage() {} -func (*Rpc_Account_Recover_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcAccountRecoverResponseError) Reset() { *m = RpcAccountRecoverResponseError{} } +func (m *RpcAccountRecoverResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcAccountRecoverResponseError) ProtoMessage() {} +func (*RpcAccountRecoverResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 1, 1, 0} } -func (m *Rpc_Account_Recover_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountRecoverResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Recover_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountRecoverResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Recover_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountRecoverResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2211,47 +2211,47 @@ func (m *Rpc_Account_Recover_Response_Error) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *Rpc_Account_Recover_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Recover_Response_Error.Merge(m, src) +func (m *RpcAccountRecoverResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountRecoverResponseError.Merge(m, src) } -func (m *Rpc_Account_Recover_Response_Error) XXX_Size() int { +func (m *RpcAccountRecoverResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Recover_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Recover_Response_Error.DiscardUnknown(m) +func (m *RpcAccountRecoverResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountRecoverResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Recover_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountRecoverResponseError proto.InternalMessageInfo -func (m *Rpc_Account_Recover_Response_Error) GetCode() Rpc_Account_Recover_Response_Error_Code { +func (m *RpcAccountRecoverResponseError) GetCode() RpcAccountRecoverResponseErrorCode { if m != nil { return m.Code } - return Rpc_Account_Recover_Response_Error_NULL + return RpcAccountRecoverResponseError_NULL } -func (m *Rpc_Account_Recover_Response_Error) GetDescription() string { +func (m *RpcAccountRecoverResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Account_Select struct { +type RpcAccountSelect struct { } -func (m *Rpc_Account_Select) Reset() { *m = Rpc_Account_Select{} } -func (m *Rpc_Account_Select) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Select) ProtoMessage() {} -func (*Rpc_Account_Select) Descriptor() ([]byte, []int) { +func (m *RpcAccountSelect) Reset() { *m = RpcAccountSelect{} } +func (m *RpcAccountSelect) String() string { return proto.CompactTextString(m) } +func (*RpcAccountSelect) ProtoMessage() {} +func (*RpcAccountSelect) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2} } -func (m *Rpc_Account_Select) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountSelect) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Select) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Select.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountSelect.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2261,38 +2261,38 @@ func (m *Rpc_Account_Select) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Rpc_Account_Select) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Select.Merge(m, src) +func (m *RpcAccountSelect) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountSelect.Merge(m, src) } -func (m *Rpc_Account_Select) XXX_Size() int { +func (m *RpcAccountSelect) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Select) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Select.DiscardUnknown(m) +func (m *RpcAccountSelect) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountSelect.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Select proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountSelect proto.InternalMessageInfo //* // Front end to middleware request-to-launch-a specific account using account id and a root path // User can select an account from those, that came with an AccountAdd events -type Rpc_Account_Select_Request struct { +type RpcAccountSelectRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RootPath string `protobuf:"bytes,2,opt,name=rootPath,proto3" json:"rootPath,omitempty"` } -func (m *Rpc_Account_Select_Request) Reset() { *m = Rpc_Account_Select_Request{} } -func (m *Rpc_Account_Select_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Select_Request) ProtoMessage() {} -func (*Rpc_Account_Select_Request) Descriptor() ([]byte, []int) { +func (m *RpcAccountSelectRequest) Reset() { *m = RpcAccountSelectRequest{} } +func (m *RpcAccountSelectRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAccountSelectRequest) ProtoMessage() {} +func (*RpcAccountSelectRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 0} } -func (m *Rpc_Account_Select_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountSelectRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Select_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountSelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Select_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountSelectRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2302,26 +2302,26 @@ func (m *Rpc_Account_Select_Request) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Account_Select_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Select_Request.Merge(m, src) +func (m *RpcAccountSelectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountSelectRequest.Merge(m, src) } -func (m *Rpc_Account_Select_Request) XXX_Size() int { +func (m *RpcAccountSelectRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Select_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Select_Request.DiscardUnknown(m) +func (m *RpcAccountSelectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountSelectRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Select_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountSelectRequest proto.InternalMessageInfo -func (m *Rpc_Account_Select_Request) GetId() string { +func (m *RpcAccountSelectRequest) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Account_Select_Request) GetRootPath() string { +func (m *RpcAccountSelectRequest) GetRootPath() string { if m != nil { return m.RootPath } @@ -2330,23 +2330,23 @@ func (m *Rpc_Account_Select_Request) GetRootPath() string { //* // Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account -type Rpc_Account_Select_Response struct { - Error *Rpc_Account_Select_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Account *Model_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +type RpcAccountSelectResponse struct { + Error *RpcAccountSelectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Account *ModelAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` } -func (m *Rpc_Account_Select_Response) Reset() { *m = Rpc_Account_Select_Response{} } -func (m *Rpc_Account_Select_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Select_Response) ProtoMessage() {} -func (*Rpc_Account_Select_Response) Descriptor() ([]byte, []int) { +func (m *RpcAccountSelectResponse) Reset() { *m = RpcAccountSelectResponse{} } +func (m *RpcAccountSelectResponse) String() string { return proto.CompactTextString(m) } +func (*RpcAccountSelectResponse) ProtoMessage() {} +func (*RpcAccountSelectResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 1} } -func (m *Rpc_Account_Select_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountSelectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Select_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountSelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Select_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountSelectResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2356,49 +2356,49 @@ func (m *Rpc_Account_Select_Response) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Account_Select_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Select_Response.Merge(m, src) +func (m *RpcAccountSelectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountSelectResponse.Merge(m, src) } -func (m *Rpc_Account_Select_Response) XXX_Size() int { +func (m *RpcAccountSelectResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Select_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Select_Response.DiscardUnknown(m) +func (m *RpcAccountSelectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountSelectResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Select_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountSelectResponse proto.InternalMessageInfo -func (m *Rpc_Account_Select_Response) GetError() *Rpc_Account_Select_Response_Error { +func (m *RpcAccountSelectResponse) GetError() *RpcAccountSelectResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Account_Select_Response) GetAccount() *Model_Account { +func (m *RpcAccountSelectResponse) GetAccount() *ModelAccount { if m != nil { return m.Account } return nil } -type Rpc_Account_Select_Response_Error struct { - Code Rpc_Account_Select_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Account_Select_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcAccountSelectResponseError struct { + Code RpcAccountSelectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcAccountSelectResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Account_Select_Response_Error) Reset() { *m = Rpc_Account_Select_Response_Error{} } -func (m *Rpc_Account_Select_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Account_Select_Response_Error) ProtoMessage() {} -func (*Rpc_Account_Select_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcAccountSelectResponseError) Reset() { *m = RpcAccountSelectResponseError{} } +func (m *RpcAccountSelectResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcAccountSelectResponseError) ProtoMessage() {} +func (*RpcAccountSelectResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 2, 2, 1, 0} } -func (m *Rpc_Account_Select_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountSelectResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Account_Select_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountSelectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Account_Select_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountSelectResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2408,47 +2408,47 @@ func (m *Rpc_Account_Select_Response_Error) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *Rpc_Account_Select_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Account_Select_Response_Error.Merge(m, src) +func (m *RpcAccountSelectResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountSelectResponseError.Merge(m, src) } -func (m *Rpc_Account_Select_Response_Error) XXX_Size() int { +func (m *RpcAccountSelectResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Account_Select_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Account_Select_Response_Error.DiscardUnknown(m) +func (m *RpcAccountSelectResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountSelectResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Account_Select_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountSelectResponseError proto.InternalMessageInfo -func (m *Rpc_Account_Select_Response_Error) GetCode() Rpc_Account_Select_Response_Error_Code { +func (m *RpcAccountSelectResponseError) GetCode() RpcAccountSelectResponseErrorCode { if m != nil { return m.Code } - return Rpc_Account_Select_Response_Error_NULL + return RpcAccountSelectResponseError_NULL } -func (m *Rpc_Account_Select_Response_Error) GetDescription() string { +func (m *RpcAccountSelectResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Version struct { +type RpcVersion struct { } -func (m *Rpc_Version) Reset() { *m = Rpc_Version{} } -func (m *Rpc_Version) String() string { return proto.CompactTextString(m) } -func (*Rpc_Version) ProtoMessage() {} -func (*Rpc_Version) Descriptor() ([]byte, []int) { +func (m *RpcVersion) Reset() { *m = RpcVersion{} } +func (m *RpcVersion) String() string { return proto.CompactTextString(m) } +func (*RpcVersion) ProtoMessage() {} +func (*RpcVersion) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3} } -func (m *Rpc_Version) XXX_Unmarshal(b []byte) error { +func (m *RpcVersion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Version.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcVersion.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2458,33 +2458,33 @@ func (m *Rpc_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Rpc_Version) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Version.Merge(m, src) +func (m *RpcVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcVersion.Merge(m, src) } -func (m *Rpc_Version) XXX_Size() int { +func (m *RpcVersion) XXX_Size() int { return m.Size() } -func (m *Rpc_Version) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Version.DiscardUnknown(m) +func (m *RpcVersion) XXX_DiscardUnknown() { + xxx_messageInfo_RpcVersion.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Version proto.InternalMessageInfo +var xxx_messageInfo_RpcVersion proto.InternalMessageInfo -type Rpc_Version_Get struct { +type RpcVersionGet struct { } -func (m *Rpc_Version_Get) Reset() { *m = Rpc_Version_Get{} } -func (m *Rpc_Version_Get) String() string { return proto.CompactTextString(m) } -func (*Rpc_Version_Get) ProtoMessage() {} -func (*Rpc_Version_Get) Descriptor() ([]byte, []int) { +func (m *RpcVersionGet) Reset() { *m = RpcVersionGet{} } +func (m *RpcVersionGet) String() string { return proto.CompactTextString(m) } +func (*RpcVersionGet) ProtoMessage() {} +func (*RpcVersionGet) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0} } -func (m *Rpc_Version_Get) XXX_Unmarshal(b []byte) error { +func (m *RpcVersionGet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Version_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcVersionGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Version_Get.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcVersionGet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2494,33 +2494,33 @@ func (m *Rpc_Version_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *Rpc_Version_Get) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Version_Get.Merge(m, src) +func (m *RpcVersionGet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcVersionGet.Merge(m, src) } -func (m *Rpc_Version_Get) XXX_Size() int { +func (m *RpcVersionGet) XXX_Size() int { return m.Size() } -func (m *Rpc_Version_Get) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Version_Get.DiscardUnknown(m) +func (m *RpcVersionGet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcVersionGet.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Version_Get proto.InternalMessageInfo +var xxx_messageInfo_RpcVersionGet proto.InternalMessageInfo -type Rpc_Version_Get_Request struct { +type RpcVersionGetRequest struct { } -func (m *Rpc_Version_Get_Request) Reset() { *m = Rpc_Version_Get_Request{} } -func (m *Rpc_Version_Get_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Version_Get_Request) ProtoMessage() {} -func (*Rpc_Version_Get_Request) Descriptor() ([]byte, []int) { +func (m *RpcVersionGetRequest) Reset() { *m = RpcVersionGetRequest{} } +func (m *RpcVersionGetRequest) String() string { return proto.CompactTextString(m) } +func (*RpcVersionGetRequest) ProtoMessage() {} +func (*RpcVersionGetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 0} } -func (m *Rpc_Version_Get_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcVersionGetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Version_Get_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcVersionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Version_Get_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcVersionGetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2530,35 +2530,35 @@ func (m *Rpc_Version_Get_Request) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *Rpc_Version_Get_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Version_Get_Request.Merge(m, src) +func (m *RpcVersionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcVersionGetRequest.Merge(m, src) } -func (m *Rpc_Version_Get_Request) XXX_Size() int { +func (m *RpcVersionGetRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Version_Get_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Version_Get_Request.DiscardUnknown(m) +func (m *RpcVersionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcVersionGetRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Version_Get_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcVersionGetRequest proto.InternalMessageInfo -type Rpc_Version_Get_Response struct { - Error *Rpc_Version_Get_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` +type RpcVersionGetResponse struct { + Error *RpcVersionGetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` } -func (m *Rpc_Version_Get_Response) Reset() { *m = Rpc_Version_Get_Response{} } -func (m *Rpc_Version_Get_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Version_Get_Response) ProtoMessage() {} -func (*Rpc_Version_Get_Response) Descriptor() ([]byte, []int) { +func (m *RpcVersionGetResponse) Reset() { *m = RpcVersionGetResponse{} } +func (m *RpcVersionGetResponse) String() string { return proto.CompactTextString(m) } +func (*RpcVersionGetResponse) ProtoMessage() {} +func (*RpcVersionGetResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 1} } -func (m *Rpc_Version_Get_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcVersionGetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Version_Get_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcVersionGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Version_Get_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcVersionGetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2568,49 +2568,49 @@ func (m *Rpc_Version_Get_Response) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Rpc_Version_Get_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Version_Get_Response.Merge(m, src) +func (m *RpcVersionGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcVersionGetResponse.Merge(m, src) } -func (m *Rpc_Version_Get_Response) XXX_Size() int { +func (m *RpcVersionGetResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Version_Get_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Version_Get_Response.DiscardUnknown(m) +func (m *RpcVersionGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcVersionGetResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Version_Get_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcVersionGetResponse proto.InternalMessageInfo -func (m *Rpc_Version_Get_Response) GetError() *Rpc_Version_Get_Response_Error { +func (m *RpcVersionGetResponse) GetError() *RpcVersionGetResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Version_Get_Response) GetVersion() string { +func (m *RpcVersionGetResponse) GetVersion() string { if m != nil { return m.Version } return "" } -type Rpc_Version_Get_Response_Error struct { - Code Rpc_Version_Get_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Version_Get_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcVersionGetResponseError struct { + Code RpcVersionGetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcVersionGetResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Version_Get_Response_Error) Reset() { *m = Rpc_Version_Get_Response_Error{} } -func (m *Rpc_Version_Get_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Version_Get_Response_Error) ProtoMessage() {} -func (*Rpc_Version_Get_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcVersionGetResponseError) Reset() { *m = RpcVersionGetResponseError{} } +func (m *RpcVersionGetResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcVersionGetResponseError) ProtoMessage() {} +func (*RpcVersionGetResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 3, 0, 1, 0} } -func (m *Rpc_Version_Get_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcVersionGetResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Version_Get_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcVersionGetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Version_Get_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcVersionGetResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2620,47 +2620,47 @@ func (m *Rpc_Version_Get_Response_Error) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *Rpc_Version_Get_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Version_Get_Response_Error.Merge(m, src) +func (m *RpcVersionGetResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcVersionGetResponseError.Merge(m, src) } -func (m *Rpc_Version_Get_Response_Error) XXX_Size() int { +func (m *RpcVersionGetResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Version_Get_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Version_Get_Response_Error.DiscardUnknown(m) +func (m *RpcVersionGetResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcVersionGetResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Version_Get_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcVersionGetResponseError proto.InternalMessageInfo -func (m *Rpc_Version_Get_Response_Error) GetCode() Rpc_Version_Get_Response_Error_Code { +func (m *RpcVersionGetResponseError) GetCode() RpcVersionGetResponseErrorCode { if m != nil { return m.Code } - return Rpc_Version_Get_Response_Error_NULL + return RpcVersionGetResponseError_NULL } -func (m *Rpc_Version_Get_Response_Error) GetDescription() string { +func (m *RpcVersionGetResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Log struct { +type RpcLog struct { } -func (m *Rpc_Log) Reset() { *m = Rpc_Log{} } -func (m *Rpc_Log) String() string { return proto.CompactTextString(m) } -func (*Rpc_Log) ProtoMessage() {} -func (*Rpc_Log) Descriptor() ([]byte, []int) { +func (m *RpcLog) Reset() { *m = RpcLog{} } +func (m *RpcLog) String() string { return proto.CompactTextString(m) } +func (*RpcLog) ProtoMessage() {} +func (*RpcLog) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4} } -func (m *Rpc_Log) XXX_Unmarshal(b []byte) error { +func (m *RpcLog) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Log.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcLog.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2670,33 +2670,33 @@ func (m *Rpc_Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rpc_Log) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Log.Merge(m, src) +func (m *RpcLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLog.Merge(m, src) } -func (m *Rpc_Log) XXX_Size() int { +func (m *RpcLog) XXX_Size() int { return m.Size() } -func (m *Rpc_Log) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Log.DiscardUnknown(m) +func (m *RpcLog) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLog.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Log proto.InternalMessageInfo +var xxx_messageInfo_RpcLog proto.InternalMessageInfo -type Rpc_Log_Send struct { +type RpcLogSend struct { } -func (m *Rpc_Log_Send) Reset() { *m = Rpc_Log_Send{} } -func (m *Rpc_Log_Send) String() string { return proto.CompactTextString(m) } -func (*Rpc_Log_Send) ProtoMessage() {} -func (*Rpc_Log_Send) Descriptor() ([]byte, []int) { +func (m *RpcLogSend) Reset() { *m = RpcLogSend{} } +func (m *RpcLogSend) String() string { return proto.CompactTextString(m) } +func (*RpcLogSend) ProtoMessage() {} +func (*RpcLogSend) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0} } -func (m *Rpc_Log_Send) XXX_Unmarshal(b []byte) error { +func (m *RpcLogSend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Log_Send) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcLogSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Log_Send.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcLogSend.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2706,35 +2706,35 @@ func (m *Rpc_Log_Send) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Rpc_Log_Send) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Log_Send.Merge(m, src) +func (m *RpcLogSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSend.Merge(m, src) } -func (m *Rpc_Log_Send) XXX_Size() int { +func (m *RpcLogSend) XXX_Size() int { return m.Size() } -func (m *Rpc_Log_Send) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Log_Send.DiscardUnknown(m) +func (m *RpcLogSend) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSend.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Log_Send proto.InternalMessageInfo +var xxx_messageInfo_RpcLogSend proto.InternalMessageInfo -type Rpc_Log_Send_Request struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Level Rpc_Log_Send_Request_Level `protobuf:"varint,2,opt,name=level,proto3,enum=anytype.Rpc_Log_Send_Request_Level" json:"level,omitempty"` +type RpcLogSendRequest struct { + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Level RpcLogSendRequestLevel `protobuf:"varint,2,opt,name=level,proto3,enum=anytype.RpcLogSendRequestLevel" json:"level,omitempty"` } -func (m *Rpc_Log_Send_Request) Reset() { *m = Rpc_Log_Send_Request{} } -func (m *Rpc_Log_Send_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Log_Send_Request) ProtoMessage() {} -func (*Rpc_Log_Send_Request) Descriptor() ([]byte, []int) { +func (m *RpcLogSendRequest) Reset() { *m = RpcLogSendRequest{} } +func (m *RpcLogSendRequest) String() string { return proto.CompactTextString(m) } +func (*RpcLogSendRequest) ProtoMessage() {} +func (*RpcLogSendRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 0} } -func (m *Rpc_Log_Send_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcLogSendRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Log_Send_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcLogSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Log_Send_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcLogSendRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2744,48 +2744,48 @@ func (m *Rpc_Log_Send_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *Rpc_Log_Send_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Log_Send_Request.Merge(m, src) +func (m *RpcLogSendRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSendRequest.Merge(m, src) } -func (m *Rpc_Log_Send_Request) XXX_Size() int { +func (m *RpcLogSendRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Log_Send_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Log_Send_Request.DiscardUnknown(m) +func (m *RpcLogSendRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSendRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Log_Send_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcLogSendRequest proto.InternalMessageInfo -func (m *Rpc_Log_Send_Request) GetMessage() string { +func (m *RpcLogSendRequest) GetMessage() string { if m != nil { return m.Message } return "" } -func (m *Rpc_Log_Send_Request) GetLevel() Rpc_Log_Send_Request_Level { +func (m *RpcLogSendRequest) GetLevel() RpcLogSendRequestLevel { if m != nil { return m.Level } - return Rpc_Log_Send_Request_DEBUG + return RpcLogSendRequest_DEBUG } -type Rpc_Log_Send_Response struct { - Error *Rpc_Log_Send_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcLogSendResponse struct { + Error *RpcLogSendResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *Rpc_Log_Send_Response) Reset() { *m = Rpc_Log_Send_Response{} } -func (m *Rpc_Log_Send_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Log_Send_Response) ProtoMessage() {} -func (*Rpc_Log_Send_Response) Descriptor() ([]byte, []int) { +func (m *RpcLogSendResponse) Reset() { *m = RpcLogSendResponse{} } +func (m *RpcLogSendResponse) String() string { return proto.CompactTextString(m) } +func (*RpcLogSendResponse) ProtoMessage() {} +func (*RpcLogSendResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1} } -func (m *Rpc_Log_Send_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcLogSendResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Log_Send_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcLogSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Log_Send_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcLogSendResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2795,42 +2795,42 @@ func (m *Rpc_Log_Send_Response) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *Rpc_Log_Send_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Log_Send_Response.Merge(m, src) +func (m *RpcLogSendResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSendResponse.Merge(m, src) } -func (m *Rpc_Log_Send_Response) XXX_Size() int { +func (m *RpcLogSendResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Log_Send_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Log_Send_Response.DiscardUnknown(m) +func (m *RpcLogSendResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSendResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Log_Send_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcLogSendResponse proto.InternalMessageInfo -func (m *Rpc_Log_Send_Response) GetError() *Rpc_Log_Send_Response_Error { +func (m *RpcLogSendResponse) GetError() *RpcLogSendResponseError { if m != nil { return m.Error } return nil } -type Rpc_Log_Send_Response_Error struct { - Code Rpc_Log_Send_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Log_Send_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcLogSendResponseError struct { + Code RpcLogSendResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcLogSendResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Log_Send_Response_Error) Reset() { *m = Rpc_Log_Send_Response_Error{} } -func (m *Rpc_Log_Send_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Log_Send_Response_Error) ProtoMessage() {} -func (*Rpc_Log_Send_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcLogSendResponseError) Reset() { *m = RpcLogSendResponseError{} } +func (m *RpcLogSendResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcLogSendResponseError) ProtoMessage() {} +func (*RpcLogSendResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 4, 0, 1, 0} } -func (m *Rpc_Log_Send_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcLogSendResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Log_Send_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcLogSendResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Log_Send_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcLogSendResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2840,47 +2840,47 @@ func (m *Rpc_Log_Send_Response_Error) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Log_Send_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Log_Send_Response_Error.Merge(m, src) +func (m *RpcLogSendResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSendResponseError.Merge(m, src) } -func (m *Rpc_Log_Send_Response_Error) XXX_Size() int { +func (m *RpcLogSendResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Log_Send_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Log_Send_Response_Error.DiscardUnknown(m) +func (m *RpcLogSendResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSendResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Log_Send_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcLogSendResponseError proto.InternalMessageInfo -func (m *Rpc_Log_Send_Response_Error) GetCode() Rpc_Log_Send_Response_Error_Code { +func (m *RpcLogSendResponseError) GetCode() RpcLogSendResponseErrorCode { if m != nil { return m.Code } - return Rpc_Log_Send_Response_Error_NULL + return RpcLogSendResponseError_NULL } -func (m *Rpc_Log_Send_Response_Error) GetDescription() string { +func (m *RpcLogSendResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Ipfs struct { +type RpcIpfs struct { } -func (m *Rpc_Ipfs) Reset() { *m = Rpc_Ipfs{} } -func (m *Rpc_Ipfs) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs) ProtoMessage() {} -func (*Rpc_Ipfs) Descriptor() ([]byte, []int) { +func (m *RpcIpfs) Reset() { *m = RpcIpfs{} } +func (m *RpcIpfs) String() string { return proto.CompactTextString(m) } +func (*RpcIpfs) ProtoMessage() {} +func (*RpcIpfs) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5} } -func (m *Rpc_Ipfs) XXX_Unmarshal(b []byte) error { +func (m *RpcIpfs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcIpfs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcIpfs.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2890,33 +2890,33 @@ func (m *Rpc_Ipfs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rpc_Ipfs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs.Merge(m, src) +func (m *RpcIpfs) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcIpfs.Merge(m, src) } -func (m *Rpc_Ipfs) XXX_Size() int { +func (m *RpcIpfs) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs.DiscardUnknown(m) +func (m *RpcIpfs) XXX_DiscardUnknown() { + xxx_messageInfo_RpcIpfs.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs proto.InternalMessageInfo +var xxx_messageInfo_RpcIpfs proto.InternalMessageInfo -type Rpc_Ipfs_Get struct { +type RpcIpfsGet struct { } -func (m *Rpc_Ipfs_Get) Reset() { *m = Rpc_Ipfs_Get{} } -func (m *Rpc_Ipfs_Get) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_Get) ProtoMessage() {} -func (*Rpc_Ipfs_Get) Descriptor() ([]byte, []int) { +func (m *RpcIpfsGet) Reset() { *m = RpcIpfsGet{} } +func (m *RpcIpfsGet) String() string { return proto.CompactTextString(m) } +func (*RpcIpfsGet) ProtoMessage() {} +func (*RpcIpfsGet) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0} } -func (m *Rpc_Ipfs_Get) XXX_Unmarshal(b []byte) error { +func (m *RpcIpfsGet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcIpfsGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_Get.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcIpfsGet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2926,33 +2926,33 @@ func (m *Rpc_Ipfs_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Rpc_Ipfs_Get) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_Get.Merge(m, src) +func (m *RpcIpfsGet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcIpfsGet.Merge(m, src) } -func (m *Rpc_Ipfs_Get) XXX_Size() int { +func (m *RpcIpfsGet) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_Get) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_Get.DiscardUnknown(m) +func (m *RpcIpfsGet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcIpfsGet.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_Get proto.InternalMessageInfo +var xxx_messageInfo_RpcIpfsGet proto.InternalMessageInfo -type Rpc_Ipfs_Get_File struct { +type RpcIpfsGetFile struct { } -func (m *Rpc_Ipfs_Get_File) Reset() { *m = Rpc_Ipfs_Get_File{} } -func (m *Rpc_Ipfs_Get_File) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_Get_File) ProtoMessage() {} -func (*Rpc_Ipfs_Get_File) Descriptor() ([]byte, []int) { +func (m *RpcIpfsGetFile) Reset() { *m = RpcIpfsGetFile{} } +func (m *RpcIpfsGetFile) String() string { return proto.CompactTextString(m) } +func (*RpcIpfsGetFile) ProtoMessage() {} +func (*RpcIpfsGetFile) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0} } -func (m *Rpc_Ipfs_Get_File) XXX_Unmarshal(b []byte) error { +func (m *RpcIpfsGetFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_Get_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcIpfsGetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_Get_File.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcIpfsGetFile.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2962,34 +2962,34 @@ func (m *Rpc_Ipfs_Get_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *Rpc_Ipfs_Get_File) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_Get_File.Merge(m, src) +func (m *RpcIpfsGetFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcIpfsGetFile.Merge(m, src) } -func (m *Rpc_Ipfs_Get_File) XXX_Size() int { +func (m *RpcIpfsGetFile) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_Get_File) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_Get_File.DiscardUnknown(m) +func (m *RpcIpfsGetFile) XXX_DiscardUnknown() { + xxx_messageInfo_RpcIpfsGetFile.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_Get_File proto.InternalMessageInfo +var xxx_messageInfo_RpcIpfsGetFile proto.InternalMessageInfo -type Rpc_Ipfs_Get_File_Request struct { +type RpcIpfsGetFileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *Rpc_Ipfs_Get_File_Request) Reset() { *m = Rpc_Ipfs_Get_File_Request{} } -func (m *Rpc_Ipfs_Get_File_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_Get_File_Request) ProtoMessage() {} -func (*Rpc_Ipfs_Get_File_Request) Descriptor() ([]byte, []int) { +func (m *RpcIpfsGetFileRequest) Reset() { *m = RpcIpfsGetFileRequest{} } +func (m *RpcIpfsGetFileRequest) String() string { return proto.CompactTextString(m) } +func (*RpcIpfsGetFileRequest) ProtoMessage() {} +func (*RpcIpfsGetFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 0} } -func (m *Rpc_Ipfs_Get_File_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcIpfsGetFileRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_Get_File_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcIpfsGetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_Get_File_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcIpfsGetFileRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2999,44 +2999,44 @@ func (m *Rpc_Ipfs_Get_File_Request) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Rpc_Ipfs_Get_File_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_Get_File_Request.Merge(m, src) +func (m *RpcIpfsGetFileRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcIpfsGetFileRequest.Merge(m, src) } -func (m *Rpc_Ipfs_Get_File_Request) XXX_Size() int { +func (m *RpcIpfsGetFileRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_Get_File_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_Get_File_Request.DiscardUnknown(m) +func (m *RpcIpfsGetFileRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcIpfsGetFileRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_Get_File_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcIpfsGetFileRequest proto.InternalMessageInfo -func (m *Rpc_Ipfs_Get_File_Request) GetId() string { +func (m *RpcIpfsGetFileRequest) GetId() string { if m != nil { return m.Id } return "" } -type Rpc_Ipfs_Get_File_Response struct { - Error *Rpc_Ipfs_Get_File_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Media string `protobuf:"bytes,3,opt,name=media,proto3" json:"media,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` +type RpcIpfsGetFileResponse struct { + Error *RpcIpfsGetFileResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Media string `protobuf:"bytes,3,opt,name=media,proto3" json:"media,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` } -func (m *Rpc_Ipfs_Get_File_Response) Reset() { *m = Rpc_Ipfs_Get_File_Response{} } -func (m *Rpc_Ipfs_Get_File_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_Get_File_Response) ProtoMessage() {} -func (*Rpc_Ipfs_Get_File_Response) Descriptor() ([]byte, []int) { +func (m *RpcIpfsGetFileResponse) Reset() { *m = RpcIpfsGetFileResponse{} } +func (m *RpcIpfsGetFileResponse) String() string { return proto.CompactTextString(m) } +func (*RpcIpfsGetFileResponse) ProtoMessage() {} +func (*RpcIpfsGetFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 1} } -func (m *Rpc_Ipfs_Get_File_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcIpfsGetFileResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_Get_File_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcIpfsGetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_Get_File_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcIpfsGetFileResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3046,63 +3046,63 @@ func (m *Rpc_Ipfs_Get_File_Response) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Ipfs_Get_File_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_Get_File_Response.Merge(m, src) +func (m *RpcIpfsGetFileResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcIpfsGetFileResponse.Merge(m, src) } -func (m *Rpc_Ipfs_Get_File_Response) XXX_Size() int { +func (m *RpcIpfsGetFileResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_Get_File_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_Get_File_Response.DiscardUnknown(m) +func (m *RpcIpfsGetFileResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcIpfsGetFileResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_Get_File_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcIpfsGetFileResponse proto.InternalMessageInfo -func (m *Rpc_Ipfs_Get_File_Response) GetError() *Rpc_Ipfs_Get_File_Response_Error { +func (m *RpcIpfsGetFileResponse) GetError() *RpcIpfsGetFileResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Ipfs_Get_File_Response) GetData() []byte { +func (m *RpcIpfsGetFileResponse) GetData() []byte { if m != nil { return m.Data } return nil } -func (m *Rpc_Ipfs_Get_File_Response) GetMedia() string { +func (m *RpcIpfsGetFileResponse) GetMedia() string { if m != nil { return m.Media } return "" } -func (m *Rpc_Ipfs_Get_File_Response) GetName() string { +func (m *RpcIpfsGetFileResponse) GetName() string { if m != nil { return m.Name } return "" } -type Rpc_Ipfs_Get_File_Response_Error struct { - Code Rpc_Ipfs_Get_File_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Ipfs_Get_File_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcIpfsGetFileResponseError struct { + Code RpcIpfsGetFileResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcIpfsGetFileResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Ipfs_Get_File_Response_Error) Reset() { *m = Rpc_Ipfs_Get_File_Response_Error{} } -func (m *Rpc_Ipfs_Get_File_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Ipfs_Get_File_Response_Error) ProtoMessage() {} -func (*Rpc_Ipfs_Get_File_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcIpfsGetFileResponseError) Reset() { *m = RpcIpfsGetFileResponseError{} } +func (m *RpcIpfsGetFileResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcIpfsGetFileResponseError) ProtoMessage() {} +func (*RpcIpfsGetFileResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 5, 0, 0, 1, 0} } -func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcIpfsGetFileResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcIpfsGetFileResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcIpfsGetFileResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3112,47 +3112,47 @@ func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error.Merge(m, src) +func (m *RpcIpfsGetFileResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcIpfsGetFileResponseError.Merge(m, src) } -func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_Size() int { +func (m *RpcIpfsGetFileResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Ipfs_Get_File_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error.DiscardUnknown(m) +func (m *RpcIpfsGetFileResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcIpfsGetFileResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Ipfs_Get_File_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcIpfsGetFileResponseError proto.InternalMessageInfo -func (m *Rpc_Ipfs_Get_File_Response_Error) GetCode() Rpc_Ipfs_Get_File_Response_Error_Code { +func (m *RpcIpfsGetFileResponseError) GetCode() RpcIpfsGetFileResponseErrorCode { if m != nil { return m.Code } - return Rpc_Ipfs_Get_File_Response_Error_NULL + return RpcIpfsGetFileResponseError_NULL } -func (m *Rpc_Ipfs_Get_File_Response_Error) GetDescription() string { +func (m *RpcIpfsGetFileResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Image struct { +type RpcImage struct { } -func (m *Rpc_Image) Reset() { *m = Rpc_Image{} } -func (m *Rpc_Image) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image) ProtoMessage() {} -func (*Rpc_Image) Descriptor() ([]byte, []int) { +func (m *RpcImage) Reset() { *m = RpcImage{} } +func (m *RpcImage) String() string { return proto.CompactTextString(m) } +func (*RpcImage) ProtoMessage() {} +func (*RpcImage) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6} } -func (m *Rpc_Image) XXX_Unmarshal(b []byte) error { +func (m *RpcImage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3162,33 +3162,33 @@ func (m *Rpc_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Rpc_Image) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image.Merge(m, src) +func (m *RpcImage) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImage.Merge(m, src) } -func (m *Rpc_Image) XXX_Size() int { +func (m *RpcImage) XXX_Size() int { return m.Size() } -func (m *Rpc_Image) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image.DiscardUnknown(m) +func (m *RpcImage) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImage.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image proto.InternalMessageInfo +var xxx_messageInfo_RpcImage proto.InternalMessageInfo -type Rpc_Image_Get struct { +type RpcImageGet struct { } -func (m *Rpc_Image_Get) Reset() { *m = Rpc_Image_Get{} } -func (m *Rpc_Image_Get) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get) ProtoMessage() {} -func (*Rpc_Image_Get) Descriptor() ([]byte, []int) { +func (m *RpcImageGet) Reset() { *m = RpcImageGet{} } +func (m *RpcImageGet) String() string { return proto.CompactTextString(m) } +func (*RpcImageGet) ProtoMessage() {} +func (*RpcImageGet) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0} } -func (m *Rpc_Image_Get) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3198,33 +3198,33 @@ func (m *Rpc_Image_Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *Rpc_Image_Get) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get.Merge(m, src) +func (m *RpcImageGet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGet.Merge(m, src) } -func (m *Rpc_Image_Get) XXX_Size() int { +func (m *RpcImageGet) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get.DiscardUnknown(m) +func (m *RpcImageGet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGet.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGet proto.InternalMessageInfo -type Rpc_Image_Get_Blob struct { +type RpcImageGetBlob struct { } -func (m *Rpc_Image_Get_Blob) Reset() { *m = Rpc_Image_Get_Blob{} } -func (m *Rpc_Image_Get_Blob) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_Blob) ProtoMessage() {} -func (*Rpc_Image_Get_Blob) Descriptor() ([]byte, []int) { +func (m *RpcImageGetBlob) Reset() { *m = RpcImageGetBlob{} } +func (m *RpcImageGetBlob) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetBlob) ProtoMessage() {} +func (*RpcImageGetBlob) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0} } -func (m *Rpc_Image_Get_Blob) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetBlob) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_Blob.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetBlob.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3234,35 +3234,35 @@ func (m *Rpc_Image_Get_Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Rpc_Image_Get_Blob) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_Blob.Merge(m, src) +func (m *RpcImageGetBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetBlob.Merge(m, src) } -func (m *Rpc_Image_Get_Blob) XXX_Size() int { +func (m *RpcImageGetBlob) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_Blob) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_Blob.DiscardUnknown(m) +func (m *RpcImageGetBlob) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetBlob.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_Blob proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetBlob proto.InternalMessageInfo -type Rpc_Image_Get_Blob_Request struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Size_ Model_Image_Size `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.Model_Image_Size" json:"size,omitempty"` +type RpcImageGetBlobRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Size_ ModelImageSize `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.ModelImageSize" json:"size,omitempty"` } -func (m *Rpc_Image_Get_Blob_Request) Reset() { *m = Rpc_Image_Get_Blob_Request{} } -func (m *Rpc_Image_Get_Blob_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_Blob_Request) ProtoMessage() {} -func (*Rpc_Image_Get_Blob_Request) Descriptor() ([]byte, []int) { +func (m *RpcImageGetBlobRequest) Reset() { *m = RpcImageGetBlobRequest{} } +func (m *RpcImageGetBlobRequest) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetBlobRequest) ProtoMessage() {} +func (*RpcImageGetBlobRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 0} } -func (m *Rpc_Image_Get_Blob_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetBlobRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_Blob_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_Blob_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetBlobRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3272,49 +3272,49 @@ func (m *Rpc_Image_Get_Blob_Request) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Image_Get_Blob_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_Blob_Request.Merge(m, src) +func (m *RpcImageGetBlobRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetBlobRequest.Merge(m, src) } -func (m *Rpc_Image_Get_Blob_Request) XXX_Size() int { +func (m *RpcImageGetBlobRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_Blob_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_Blob_Request.DiscardUnknown(m) +func (m *RpcImageGetBlobRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetBlobRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_Blob_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetBlobRequest proto.InternalMessageInfo -func (m *Rpc_Image_Get_Blob_Request) GetId() string { +func (m *RpcImageGetBlobRequest) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Image_Get_Blob_Request) GetSize_() Model_Image_Size { +func (m *RpcImageGetBlobRequest) GetSize_() ModelImageSize { if m != nil { return m.Size_ } - return Model_Image_LARGE + return ModelImage_LARGE } -type Rpc_Image_Get_Blob_Response struct { - Error *Rpc_Image_Get_Blob_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` +type RpcImageGetBlobResponse struct { + Error *RpcImageGetBlobResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` } -func (m *Rpc_Image_Get_Blob_Response) Reset() { *m = Rpc_Image_Get_Blob_Response{} } -func (m *Rpc_Image_Get_Blob_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_Blob_Response) ProtoMessage() {} -func (*Rpc_Image_Get_Blob_Response) Descriptor() ([]byte, []int) { +func (m *RpcImageGetBlobResponse) Reset() { *m = RpcImageGetBlobResponse{} } +func (m *RpcImageGetBlobResponse) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetBlobResponse) ProtoMessage() {} +func (*RpcImageGetBlobResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 1} } -func (m *Rpc_Image_Get_Blob_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetBlobResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_Blob_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetBlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_Blob_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetBlobResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3324,49 +3324,49 @@ func (m *Rpc_Image_Get_Blob_Response) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Image_Get_Blob_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_Blob_Response.Merge(m, src) +func (m *RpcImageGetBlobResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetBlobResponse.Merge(m, src) } -func (m *Rpc_Image_Get_Blob_Response) XXX_Size() int { +func (m *RpcImageGetBlobResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_Blob_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_Blob_Response.DiscardUnknown(m) +func (m *RpcImageGetBlobResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetBlobResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_Blob_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetBlobResponse proto.InternalMessageInfo -func (m *Rpc_Image_Get_Blob_Response) GetError() *Rpc_Image_Get_Blob_Response_Error { +func (m *RpcImageGetBlobResponse) GetError() *RpcImageGetBlobResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Image_Get_Blob_Response) GetBlob() []byte { +func (m *RpcImageGetBlobResponse) GetBlob() []byte { if m != nil { return m.Blob } return nil } -type Rpc_Image_Get_Blob_Response_Error struct { - Code Rpc_Image_Get_Blob_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_Get_Blob_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcImageGetBlobResponseError struct { + Code RpcImageGetBlobResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcImageGetBlobResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Image_Get_Blob_Response_Error) Reset() { *m = Rpc_Image_Get_Blob_Response_Error{} } -func (m *Rpc_Image_Get_Blob_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_Blob_Response_Error) ProtoMessage() {} -func (*Rpc_Image_Get_Blob_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcImageGetBlobResponseError) Reset() { *m = RpcImageGetBlobResponseError{} } +func (m *RpcImageGetBlobResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetBlobResponseError) ProtoMessage() {} +func (*RpcImageGetBlobResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 0, 1, 0} } -func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetBlobResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetBlobResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetBlobResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3376,47 +3376,47 @@ func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error.Merge(m, src) +func (m *RpcImageGetBlobResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetBlobResponseError.Merge(m, src) } -func (m *Rpc_Image_Get_Blob_Response_Error) XXX_Size() int { +func (m *RpcImageGetBlobResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_Blob_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error.DiscardUnknown(m) +func (m *RpcImageGetBlobResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetBlobResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_Blob_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetBlobResponseError proto.InternalMessageInfo -func (m *Rpc_Image_Get_Blob_Response_Error) GetCode() Rpc_Image_Get_Blob_Response_Error_Code { +func (m *RpcImageGetBlobResponseError) GetCode() RpcImageGetBlobResponseErrorCode { if m != nil { return m.Code } - return Rpc_Image_Get_Blob_Response_Error_NULL + return RpcImageGetBlobResponseError_NULL } -func (m *Rpc_Image_Get_Blob_Response_Error) GetDescription() string { +func (m *RpcImageGetBlobResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type Rpc_Image_Get_File struct { +type RpcImageGetFile struct { } -func (m *Rpc_Image_Get_File) Reset() { *m = Rpc_Image_Get_File{} } -func (m *Rpc_Image_Get_File) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_File) ProtoMessage() {} -func (*Rpc_Image_Get_File) Descriptor() ([]byte, []int) { +func (m *RpcImageGetFile) Reset() { *m = RpcImageGetFile{} } +func (m *RpcImageGetFile) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetFile) ProtoMessage() {} +func (*RpcImageGetFile) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1} } -func (m *Rpc_Image_Get_File) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_File.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetFile.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3426,35 +3426,35 @@ func (m *Rpc_Image_Get_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Rpc_Image_Get_File) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_File.Merge(m, src) +func (m *RpcImageGetFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetFile.Merge(m, src) } -func (m *Rpc_Image_Get_File) XXX_Size() int { +func (m *RpcImageGetFile) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_File) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_File.DiscardUnknown(m) +func (m *RpcImageGetFile) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetFile.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_File proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetFile proto.InternalMessageInfo -type Rpc_Image_Get_File_Request struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Size_ Model_Image_Size `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.Model_Image_Size" json:"size,omitempty"` +type RpcImageGetFileRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Size_ ModelImageSize `protobuf:"varint,2,opt,name=size,proto3,enum=anytype.ModelImageSize" json:"size,omitempty"` } -func (m *Rpc_Image_Get_File_Request) Reset() { *m = Rpc_Image_Get_File_Request{} } -func (m *Rpc_Image_Get_File_Request) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_File_Request) ProtoMessage() {} -func (*Rpc_Image_Get_File_Request) Descriptor() ([]byte, []int) { +func (m *RpcImageGetFileRequest) Reset() { *m = RpcImageGetFileRequest{} } +func (m *RpcImageGetFileRequest) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetFileRequest) ProtoMessage() {} +func (*RpcImageGetFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 0} } -func (m *Rpc_Image_Get_File_Request) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetFileRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_File_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_File_Request.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetFileRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3464,49 +3464,49 @@ func (m *Rpc_Image_Get_File_Request) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Rpc_Image_Get_File_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_File_Request.Merge(m, src) +func (m *RpcImageGetFileRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetFileRequest.Merge(m, src) } -func (m *Rpc_Image_Get_File_Request) XXX_Size() int { +func (m *RpcImageGetFileRequest) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_File_Request) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_File_Request.DiscardUnknown(m) +func (m *RpcImageGetFileRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetFileRequest.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_File_Request proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetFileRequest proto.InternalMessageInfo -func (m *Rpc_Image_Get_File_Request) GetId() string { +func (m *RpcImageGetFileRequest) GetId() string { if m != nil { return m.Id } return "" } -func (m *Rpc_Image_Get_File_Request) GetSize_() Model_Image_Size { +func (m *RpcImageGetFileRequest) GetSize_() ModelImageSize { if m != nil { return m.Size_ } - return Model_Image_LARGE + return ModelImage_LARGE } -type Rpc_Image_Get_File_Response struct { - Error *Rpc_Image_Get_File_Response_Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` +type RpcImageGetFileResponse struct { + Error *RpcImageGetFileResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` } -func (m *Rpc_Image_Get_File_Response) Reset() { *m = Rpc_Image_Get_File_Response{} } -func (m *Rpc_Image_Get_File_Response) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_File_Response) ProtoMessage() {} -func (*Rpc_Image_Get_File_Response) Descriptor() ([]byte, []int) { +func (m *RpcImageGetFileResponse) Reset() { *m = RpcImageGetFileResponse{} } +func (m *RpcImageGetFileResponse) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetFileResponse) ProtoMessage() {} +func (*RpcImageGetFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 1} } -func (m *Rpc_Image_Get_File_Response) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetFileResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_File_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_File_Response.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetFileResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3516,49 +3516,49 @@ func (m *Rpc_Image_Get_File_Response) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Rpc_Image_Get_File_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_File_Response.Merge(m, src) +func (m *RpcImageGetFileResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetFileResponse.Merge(m, src) } -func (m *Rpc_Image_Get_File_Response) XXX_Size() int { +func (m *RpcImageGetFileResponse) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_File_Response) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_File_Response.DiscardUnknown(m) +func (m *RpcImageGetFileResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetFileResponse.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_File_Response proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetFileResponse proto.InternalMessageInfo -func (m *Rpc_Image_Get_File_Response) GetError() *Rpc_Image_Get_File_Response_Error { +func (m *RpcImageGetFileResponse) GetError() *RpcImageGetFileResponseError { if m != nil { return m.Error } return nil } -func (m *Rpc_Image_Get_File_Response) GetLocalPath() string { +func (m *RpcImageGetFileResponse) GetLocalPath() string { if m != nil { return m.LocalPath } return "" } -type Rpc_Image_Get_File_Response_Error struct { - Code Rpc_Image_Get_File_Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.Rpc_Image_Get_File_Response_Error_Code" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcImageGetFileResponseError struct { + Code RpcImageGetFileResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcImageGetFileResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *Rpc_Image_Get_File_Response_Error) Reset() { *m = Rpc_Image_Get_File_Response_Error{} } -func (m *Rpc_Image_Get_File_Response_Error) String() string { return proto.CompactTextString(m) } -func (*Rpc_Image_Get_File_Response_Error) ProtoMessage() {} -func (*Rpc_Image_Get_File_Response_Error) Descriptor() ([]byte, []int) { +func (m *RpcImageGetFileResponseError) Reset() { *m = RpcImageGetFileResponseError{} } +func (m *RpcImageGetFileResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcImageGetFileResponseError) ProtoMessage() {} +func (*RpcImageGetFileResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_0dff099eb2e3dfdb, []int{0, 6, 0, 1, 1, 0} } -func (m *Rpc_Image_Get_File_Response_Error) XXX_Unmarshal(b []byte) error { +func (m *RpcImageGetFileResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Rpc_Image_Get_File_Response_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcImageGetFileResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Rpc_Image_Get_File_Response_Error.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcImageGetFileResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3568,26 +3568,26 @@ func (m *Rpc_Image_Get_File_Response_Error) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *Rpc_Image_Get_File_Response_Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rpc_Image_Get_File_Response_Error.Merge(m, src) +func (m *RpcImageGetFileResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcImageGetFileResponseError.Merge(m, src) } -func (m *Rpc_Image_Get_File_Response_Error) XXX_Size() int { +func (m *RpcImageGetFileResponseError) XXX_Size() int { return m.Size() } -func (m *Rpc_Image_Get_File_Response_Error) XXX_DiscardUnknown() { - xxx_messageInfo_Rpc_Image_Get_File_Response_Error.DiscardUnknown(m) +func (m *RpcImageGetFileResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcImageGetFileResponseError.DiscardUnknown(m) } -var xxx_messageInfo_Rpc_Image_Get_File_Response_Error proto.InternalMessageInfo +var xxx_messageInfo_RpcImageGetFileResponseError proto.InternalMessageInfo -func (m *Rpc_Image_Get_File_Response_Error) GetCode() Rpc_Image_Get_File_Response_Error_Code { +func (m *RpcImageGetFileResponseError) GetCode() RpcImageGetFileResponseErrorCode { if m != nil { return m.Code } - return Rpc_Image_Get_File_Response_Error_NULL + return RpcImageGetFileResponseError_NULL } -func (m *Rpc_Image_Get_File_Response_Error) GetDescription() string { +func (m *RpcImageGetFileResponseError) GetDescription() string { if m != nil { return m.Description } @@ -3595,88 +3595,88 @@ func (m *Rpc_Image_Get_File_Response_Error) GetDescription() string { } func init() { - proto.RegisterEnum("anytype.Rpc_Block_History_Move_Response_Error_Code", Rpc_Block_History_Move_Response_Error_Code_name, Rpc_Block_History_Move_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Block_Open_Response_Error_Code", Rpc_Block_Open_Response_Error_Code_name, Rpc_Block_Open_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Block_Create_Response_Error_Code", Rpc_Block_Create_Response_Error_Code_name, Rpc_Block_Create_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Block_Update_Response_Error_Code", Rpc_Block_Update_Response_Error_Code_name, Rpc_Block_Update_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Wallet_Create_Response_Error_Code", Rpc_Wallet_Create_Response_Error_Code_name, Rpc_Wallet_Create_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Wallet_Recover_Response_Error_Code", Rpc_Wallet_Recover_Response_Error_Code_name, Rpc_Wallet_Recover_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Account_Create_Response_Error_Code", Rpc_Account_Create_Response_Error_Code_name, Rpc_Account_Create_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Account_Recover_Response_Error_Code", Rpc_Account_Recover_Response_Error_Code_name, Rpc_Account_Recover_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Account_Select_Response_Error_Code", Rpc_Account_Select_Response_Error_Code_name, Rpc_Account_Select_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Version_Get_Response_Error_Code", Rpc_Version_Get_Response_Error_Code_name, Rpc_Version_Get_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Log_Send_Request_Level", Rpc_Log_Send_Request_Level_name, Rpc_Log_Send_Request_Level_value) - proto.RegisterEnum("anytype.Rpc_Log_Send_Response_Error_Code", Rpc_Log_Send_Response_Error_Code_name, Rpc_Log_Send_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Ipfs_Get_File_Response_Error_Code", Rpc_Ipfs_Get_File_Response_Error_Code_name, Rpc_Ipfs_Get_File_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Image_Get_Blob_Response_Error_Code", Rpc_Image_Get_Blob_Response_Error_Code_name, Rpc_Image_Get_Blob_Response_Error_Code_value) - proto.RegisterEnum("anytype.Rpc_Image_Get_File_Response_Error_Code", Rpc_Image_Get_File_Response_Error_Code_name, Rpc_Image_Get_File_Response_Error_Code_value) + proto.RegisterEnum("anytype.RpcBlockHistoryMoveResponseErrorCode", RpcBlockHistoryMoveResponseErrorCode_name, RpcBlockHistoryMoveResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockOpenResponseErrorCode", RpcBlockOpenResponseErrorCode_name, RpcBlockOpenResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockCreateResponseErrorCode", RpcBlockCreateResponseErrorCode_name, RpcBlockCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockUpdateResponseErrorCode", RpcBlockUpdateResponseErrorCode_name, RpcBlockUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWalletCreateResponseErrorCode", RpcWalletCreateResponseErrorCode_name, RpcWalletCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWalletRecoverResponseErrorCode", RpcWalletRecoverResponseErrorCode_name, RpcWalletRecoverResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcAccountCreateResponseErrorCode", RpcAccountCreateResponseErrorCode_name, RpcAccountCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcAccountRecoverResponseErrorCode", RpcAccountRecoverResponseErrorCode_name, RpcAccountRecoverResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcAccountSelectResponseErrorCode", RpcAccountSelectResponseErrorCode_name, RpcAccountSelectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcVersionGetResponseErrorCode", RpcVersionGetResponseErrorCode_name, RpcVersionGetResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcLogSendRequestLevel", RpcLogSendRequestLevel_name, RpcLogSendRequestLevel_value) + proto.RegisterEnum("anytype.RpcLogSendResponseErrorCode", RpcLogSendResponseErrorCode_name, RpcLogSendResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcIpfsGetFileResponseErrorCode", RpcIpfsGetFileResponseErrorCode_name, RpcIpfsGetFileResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcImageGetBlobResponseErrorCode", RpcImageGetBlobResponseErrorCode_name, RpcImageGetBlobResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcImageGetFileResponseErrorCode", RpcImageGetFileResponseErrorCode_name, RpcImageGetFileResponseErrorCode_value) proto.RegisterType((*Rpc)(nil), "anytype.Rpc") - proto.RegisterType((*Rpc_Block)(nil), "anytype.Rpc.Block") - proto.RegisterType((*Rpc_Block_History)(nil), "anytype.Rpc.Block.History") - proto.RegisterType((*Rpc_Block_History_Move)(nil), "anytype.Rpc.Block.History.Move") - proto.RegisterType((*Rpc_Block_History_Move_Request)(nil), "anytype.Rpc.Block.History.Move.Request") - proto.RegisterType((*Rpc_Block_History_Move_Response)(nil), "anytype.Rpc.Block.History.Move.Response") - proto.RegisterType((*Rpc_Block_History_Move_Response_Error)(nil), "anytype.Rpc.Block.History.Move.Response.Error") - proto.RegisterType((*Rpc_Block_Open)(nil), "anytype.Rpc.Block.Open") - proto.RegisterType((*Rpc_Block_Open_Request)(nil), "anytype.Rpc.Block.Open.Request") - proto.RegisterType((*Rpc_Block_Open_Response)(nil), "anytype.Rpc.Block.Open.Response") - proto.RegisterType((*Rpc_Block_Open_Response_Error)(nil), "anytype.Rpc.Block.Open.Response.Error") - proto.RegisterType((*Rpc_Block_Create)(nil), "anytype.Rpc.Block.Create") - proto.RegisterType((*Rpc_Block_Create_Request)(nil), "anytype.Rpc.Block.Create.Request") - proto.RegisterType((*Rpc_Block_Create_Response)(nil), "anytype.Rpc.Block.Create.Response") - proto.RegisterType((*Rpc_Block_Create_Response_Error)(nil), "anytype.Rpc.Block.Create.Response.Error") - proto.RegisterType((*Rpc_Block_Update)(nil), "anytype.Rpc.Block.Update") - proto.RegisterType((*Rpc_Block_Update_Request)(nil), "anytype.Rpc.Block.Update.Request") - proto.RegisterType((*Rpc_Block_Update_Response)(nil), "anytype.Rpc.Block.Update.Response") - proto.RegisterType((*Rpc_Block_Update_Response_Error)(nil), "anytype.Rpc.Block.Update.Response.Error") - proto.RegisterType((*Rpc_Wallet)(nil), "anytype.Rpc.Wallet") - proto.RegisterType((*Rpc_Wallet_Create)(nil), "anytype.Rpc.Wallet.Create") - proto.RegisterType((*Rpc_Wallet_Create_Request)(nil), "anytype.Rpc.Wallet.Create.Request") - proto.RegisterType((*Rpc_Wallet_Create_Response)(nil), "anytype.Rpc.Wallet.Create.Response") - proto.RegisterType((*Rpc_Wallet_Create_Response_Error)(nil), "anytype.Rpc.Wallet.Create.Response.Error") - proto.RegisterType((*Rpc_Wallet_Recover)(nil), "anytype.Rpc.Wallet.Recover") - proto.RegisterType((*Rpc_Wallet_Recover_Request)(nil), "anytype.Rpc.Wallet.Recover.Request") - proto.RegisterType((*Rpc_Wallet_Recover_Response)(nil), "anytype.Rpc.Wallet.Recover.Response") - proto.RegisterType((*Rpc_Wallet_Recover_Response_Error)(nil), "anytype.Rpc.Wallet.Recover.Response.Error") - proto.RegisterType((*Rpc_Account)(nil), "anytype.Rpc.Account") - proto.RegisterType((*Rpc_Account_Create)(nil), "anytype.Rpc.Account.Create") - proto.RegisterType((*Rpc_Account_Create_Request)(nil), "anytype.Rpc.Account.Create.Request") - proto.RegisterType((*Rpc_Account_Create_Response)(nil), "anytype.Rpc.Account.Create.Response") - proto.RegisterType((*Rpc_Account_Create_Response_Error)(nil), "anytype.Rpc.Account.Create.Response.Error") - proto.RegisterType((*Rpc_Account_Recover)(nil), "anytype.Rpc.Account.Recover") - proto.RegisterType((*Rpc_Account_Recover_Request)(nil), "anytype.Rpc.Account.Recover.Request") - proto.RegisterType((*Rpc_Account_Recover_Response)(nil), "anytype.Rpc.Account.Recover.Response") - proto.RegisterType((*Rpc_Account_Recover_Response_Error)(nil), "anytype.Rpc.Account.Recover.Response.Error") - proto.RegisterType((*Rpc_Account_Select)(nil), "anytype.Rpc.Account.Select") - proto.RegisterType((*Rpc_Account_Select_Request)(nil), "anytype.Rpc.Account.Select.Request") - proto.RegisterType((*Rpc_Account_Select_Response)(nil), "anytype.Rpc.Account.Select.Response") - proto.RegisterType((*Rpc_Account_Select_Response_Error)(nil), "anytype.Rpc.Account.Select.Response.Error") - proto.RegisterType((*Rpc_Version)(nil), "anytype.Rpc.Version") - proto.RegisterType((*Rpc_Version_Get)(nil), "anytype.Rpc.Version.Get") - proto.RegisterType((*Rpc_Version_Get_Request)(nil), "anytype.Rpc.Version.Get.Request") - proto.RegisterType((*Rpc_Version_Get_Response)(nil), "anytype.Rpc.Version.Get.Response") - proto.RegisterType((*Rpc_Version_Get_Response_Error)(nil), "anytype.Rpc.Version.Get.Response.Error") - proto.RegisterType((*Rpc_Log)(nil), "anytype.Rpc.Log") - proto.RegisterType((*Rpc_Log_Send)(nil), "anytype.Rpc.Log.Send") - proto.RegisterType((*Rpc_Log_Send_Request)(nil), "anytype.Rpc.Log.Send.Request") - proto.RegisterType((*Rpc_Log_Send_Response)(nil), "anytype.Rpc.Log.Send.Response") - proto.RegisterType((*Rpc_Log_Send_Response_Error)(nil), "anytype.Rpc.Log.Send.Response.Error") - proto.RegisterType((*Rpc_Ipfs)(nil), "anytype.Rpc.Ipfs") - proto.RegisterType((*Rpc_Ipfs_Get)(nil), "anytype.Rpc.Ipfs.Get") - proto.RegisterType((*Rpc_Ipfs_Get_File)(nil), "anytype.Rpc.Ipfs.Get.File") - proto.RegisterType((*Rpc_Ipfs_Get_File_Request)(nil), "anytype.Rpc.Ipfs.Get.File.Request") - proto.RegisterType((*Rpc_Ipfs_Get_File_Response)(nil), "anytype.Rpc.Ipfs.Get.File.Response") - proto.RegisterType((*Rpc_Ipfs_Get_File_Response_Error)(nil), "anytype.Rpc.Ipfs.Get.File.Response.Error") - proto.RegisterType((*Rpc_Image)(nil), "anytype.Rpc.Image") - proto.RegisterType((*Rpc_Image_Get)(nil), "anytype.Rpc.Image.Get") - proto.RegisterType((*Rpc_Image_Get_Blob)(nil), "anytype.Rpc.Image.Get.Blob") - proto.RegisterType((*Rpc_Image_Get_Blob_Request)(nil), "anytype.Rpc.Image.Get.Blob.Request") - proto.RegisterType((*Rpc_Image_Get_Blob_Response)(nil), "anytype.Rpc.Image.Get.Blob.Response") - proto.RegisterType((*Rpc_Image_Get_Blob_Response_Error)(nil), "anytype.Rpc.Image.Get.Blob.Response.Error") - proto.RegisterType((*Rpc_Image_Get_File)(nil), "anytype.Rpc.Image.Get.File") - proto.RegisterType((*Rpc_Image_Get_File_Request)(nil), "anytype.Rpc.Image.Get.File.Request") - proto.RegisterType((*Rpc_Image_Get_File_Response)(nil), "anytype.Rpc.Image.Get.File.Response") - proto.RegisterType((*Rpc_Image_Get_File_Response_Error)(nil), "anytype.Rpc.Image.Get.File.Response.Error") + proto.RegisterType((*RpcBlock)(nil), "anytype.Rpc.Block") + proto.RegisterType((*RpcBlockHistory)(nil), "anytype.Rpc.Block.History") + proto.RegisterType((*RpcBlockHistoryMove)(nil), "anytype.Rpc.Block.History.Move") + proto.RegisterType((*RpcBlockHistoryMoveRequest)(nil), "anytype.Rpc.Block.History.Move.Request") + proto.RegisterType((*RpcBlockHistoryMoveResponse)(nil), "anytype.Rpc.Block.History.Move.Response") + proto.RegisterType((*RpcBlockHistoryMoveResponseError)(nil), "anytype.Rpc.Block.History.Move.Response.Error") + proto.RegisterType((*RpcBlockOpen)(nil), "anytype.Rpc.Block.Open") + proto.RegisterType((*RpcBlockOpenRequest)(nil), "anytype.Rpc.Block.Open.Request") + proto.RegisterType((*RpcBlockOpenResponse)(nil), "anytype.Rpc.Block.Open.Response") + proto.RegisterType((*RpcBlockOpenResponseError)(nil), "anytype.Rpc.Block.Open.Response.Error") + proto.RegisterType((*RpcBlockCreate)(nil), "anytype.Rpc.Block.Create") + proto.RegisterType((*RpcBlockCreateRequest)(nil), "anytype.Rpc.Block.Create.Request") + proto.RegisterType((*RpcBlockCreateResponse)(nil), "anytype.Rpc.Block.Create.Response") + proto.RegisterType((*RpcBlockCreateResponseError)(nil), "anytype.Rpc.Block.Create.Response.Error") + proto.RegisterType((*RpcBlockUpdate)(nil), "anytype.Rpc.Block.Update") + proto.RegisterType((*RpcBlockUpdateRequest)(nil), "anytype.Rpc.Block.Update.Request") + proto.RegisterType((*RpcBlockUpdateResponse)(nil), "anytype.Rpc.Block.Update.Response") + proto.RegisterType((*RpcBlockUpdateResponseError)(nil), "anytype.Rpc.Block.Update.Response.Error") + proto.RegisterType((*RpcWallet)(nil), "anytype.Rpc.Wallet") + proto.RegisterType((*RpcWalletCreate)(nil), "anytype.Rpc.Wallet.Create") + proto.RegisterType((*RpcWalletCreateRequest)(nil), "anytype.Rpc.Wallet.Create.Request") + proto.RegisterType((*RpcWalletCreateResponse)(nil), "anytype.Rpc.Wallet.Create.Response") + proto.RegisterType((*RpcWalletCreateResponseError)(nil), "anytype.Rpc.Wallet.Create.Response.Error") + proto.RegisterType((*RpcWalletRecover)(nil), "anytype.Rpc.Wallet.Recover") + proto.RegisterType((*RpcWalletRecoverRequest)(nil), "anytype.Rpc.Wallet.Recover.Request") + proto.RegisterType((*RpcWalletRecoverResponse)(nil), "anytype.Rpc.Wallet.Recover.Response") + proto.RegisterType((*RpcWalletRecoverResponseError)(nil), "anytype.Rpc.Wallet.Recover.Response.Error") + proto.RegisterType((*RpcAccount)(nil), "anytype.Rpc.Account") + proto.RegisterType((*RpcAccountCreate)(nil), "anytype.Rpc.Account.Create") + proto.RegisterType((*RpcAccountCreateRequest)(nil), "anytype.Rpc.Account.Create.Request") + proto.RegisterType((*RpcAccountCreateResponse)(nil), "anytype.Rpc.Account.Create.Response") + proto.RegisterType((*RpcAccountCreateResponseError)(nil), "anytype.Rpc.Account.Create.Response.Error") + proto.RegisterType((*RpcAccountRecover)(nil), "anytype.Rpc.Account.Recover") + proto.RegisterType((*RpcAccountRecoverRequest)(nil), "anytype.Rpc.Account.Recover.Request") + proto.RegisterType((*RpcAccountRecoverResponse)(nil), "anytype.Rpc.Account.Recover.Response") + proto.RegisterType((*RpcAccountRecoverResponseError)(nil), "anytype.Rpc.Account.Recover.Response.Error") + proto.RegisterType((*RpcAccountSelect)(nil), "anytype.Rpc.Account.Select") + proto.RegisterType((*RpcAccountSelectRequest)(nil), "anytype.Rpc.Account.Select.Request") + proto.RegisterType((*RpcAccountSelectResponse)(nil), "anytype.Rpc.Account.Select.Response") + proto.RegisterType((*RpcAccountSelectResponseError)(nil), "anytype.Rpc.Account.Select.Response.Error") + proto.RegisterType((*RpcVersion)(nil), "anytype.Rpc.Version") + proto.RegisterType((*RpcVersionGet)(nil), "anytype.Rpc.Version.Get") + proto.RegisterType((*RpcVersionGetRequest)(nil), "anytype.Rpc.Version.Get.Request") + proto.RegisterType((*RpcVersionGetResponse)(nil), "anytype.Rpc.Version.Get.Response") + proto.RegisterType((*RpcVersionGetResponseError)(nil), "anytype.Rpc.Version.Get.Response.Error") + proto.RegisterType((*RpcLog)(nil), "anytype.Rpc.Log") + proto.RegisterType((*RpcLogSend)(nil), "anytype.Rpc.Log.Send") + proto.RegisterType((*RpcLogSendRequest)(nil), "anytype.Rpc.Log.Send.Request") + proto.RegisterType((*RpcLogSendResponse)(nil), "anytype.Rpc.Log.Send.Response") + proto.RegisterType((*RpcLogSendResponseError)(nil), "anytype.Rpc.Log.Send.Response.Error") + proto.RegisterType((*RpcIpfs)(nil), "anytype.Rpc.Ipfs") + proto.RegisterType((*RpcIpfsGet)(nil), "anytype.Rpc.Ipfs.Get") + proto.RegisterType((*RpcIpfsGetFile)(nil), "anytype.Rpc.Ipfs.Get.File") + proto.RegisterType((*RpcIpfsGetFileRequest)(nil), "anytype.Rpc.Ipfs.Get.File.Request") + proto.RegisterType((*RpcIpfsGetFileResponse)(nil), "anytype.Rpc.Ipfs.Get.File.Response") + proto.RegisterType((*RpcIpfsGetFileResponseError)(nil), "anytype.Rpc.Ipfs.Get.File.Response.Error") + proto.RegisterType((*RpcImage)(nil), "anytype.Rpc.Image") + proto.RegisterType((*RpcImageGet)(nil), "anytype.Rpc.Image.Get") + proto.RegisterType((*RpcImageGetBlob)(nil), "anytype.Rpc.Image.Get.Blob") + proto.RegisterType((*RpcImageGetBlobRequest)(nil), "anytype.Rpc.Image.Get.Blob.Request") + proto.RegisterType((*RpcImageGetBlobResponse)(nil), "anytype.Rpc.Image.Get.Blob.Response") + proto.RegisterType((*RpcImageGetBlobResponseError)(nil), "anytype.Rpc.Image.Get.Blob.Response.Error") + proto.RegisterType((*RpcImageGetFile)(nil), "anytype.Rpc.Image.Get.File") + proto.RegisterType((*RpcImageGetFileRequest)(nil), "anytype.Rpc.Image.Get.File.Request") + proto.RegisterType((*RpcImageGetFileResponse)(nil), "anytype.Rpc.Image.Get.File.Response") + proto.RegisterType((*RpcImageGetFileResponseError)(nil), "anytype.Rpc.Image.Get.File.Response.Error") } func init() { proto.RegisterFile("commands.proto", fileDescriptor_0dff099eb2e3dfdb) } @@ -3804,7 +3804,7 @@ func (m *Rpc) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block) Marshal() (dAtA []byte, err error) { +func (m *RpcBlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3814,12 +3814,12 @@ func (m *Rpc_Block) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3827,7 +3827,7 @@ func (m *Rpc_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_History) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockHistory) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3837,12 +3837,12 @@ func (m *Rpc_Block_History) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_History) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockHistory) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_History) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3850,7 +3850,7 @@ func (m *Rpc_Block_History) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_History_Move) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockHistoryMove) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3860,12 +3860,12 @@ func (m *Rpc_Block_History_Move) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_History_Move) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMove) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_History_Move) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMove) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3873,7 +3873,7 @@ func (m *Rpc_Block_History_Move) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Rpc_Block_History_Move_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockHistoryMoveRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3883,12 +3883,12 @@ func (m *Rpc_Block_History_Move_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_History_Move_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMoveRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_History_Move_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3920,7 +3920,7 @@ func (m *Rpc_Block_History_Move_Request) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Rpc_Block_History_Move_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockHistoryMoveResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3930,12 +3930,12 @@ func (m *Rpc_Block_History_Move_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_History_Move_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMoveResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_History_Move_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3955,7 +3955,7 @@ func (m *Rpc_Block_History_Move_Response) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *Rpc_Block_History_Move_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockHistoryMoveResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3965,12 +3965,12 @@ func (m *Rpc_Block_History_Move_Response_Error) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *Rpc_Block_History_Move_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMoveResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_History_Move_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockHistoryMoveResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3990,7 +3990,7 @@ func (m *Rpc_Block_History_Move_Response_Error) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *Rpc_Block_Open) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockOpen) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4000,12 +4000,12 @@ func (m *Rpc_Block_Open) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Open) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockOpen) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Open) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4013,7 +4013,7 @@ func (m *Rpc_Block_Open) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_Open_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockOpenRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4023,12 +4023,12 @@ func (m *Rpc_Block_Open_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Open_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockOpenRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Open_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4043,7 +4043,7 @@ func (m *Rpc_Block_Open_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Rpc_Block_Open_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockOpenResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4053,12 +4053,12 @@ func (m *Rpc_Block_Open_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Open_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockOpenResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Open_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4090,7 +4090,7 @@ func (m *Rpc_Block_Open_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Rpc_Block_Open_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockOpenResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4100,12 +4100,12 @@ func (m *Rpc_Block_Open_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Open_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockOpenResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Open_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockOpenResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4125,7 +4125,7 @@ func (m *Rpc_Block_Open_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Rpc_Block_Create) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockCreate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4135,12 +4135,12 @@ func (m *Rpc_Block_Create) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Create) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4148,7 +4148,7 @@ func (m *Rpc_Block_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_Create_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockCreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4158,12 +4158,12 @@ func (m *Rpc_Block_Create_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Create_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockCreateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4183,7 +4183,7 @@ func (m *Rpc_Block_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Rpc_Block_Create_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockCreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4193,12 +4193,12 @@ func (m *Rpc_Block_Create_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Create_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockCreateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4218,7 +4218,7 @@ func (m *Rpc_Block_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Block_Create_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockCreateResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4228,12 +4228,12 @@ func (m *Rpc_Block_Create_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Create_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockCreateResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4253,7 +4253,7 @@ func (m *Rpc_Block_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *Rpc_Block_Update) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockUpdate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4263,12 +4263,12 @@ func (m *Rpc_Block_Update) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Update) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockUpdate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4276,7 +4276,7 @@ func (m *Rpc_Block_Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Block_Update_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockUpdateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4286,12 +4286,12 @@ func (m *Rpc_Block_Update_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Update_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockUpdateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Update_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4311,7 +4311,7 @@ func (m *Rpc_Block_Update_Request) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Rpc_Block_Update_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockUpdateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4321,12 +4321,12 @@ func (m *Rpc_Block_Update_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Update_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockUpdateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Update_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4346,7 +4346,7 @@ func (m *Rpc_Block_Update_Response) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Block_Update_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockUpdateResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4356,12 +4356,12 @@ func (m *Rpc_Block_Update_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Block_Update_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Block_Update_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockUpdateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4381,7 +4381,7 @@ func (m *Rpc_Block_Update_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *Rpc_Wallet) Marshal() (dAtA []byte, err error) { +func (m *RpcWallet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4391,12 +4391,12 @@ func (m *Rpc_Wallet) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWallet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWallet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4404,7 +4404,7 @@ func (m *Rpc_Wallet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Create) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletCreate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4414,12 +4414,12 @@ func (m *Rpc_Wallet_Create) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Create) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4427,7 +4427,7 @@ func (m *Rpc_Wallet_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Create_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletCreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4437,12 +4437,12 @@ func (m *Rpc_Wallet_Create_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Create_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletCreateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4457,7 +4457,7 @@ func (m *Rpc_Wallet_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Create_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletCreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4467,12 +4467,12 @@ func (m *Rpc_Wallet_Create_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Create_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletCreateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4499,7 +4499,7 @@ func (m *Rpc_Wallet_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Create_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletCreateResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4509,12 +4509,12 @@ func (m *Rpc_Wallet_Create_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Create_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletCreateResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4534,7 +4534,7 @@ func (m *Rpc_Wallet_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Recover) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletRecover) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4544,12 +4544,12 @@ func (m *Rpc_Wallet_Recover) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Recover) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletRecover) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Recover) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletRecover) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4557,7 +4557,7 @@ func (m *Rpc_Wallet_Recover) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Recover_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletRecoverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4567,12 +4567,12 @@ func (m *Rpc_Wallet_Recover_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Recover_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletRecoverRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Recover_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletRecoverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4594,7 +4594,7 @@ func (m *Rpc_Wallet_Recover_Request) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Recover_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletRecoverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4604,12 +4604,12 @@ func (m *Rpc_Wallet_Recover_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Recover_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletRecoverResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Recover_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletRecoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4629,7 +4629,7 @@ func (m *Rpc_Wallet_Recover_Response) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Wallet_Recover_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcWalletRecoverResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4639,12 +4639,12 @@ func (m *Rpc_Wallet_Recover_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Wallet_Recover_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWalletRecoverResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Wallet_Recover_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWalletRecoverResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4664,7 +4664,7 @@ func (m *Rpc_Wallet_Recover_Response_Error) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *Rpc_Account) Marshal() (dAtA []byte, err error) { +func (m *RpcAccount) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4674,12 +4674,12 @@ func (m *Rpc_Account) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4687,7 +4687,7 @@ func (m *Rpc_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Account_Create) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountCreate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4697,12 +4697,12 @@ func (m *Rpc_Account_Create) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Create) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4710,7 +4710,7 @@ func (m *Rpc_Account_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Account_Create_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountCreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4720,12 +4720,12 @@ func (m *Rpc_Account_Create_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Create_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountCreateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4749,12 +4749,12 @@ func (m *Rpc_Account_Create_Request) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Account_Create_Request_AvatarLocalPath) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountCreateRequestAvatarOfAvatarLocalPath) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Create_Request_AvatarLocalPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountCreateRequestAvatarOfAvatarLocalPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.AvatarLocalPath) copy(dAtA[i:], m.AvatarLocalPath) @@ -4763,12 +4763,12 @@ func (m *Rpc_Account_Create_Request_AvatarLocalPath) MarshalToSizedBuffer(dAtA [ dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *Rpc_Account_Create_Request_AvatarColor) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountCreateRequestAvatarOfAvatarColor) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Create_Request_AvatarColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountCreateRequestAvatarOfAvatarColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.AvatarColor) copy(dAtA[i:], m.AvatarColor) @@ -4777,7 +4777,7 @@ func (m *Rpc_Account_Create_Request_AvatarColor) MarshalToSizedBuffer(dAtA []byt dAtA[i] = 0x1a return len(dAtA) - i, nil } -func (m *Rpc_Account_Create_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountCreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4787,12 +4787,12 @@ func (m *Rpc_Account_Create_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Create_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountCreateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4824,7 +4824,7 @@ func (m *Rpc_Account_Create_Response) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Account_Create_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountCreateResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4834,12 +4834,12 @@ func (m *Rpc_Account_Create_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Create_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountCreateResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4859,7 +4859,7 @@ func (m *Rpc_Account_Create_Response_Error) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *Rpc_Account_Recover) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountRecover) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4869,12 +4869,12 @@ func (m *Rpc_Account_Recover) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Recover) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountRecover) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Recover) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountRecover) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4882,7 +4882,7 @@ func (m *Rpc_Account_Recover) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Account_Recover_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountRecoverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4892,12 +4892,12 @@ func (m *Rpc_Account_Recover_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Recover_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountRecoverRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Recover_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountRecoverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4905,7 +4905,7 @@ func (m *Rpc_Account_Recover_Request) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Account_Recover_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountRecoverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4915,12 +4915,12 @@ func (m *Rpc_Account_Recover_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Recover_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountRecoverResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Recover_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountRecoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4940,7 +4940,7 @@ func (m *Rpc_Account_Recover_Response) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Rpc_Account_Recover_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountRecoverResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4950,12 +4950,12 @@ func (m *Rpc_Account_Recover_Response_Error) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *Rpc_Account_Recover_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountRecoverResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Recover_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountRecoverResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4975,7 +4975,7 @@ func (m *Rpc_Account_Recover_Response_Error) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *Rpc_Account_Select) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountSelect) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4985,12 +4985,12 @@ func (m *Rpc_Account_Select) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Select) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountSelect) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Select) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountSelect) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4998,7 +4998,7 @@ func (m *Rpc_Account_Select) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Account_Select_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountSelectRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5008,12 +5008,12 @@ func (m *Rpc_Account_Select_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Select_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountSelectRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Select_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountSelectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5035,7 +5035,7 @@ func (m *Rpc_Account_Select_Request) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Account_Select_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountSelectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5045,12 +5045,12 @@ func (m *Rpc_Account_Select_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Select_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountSelectResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Select_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountSelectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5082,7 +5082,7 @@ func (m *Rpc_Account_Select_Response) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Account_Select_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountSelectResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5092,12 +5092,12 @@ func (m *Rpc_Account_Select_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Account_Select_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountSelectResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Account_Select_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountSelectResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5117,7 +5117,7 @@ func (m *Rpc_Account_Select_Response_Error) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *Rpc_Version) Marshal() (dAtA []byte, err error) { +func (m *RpcVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5127,12 +5127,12 @@ func (m *Rpc_Version) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Version) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcVersion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5140,7 +5140,7 @@ func (m *Rpc_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Version_Get) Marshal() (dAtA []byte, err error) { +func (m *RpcVersionGet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5150,12 +5150,12 @@ func (m *Rpc_Version_Get) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Version_Get) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcVersionGet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Version_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcVersionGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5163,7 +5163,7 @@ func (m *Rpc_Version_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Version_Get_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcVersionGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5173,12 +5173,12 @@ func (m *Rpc_Version_Get_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Version_Get_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcVersionGetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Version_Get_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcVersionGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5186,7 +5186,7 @@ func (m *Rpc_Version_Get_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Rpc_Version_Get_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcVersionGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5196,12 +5196,12 @@ func (m *Rpc_Version_Get_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Version_Get_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcVersionGetResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Version_Get_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcVersionGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5228,7 +5228,7 @@ func (m *Rpc_Version_Get_Response) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Rpc_Version_Get_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcVersionGetResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5238,12 +5238,12 @@ func (m *Rpc_Version_Get_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Version_Get_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcVersionGetResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Version_Get_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcVersionGetResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5263,7 +5263,7 @@ func (m *Rpc_Version_Get_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Rpc_Log) Marshal() (dAtA []byte, err error) { +func (m *RpcLog) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5273,12 +5273,12 @@ func (m *Rpc_Log) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Log) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcLog) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Log) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5286,7 +5286,7 @@ func (m *Rpc_Log) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Log_Send) Marshal() (dAtA []byte, err error) { +func (m *RpcLogSend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5296,12 +5296,12 @@ func (m *Rpc_Log_Send) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Log_Send) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcLogSend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Log_Send) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcLogSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5309,7 +5309,7 @@ func (m *Rpc_Log_Send) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Log_Send_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcLogSendRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5319,12 +5319,12 @@ func (m *Rpc_Log_Send_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Log_Send_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcLogSendRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Log_Send_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcLogSendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5344,7 +5344,7 @@ func (m *Rpc_Log_Send_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Log_Send_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcLogSendResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5354,12 +5354,12 @@ func (m *Rpc_Log_Send_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Log_Send_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcLogSendResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Log_Send_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcLogSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5379,7 +5379,7 @@ func (m *Rpc_Log_Send_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Log_Send_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcLogSendResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5389,12 +5389,12 @@ func (m *Rpc_Log_Send_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Log_Send_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcLogSendResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Log_Send_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcLogSendResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5414,7 +5414,7 @@ func (m *Rpc_Log_Send_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Ipfs) Marshal() (dAtA []byte, err error) { +func (m *RpcIpfs) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5424,12 +5424,12 @@ func (m *Rpc_Ipfs) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcIpfs) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcIpfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5437,7 +5437,7 @@ func (m *Rpc_Ipfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_Get) Marshal() (dAtA []byte, err error) { +func (m *RpcIpfsGet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5447,12 +5447,12 @@ func (m *Rpc_Ipfs_Get) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_Get) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcIpfsGet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcIpfsGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5460,7 +5460,7 @@ func (m *Rpc_Ipfs_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_Get_File) Marshal() (dAtA []byte, err error) { +func (m *RpcIpfsGetFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5470,12 +5470,12 @@ func (m *Rpc_Ipfs_Get_File) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_Get_File) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFile) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_Get_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5483,7 +5483,7 @@ func (m *Rpc_Ipfs_Get_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_Get_File_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcIpfsGetFileRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5493,12 +5493,12 @@ func (m *Rpc_Ipfs_Get_File_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_Get_File_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFileRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_Get_File_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5513,7 +5513,7 @@ func (m *Rpc_Ipfs_Get_File_Request) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_Get_File_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcIpfsGetFileResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5523,12 +5523,12 @@ func (m *Rpc_Ipfs_Get_File_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_Get_File_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFileResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_Get_File_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5569,7 +5569,7 @@ func (m *Rpc_Ipfs_Get_File_Response) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Ipfs_Get_File_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcIpfsGetFileResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5579,12 +5579,12 @@ func (m *Rpc_Ipfs_Get_File_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Ipfs_Get_File_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFileResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Ipfs_Get_File_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcIpfsGetFileResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5604,7 +5604,7 @@ func (m *Rpc_Ipfs_Get_File_Response_Error) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *Rpc_Image) Marshal() (dAtA []byte, err error) { +func (m *RpcImage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5614,12 +5614,12 @@ func (m *Rpc_Image) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5627,7 +5627,7 @@ func (m *Rpc_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_Get) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5637,12 +5637,12 @@ func (m *Rpc_Image_Get) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5650,7 +5650,7 @@ func (m *Rpc_Image_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_Blob) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetBlob) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5660,12 +5660,12 @@ func (m *Rpc_Image_Get_Blob) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_Blob) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetBlob) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5673,7 +5673,7 @@ func (m *Rpc_Image_Get_Blob) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_Blob_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetBlobRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5683,12 +5683,12 @@ func (m *Rpc_Image_Get_Blob_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_Blob_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetBlobRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_Blob_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetBlobRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5708,7 +5708,7 @@ func (m *Rpc_Image_Get_Blob_Request) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_Blob_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetBlobResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5718,12 +5718,12 @@ func (m *Rpc_Image_Get_Blob_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_Blob_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetBlobResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_Blob_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetBlobResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5750,7 +5750,7 @@ func (m *Rpc_Image_Get_Blob_Response) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_Blob_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetBlobResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5760,12 +5760,12 @@ func (m *Rpc_Image_Get_Blob_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_Blob_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetBlobResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_Blob_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetBlobResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5785,7 +5785,7 @@ func (m *Rpc_Image_Get_Blob_Response_Error) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_File) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5795,12 +5795,12 @@ func (m *Rpc_Image_Get_File) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_File) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetFile) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5808,7 +5808,7 @@ func (m *Rpc_Image_Get_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_File_Request) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetFileRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5818,12 +5818,12 @@ func (m *Rpc_Image_Get_File_Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_File_Request) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetFileRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_File_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5843,7 +5843,7 @@ func (m *Rpc_Image_Get_File_Request) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_File_Response) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetFileResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5853,12 +5853,12 @@ func (m *Rpc_Image_Get_File_Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_File_Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetFileResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_File_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5885,7 +5885,7 @@ func (m *Rpc_Image_Get_File_Response) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Rpc_Image_Get_File_Response_Error) Marshal() (dAtA []byte, err error) { +func (m *RpcImageGetFileResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5895,12 +5895,12 @@ func (m *Rpc_Image_Get_File_Response_Error) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Rpc_Image_Get_File_Response_Error) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcImageGetFileResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Rpc_Image_Get_File_Response_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcImageGetFileResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5940,7 +5940,7 @@ func (m *Rpc) Size() (n int) { return n } -func (m *Rpc_Block) Size() (n int) { +func (m *RpcBlock) Size() (n int) { if m == nil { return 0 } @@ -5949,7 +5949,7 @@ func (m *Rpc_Block) Size() (n int) { return n } -func (m *Rpc_Block_History) Size() (n int) { +func (m *RpcBlockHistory) Size() (n int) { if m == nil { return 0 } @@ -5958,7 +5958,7 @@ func (m *Rpc_Block_History) Size() (n int) { return n } -func (m *Rpc_Block_History_Move) Size() (n int) { +func (m *RpcBlockHistoryMove) Size() (n int) { if m == nil { return 0 } @@ -5967,7 +5967,7 @@ func (m *Rpc_Block_History_Move) Size() (n int) { return n } -func (m *Rpc_Block_History_Move_Request) Size() (n int) { +func (m *RpcBlockHistoryMoveRequest) Size() (n int) { if m == nil { return 0 } @@ -5987,7 +5987,7 @@ func (m *Rpc_Block_History_Move_Request) Size() (n int) { return n } -func (m *Rpc_Block_History_Move_Response) Size() (n int) { +func (m *RpcBlockHistoryMoveResponse) Size() (n int) { if m == nil { return 0 } @@ -6000,7 +6000,7 @@ func (m *Rpc_Block_History_Move_Response) Size() (n int) { return n } -func (m *Rpc_Block_History_Move_Response_Error) Size() (n int) { +func (m *RpcBlockHistoryMoveResponseError) Size() (n int) { if m == nil { return 0 } @@ -6016,7 +6016,7 @@ func (m *Rpc_Block_History_Move_Response_Error) Size() (n int) { return n } -func (m *Rpc_Block_Open) Size() (n int) { +func (m *RpcBlockOpen) Size() (n int) { if m == nil { return 0 } @@ -6025,7 +6025,7 @@ func (m *Rpc_Block_Open) Size() (n int) { return n } -func (m *Rpc_Block_Open_Request) Size() (n int) { +func (m *RpcBlockOpenRequest) Size() (n int) { if m == nil { return 0 } @@ -6038,7 +6038,7 @@ func (m *Rpc_Block_Open_Request) Size() (n int) { return n } -func (m *Rpc_Block_Open_Response) Size() (n int) { +func (m *RpcBlockOpenResponse) Size() (n int) { if m == nil { return 0 } @@ -6055,7 +6055,7 @@ func (m *Rpc_Block_Open_Response) Size() (n int) { return n } -func (m *Rpc_Block_Open_Response_Error) Size() (n int) { +func (m *RpcBlockOpenResponseError) Size() (n int) { if m == nil { return 0 } @@ -6071,7 +6071,7 @@ func (m *Rpc_Block_Open_Response_Error) Size() (n int) { return n } -func (m *Rpc_Block_Create) Size() (n int) { +func (m *RpcBlockCreate) Size() (n int) { if m == nil { return 0 } @@ -6080,7 +6080,7 @@ func (m *Rpc_Block_Create) Size() (n int) { return n } -func (m *Rpc_Block_Create_Request) Size() (n int) { +func (m *RpcBlockCreateRequest) Size() (n int) { if m == nil { return 0 } @@ -6096,7 +6096,7 @@ func (m *Rpc_Block_Create_Request) Size() (n int) { return n } -func (m *Rpc_Block_Create_Response) Size() (n int) { +func (m *RpcBlockCreateResponse) Size() (n int) { if m == nil { return 0 } @@ -6109,7 +6109,7 @@ func (m *Rpc_Block_Create_Response) Size() (n int) { return n } -func (m *Rpc_Block_Create_Response_Error) Size() (n int) { +func (m *RpcBlockCreateResponseError) Size() (n int) { if m == nil { return 0 } @@ -6125,7 +6125,7 @@ func (m *Rpc_Block_Create_Response_Error) Size() (n int) { return n } -func (m *Rpc_Block_Update) Size() (n int) { +func (m *RpcBlockUpdate) Size() (n int) { if m == nil { return 0 } @@ -6134,7 +6134,7 @@ func (m *Rpc_Block_Update) Size() (n int) { return n } -func (m *Rpc_Block_Update_Request) Size() (n int) { +func (m *RpcBlockUpdateRequest) Size() (n int) { if m == nil { return 0 } @@ -6147,7 +6147,7 @@ func (m *Rpc_Block_Update_Request) Size() (n int) { return n } -func (m *Rpc_Block_Update_Response) Size() (n int) { +func (m *RpcBlockUpdateResponse) Size() (n int) { if m == nil { return 0 } @@ -6160,7 +6160,7 @@ func (m *Rpc_Block_Update_Response) Size() (n int) { return n } -func (m *Rpc_Block_Update_Response_Error) Size() (n int) { +func (m *RpcBlockUpdateResponseError) Size() (n int) { if m == nil { return 0 } @@ -6176,7 +6176,7 @@ func (m *Rpc_Block_Update_Response_Error) Size() (n int) { return n } -func (m *Rpc_Wallet) Size() (n int) { +func (m *RpcWallet) Size() (n int) { if m == nil { return 0 } @@ -6185,7 +6185,7 @@ func (m *Rpc_Wallet) Size() (n int) { return n } -func (m *Rpc_Wallet_Create) Size() (n int) { +func (m *RpcWalletCreate) Size() (n int) { if m == nil { return 0 } @@ -6194,7 +6194,7 @@ func (m *Rpc_Wallet_Create) Size() (n int) { return n } -func (m *Rpc_Wallet_Create_Request) Size() (n int) { +func (m *RpcWalletCreateRequest) Size() (n int) { if m == nil { return 0 } @@ -6207,7 +6207,7 @@ func (m *Rpc_Wallet_Create_Request) Size() (n int) { return n } -func (m *Rpc_Wallet_Create_Response) Size() (n int) { +func (m *RpcWalletCreateResponse) Size() (n int) { if m == nil { return 0 } @@ -6224,7 +6224,7 @@ func (m *Rpc_Wallet_Create_Response) Size() (n int) { return n } -func (m *Rpc_Wallet_Create_Response_Error) Size() (n int) { +func (m *RpcWalletCreateResponseError) Size() (n int) { if m == nil { return 0 } @@ -6240,7 +6240,7 @@ func (m *Rpc_Wallet_Create_Response_Error) Size() (n int) { return n } -func (m *Rpc_Wallet_Recover) Size() (n int) { +func (m *RpcWalletRecover) Size() (n int) { if m == nil { return 0 } @@ -6249,7 +6249,7 @@ func (m *Rpc_Wallet_Recover) Size() (n int) { return n } -func (m *Rpc_Wallet_Recover_Request) Size() (n int) { +func (m *RpcWalletRecoverRequest) Size() (n int) { if m == nil { return 0 } @@ -6266,7 +6266,7 @@ func (m *Rpc_Wallet_Recover_Request) Size() (n int) { return n } -func (m *Rpc_Wallet_Recover_Response) Size() (n int) { +func (m *RpcWalletRecoverResponse) Size() (n int) { if m == nil { return 0 } @@ -6279,7 +6279,7 @@ func (m *Rpc_Wallet_Recover_Response) Size() (n int) { return n } -func (m *Rpc_Wallet_Recover_Response_Error) Size() (n int) { +func (m *RpcWalletRecoverResponseError) Size() (n int) { if m == nil { return 0 } @@ -6295,7 +6295,7 @@ func (m *Rpc_Wallet_Recover_Response_Error) Size() (n int) { return n } -func (m *Rpc_Account) Size() (n int) { +func (m *RpcAccount) Size() (n int) { if m == nil { return 0 } @@ -6304,7 +6304,7 @@ func (m *Rpc_Account) Size() (n int) { return n } -func (m *Rpc_Account_Create) Size() (n int) { +func (m *RpcAccountCreate) Size() (n int) { if m == nil { return 0 } @@ -6313,7 +6313,7 @@ func (m *Rpc_Account_Create) Size() (n int) { return n } -func (m *Rpc_Account_Create_Request) Size() (n int) { +func (m *RpcAccountCreateRequest) Size() (n int) { if m == nil { return 0 } @@ -6329,7 +6329,7 @@ func (m *Rpc_Account_Create_Request) Size() (n int) { return n } -func (m *Rpc_Account_Create_Request_AvatarLocalPath) Size() (n int) { +func (m *RpcAccountCreateRequestAvatarOfAvatarLocalPath) Size() (n int) { if m == nil { return 0 } @@ -6339,7 +6339,7 @@ func (m *Rpc_Account_Create_Request_AvatarLocalPath) Size() (n int) { n += 1 + l + sovCommands(uint64(l)) return n } -func (m *Rpc_Account_Create_Request_AvatarColor) Size() (n int) { +func (m *RpcAccountCreateRequestAvatarOfAvatarColor) Size() (n int) { if m == nil { return 0 } @@ -6349,7 +6349,7 @@ func (m *Rpc_Account_Create_Request_AvatarColor) Size() (n int) { n += 1 + l + sovCommands(uint64(l)) return n } -func (m *Rpc_Account_Create_Response) Size() (n int) { +func (m *RpcAccountCreateResponse) Size() (n int) { if m == nil { return 0 } @@ -6366,7 +6366,7 @@ func (m *Rpc_Account_Create_Response) Size() (n int) { return n } -func (m *Rpc_Account_Create_Response_Error) Size() (n int) { +func (m *RpcAccountCreateResponseError) Size() (n int) { if m == nil { return 0 } @@ -6382,7 +6382,7 @@ func (m *Rpc_Account_Create_Response_Error) Size() (n int) { return n } -func (m *Rpc_Account_Recover) Size() (n int) { +func (m *RpcAccountRecover) Size() (n int) { if m == nil { return 0 } @@ -6391,7 +6391,7 @@ func (m *Rpc_Account_Recover) Size() (n int) { return n } -func (m *Rpc_Account_Recover_Request) Size() (n int) { +func (m *RpcAccountRecoverRequest) Size() (n int) { if m == nil { return 0 } @@ -6400,7 +6400,7 @@ func (m *Rpc_Account_Recover_Request) Size() (n int) { return n } -func (m *Rpc_Account_Recover_Response) Size() (n int) { +func (m *RpcAccountRecoverResponse) Size() (n int) { if m == nil { return 0 } @@ -6413,7 +6413,7 @@ func (m *Rpc_Account_Recover_Response) Size() (n int) { return n } -func (m *Rpc_Account_Recover_Response_Error) Size() (n int) { +func (m *RpcAccountRecoverResponseError) Size() (n int) { if m == nil { return 0 } @@ -6429,7 +6429,7 @@ func (m *Rpc_Account_Recover_Response_Error) Size() (n int) { return n } -func (m *Rpc_Account_Select) Size() (n int) { +func (m *RpcAccountSelect) Size() (n int) { if m == nil { return 0 } @@ -6438,7 +6438,7 @@ func (m *Rpc_Account_Select) Size() (n int) { return n } -func (m *Rpc_Account_Select_Request) Size() (n int) { +func (m *RpcAccountSelectRequest) Size() (n int) { if m == nil { return 0 } @@ -6455,7 +6455,7 @@ func (m *Rpc_Account_Select_Request) Size() (n int) { return n } -func (m *Rpc_Account_Select_Response) Size() (n int) { +func (m *RpcAccountSelectResponse) Size() (n int) { if m == nil { return 0 } @@ -6472,7 +6472,7 @@ func (m *Rpc_Account_Select_Response) Size() (n int) { return n } -func (m *Rpc_Account_Select_Response_Error) Size() (n int) { +func (m *RpcAccountSelectResponseError) Size() (n int) { if m == nil { return 0 } @@ -6488,7 +6488,7 @@ func (m *Rpc_Account_Select_Response_Error) Size() (n int) { return n } -func (m *Rpc_Version) Size() (n int) { +func (m *RpcVersion) Size() (n int) { if m == nil { return 0 } @@ -6497,7 +6497,7 @@ func (m *Rpc_Version) Size() (n int) { return n } -func (m *Rpc_Version_Get) Size() (n int) { +func (m *RpcVersionGet) Size() (n int) { if m == nil { return 0 } @@ -6506,7 +6506,7 @@ func (m *Rpc_Version_Get) Size() (n int) { return n } -func (m *Rpc_Version_Get_Request) Size() (n int) { +func (m *RpcVersionGetRequest) Size() (n int) { if m == nil { return 0 } @@ -6515,7 +6515,7 @@ func (m *Rpc_Version_Get_Request) Size() (n int) { return n } -func (m *Rpc_Version_Get_Response) Size() (n int) { +func (m *RpcVersionGetResponse) Size() (n int) { if m == nil { return 0 } @@ -6532,7 +6532,7 @@ func (m *Rpc_Version_Get_Response) Size() (n int) { return n } -func (m *Rpc_Version_Get_Response_Error) Size() (n int) { +func (m *RpcVersionGetResponseError) Size() (n int) { if m == nil { return 0 } @@ -6548,7 +6548,7 @@ func (m *Rpc_Version_Get_Response_Error) Size() (n int) { return n } -func (m *Rpc_Log) Size() (n int) { +func (m *RpcLog) Size() (n int) { if m == nil { return 0 } @@ -6557,7 +6557,7 @@ func (m *Rpc_Log) Size() (n int) { return n } -func (m *Rpc_Log_Send) Size() (n int) { +func (m *RpcLogSend) Size() (n int) { if m == nil { return 0 } @@ -6566,7 +6566,7 @@ func (m *Rpc_Log_Send) Size() (n int) { return n } -func (m *Rpc_Log_Send_Request) Size() (n int) { +func (m *RpcLogSendRequest) Size() (n int) { if m == nil { return 0 } @@ -6582,7 +6582,7 @@ func (m *Rpc_Log_Send_Request) Size() (n int) { return n } -func (m *Rpc_Log_Send_Response) Size() (n int) { +func (m *RpcLogSendResponse) Size() (n int) { if m == nil { return 0 } @@ -6595,7 +6595,7 @@ func (m *Rpc_Log_Send_Response) Size() (n int) { return n } -func (m *Rpc_Log_Send_Response_Error) Size() (n int) { +func (m *RpcLogSendResponseError) Size() (n int) { if m == nil { return 0 } @@ -6611,7 +6611,7 @@ func (m *Rpc_Log_Send_Response_Error) Size() (n int) { return n } -func (m *Rpc_Ipfs) Size() (n int) { +func (m *RpcIpfs) Size() (n int) { if m == nil { return 0 } @@ -6620,7 +6620,7 @@ func (m *Rpc_Ipfs) Size() (n int) { return n } -func (m *Rpc_Ipfs_Get) Size() (n int) { +func (m *RpcIpfsGet) Size() (n int) { if m == nil { return 0 } @@ -6629,7 +6629,7 @@ func (m *Rpc_Ipfs_Get) Size() (n int) { return n } -func (m *Rpc_Ipfs_Get_File) Size() (n int) { +func (m *RpcIpfsGetFile) Size() (n int) { if m == nil { return 0 } @@ -6638,7 +6638,7 @@ func (m *Rpc_Ipfs_Get_File) Size() (n int) { return n } -func (m *Rpc_Ipfs_Get_File_Request) Size() (n int) { +func (m *RpcIpfsGetFileRequest) Size() (n int) { if m == nil { return 0 } @@ -6651,7 +6651,7 @@ func (m *Rpc_Ipfs_Get_File_Request) Size() (n int) { return n } -func (m *Rpc_Ipfs_Get_File_Response) Size() (n int) { +func (m *RpcIpfsGetFileResponse) Size() (n int) { if m == nil { return 0 } @@ -6676,7 +6676,7 @@ func (m *Rpc_Ipfs_Get_File_Response) Size() (n int) { return n } -func (m *Rpc_Ipfs_Get_File_Response_Error) Size() (n int) { +func (m *RpcIpfsGetFileResponseError) Size() (n int) { if m == nil { return 0 } @@ -6692,7 +6692,7 @@ func (m *Rpc_Ipfs_Get_File_Response_Error) Size() (n int) { return n } -func (m *Rpc_Image) Size() (n int) { +func (m *RpcImage) Size() (n int) { if m == nil { return 0 } @@ -6701,7 +6701,7 @@ func (m *Rpc_Image) Size() (n int) { return n } -func (m *Rpc_Image_Get) Size() (n int) { +func (m *RpcImageGet) Size() (n int) { if m == nil { return 0 } @@ -6710,7 +6710,7 @@ func (m *Rpc_Image_Get) Size() (n int) { return n } -func (m *Rpc_Image_Get_Blob) Size() (n int) { +func (m *RpcImageGetBlob) Size() (n int) { if m == nil { return 0 } @@ -6719,7 +6719,7 @@ func (m *Rpc_Image_Get_Blob) Size() (n int) { return n } -func (m *Rpc_Image_Get_Blob_Request) Size() (n int) { +func (m *RpcImageGetBlobRequest) Size() (n int) { if m == nil { return 0 } @@ -6735,7 +6735,7 @@ func (m *Rpc_Image_Get_Blob_Request) Size() (n int) { return n } -func (m *Rpc_Image_Get_Blob_Response) Size() (n int) { +func (m *RpcImageGetBlobResponse) Size() (n int) { if m == nil { return 0 } @@ -6752,7 +6752,7 @@ func (m *Rpc_Image_Get_Blob_Response) Size() (n int) { return n } -func (m *Rpc_Image_Get_Blob_Response_Error) Size() (n int) { +func (m *RpcImageGetBlobResponseError) Size() (n int) { if m == nil { return 0 } @@ -6768,7 +6768,7 @@ func (m *Rpc_Image_Get_Blob_Response_Error) Size() (n int) { return n } -func (m *Rpc_Image_Get_File) Size() (n int) { +func (m *RpcImageGetFile) Size() (n int) { if m == nil { return 0 } @@ -6777,7 +6777,7 @@ func (m *Rpc_Image_Get_File) Size() (n int) { return n } -func (m *Rpc_Image_Get_File_Request) Size() (n int) { +func (m *RpcImageGetFileRequest) Size() (n int) { if m == nil { return 0 } @@ -6793,7 +6793,7 @@ func (m *Rpc_Image_Get_File_Request) Size() (n int) { return n } -func (m *Rpc_Image_Get_File_Response) Size() (n int) { +func (m *RpcImageGetFileResponse) Size() (n int) { if m == nil { return 0 } @@ -6810,7 +6810,7 @@ func (m *Rpc_Image_Get_File_Response) Size() (n int) { return n } -func (m *Rpc_Image_Get_File_Response_Error) Size() (n int) { +func (m *RpcImageGetFileResponseError) Size() (n int) { if m == nil { return 0 } @@ -6885,7 +6885,7 @@ func (m *Rpc) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block) Unmarshal(dAtA []byte) error { +func (m *RpcBlock) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6938,7 +6938,7 @@ func (m *Rpc_Block) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_History) Unmarshal(dAtA []byte) error { +func (m *RpcBlockHistory) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6991,7 +6991,7 @@ func (m *Rpc_Block_History) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_History_Move) Unmarshal(dAtA []byte) error { +func (m *RpcBlockHistoryMove) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7044,7 +7044,7 @@ func (m *Rpc_Block_History_Move) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_History_Move_Request) Unmarshal(dAtA []byte) error { +func (m *RpcBlockHistoryMoveRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7181,7 +7181,7 @@ func (m *Rpc_Block_History_Move_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_History_Move_Response) Unmarshal(dAtA []byte) error { +func (m *RpcBlockHistoryMoveResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7240,7 +7240,7 @@ func (m *Rpc_Block_History_Move_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Block_History_Move_Response_Error{} + m.Error = &RpcBlockHistoryMoveResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7270,7 +7270,7 @@ func (m *Rpc_Block_History_Move_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_History_Move_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcBlockHistoryMoveResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7313,7 +7313,7 @@ func (m *Rpc_Block_History_Move_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Block_History_Move_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcBlockHistoryMoveResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -7374,7 +7374,7 @@ func (m *Rpc_Block_History_Move_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Open) Unmarshal(dAtA []byte) error { +func (m *RpcBlockOpen) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7427,7 +7427,7 @@ func (m *Rpc_Block_Open) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Open_Request) Unmarshal(dAtA []byte) error { +func (m *RpcBlockOpenRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7512,7 +7512,7 @@ func (m *Rpc_Block_Open_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Open_Response) Unmarshal(dAtA []byte) error { +func (m *RpcBlockOpenResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7571,7 +7571,7 @@ func (m *Rpc_Block_Open_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Block_Open_Response_Error{} + m.Error = &RpcBlockOpenResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7607,7 +7607,7 @@ func (m *Rpc_Block_Open_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockHeader == nil { - m.BlockHeader = &Model_Block_Header{} + m.BlockHeader = &ModelBlockHeader{} } if err := m.BlockHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7637,7 +7637,7 @@ func (m *Rpc_Block_Open_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Open_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcBlockOpenResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7680,7 +7680,7 @@ func (m *Rpc_Block_Open_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Block_Open_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcBlockOpenResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -7741,7 +7741,7 @@ func (m *Rpc_Block_Open_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Create) Unmarshal(dAtA []byte) error { +func (m *RpcBlockCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7794,7 +7794,7 @@ func (m *Rpc_Block_Create) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Create_Request) Unmarshal(dAtA []byte) error { +func (m *RpcBlockCreateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7837,7 +7837,7 @@ func (m *Rpc_Block_Create_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Model_Block_Header_Type(b&0x7F) << shift + m.Type |= ModelBlockHeaderType(b&0x7F) << shift if b < 0x80 { break } @@ -7898,7 +7898,7 @@ func (m *Rpc_Block_Create_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Create_Response) Unmarshal(dAtA []byte) error { +func (m *RpcBlockCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7957,7 +7957,7 @@ func (m *Rpc_Block_Create_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Block_Create_Response_Error{} + m.Error = &RpcBlockCreateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7987,7 +7987,7 @@ func (m *Rpc_Block_Create_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Create_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcBlockCreateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8030,7 +8030,7 @@ func (m *Rpc_Block_Create_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Block_Create_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcBlockCreateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -8091,7 +8091,7 @@ func (m *Rpc_Block_Create_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Update) Unmarshal(dAtA []byte) error { +func (m *RpcBlockUpdate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8144,7 +8144,7 @@ func (m *Rpc_Block_Update) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Update_Request) Unmarshal(dAtA []byte) error { +func (m *RpcBlockUpdateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8233,7 +8233,7 @@ func (m *Rpc_Block_Update_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Update_Response) Unmarshal(dAtA []byte) error { +func (m *RpcBlockUpdateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8292,7 +8292,7 @@ func (m *Rpc_Block_Update_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Block_Update_Response_Error{} + m.Error = &RpcBlockUpdateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8322,7 +8322,7 @@ func (m *Rpc_Block_Update_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Block_Update_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcBlockUpdateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8365,7 +8365,7 @@ func (m *Rpc_Block_Update_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Block_Update_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcBlockUpdateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -8426,7 +8426,7 @@ func (m *Rpc_Block_Update_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet) Unmarshal(dAtA []byte) error { +func (m *RpcWallet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8479,7 +8479,7 @@ func (m *Rpc_Wallet) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Create) Unmarshal(dAtA []byte) error { +func (m *RpcWalletCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8532,7 +8532,7 @@ func (m *Rpc_Wallet_Create) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Create_Request) Unmarshal(dAtA []byte) error { +func (m *RpcWalletCreateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8617,7 +8617,7 @@ func (m *Rpc_Wallet_Create_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Create_Response) Unmarshal(dAtA []byte) error { +func (m *RpcWalletCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8676,7 +8676,7 @@ func (m *Rpc_Wallet_Create_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Wallet_Create_Response_Error{} + m.Error = &RpcWalletCreateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8738,7 +8738,7 @@ func (m *Rpc_Wallet_Create_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Create_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcWalletCreateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8781,7 +8781,7 @@ func (m *Rpc_Wallet_Create_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Wallet_Create_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcWalletCreateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -8842,7 +8842,7 @@ func (m *Rpc_Wallet_Create_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Recover) Unmarshal(dAtA []byte) error { +func (m *RpcWalletRecover) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8895,7 +8895,7 @@ func (m *Rpc_Wallet_Recover) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Recover_Request) Unmarshal(dAtA []byte) error { +func (m *RpcWalletRecoverRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9012,7 +9012,7 @@ func (m *Rpc_Wallet_Recover_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Recover_Response) Unmarshal(dAtA []byte) error { +func (m *RpcWalletRecoverResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9071,7 +9071,7 @@ func (m *Rpc_Wallet_Recover_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Wallet_Recover_Response_Error{} + m.Error = &RpcWalletRecoverResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9101,7 +9101,7 @@ func (m *Rpc_Wallet_Recover_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Wallet_Recover_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcWalletRecoverResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9144,7 +9144,7 @@ func (m *Rpc_Wallet_Recover_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Wallet_Recover_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcWalletRecoverResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -9205,7 +9205,7 @@ func (m *Rpc_Wallet_Recover_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account) Unmarshal(dAtA []byte) error { +func (m *RpcAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9258,7 +9258,7 @@ func (m *Rpc_Account) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Create) Unmarshal(dAtA []byte) error { +func (m *RpcAccountCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9311,7 +9311,7 @@ func (m *Rpc_Account_Create) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Create_Request) Unmarshal(dAtA []byte) error { +func (m *RpcAccountCreateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9402,7 +9402,7 @@ func (m *Rpc_Account_Create_Request) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Avatar = &Rpc_Account_Create_Request_AvatarLocalPath{string(dAtA[iNdEx:postIndex])} + m.Avatar = &RpcAccountCreateRequestAvatarOfAvatarLocalPath{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -9434,7 +9434,7 @@ func (m *Rpc_Account_Create_Request) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Avatar = &Rpc_Account_Create_Request_AvatarColor{string(dAtA[iNdEx:postIndex])} + m.Avatar = &RpcAccountCreateRequestAvatarOfAvatarColor{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex default: iNdEx = preIndex @@ -9460,7 +9460,7 @@ func (m *Rpc_Account_Create_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Create_Response) Unmarshal(dAtA []byte) error { +func (m *RpcAccountCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9519,7 +9519,7 @@ func (m *Rpc_Account_Create_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Account_Create_Response_Error{} + m.Error = &RpcAccountCreateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9555,7 +9555,7 @@ func (m *Rpc_Account_Create_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Model_Account{} + m.Account = &ModelAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9585,7 +9585,7 @@ func (m *Rpc_Account_Create_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Create_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcAccountCreateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9628,7 +9628,7 @@ func (m *Rpc_Account_Create_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Account_Create_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcAccountCreateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -9689,7 +9689,7 @@ func (m *Rpc_Account_Create_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Recover) Unmarshal(dAtA []byte) error { +func (m *RpcAccountRecover) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9742,7 +9742,7 @@ func (m *Rpc_Account_Recover) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Recover_Request) Unmarshal(dAtA []byte) error { +func (m *RpcAccountRecoverRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9795,7 +9795,7 @@ func (m *Rpc_Account_Recover_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Recover_Response) Unmarshal(dAtA []byte) error { +func (m *RpcAccountRecoverResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9854,7 +9854,7 @@ func (m *Rpc_Account_Recover_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Account_Recover_Response_Error{} + m.Error = &RpcAccountRecoverResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9884,7 +9884,7 @@ func (m *Rpc_Account_Recover_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Recover_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcAccountRecoverResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9927,7 +9927,7 @@ func (m *Rpc_Account_Recover_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Account_Recover_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcAccountRecoverResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -9988,7 +9988,7 @@ func (m *Rpc_Account_Recover_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Select) Unmarshal(dAtA []byte) error { +func (m *RpcAccountSelect) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10041,7 +10041,7 @@ func (m *Rpc_Account_Select) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Select_Request) Unmarshal(dAtA []byte) error { +func (m *RpcAccountSelectRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10158,7 +10158,7 @@ func (m *Rpc_Account_Select_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Select_Response) Unmarshal(dAtA []byte) error { +func (m *RpcAccountSelectResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10217,7 +10217,7 @@ func (m *Rpc_Account_Select_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Account_Select_Response_Error{} + m.Error = &RpcAccountSelectResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10253,7 +10253,7 @@ func (m *Rpc_Account_Select_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Model_Account{} + m.Account = &ModelAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10283,7 +10283,7 @@ func (m *Rpc_Account_Select_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Account_Select_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcAccountSelectResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10326,7 +10326,7 @@ func (m *Rpc_Account_Select_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Account_Select_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcAccountSelectResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -10387,7 +10387,7 @@ func (m *Rpc_Account_Select_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Version) Unmarshal(dAtA []byte) error { +func (m *RpcVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10440,7 +10440,7 @@ func (m *Rpc_Version) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Version_Get) Unmarshal(dAtA []byte) error { +func (m *RpcVersionGet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10493,7 +10493,7 @@ func (m *Rpc_Version_Get) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Version_Get_Request) Unmarshal(dAtA []byte) error { +func (m *RpcVersionGetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10546,7 +10546,7 @@ func (m *Rpc_Version_Get_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Version_Get_Response) Unmarshal(dAtA []byte) error { +func (m *RpcVersionGetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10605,7 +10605,7 @@ func (m *Rpc_Version_Get_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Version_Get_Response_Error{} + m.Error = &RpcVersionGetResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10667,7 +10667,7 @@ func (m *Rpc_Version_Get_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Version_Get_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcVersionGetResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10710,7 +10710,7 @@ func (m *Rpc_Version_Get_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Version_Get_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcVersionGetResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -10771,7 +10771,7 @@ func (m *Rpc_Version_Get_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Log) Unmarshal(dAtA []byte) error { +func (m *RpcLog) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10824,7 +10824,7 @@ func (m *Rpc_Log) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Log_Send) Unmarshal(dAtA []byte) error { +func (m *RpcLogSend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10877,7 +10877,7 @@ func (m *Rpc_Log_Send) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Log_Send_Request) Unmarshal(dAtA []byte) error { +func (m *RpcLogSendRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10952,7 +10952,7 @@ func (m *Rpc_Log_Send_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Level |= Rpc_Log_Send_Request_Level(b&0x7F) << shift + m.Level |= RpcLogSendRequestLevel(b&0x7F) << shift if b < 0x80 { break } @@ -10981,7 +10981,7 @@ func (m *Rpc_Log_Send_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Log_Send_Response) Unmarshal(dAtA []byte) error { +func (m *RpcLogSendResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11040,7 +11040,7 @@ func (m *Rpc_Log_Send_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Log_Send_Response_Error{} + m.Error = &RpcLogSendResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11070,7 +11070,7 @@ func (m *Rpc_Log_Send_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Log_Send_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcLogSendResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11113,7 +11113,7 @@ func (m *Rpc_Log_Send_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Log_Send_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcLogSendResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -11174,7 +11174,7 @@ func (m *Rpc_Log_Send_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs) Unmarshal(dAtA []byte) error { +func (m *RpcIpfs) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11227,7 +11227,7 @@ func (m *Rpc_Ipfs) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_Get) Unmarshal(dAtA []byte) error { +func (m *RpcIpfsGet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11280,7 +11280,7 @@ func (m *Rpc_Ipfs_Get) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_Get_File) Unmarshal(dAtA []byte) error { +func (m *RpcIpfsGetFile) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11333,7 +11333,7 @@ func (m *Rpc_Ipfs_Get_File) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_Get_File_Request) Unmarshal(dAtA []byte) error { +func (m *RpcIpfsGetFileRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11418,7 +11418,7 @@ func (m *Rpc_Ipfs_Get_File_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_Get_File_Response) Unmarshal(dAtA []byte) error { +func (m *RpcIpfsGetFileResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11477,7 +11477,7 @@ func (m *Rpc_Ipfs_Get_File_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Ipfs_Get_File_Response_Error{} + m.Error = &RpcIpfsGetFileResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11605,7 +11605,7 @@ func (m *Rpc_Ipfs_Get_File_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Ipfs_Get_File_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcIpfsGetFileResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11648,7 +11648,7 @@ func (m *Rpc_Ipfs_Get_File_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Ipfs_Get_File_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcIpfsGetFileResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -11709,7 +11709,7 @@ func (m *Rpc_Ipfs_Get_File_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image) Unmarshal(dAtA []byte) error { +func (m *RpcImage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11762,7 +11762,7 @@ func (m *Rpc_Image) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get) Unmarshal(dAtA []byte) error { +func (m *RpcImageGet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11815,7 +11815,7 @@ func (m *Rpc_Image_Get) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_Blob) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetBlob) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11868,7 +11868,7 @@ func (m *Rpc_Image_Get_Blob) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_Blob_Request) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetBlobRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11943,7 +11943,7 @@ func (m *Rpc_Image_Get_Blob_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= Model_Image_Size(b&0x7F) << shift + m.Size_ |= ModelImageSize(b&0x7F) << shift if b < 0x80 { break } @@ -11972,7 +11972,7 @@ func (m *Rpc_Image_Get_Blob_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_Blob_Response) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetBlobResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12031,7 +12031,7 @@ func (m *Rpc_Image_Get_Blob_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Image_Get_Blob_Response_Error{} + m.Error = &RpcImageGetBlobResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -12095,7 +12095,7 @@ func (m *Rpc_Image_Get_Blob_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_Blob_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetBlobResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12138,7 +12138,7 @@ func (m *Rpc_Image_Get_Blob_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Image_Get_Blob_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcImageGetBlobResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -12199,7 +12199,7 @@ func (m *Rpc_Image_Get_Blob_Response_Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_File) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetFile) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12252,7 +12252,7 @@ func (m *Rpc_Image_Get_File) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_File_Request) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetFileRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12327,7 +12327,7 @@ func (m *Rpc_Image_Get_File_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= Model_Image_Size(b&0x7F) << shift + m.Size_ |= ModelImageSize(b&0x7F) << shift if b < 0x80 { break } @@ -12356,7 +12356,7 @@ func (m *Rpc_Image_Get_File_Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_File_Response) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetFileResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12415,7 +12415,7 @@ func (m *Rpc_Image_Get_File_Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &Rpc_Image_Get_File_Response_Error{} + m.Error = &RpcImageGetFileResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -12477,7 +12477,7 @@ func (m *Rpc_Image_Get_File_Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *Rpc_Image_Get_File_Response_Error) Unmarshal(dAtA []byte) error { +func (m *RpcImageGetFileResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12520,7 +12520,7 @@ func (m *Rpc_Image_Get_File_Response_Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= Rpc_Image_Get_File_Response_Error_Code(b&0x7F) << shift + m.Code |= RpcImageGetFileResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } diff --git a/pb/events.pb.go b/pb/events.pb.go index 3bff3f57f..b1ed9efb0 100644 --- a/pb/events.pb.go +++ b/pb/events.pb.go @@ -24,15 +24,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Event struct { // Types that are valid to be assigned to Message: - // *Event_AccountShow - // *Event_BlockShow - // *Event_BlockUpdate - // *Event_BlockCreate - // *Event_UserBlockTextRange - // *Event_UserBlockJoin - // *Event_UserBlockLeft - // *Event_UserBlockSelectRange - // *Event_FilesUpload + // *EventMessageOfAccountShow + // *EventMessageOfBlockShow + // *EventMessageOfBlockUpdate + // *EventMessageOfBlockCreate + // *EventMessageOfUserBlockTextRange + // *EventMessageOfUserBlockJoin + // *EventMessageOfUserBlockLeft + // *EventMessageOfUserBlockSelectRange + // *EventMessageOfFilesUpload Message isEventMessage `protobuf_oneof:"message"` } @@ -75,43 +75,43 @@ type isEventMessage interface { Size() int } -type Event_AccountShow struct { - AccountShow *Event_Account_Show `protobuf:"bytes,1,opt,name=accountShow,proto3,oneof" json:"accountShow,omitempty"` +type EventMessageOfAccountShow struct { + AccountShow *EventAccountShow `protobuf:"bytes,1,opt,name=accountShow,proto3,oneof" json:"accountShow,omitempty"` } -type Event_BlockShow struct { - BlockShow *Event_Block_Show `protobuf:"bytes,2,opt,name=blockShow,proto3,oneof" json:"blockShow,omitempty"` +type EventMessageOfBlockShow struct { + BlockShow *EventBlockShow `protobuf:"bytes,2,opt,name=blockShow,proto3,oneof" json:"blockShow,omitempty"` } -type Event_BlockUpdate struct { - BlockUpdate *Event_Block_Update `protobuf:"bytes,3,opt,name=blockUpdate,proto3,oneof" json:"blockUpdate,omitempty"` +type EventMessageOfBlockUpdate struct { + BlockUpdate *EventBlockUpdate `protobuf:"bytes,3,opt,name=blockUpdate,proto3,oneof" json:"blockUpdate,omitempty"` } -type Event_BlockCreate struct { - BlockCreate *Event_Block_Create `protobuf:"bytes,4,opt,name=blockCreate,proto3,oneof" json:"blockCreate,omitempty"` +type EventMessageOfBlockCreate struct { + BlockCreate *EventBlockCreate `protobuf:"bytes,4,opt,name=blockCreate,proto3,oneof" json:"blockCreate,omitempty"` } -type Event_UserBlockTextRange struct { - UserBlockTextRange *Event_User_Block_TextRange `protobuf:"bytes,5,opt,name=userBlockTextRange,proto3,oneof" json:"userBlockTextRange,omitempty"` +type EventMessageOfUserBlockTextRange struct { + UserBlockTextRange *EventUserBlockTextRange `protobuf:"bytes,5,opt,name=userBlockTextRange,proto3,oneof" json:"userBlockTextRange,omitempty"` } -type Event_UserBlockJoin struct { - UserBlockJoin *Event_User_Block_Join `protobuf:"bytes,6,opt,name=userBlockJoin,proto3,oneof" json:"userBlockJoin,omitempty"` +type EventMessageOfUserBlockJoin struct { + UserBlockJoin *EventUserBlockJoin `protobuf:"bytes,6,opt,name=userBlockJoin,proto3,oneof" json:"userBlockJoin,omitempty"` } -type Event_UserBlockLeft struct { - UserBlockLeft *Event_User_Block_Left `protobuf:"bytes,7,opt,name=userBlockLeft,proto3,oneof" json:"userBlockLeft,omitempty"` +type EventMessageOfUserBlockLeft struct { + UserBlockLeft *EventUserBlockLeft `protobuf:"bytes,7,opt,name=userBlockLeft,proto3,oneof" json:"userBlockLeft,omitempty"` } -type Event_UserBlockSelectRange struct { - UserBlockSelectRange *Event_User_Block_SelectRange `protobuf:"bytes,8,opt,name=userBlockSelectRange,proto3,oneof" json:"userBlockSelectRange,omitempty"` +type EventMessageOfUserBlockSelectRange struct { + UserBlockSelectRange *EventUserBlockSelectRange `protobuf:"bytes,8,opt,name=userBlockSelectRange,proto3,oneof" json:"userBlockSelectRange,omitempty"` } -type Event_FilesUpload struct { - FilesUpload *Event_Block_FilesUpload `protobuf:"bytes,9,opt,name=filesUpload,proto3,oneof" json:"filesUpload,omitempty"` +type EventMessageOfFilesUpload struct { + FilesUpload *EventBlockFilesUpload `protobuf:"bytes,9,opt,name=filesUpload,proto3,oneof" json:"filesUpload,omitempty"` } -func (*Event_AccountShow) isEventMessage() {} -func (*Event_BlockShow) isEventMessage() {} -func (*Event_BlockUpdate) isEventMessage() {} -func (*Event_BlockCreate) isEventMessage() {} -func (*Event_UserBlockTextRange) isEventMessage() {} -func (*Event_UserBlockJoin) isEventMessage() {} -func (*Event_UserBlockLeft) isEventMessage() {} -func (*Event_UserBlockSelectRange) isEventMessage() {} -func (*Event_FilesUpload) isEventMessage() {} +func (*EventMessageOfAccountShow) isEventMessage() {} +func (*EventMessageOfBlockShow) isEventMessage() {} +func (*EventMessageOfBlockUpdate) isEventMessage() {} +func (*EventMessageOfBlockCreate) isEventMessage() {} +func (*EventMessageOfUserBlockTextRange) isEventMessage() {} +func (*EventMessageOfUserBlockJoin) isEventMessage() {} +func (*EventMessageOfUserBlockLeft) isEventMessage() {} +func (*EventMessageOfUserBlockSelectRange) isEventMessage() {} +func (*EventMessageOfFilesUpload) isEventMessage() {} func (m *Event) GetMessage() isEventMessage { if m != nil { @@ -120,64 +120,64 @@ func (m *Event) GetMessage() isEventMessage { return nil } -func (m *Event) GetAccountShow() *Event_Account_Show { - if x, ok := m.GetMessage().(*Event_AccountShow); ok { +func (m *Event) GetAccountShow() *EventAccountShow { + if x, ok := m.GetMessage().(*EventMessageOfAccountShow); ok { return x.AccountShow } return nil } -func (m *Event) GetBlockShow() *Event_Block_Show { - if x, ok := m.GetMessage().(*Event_BlockShow); ok { +func (m *Event) GetBlockShow() *EventBlockShow { + if x, ok := m.GetMessage().(*EventMessageOfBlockShow); ok { return x.BlockShow } return nil } -func (m *Event) GetBlockUpdate() *Event_Block_Update { - if x, ok := m.GetMessage().(*Event_BlockUpdate); ok { +func (m *Event) GetBlockUpdate() *EventBlockUpdate { + if x, ok := m.GetMessage().(*EventMessageOfBlockUpdate); ok { return x.BlockUpdate } return nil } -func (m *Event) GetBlockCreate() *Event_Block_Create { - if x, ok := m.GetMessage().(*Event_BlockCreate); ok { +func (m *Event) GetBlockCreate() *EventBlockCreate { + if x, ok := m.GetMessage().(*EventMessageOfBlockCreate); ok { return x.BlockCreate } return nil } -func (m *Event) GetUserBlockTextRange() *Event_User_Block_TextRange { - if x, ok := m.GetMessage().(*Event_UserBlockTextRange); ok { +func (m *Event) GetUserBlockTextRange() *EventUserBlockTextRange { + if x, ok := m.GetMessage().(*EventMessageOfUserBlockTextRange); ok { return x.UserBlockTextRange } return nil } -func (m *Event) GetUserBlockJoin() *Event_User_Block_Join { - if x, ok := m.GetMessage().(*Event_UserBlockJoin); ok { +func (m *Event) GetUserBlockJoin() *EventUserBlockJoin { + if x, ok := m.GetMessage().(*EventMessageOfUserBlockJoin); ok { return x.UserBlockJoin } return nil } -func (m *Event) GetUserBlockLeft() *Event_User_Block_Left { - if x, ok := m.GetMessage().(*Event_UserBlockLeft); ok { +func (m *Event) GetUserBlockLeft() *EventUserBlockLeft { + if x, ok := m.GetMessage().(*EventMessageOfUserBlockLeft); ok { return x.UserBlockLeft } return nil } -func (m *Event) GetUserBlockSelectRange() *Event_User_Block_SelectRange { - if x, ok := m.GetMessage().(*Event_UserBlockSelectRange); ok { +func (m *Event) GetUserBlockSelectRange() *EventUserBlockSelectRange { + if x, ok := m.GetMessage().(*EventMessageOfUserBlockSelectRange); ok { return x.UserBlockSelectRange } return nil } -func (m *Event) GetFilesUpload() *Event_Block_FilesUpload { - if x, ok := m.GetMessage().(*Event_FilesUpload); ok { +func (m *Event) GetFilesUpload() *EventBlockFilesUpload { + if x, ok := m.GetMessage().(*EventMessageOfFilesUpload); ok { return x.FilesUpload } return nil @@ -186,33 +186,33 @@ func (m *Event) GetFilesUpload() *Event_Block_FilesUpload { // XXX_OneofWrappers is for the internal use of the proto package. func (*Event) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Event_AccountShow)(nil), - (*Event_BlockShow)(nil), - (*Event_BlockUpdate)(nil), - (*Event_BlockCreate)(nil), - (*Event_UserBlockTextRange)(nil), - (*Event_UserBlockJoin)(nil), - (*Event_UserBlockLeft)(nil), - (*Event_UserBlockSelectRange)(nil), - (*Event_FilesUpload)(nil), + (*EventMessageOfAccountShow)(nil), + (*EventMessageOfBlockShow)(nil), + (*EventMessageOfBlockUpdate)(nil), + (*EventMessageOfBlockCreate)(nil), + (*EventMessageOfUserBlockTextRange)(nil), + (*EventMessageOfUserBlockJoin)(nil), + (*EventMessageOfUserBlockLeft)(nil), + (*EventMessageOfUserBlockSelectRange)(nil), + (*EventMessageOfFilesUpload)(nil), } } -type Event_Account struct { +type EventAccount struct { } -func (m *Event_Account) Reset() { *m = Event_Account{} } -func (m *Event_Account) String() string { return proto.CompactTextString(m) } -func (*Event_Account) ProtoMessage() {} -func (*Event_Account) Descriptor() ([]byte, []int) { +func (m *EventAccount) Reset() { *m = EventAccount{} } +func (m *EventAccount) String() string { return proto.CompactTextString(m) } +func (*EventAccount) ProtoMessage() {} +func (*EventAccount) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 0} } -func (m *Event_Account) XXX_Unmarshal(b []byte) error { +func (m *EventAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Account.Marshal(b, m, deterministic) + return xxx_messageInfo_EventAccount.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -222,37 +222,37 @@ func (m *Event_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *Event_Account) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Account.Merge(m, src) +func (m *EventAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventAccount.Merge(m, src) } -func (m *Event_Account) XXX_Size() int { +func (m *EventAccount) XXX_Size() int { return m.Size() } -func (m *Event_Account) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Account.DiscardUnknown(m) +func (m *EventAccount) XXX_DiscardUnknown() { + xxx_messageInfo_EventAccount.DiscardUnknown(m) } -var xxx_messageInfo_Event_Account proto.InternalMessageInfo +var xxx_messageInfo_EventAccount proto.InternalMessageInfo //* // Message, that will be sent to the front on each account found after an AccountRecoverRequest -type Event_Account_Show struct { - Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Account *Model_Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` +type EventAccountShow struct { + Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Account *ModelAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` } -func (m *Event_Account_Show) Reset() { *m = Event_Account_Show{} } -func (m *Event_Account_Show) String() string { return proto.CompactTextString(m) } -func (*Event_Account_Show) ProtoMessage() {} -func (*Event_Account_Show) Descriptor() ([]byte, []int) { +func (m *EventAccountShow) Reset() { *m = EventAccountShow{} } +func (m *EventAccountShow) String() string { return proto.CompactTextString(m) } +func (*EventAccountShow) ProtoMessage() {} +func (*EventAccountShow) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 0, 0} } -func (m *Event_Account_Show) XXX_Unmarshal(b []byte) error { +func (m *EventAccountShow) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Account_Show) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventAccountShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Account_Show.Marshal(b, m, deterministic) + return xxx_messageInfo_EventAccountShow.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -262,47 +262,47 @@ func (m *Event_Account_Show) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Event_Account_Show) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Account_Show.Merge(m, src) +func (m *EventAccountShow) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventAccountShow.Merge(m, src) } -func (m *Event_Account_Show) XXX_Size() int { +func (m *EventAccountShow) XXX_Size() int { return m.Size() } -func (m *Event_Account_Show) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Account_Show.DiscardUnknown(m) +func (m *EventAccountShow) XXX_DiscardUnknown() { + xxx_messageInfo_EventAccountShow.DiscardUnknown(m) } -var xxx_messageInfo_Event_Account_Show proto.InternalMessageInfo +var xxx_messageInfo_EventAccountShow proto.InternalMessageInfo -func (m *Event_Account_Show) GetIndex() int64 { +func (m *EventAccountShow) GetIndex() int64 { if m != nil { return m.Index } return 0 } -func (m *Event_Account_Show) GetAccount() *Model_Account { +func (m *EventAccountShow) GetAccount() *ModelAccount { if m != nil { return m.Account } return nil } -type Event_Block struct { +type EventBlock struct { } -func (m *Event_Block) Reset() { *m = Event_Block{} } -func (m *Event_Block) String() string { return proto.CompactTextString(m) } -func (*Event_Block) ProtoMessage() {} -func (*Event_Block) Descriptor() ([]byte, []int) { +func (m *EventBlock) Reset() { *m = EventBlock{} } +func (m *EventBlock) String() string { return proto.CompactTextString(m) } +func (*EventBlock) ProtoMessage() {} +func (*EventBlock) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 1} } -func (m *Event_Block) XXX_Unmarshal(b []byte) error { +func (m *EventBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Block.Marshal(b, m, deterministic) + return xxx_messageInfo_EventBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -312,34 +312,34 @@ func (m *Event_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Event_Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Block.Merge(m, src) +func (m *EventBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlock.Merge(m, src) } -func (m *Event_Block) XXX_Size() int { +func (m *EventBlock) XXX_Size() int { return m.Size() } -func (m *Event_Block) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Block.DiscardUnknown(m) +func (m *EventBlock) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlock.DiscardUnknown(m) } -var xxx_messageInfo_Event_Block proto.InternalMessageInfo +var xxx_messageInfo_EventBlock proto.InternalMessageInfo -type Event_Block_Show struct { - Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +type EventBlockShow struct { + Block *ModelBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` } -func (m *Event_Block_Show) Reset() { *m = Event_Block_Show{} } -func (m *Event_Block_Show) String() string { return proto.CompactTextString(m) } -func (*Event_Block_Show) ProtoMessage() {} -func (*Event_Block_Show) Descriptor() ([]byte, []int) { +func (m *EventBlockShow) Reset() { *m = EventBlockShow{} } +func (m *EventBlockShow) String() string { return proto.CompactTextString(m) } +func (*EventBlockShow) ProtoMessage() {} +func (*EventBlockShow) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 1, 0} } -func (m *Event_Block_Show) XXX_Unmarshal(b []byte) error { +func (m *EventBlockShow) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Block_Show) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventBlockShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Block_Show.Marshal(b, m, deterministic) + return xxx_messageInfo_EventBlockShow.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -349,41 +349,41 @@ func (m *Event_Block_Show) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *Event_Block_Show) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Block_Show.Merge(m, src) +func (m *EventBlockShow) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockShow.Merge(m, src) } -func (m *Event_Block_Show) XXX_Size() int { +func (m *EventBlockShow) XXX_Size() int { return m.Size() } -func (m *Event_Block_Show) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Block_Show.DiscardUnknown(m) +func (m *EventBlockShow) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockShow.DiscardUnknown(m) } -var xxx_messageInfo_Event_Block_Show proto.InternalMessageInfo +var xxx_messageInfo_EventBlockShow proto.InternalMessageInfo -func (m *Event_Block_Show) GetBlock() *Model_Block { +func (m *EventBlockShow) GetBlock() *ModelBlock { if m != nil { return m.Block } return nil } -type Event_Block_Update struct { +type EventBlockUpdate struct { Changes *BlockChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` } -func (m *Event_Block_Update) Reset() { *m = Event_Block_Update{} } -func (m *Event_Block_Update) String() string { return proto.CompactTextString(m) } -func (*Event_Block_Update) ProtoMessage() {} -func (*Event_Block_Update) Descriptor() ([]byte, []int) { +func (m *EventBlockUpdate) Reset() { *m = EventBlockUpdate{} } +func (m *EventBlockUpdate) String() string { return proto.CompactTextString(m) } +func (*EventBlockUpdate) ProtoMessage() {} +func (*EventBlockUpdate) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 1, 1} } -func (m *Event_Block_Update) XXX_Unmarshal(b []byte) error { +func (m *EventBlockUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Block_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventBlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Block_Update.Marshal(b, m, deterministic) + return xxx_messageInfo_EventBlockUpdate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -393,41 +393,41 @@ func (m *Event_Block_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Event_Block_Update) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Block_Update.Merge(m, src) +func (m *EventBlockUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockUpdate.Merge(m, src) } -func (m *Event_Block_Update) XXX_Size() int { +func (m *EventBlockUpdate) XXX_Size() int { return m.Size() } -func (m *Event_Block_Update) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Block_Update.DiscardUnknown(m) +func (m *EventBlockUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockUpdate.DiscardUnknown(m) } -var xxx_messageInfo_Event_Block_Update proto.InternalMessageInfo +var xxx_messageInfo_EventBlockUpdate proto.InternalMessageInfo -func (m *Event_Block_Update) GetChanges() *BlockChanges { +func (m *EventBlockUpdate) GetChanges() *BlockChanges { if m != nil { return m.Changes } return nil } -type Event_Block_Create struct { - Block *Model_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +type EventBlockCreate struct { + Block *ModelBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` } -func (m *Event_Block_Create) Reset() { *m = Event_Block_Create{} } -func (m *Event_Block_Create) String() string { return proto.CompactTextString(m) } -func (*Event_Block_Create) ProtoMessage() {} -func (*Event_Block_Create) Descriptor() ([]byte, []int) { +func (m *EventBlockCreate) Reset() { *m = EventBlockCreate{} } +func (m *EventBlockCreate) String() string { return proto.CompactTextString(m) } +func (*EventBlockCreate) ProtoMessage() {} +func (*EventBlockCreate) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 1, 2} } -func (m *Event_Block_Create) XXX_Unmarshal(b []byte) error { +func (m *EventBlockCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Block_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventBlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Block_Create.Marshal(b, m, deterministic) + return xxx_messageInfo_EventBlockCreate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -437,19 +437,19 @@ func (m *Event_Block_Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Event_Block_Create) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Block_Create.Merge(m, src) +func (m *EventBlockCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockCreate.Merge(m, src) } -func (m *Event_Block_Create) XXX_Size() int { +func (m *EventBlockCreate) XXX_Size() int { return m.Size() } -func (m *Event_Block_Create) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Block_Create.DiscardUnknown(m) +func (m *EventBlockCreate) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockCreate.DiscardUnknown(m) } -var xxx_messageInfo_Event_Block_Create proto.InternalMessageInfo +var xxx_messageInfo_EventBlockCreate proto.InternalMessageInfo -func (m *Event_Block_Create) GetBlock() *Model_Block { +func (m *EventBlockCreate) GetBlock() *ModelBlock { if m != nil { return m.Block } @@ -461,23 +461,23 @@ func (m *Event_Block_Create) GetBlock() *Model_Block { // Precondition: user A opened a block // 1. User A drops a set of files/pictures/videos // 2. User A creates a MediaBlock and drops a single media, that corresponds to its type. -type Event_Block_FilesUpload struct { +type EventBlockFilesUpload struct { FilePath []string `protobuf:"bytes,1,rep,name=filePath,proto3" json:"filePath,omitempty"` BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` } -func (m *Event_Block_FilesUpload) Reset() { *m = Event_Block_FilesUpload{} } -func (m *Event_Block_FilesUpload) String() string { return proto.CompactTextString(m) } -func (*Event_Block_FilesUpload) ProtoMessage() {} -func (*Event_Block_FilesUpload) Descriptor() ([]byte, []int) { +func (m *EventBlockFilesUpload) Reset() { *m = EventBlockFilesUpload{} } +func (m *EventBlockFilesUpload) String() string { return proto.CompactTextString(m) } +func (*EventBlockFilesUpload) ProtoMessage() {} +func (*EventBlockFilesUpload) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 1, 3} } -func (m *Event_Block_FilesUpload) XXX_Unmarshal(b []byte) error { +func (m *EventBlockFilesUpload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_Block_FilesUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventBlockFilesUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_Block_FilesUpload.Marshal(b, m, deterministic) + return xxx_messageInfo_EventBlockFilesUpload.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -487,47 +487,47 @@ func (m *Event_Block_FilesUpload) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *Event_Block_FilesUpload) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Block_FilesUpload.Merge(m, src) +func (m *EventBlockFilesUpload) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockFilesUpload.Merge(m, src) } -func (m *Event_Block_FilesUpload) XXX_Size() int { +func (m *EventBlockFilesUpload) XXX_Size() int { return m.Size() } -func (m *Event_Block_FilesUpload) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Block_FilesUpload.DiscardUnknown(m) +func (m *EventBlockFilesUpload) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockFilesUpload.DiscardUnknown(m) } -var xxx_messageInfo_Event_Block_FilesUpload proto.InternalMessageInfo +var xxx_messageInfo_EventBlockFilesUpload proto.InternalMessageInfo -func (m *Event_Block_FilesUpload) GetFilePath() []string { +func (m *EventBlockFilesUpload) GetFilePath() []string { if m != nil { return m.FilePath } return nil } -func (m *Event_Block_FilesUpload) GetBlockId() string { +func (m *EventBlockFilesUpload) GetBlockId() string { if m != nil { return m.BlockId } return "" } -type Event_User struct { +type EventUser struct { } -func (m *Event_User) Reset() { *m = Event_User{} } -func (m *Event_User) String() string { return proto.CompactTextString(m) } -func (*Event_User) ProtoMessage() {} -func (*Event_User) Descriptor() ([]byte, []int) { +func (m *EventUser) Reset() { *m = EventUser{} } +func (m *EventUser) String() string { return proto.CompactTextString(m) } +func (*EventUser) ProtoMessage() {} +func (*EventUser) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 2} } -func (m *Event_User) XXX_Unmarshal(b []byte) error { +func (m *EventUser) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_User.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUser.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -537,33 +537,33 @@ func (m *Event_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Event_User) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_User.Merge(m, src) +func (m *EventUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUser.Merge(m, src) } -func (m *Event_User) XXX_Size() int { +func (m *EventUser) XXX_Size() int { return m.Size() } -func (m *Event_User) XXX_DiscardUnknown() { - xxx_messageInfo_Event_User.DiscardUnknown(m) +func (m *EventUser) XXX_DiscardUnknown() { + xxx_messageInfo_EventUser.DiscardUnknown(m) } -var xxx_messageInfo_Event_User proto.InternalMessageInfo +var xxx_messageInfo_EventUser proto.InternalMessageInfo -type Event_User_Block struct { +type EventUserBlock struct { } -func (m *Event_User_Block) Reset() { *m = Event_User_Block{} } -func (m *Event_User_Block) String() string { return proto.CompactTextString(m) } -func (*Event_User_Block) ProtoMessage() {} -func (*Event_User_Block) Descriptor() ([]byte, []int) { +func (m *EventUserBlock) Reset() { *m = EventUserBlock{} } +func (m *EventUserBlock) String() string { return proto.CompactTextString(m) } +func (*EventUserBlock) ProtoMessage() {} +func (*EventUserBlock) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0} } -func (m *Event_User_Block) XXX_Unmarshal(b []byte) error { +func (m *EventUserBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_User_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUserBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_User_Block.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUserBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -573,39 +573,39 @@ func (m *Event_User_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *Event_User_Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_User_Block.Merge(m, src) +func (m *EventUserBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUserBlock.Merge(m, src) } -func (m *Event_User_Block) XXX_Size() int { +func (m *EventUserBlock) XXX_Size() int { return m.Size() } -func (m *Event_User_Block) XXX_DiscardUnknown() { - xxx_messageInfo_Event_User_Block.DiscardUnknown(m) +func (m *EventUserBlock) XXX_DiscardUnknown() { + xxx_messageInfo_EventUserBlock.DiscardUnknown(m) } -var xxx_messageInfo_Event_User_Block proto.InternalMessageInfo +var xxx_messageInfo_EventUserBlock proto.InternalMessageInfo //* // Middleware to front end event message, that will be sent in this scenario: // Precondition: user A opened a block // 1. User B opens the same block // 2. User A receives a message about p.1 -type Event_User_Block_Join struct { - Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +type EventUserBlockJoin struct { + Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` } -func (m *Event_User_Block_Join) Reset() { *m = Event_User_Block_Join{} } -func (m *Event_User_Block_Join) String() string { return proto.CompactTextString(m) } -func (*Event_User_Block_Join) ProtoMessage() {} -func (*Event_User_Block_Join) Descriptor() ([]byte, []int) { +func (m *EventUserBlockJoin) Reset() { *m = EventUserBlockJoin{} } +func (m *EventUserBlockJoin) String() string { return proto.CompactTextString(m) } +func (*EventUserBlockJoin) ProtoMessage() {} +func (*EventUserBlockJoin) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 0} } -func (m *Event_User_Block_Join) XXX_Unmarshal(b []byte) error { +func (m *EventUserBlockJoin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_User_Block_Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUserBlockJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_User_Block_Join.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUserBlockJoin.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -615,19 +615,19 @@ func (m *Event_User_Block_Join) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *Event_User_Block_Join) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_User_Block_Join.Merge(m, src) +func (m *EventUserBlockJoin) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUserBlockJoin.Merge(m, src) } -func (m *Event_User_Block_Join) XXX_Size() int { +func (m *EventUserBlockJoin) XXX_Size() int { return m.Size() } -func (m *Event_User_Block_Join) XXX_DiscardUnknown() { - xxx_messageInfo_Event_User_Block_Join.DiscardUnknown(m) +func (m *EventUserBlockJoin) XXX_DiscardUnknown() { + xxx_messageInfo_EventUserBlockJoin.DiscardUnknown(m) } -var xxx_messageInfo_Event_User_Block_Join proto.InternalMessageInfo +var xxx_messageInfo_EventUserBlockJoin proto.InternalMessageInfo -func (m *Event_User_Block_Join) GetAccount() *Event_Account { +func (m *EventUserBlockJoin) GetAccount() *EventAccount { if m != nil { return m.Account } @@ -639,22 +639,22 @@ func (m *Event_User_Block_Join) GetAccount() *Event_Account { // Precondition: user A and user B opened the same block // 1. User B closes the block // 2. User A receives a message about p.1 -type Event_User_Block_Left struct { - Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +type EventUserBlockLeft struct { + Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` } -func (m *Event_User_Block_Left) Reset() { *m = Event_User_Block_Left{} } -func (m *Event_User_Block_Left) String() string { return proto.CompactTextString(m) } -func (*Event_User_Block_Left) ProtoMessage() {} -func (*Event_User_Block_Left) Descriptor() ([]byte, []int) { +func (m *EventUserBlockLeft) Reset() { *m = EventUserBlockLeft{} } +func (m *EventUserBlockLeft) String() string { return proto.CompactTextString(m) } +func (*EventUserBlockLeft) ProtoMessage() {} +func (*EventUserBlockLeft) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 1} } -func (m *Event_User_Block_Left) XXX_Unmarshal(b []byte) error { +func (m *EventUserBlockLeft) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_User_Block_Left) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUserBlockLeft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_User_Block_Left.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUserBlockLeft.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -664,19 +664,19 @@ func (m *Event_User_Block_Left) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *Event_User_Block_Left) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_User_Block_Left.Merge(m, src) +func (m *EventUserBlockLeft) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUserBlockLeft.Merge(m, src) } -func (m *Event_User_Block_Left) XXX_Size() int { +func (m *EventUserBlockLeft) XXX_Size() int { return m.Size() } -func (m *Event_User_Block_Left) XXX_DiscardUnknown() { - xxx_messageInfo_Event_User_Block_Left.DiscardUnknown(m) +func (m *EventUserBlockLeft) XXX_DiscardUnknown() { + xxx_messageInfo_EventUserBlockLeft.DiscardUnknown(m) } -var xxx_messageInfo_Event_User_Block_Left proto.InternalMessageInfo +var xxx_messageInfo_EventUserBlockLeft proto.InternalMessageInfo -func (m *Event_User_Block_Left) GetAccount() *Event_Account { +func (m *EventUserBlockLeft) GetAccount() *EventAccount { if m != nil { return m.Account } @@ -688,24 +688,24 @@ func (m *Event_User_Block_Left) GetAccount() *Event_Account { // Precondition: user A and user B opened the same block // 1. User B sets cursor or selects a text region into a text block // 2. User A receives a message about p.1 -type Event_User_Block_TextRange struct { - Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Range *Model_Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` +type EventUserBlockTextRange struct { + Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Range *ModelRange `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` } -func (m *Event_User_Block_TextRange) Reset() { *m = Event_User_Block_TextRange{} } -func (m *Event_User_Block_TextRange) String() string { return proto.CompactTextString(m) } -func (*Event_User_Block_TextRange) ProtoMessage() {} -func (*Event_User_Block_TextRange) Descriptor() ([]byte, []int) { +func (m *EventUserBlockTextRange) Reset() { *m = EventUserBlockTextRange{} } +func (m *EventUserBlockTextRange) String() string { return proto.CompactTextString(m) } +func (*EventUserBlockTextRange) ProtoMessage() {} +func (*EventUserBlockTextRange) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 2} } -func (m *Event_User_Block_TextRange) XXX_Unmarshal(b []byte) error { +func (m *EventUserBlockTextRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_User_Block_TextRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUserBlockTextRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_User_Block_TextRange.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUserBlockTextRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -715,33 +715,33 @@ func (m *Event_User_Block_TextRange) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Event_User_Block_TextRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_User_Block_TextRange.Merge(m, src) +func (m *EventUserBlockTextRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUserBlockTextRange.Merge(m, src) } -func (m *Event_User_Block_TextRange) XXX_Size() int { +func (m *EventUserBlockTextRange) XXX_Size() int { return m.Size() } -func (m *Event_User_Block_TextRange) XXX_DiscardUnknown() { - xxx_messageInfo_Event_User_Block_TextRange.DiscardUnknown(m) +func (m *EventUserBlockTextRange) XXX_DiscardUnknown() { + xxx_messageInfo_EventUserBlockTextRange.DiscardUnknown(m) } -var xxx_messageInfo_Event_User_Block_TextRange proto.InternalMessageInfo +var xxx_messageInfo_EventUserBlockTextRange proto.InternalMessageInfo -func (m *Event_User_Block_TextRange) GetAccount() *Event_Account { +func (m *EventUserBlockTextRange) GetAccount() *EventAccount { if m != nil { return m.Account } return nil } -func (m *Event_User_Block_TextRange) GetBlockId() string { +func (m *EventUserBlockTextRange) GetBlockId() string { if m != nil { return m.BlockId } return "" } -func (m *Event_User_Block_TextRange) GetRange() *Model_Range { +func (m *EventUserBlockTextRange) GetRange() *ModelRange { if m != nil { return m.Range } @@ -753,23 +753,23 @@ func (m *Event_User_Block_TextRange) GetRange() *Model_Range { // Precondition: user A and user B opened the same block // 1. User B selects some inner blocks // 2. User A receives a message about p.1 -type Event_User_Block_SelectRange struct { - Account *Event_Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - BlockIdsArray []string `protobuf:"bytes,2,rep,name=blockIdsArray,proto3" json:"blockIdsArray,omitempty"` +type EventUserBlockSelectRange struct { + Account *EventAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + BlockIdsArray []string `protobuf:"bytes,2,rep,name=blockIdsArray,proto3" json:"blockIdsArray,omitempty"` } -func (m *Event_User_Block_SelectRange) Reset() { *m = Event_User_Block_SelectRange{} } -func (m *Event_User_Block_SelectRange) String() string { return proto.CompactTextString(m) } -func (*Event_User_Block_SelectRange) ProtoMessage() {} -func (*Event_User_Block_SelectRange) Descriptor() ([]byte, []int) { +func (m *EventUserBlockSelectRange) Reset() { *m = EventUserBlockSelectRange{} } +func (m *EventUserBlockSelectRange) String() string { return proto.CompactTextString(m) } +func (*EventUserBlockSelectRange) ProtoMessage() {} +func (*EventUserBlockSelectRange) Descriptor() ([]byte, []int) { return fileDescriptor_8f22242cb04491f9, []int{0, 2, 0, 3} } -func (m *Event_User_Block_SelectRange) XXX_Unmarshal(b []byte) error { +func (m *EventUserBlockSelectRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Event_User_Block_SelectRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUserBlockSelectRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Event_User_Block_SelectRange.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUserBlockSelectRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -779,26 +779,26 @@ func (m *Event_User_Block_SelectRange) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Event_User_Block_SelectRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_User_Block_SelectRange.Merge(m, src) +func (m *EventUserBlockSelectRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUserBlockSelectRange.Merge(m, src) } -func (m *Event_User_Block_SelectRange) XXX_Size() int { +func (m *EventUserBlockSelectRange) XXX_Size() int { return m.Size() } -func (m *Event_User_Block_SelectRange) XXX_DiscardUnknown() { - xxx_messageInfo_Event_User_Block_SelectRange.DiscardUnknown(m) +func (m *EventUserBlockSelectRange) XXX_DiscardUnknown() { + xxx_messageInfo_EventUserBlockSelectRange.DiscardUnknown(m) } -var xxx_messageInfo_Event_User_Block_SelectRange proto.InternalMessageInfo +var xxx_messageInfo_EventUserBlockSelectRange proto.InternalMessageInfo -func (m *Event_User_Block_SelectRange) GetAccount() *Event_Account { +func (m *EventUserBlockSelectRange) GetAccount() *EventAccount { if m != nil { return m.Account } return nil } -func (m *Event_User_Block_SelectRange) GetBlockIdsArray() []string { +func (m *EventUserBlockSelectRange) GetBlockIdsArray() []string { if m != nil { return m.BlockIdsArray } @@ -807,19 +807,19 @@ func (m *Event_User_Block_SelectRange) GetBlockIdsArray() []string { func init() { proto.RegisterType((*Event)(nil), "anytype.Event") - proto.RegisterType((*Event_Account)(nil), "anytype.Event.Account") - proto.RegisterType((*Event_Account_Show)(nil), "anytype.Event.Account.Show") - proto.RegisterType((*Event_Block)(nil), "anytype.Event.Block") - proto.RegisterType((*Event_Block_Show)(nil), "anytype.Event.Block.Show") - proto.RegisterType((*Event_Block_Update)(nil), "anytype.Event.Block.Update") - proto.RegisterType((*Event_Block_Create)(nil), "anytype.Event.Block.Create") - proto.RegisterType((*Event_Block_FilesUpload)(nil), "anytype.Event.Block.FilesUpload") - proto.RegisterType((*Event_User)(nil), "anytype.Event.User") - proto.RegisterType((*Event_User_Block)(nil), "anytype.Event.User.Block") - proto.RegisterType((*Event_User_Block_Join)(nil), "anytype.Event.User.Block.Join") - proto.RegisterType((*Event_User_Block_Left)(nil), "anytype.Event.User.Block.Left") - proto.RegisterType((*Event_User_Block_TextRange)(nil), "anytype.Event.User.Block.TextRange") - proto.RegisterType((*Event_User_Block_SelectRange)(nil), "anytype.Event.User.Block.SelectRange") + proto.RegisterType((*EventAccount)(nil), "anytype.Event.Account") + proto.RegisterType((*EventAccountShow)(nil), "anytype.Event.Account.Show") + proto.RegisterType((*EventBlock)(nil), "anytype.Event.Block") + proto.RegisterType((*EventBlockShow)(nil), "anytype.Event.Block.Show") + proto.RegisterType((*EventBlockUpdate)(nil), "anytype.Event.Block.Update") + proto.RegisterType((*EventBlockCreate)(nil), "anytype.Event.Block.Create") + proto.RegisterType((*EventBlockFilesUpload)(nil), "anytype.Event.Block.FilesUpload") + proto.RegisterType((*EventUser)(nil), "anytype.Event.User") + proto.RegisterType((*EventUserBlock)(nil), "anytype.Event.User.Block") + proto.RegisterType((*EventUserBlockJoin)(nil), "anytype.Event.User.Block.Join") + proto.RegisterType((*EventUserBlockLeft)(nil), "anytype.Event.User.Block.Left") + proto.RegisterType((*EventUserBlockTextRange)(nil), "anytype.Event.User.Block.TextRange") + proto.RegisterType((*EventUserBlockSelectRange)(nil), "anytype.Event.User.Block.SelectRange") } func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) } @@ -896,12 +896,12 @@ func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_AccountShow) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfAccountShow) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_AccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfAccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.AccountShow != nil { { @@ -917,12 +917,12 @@ func (m *Event_AccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_BlockShow) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfBlockShow) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfBlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.BlockShow != nil { { @@ -938,12 +938,12 @@ func (m *Event_BlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_BlockUpdate) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfBlockUpdate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfBlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.BlockUpdate != nil { { @@ -959,12 +959,12 @@ func (m *Event_BlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_BlockCreate) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfBlockCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfBlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.BlockCreate != nil { { @@ -980,12 +980,12 @@ func (m *Event_BlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_UserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.UserBlockTextRange != nil { { @@ -1001,12 +1001,12 @@ func (m *Event_UserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error } return len(dAtA) - i, nil } -func (m *Event_UserBlockJoin) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockJoin) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_UserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.UserBlockJoin != nil { { @@ -1022,12 +1022,12 @@ func (m *Event_UserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_UserBlockLeft) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockLeft) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.UserBlockLeft != nil { { @@ -1043,12 +1043,12 @@ func (m *Event_UserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_UserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfUserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.UserBlockSelectRange != nil { { @@ -1064,12 +1064,12 @@ func (m *Event_UserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, err } return len(dAtA) - i, nil } -func (m *Event_FilesUpload) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMessageOfFilesUpload) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMessageOfFilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.FilesUpload != nil { { @@ -1085,7 +1085,7 @@ func (m *Event_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Event_Account) Marshal() (dAtA []byte, err error) { +func (m *EventAccount) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1095,12 +1095,12 @@ func (m *Event_Account) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Account) MarshalTo(dAtA []byte) (int, error) { +func (m *EventAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1108,7 +1108,7 @@ func (m *Event_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_Account_Show) Marshal() (dAtA []byte, err error) { +func (m *EventAccountShow) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1118,12 +1118,12 @@ func (m *Event_Account_Show) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Account_Show) MarshalTo(dAtA []byte) (int, error) { +func (m *EventAccountShow) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Account_Show) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventAccountShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1148,7 +1148,7 @@ func (m *Event_Account_Show) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_Block) Marshal() (dAtA []byte, err error) { +func (m *EventBlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1158,12 +1158,12 @@ func (m *Event_Block) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Block) MarshalTo(dAtA []byte) (int, error) { +func (m *EventBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1171,7 +1171,7 @@ func (m *Event_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_Block_Show) Marshal() (dAtA []byte, err error) { +func (m *EventBlockShow) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1181,12 +1181,12 @@ func (m *Event_Block_Show) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Block_Show) MarshalTo(dAtA []byte) (int, error) { +func (m *EventBlockShow) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Block_Show) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventBlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1206,7 +1206,7 @@ func (m *Event_Block_Show) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_Block_Update) Marshal() (dAtA []byte, err error) { +func (m *EventBlockUpdate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1216,12 +1216,12 @@ func (m *Event_Block_Update) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Block_Update) MarshalTo(dAtA []byte) (int, error) { +func (m *EventBlockUpdate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Block_Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventBlockUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1241,7 +1241,7 @@ func (m *Event_Block_Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_Block_Create) Marshal() (dAtA []byte, err error) { +func (m *EventBlockCreate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1251,12 +1251,12 @@ func (m *Event_Block_Create) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Block_Create) MarshalTo(dAtA []byte) (int, error) { +func (m *EventBlockCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Block_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventBlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1276,7 +1276,7 @@ func (m *Event_Block_Create) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_Block_FilesUpload) Marshal() (dAtA []byte, err error) { +func (m *EventBlockFilesUpload) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1286,12 +1286,12 @@ func (m *Event_Block_FilesUpload) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_Block_FilesUpload) MarshalTo(dAtA []byte) (int, error) { +func (m *EventBlockFilesUpload) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_Block_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventBlockFilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1315,7 +1315,7 @@ func (m *Event_Block_FilesUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Event_User) Marshal() (dAtA []byte, err error) { +func (m *EventUser) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1325,12 +1325,12 @@ func (m *Event_User) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_User) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUser) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_User) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUser) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1338,7 +1338,7 @@ func (m *Event_User) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_User_Block) Marshal() (dAtA []byte, err error) { +func (m *EventUserBlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1348,12 +1348,12 @@ func (m *Event_User_Block) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_User_Block) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUserBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_User_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUserBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1361,7 +1361,7 @@ func (m *Event_User_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_User_Block_Join) Marshal() (dAtA []byte, err error) { +func (m *EventUserBlockJoin) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1371,12 +1371,12 @@ func (m *Event_User_Block_Join) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_User_Block_Join) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUserBlockJoin) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_User_Block_Join) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUserBlockJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1396,7 +1396,7 @@ func (m *Event_User_Block_Join) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_User_Block_Left) Marshal() (dAtA []byte, err error) { +func (m *EventUserBlockLeft) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1406,12 +1406,12 @@ func (m *Event_User_Block_Left) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_User_Block_Left) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUserBlockLeft) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_User_Block_Left) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUserBlockLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1431,7 +1431,7 @@ func (m *Event_User_Block_Left) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Event_User_Block_TextRange) Marshal() (dAtA []byte, err error) { +func (m *EventUserBlockTextRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1441,12 +1441,12 @@ func (m *Event_User_Block_TextRange) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_User_Block_TextRange) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUserBlockTextRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_User_Block_TextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUserBlockTextRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1485,7 +1485,7 @@ func (m *Event_User_Block_TextRange) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Event_User_Block_SelectRange) Marshal() (dAtA []byte, err error) { +func (m *EventUserBlockSelectRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1495,12 +1495,12 @@ func (m *Event_User_Block_SelectRange) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Event_User_Block_SelectRange) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUserBlockSelectRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Event_User_Block_SelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUserBlockSelectRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1552,7 +1552,7 @@ func (m *Event) Size() (n int) { return n } -func (m *Event_AccountShow) Size() (n int) { +func (m *EventMessageOfAccountShow) Size() (n int) { if m == nil { return 0 } @@ -1564,7 +1564,7 @@ func (m *Event_AccountShow) Size() (n int) { } return n } -func (m *Event_BlockShow) Size() (n int) { +func (m *EventMessageOfBlockShow) Size() (n int) { if m == nil { return 0 } @@ -1576,7 +1576,7 @@ func (m *Event_BlockShow) Size() (n int) { } return n } -func (m *Event_BlockUpdate) Size() (n int) { +func (m *EventMessageOfBlockUpdate) Size() (n int) { if m == nil { return 0 } @@ -1588,7 +1588,7 @@ func (m *Event_BlockUpdate) Size() (n int) { } return n } -func (m *Event_BlockCreate) Size() (n int) { +func (m *EventMessageOfBlockCreate) Size() (n int) { if m == nil { return 0 } @@ -1600,7 +1600,7 @@ func (m *Event_BlockCreate) Size() (n int) { } return n } -func (m *Event_UserBlockTextRange) Size() (n int) { +func (m *EventMessageOfUserBlockTextRange) Size() (n int) { if m == nil { return 0 } @@ -1612,7 +1612,7 @@ func (m *Event_UserBlockTextRange) Size() (n int) { } return n } -func (m *Event_UserBlockJoin) Size() (n int) { +func (m *EventMessageOfUserBlockJoin) Size() (n int) { if m == nil { return 0 } @@ -1624,7 +1624,7 @@ func (m *Event_UserBlockJoin) Size() (n int) { } return n } -func (m *Event_UserBlockLeft) Size() (n int) { +func (m *EventMessageOfUserBlockLeft) Size() (n int) { if m == nil { return 0 } @@ -1636,7 +1636,7 @@ func (m *Event_UserBlockLeft) Size() (n int) { } return n } -func (m *Event_UserBlockSelectRange) Size() (n int) { +func (m *EventMessageOfUserBlockSelectRange) Size() (n int) { if m == nil { return 0 } @@ -1648,7 +1648,7 @@ func (m *Event_UserBlockSelectRange) Size() (n int) { } return n } -func (m *Event_FilesUpload) Size() (n int) { +func (m *EventMessageOfFilesUpload) Size() (n int) { if m == nil { return 0 } @@ -1660,7 +1660,7 @@ func (m *Event_FilesUpload) Size() (n int) { } return n } -func (m *Event_Account) Size() (n int) { +func (m *EventAccount) Size() (n int) { if m == nil { return 0 } @@ -1669,7 +1669,7 @@ func (m *Event_Account) Size() (n int) { return n } -func (m *Event_Account_Show) Size() (n int) { +func (m *EventAccountShow) Size() (n int) { if m == nil { return 0 } @@ -1685,7 +1685,7 @@ func (m *Event_Account_Show) Size() (n int) { return n } -func (m *Event_Block) Size() (n int) { +func (m *EventBlock) Size() (n int) { if m == nil { return 0 } @@ -1694,7 +1694,7 @@ func (m *Event_Block) Size() (n int) { return n } -func (m *Event_Block_Show) Size() (n int) { +func (m *EventBlockShow) Size() (n int) { if m == nil { return 0 } @@ -1707,7 +1707,7 @@ func (m *Event_Block_Show) Size() (n int) { return n } -func (m *Event_Block_Update) Size() (n int) { +func (m *EventBlockUpdate) Size() (n int) { if m == nil { return 0 } @@ -1720,7 +1720,7 @@ func (m *Event_Block_Update) Size() (n int) { return n } -func (m *Event_Block_Create) Size() (n int) { +func (m *EventBlockCreate) Size() (n int) { if m == nil { return 0 } @@ -1733,7 +1733,7 @@ func (m *Event_Block_Create) Size() (n int) { return n } -func (m *Event_Block_FilesUpload) Size() (n int) { +func (m *EventBlockFilesUpload) Size() (n int) { if m == nil { return 0 } @@ -1752,7 +1752,7 @@ func (m *Event_Block_FilesUpload) Size() (n int) { return n } -func (m *Event_User) Size() (n int) { +func (m *EventUser) Size() (n int) { if m == nil { return 0 } @@ -1761,7 +1761,7 @@ func (m *Event_User) Size() (n int) { return n } -func (m *Event_User_Block) Size() (n int) { +func (m *EventUserBlock) Size() (n int) { if m == nil { return 0 } @@ -1770,7 +1770,7 @@ func (m *Event_User_Block) Size() (n int) { return n } -func (m *Event_User_Block_Join) Size() (n int) { +func (m *EventUserBlockJoin) Size() (n int) { if m == nil { return 0 } @@ -1783,7 +1783,7 @@ func (m *Event_User_Block_Join) Size() (n int) { return n } -func (m *Event_User_Block_Left) Size() (n int) { +func (m *EventUserBlockLeft) Size() (n int) { if m == nil { return 0 } @@ -1796,7 +1796,7 @@ func (m *Event_User_Block_Left) Size() (n int) { return n } -func (m *Event_User_Block_TextRange) Size() (n int) { +func (m *EventUserBlockTextRange) Size() (n int) { if m == nil { return 0 } @@ -1817,7 +1817,7 @@ func (m *Event_User_Block_TextRange) Size() (n int) { return n } -func (m *Event_User_Block_SelectRange) Size() (n int) { +func (m *EventUserBlockSelectRange) Size() (n int) { if m == nil { return 0 } @@ -1900,11 +1900,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_Account_Show{} + v := &EventAccountShow{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_AccountShow{v} + m.Message = &EventMessageOfAccountShow{v} iNdEx = postIndex case 2: if wireType != 2 { @@ -1935,11 +1935,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_Block_Show{} + v := &EventBlockShow{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_BlockShow{v} + m.Message = &EventMessageOfBlockShow{v} iNdEx = postIndex case 3: if wireType != 2 { @@ -1970,11 +1970,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_Block_Update{} + v := &EventBlockUpdate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_BlockUpdate{v} + m.Message = &EventMessageOfBlockUpdate{v} iNdEx = postIndex case 4: if wireType != 2 { @@ -2005,11 +2005,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_Block_Create{} + v := &EventBlockCreate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_BlockCreate{v} + m.Message = &EventMessageOfBlockCreate{v} iNdEx = postIndex case 5: if wireType != 2 { @@ -2040,11 +2040,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_User_Block_TextRange{} + v := &EventUserBlockTextRange{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_UserBlockTextRange{v} + m.Message = &EventMessageOfUserBlockTextRange{v} iNdEx = postIndex case 6: if wireType != 2 { @@ -2075,11 +2075,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_User_Block_Join{} + v := &EventUserBlockJoin{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_UserBlockJoin{v} + m.Message = &EventMessageOfUserBlockJoin{v} iNdEx = postIndex case 7: if wireType != 2 { @@ -2110,11 +2110,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_User_Block_Left{} + v := &EventUserBlockLeft{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_UserBlockLeft{v} + m.Message = &EventMessageOfUserBlockLeft{v} iNdEx = postIndex case 8: if wireType != 2 { @@ -2145,11 +2145,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_User_Block_SelectRange{} + v := &EventUserBlockSelectRange{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_UserBlockSelectRange{v} + m.Message = &EventMessageOfUserBlockSelectRange{v} iNdEx = postIndex case 9: if wireType != 2 { @@ -2180,11 +2180,11 @@ func (m *Event) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Event_Block_FilesUpload{} + v := &EventBlockFilesUpload{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Message = &Event_FilesUpload{v} + m.Message = &EventMessageOfFilesUpload{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2210,7 +2210,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Account) Unmarshal(dAtA []byte) error { +func (m *EventAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2263,7 +2263,7 @@ func (m *Event_Account) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Account_Show) Unmarshal(dAtA []byte) error { +func (m *EventAccountShow) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2341,7 +2341,7 @@ func (m *Event_Account_Show) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Model_Account{} + m.Account = &ModelAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2371,7 +2371,7 @@ func (m *Event_Account_Show) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Block) Unmarshal(dAtA []byte) error { +func (m *EventBlock) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2424,7 +2424,7 @@ func (m *Event_Block) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Block_Show) Unmarshal(dAtA []byte) error { +func (m *EventBlockShow) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2483,7 +2483,7 @@ func (m *Event_Block_Show) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &Model_Block{} + m.Block = &ModelBlock{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2513,7 +2513,7 @@ func (m *Event_Block_Show) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Block_Update) Unmarshal(dAtA []byte) error { +func (m *EventBlockUpdate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2602,7 +2602,7 @@ func (m *Event_Block_Update) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Block_Create) Unmarshal(dAtA []byte) error { +func (m *EventBlockCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2661,7 +2661,7 @@ func (m *Event_Block_Create) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &Model_Block{} + m.Block = &ModelBlock{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2691,7 +2691,7 @@ func (m *Event_Block_Create) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_Block_FilesUpload) Unmarshal(dAtA []byte) error { +func (m *EventBlockFilesUpload) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2808,7 +2808,7 @@ func (m *Event_Block_FilesUpload) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_User) Unmarshal(dAtA []byte) error { +func (m *EventUser) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2861,7 +2861,7 @@ func (m *Event_User) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_User_Block) Unmarshal(dAtA []byte) error { +func (m *EventUserBlock) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2914,7 +2914,7 @@ func (m *Event_User_Block) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_User_Block_Join) Unmarshal(dAtA []byte) error { +func (m *EventUserBlockJoin) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2973,7 +2973,7 @@ func (m *Event_User_Block_Join) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Event_Account{} + m.Account = &EventAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3003,7 +3003,7 @@ func (m *Event_User_Block_Join) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_User_Block_Left) Unmarshal(dAtA []byte) error { +func (m *EventUserBlockLeft) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3062,7 +3062,7 @@ func (m *Event_User_Block_Left) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Event_Account{} + m.Account = &EventAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3092,7 +3092,7 @@ func (m *Event_User_Block_Left) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_User_Block_TextRange) Unmarshal(dAtA []byte) error { +func (m *EventUserBlockTextRange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3151,7 +3151,7 @@ func (m *Event_User_Block_TextRange) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Event_Account{} + m.Account = &EventAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3219,7 +3219,7 @@ func (m *Event_User_Block_TextRange) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Range == nil { - m.Range = &Model_Range{} + m.Range = &ModelRange{} } if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3249,7 +3249,7 @@ func (m *Event_User_Block_TextRange) Unmarshal(dAtA []byte) error { } return nil } -func (m *Event_User_Block_SelectRange) Unmarshal(dAtA []byte) error { +func (m *EventUserBlockSelectRange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3308,7 +3308,7 @@ func (m *Event_User_Block_SelectRange) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Account == nil { - m.Account = &Event_Account{} + m.Account = &EventAccount{} } if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/pb/models.pb.go b/pb/models.pb.go index 143d852fb..085dee844 100644 --- a/pb/models.pb.go +++ b/pb/models.pb.go @@ -23,22 +23,22 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type Model_Block_Header_Type int32 +type ModelBlockHeaderType int32 const ( - Model_Block_Header_DASHBOARD Model_Block_Header_Type = 0 - Model_Block_Header_PAGE Model_Block_Header_Type = 1 - Model_Block_Header_DATAVIEW Model_Block_Header_Type = 2 - Model_Block_Header_TEXT Model_Block_Header_Type = 3 - Model_Block_Header_FILE Model_Block_Header_Type = 4 - Model_Block_Header_PICTURE Model_Block_Header_Type = 5 - Model_Block_Header_VIDEO Model_Block_Header_Type = 6 - Model_Block_Header_BOOKMARK Model_Block_Header_Type = 7 - Model_Block_Header_LAYOUT Model_Block_Header_Type = 8 - Model_Block_Header_DIV Model_Block_Header_Type = 9 + ModelBlockHeader_DASHBOARD ModelBlockHeaderType = 0 + ModelBlockHeader_PAGE ModelBlockHeaderType = 1 + ModelBlockHeader_DATAVIEW ModelBlockHeaderType = 2 + ModelBlockHeader_TEXT ModelBlockHeaderType = 3 + ModelBlockHeader_FILE ModelBlockHeaderType = 4 + ModelBlockHeader_PICTURE ModelBlockHeaderType = 5 + ModelBlockHeader_VIDEO ModelBlockHeaderType = 6 + ModelBlockHeader_BOOKMARK ModelBlockHeaderType = 7 + ModelBlockHeader_LAYOUT ModelBlockHeaderType = 8 + ModelBlockHeader_DIV ModelBlockHeaderType = 9 ) -var Model_Block_Header_Type_name = map[int32]string{ +var ModelBlockHeaderType_name = map[int32]string{ 0: "DASHBOARD", 1: "PAGE", 2: "DATAVIEW", @@ -51,7 +51,7 @@ var Model_Block_Header_Type_name = map[int32]string{ 9: "DIV", } -var Model_Block_Header_Type_value = map[string]int32{ +var ModelBlockHeaderType_value = map[string]int32{ "DASHBOARD": 0, "PAGE": 1, "DATAVIEW": 2, @@ -64,74 +64,74 @@ var Model_Block_Header_Type_value = map[string]int32{ "DIV": 9, } -func (x Model_Block_Header_Type) String() string { - return proto.EnumName(Model_Block_Header_Type_name, int32(x)) +func (x ModelBlockHeaderType) String() string { + return proto.EnumName(ModelBlockHeaderType_name, int32(x)) } -func (Model_Block_Header_Type) EnumDescriptor() ([]byte, []int) { +func (ModelBlockHeaderType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 0, 0} } -type Model_Block_Content_Layout_Style int32 +type ModelBlockContentLayoutStyle int32 const ( - Model_Block_Content_Layout_ROW Model_Block_Content_Layout_Style = 0 - Model_Block_Content_Layout_COLUMN Model_Block_Content_Layout_Style = 1 + ModelBlockContentLayout_ROW ModelBlockContentLayoutStyle = 0 + ModelBlockContentLayout_COLUMN ModelBlockContentLayoutStyle = 1 ) -var Model_Block_Content_Layout_Style_name = map[int32]string{ +var ModelBlockContentLayoutStyle_name = map[int32]string{ 0: "ROW", 1: "COLUMN", } -var Model_Block_Content_Layout_Style_value = map[string]int32{ +var ModelBlockContentLayoutStyle_value = map[string]int32{ "ROW": 0, "COLUMN": 1, } -func (x Model_Block_Content_Layout_Style) String() string { - return proto.EnumName(Model_Block_Content_Layout_Style_name, int32(x)) +func (x ModelBlockContentLayoutStyle) String() string { + return proto.EnumName(ModelBlockContentLayoutStyle_name, int32(x)) } -func (Model_Block_Content_Layout_Style) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentLayoutStyle) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 0, 0} } -type Model_Block_Content_Dashboard_Style int32 +type ModelBlockContentDashboardStyle int32 const ( - Model_Block_Content_Dashboard_MAIN_SCREEN Model_Block_Content_Dashboard_Style = 0 + ModelBlockContentDashboard_MAIN_SCREEN ModelBlockContentDashboardStyle = 0 ) -var Model_Block_Content_Dashboard_Style_name = map[int32]string{ +var ModelBlockContentDashboardStyle_name = map[int32]string{ 0: "MAIN_SCREEN", } -var Model_Block_Content_Dashboard_Style_value = map[string]int32{ +var ModelBlockContentDashboardStyle_value = map[string]int32{ "MAIN_SCREEN": 0, } -func (x Model_Block_Content_Dashboard_Style) String() string { - return proto.EnumName(Model_Block_Content_Dashboard_Style_name, int32(x)) +func (x ModelBlockContentDashboardStyle) String() string { + return proto.EnumName(ModelBlockContentDashboardStyle_name, int32(x)) } -func (Model_Block_Content_Dashboard_Style) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentDashboardStyle) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 2, 0} } -type Model_Block_Content_Text_Style int32 +type ModelBlockContentTextStyle int32 const ( - Model_Block_Content_Text_p Model_Block_Content_Text_Style = 0 - Model_Block_Content_Text_h1 Model_Block_Content_Text_Style = 1 - Model_Block_Content_Text_h2 Model_Block_Content_Text_Style = 2 - Model_Block_Content_Text_h3 Model_Block_Content_Text_Style = 3 - Model_Block_Content_Text_h4 Model_Block_Content_Text_Style = 4 - Model_Block_Content_Text_quote Model_Block_Content_Text_Style = 5 - Model_Block_Content_Text_code Model_Block_Content_Text_Style = 6 + ModelBlockContentText_p ModelBlockContentTextStyle = 0 + ModelBlockContentText_h1 ModelBlockContentTextStyle = 1 + ModelBlockContentText_h2 ModelBlockContentTextStyle = 2 + ModelBlockContentText_h3 ModelBlockContentTextStyle = 3 + ModelBlockContentText_h4 ModelBlockContentTextStyle = 4 + ModelBlockContentText_quote ModelBlockContentTextStyle = 5 + ModelBlockContentText_code ModelBlockContentTextStyle = 6 ) -var Model_Block_Content_Text_Style_name = map[int32]string{ +var ModelBlockContentTextStyle_name = map[int32]string{ 0: "p", 1: "h1", 2: "h2", @@ -141,7 +141,7 @@ var Model_Block_Content_Text_Style_name = map[int32]string{ 6: "code", } -var Model_Block_Content_Text_Style_value = map[string]int32{ +var ModelBlockContentTextStyle_value = map[string]int32{ "p": 0, "h1": 1, "h2": 2, @@ -151,53 +151,53 @@ var Model_Block_Content_Text_Style_value = map[string]int32{ "code": 6, } -func (x Model_Block_Content_Text_Style) String() string { - return proto.EnumName(Model_Block_Content_Text_Style_name, int32(x)) +func (x ModelBlockContentTextStyle) String() string { + return proto.EnumName(ModelBlockContentTextStyle_name, int32(x)) } -func (Model_Block_Content_Text_Style) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentTextStyle) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 0} } -type Model_Block_Content_Text_MarkerType int32 +type ModelBlockContentTextMarkerType int32 const ( - Model_Block_Content_Text_none Model_Block_Content_Text_MarkerType = 0 - Model_Block_Content_Text_number Model_Block_Content_Text_MarkerType = 1 - Model_Block_Content_Text_bullet Model_Block_Content_Text_MarkerType = 2 + ModelBlockContentText_none ModelBlockContentTextMarkerType = 0 + ModelBlockContentText_number ModelBlockContentTextMarkerType = 1 + ModelBlockContentText_bullet ModelBlockContentTextMarkerType = 2 ) -var Model_Block_Content_Text_MarkerType_name = map[int32]string{ +var ModelBlockContentTextMarkerType_name = map[int32]string{ 0: "none", 1: "number", 2: "bullet", } -var Model_Block_Content_Text_MarkerType_value = map[string]int32{ +var ModelBlockContentTextMarkerType_value = map[string]int32{ "none": 0, "number": 1, "bullet": 2, } -func (x Model_Block_Content_Text_MarkerType) String() string { - return proto.EnumName(Model_Block_Content_Text_MarkerType_name, int32(x)) +func (x ModelBlockContentTextMarkerType) String() string { + return proto.EnumName(ModelBlockContentTextMarkerType_name, int32(x)) } -func (Model_Block_Content_Text_MarkerType) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentTextMarkerType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 1} } -type Model_Block_Content_Text_Mark_Type int32 +type ModelBlockContentTextMarkType int32 const ( - Model_Block_Content_Text_Mark_STRIKETHROUGH Model_Block_Content_Text_Mark_Type = 0 - Model_Block_Content_Text_Mark_KEYBOARD Model_Block_Content_Text_Mark_Type = 1 - Model_Block_Content_Text_Mark_ITALIC Model_Block_Content_Text_Mark_Type = 2 - Model_Block_Content_Text_Mark_BOLD Model_Block_Content_Text_Mark_Type = 3 - Model_Block_Content_Text_Mark_LINK Model_Block_Content_Text_Mark_Type = 4 + ModelBlockContentTextMark_STRIKETHROUGH ModelBlockContentTextMarkType = 0 + ModelBlockContentTextMark_KEYBOARD ModelBlockContentTextMarkType = 1 + ModelBlockContentTextMark_ITALIC ModelBlockContentTextMarkType = 2 + ModelBlockContentTextMark_BOLD ModelBlockContentTextMarkType = 3 + ModelBlockContentTextMark_LINK ModelBlockContentTextMarkType = 4 ) -var Model_Block_Content_Text_Mark_Type_name = map[int32]string{ +var ModelBlockContentTextMarkType_name = map[int32]string{ 0: "STRIKETHROUGH", 1: "KEYBOARD", 2: "ITALIC", @@ -205,7 +205,7 @@ var Model_Block_Content_Text_Mark_Type_name = map[int32]string{ 4: "LINK", } -var Model_Block_Content_Text_Mark_Type_value = map[string]int32{ +var ModelBlockContentTextMarkType_value = map[string]int32{ "STRIKETHROUGH": 0, "KEYBOARD": 1, "ITALIC": 2, @@ -213,25 +213,25 @@ var Model_Block_Content_Text_Mark_Type_value = map[string]int32{ "LINK": 4, } -func (x Model_Block_Content_Text_Mark_Type) String() string { - return proto.EnumName(Model_Block_Content_Text_Mark_Type_name, int32(x)) +func (x ModelBlockContentTextMarkType) String() string { + return proto.EnumName(ModelBlockContentTextMarkType_name, int32(x)) } -func (Model_Block_Content_Text_Mark_Type) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentTextMarkType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 1, 0} } -type Model_Block_Content_Media_State int32 +type ModelBlockContentMediaState int32 const ( - Model_Block_Content_Media_EMPTY Model_Block_Content_Media_State = 0 - Model_Block_Content_Media_UPLOADING Model_Block_Content_Media_State = 1 - Model_Block_Content_Media_PREVIEW Model_Block_Content_Media_State = 2 - Model_Block_Content_Media_DOWNLOADING Model_Block_Content_Media_State = 3 - Model_Block_Content_Media_DONE Model_Block_Content_Media_State = 4 + ModelBlockContentMedia_EMPTY ModelBlockContentMediaState = 0 + ModelBlockContentMedia_UPLOADING ModelBlockContentMediaState = 1 + ModelBlockContentMedia_PREVIEW ModelBlockContentMediaState = 2 + ModelBlockContentMedia_DOWNLOADING ModelBlockContentMediaState = 3 + ModelBlockContentMedia_DONE ModelBlockContentMediaState = 4 ) -var Model_Block_Content_Media_State_name = map[int32]string{ +var ModelBlockContentMediaState_name = map[int32]string{ 0: "EMPTY", 1: "UPLOADING", 2: "PREVIEW", @@ -239,7 +239,7 @@ var Model_Block_Content_Media_State_name = map[int32]string{ 4: "DONE", } -var Model_Block_Content_Media_State_value = map[string]int32{ +var ModelBlockContentMediaState_value = map[string]int32{ "EMPTY": 0, "UPLOADING": 1, "PREVIEW": 2, @@ -247,108 +247,108 @@ var Model_Block_Content_Media_State_value = map[string]int32{ "DONE": 4, } -func (x Model_Block_Content_Media_State) String() string { - return proto.EnumName(Model_Block_Content_Media_State_name, int32(x)) +func (x ModelBlockContentMediaState) String() string { + return proto.EnumName(ModelBlockContentMediaState_name, int32(x)) } -func (Model_Block_Content_Media_State) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentMediaState) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 0} } -type Model_Block_Content_Page_Style int32 +type ModelBlockContentPageStyle int32 const ( - Model_Block_Content_Page_EMPTY Model_Block_Content_Page_Style = 0 - Model_Block_Content_Page_TASK Model_Block_Content_Page_Style = 1 - Model_Block_Content_Page_BOOKMARK Model_Block_Content_Page_Style = 2 - Model_Block_Content_Page_SET Model_Block_Content_Page_Style = 3 + ModelBlockContentPage_EMPTY ModelBlockContentPageStyle = 0 + ModelBlockContentPage_TASK ModelBlockContentPageStyle = 1 + ModelBlockContentPage_BOOKMARK ModelBlockContentPageStyle = 2 + ModelBlockContentPage_SET ModelBlockContentPageStyle = 3 ) -var Model_Block_Content_Page_Style_name = map[int32]string{ +var ModelBlockContentPageStyle_name = map[int32]string{ 0: "EMPTY", 1: "TASK", 2: "BOOKMARK", 3: "SET", } -var Model_Block_Content_Page_Style_value = map[string]int32{ +var ModelBlockContentPageStyle_value = map[string]int32{ "EMPTY": 0, "TASK": 1, "BOOKMARK": 2, "SET": 3, } -func (x Model_Block_Content_Page_Style) String() string { - return proto.EnumName(Model_Block_Content_Page_Style_name, int32(x)) +func (x ModelBlockContentPageStyle) String() string { + return proto.EnumName(ModelBlockContentPageStyle_name, int32(x)) } -func (Model_Block_Content_Page_Style) EnumDescriptor() ([]byte, []int) { +func (ModelBlockContentPageStyle) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 6, 0} } // `NullValue` is a singleton enumeration to represent the null value for the -type Model_Struct_NullValue int32 +type ModelStructNullValue int32 const ( - Model_Struct_NULL_VALUE Model_Struct_NullValue = 0 + ModelStruct_NULL_VALUE ModelStructNullValue = 0 ) -var Model_Struct_NullValue_name = map[int32]string{ +var ModelStructNullValue_name = map[int32]string{ 0: "NULL_VALUE", } -var Model_Struct_NullValue_value = map[string]int32{ +var ModelStructNullValue_value = map[string]int32{ "NULL_VALUE": 0, } -func (x Model_Struct_NullValue) String() string { - return proto.EnumName(Model_Struct_NullValue_name, int32(x)) +func (x ModelStructNullValue) String() string { + return proto.EnumName(ModelStructNullValue_name, int32(x)) } -func (Model_Struct_NullValue) EnumDescriptor() ([]byte, []int) { +func (ModelStructNullValue) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 2, 0} } -type Model_Image_Size int32 +type ModelImageSize int32 const ( - Model_Image_LARGE Model_Image_Size = 0 - Model_Image_SMALL Model_Image_Size = 1 - Model_Image_THUMB Model_Image_Size = 2 + ModelImage_LARGE ModelImageSize = 0 + ModelImage_SMALL ModelImageSize = 1 + ModelImage_THUMB ModelImageSize = 2 ) -var Model_Image_Size_name = map[int32]string{ +var ModelImageSize_name = map[int32]string{ 0: "LARGE", 1: "SMALL", 2: "THUMB", } -var Model_Image_Size_value = map[string]int32{ +var ModelImageSize_value = map[string]int32{ "LARGE": 0, "SMALL": 1, "THUMB": 2, } -func (x Model_Image_Size) String() string { - return proto.EnumName(Model_Image_Size_name, int32(x)) +func (x ModelImageSize) String() string { + return proto.EnumName(ModelImageSize_name, int32(x)) } -func (Model_Image_Size) EnumDescriptor() ([]byte, []int) { +func (ModelImageSize) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 4, 0} } -type Model_Video_Size int32 +type ModelVideoSize int32 const ( - Model_Video_SD_360p Model_Video_Size = 0 - Model_Video_SD_480p Model_Video_Size = 1 - Model_Video_HD_720p Model_Video_Size = 2 - Model_Video_HD_1080p Model_Video_Size = 3 - Model_Video_UHD_1440p Model_Video_Size = 4 - Model_Video_UHD_2160p Model_Video_Size = 5 + ModelVideo_SD_360p ModelVideoSize = 0 + ModelVideo_SD_480p ModelVideoSize = 1 + ModelVideo_HD_720p ModelVideoSize = 2 + ModelVideo_HD_1080p ModelVideoSize = 3 + ModelVideo_UHD_1440p ModelVideoSize = 4 + ModelVideo_UHD_2160p ModelVideoSize = 5 ) -var Model_Video_Size_name = map[int32]string{ +var ModelVideoSize_name = map[int32]string{ 0: "SD_360p", 1: "SD_480p", 2: "HD_720p", @@ -357,7 +357,7 @@ var Model_Video_Size_name = map[int32]string{ 5: "UHD_2160p", } -var Model_Video_Size_value = map[string]int32{ +var ModelVideoSize_value = map[string]int32{ "SD_360p": 0, "SD_480p": 1, "HD_720p": 2, @@ -366,11 +366,11 @@ var Model_Video_Size_value = map[string]int32{ "UHD_2160p": 5, } -func (x Model_Video_Size) String() string { - return proto.EnumName(Model_Video_Size_name, int32(x)) +func (x ModelVideoSize) String() string { + return proto.EnumName(ModelVideoSize_name, int32(x)) } -func (Model_Video_Size) EnumDescriptor() ([]byte, []int) { +func (ModelVideoSize) EnumDescriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 5, 0} } @@ -410,32 +410,32 @@ func (m *Model) XXX_DiscardUnknown() { var xxx_messageInfo_Model proto.InternalMessageInfo -type Model_Block struct { - Header *Model_Block_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` +type ModelBlock struct { + Header *ModelBlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Children []string `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` // Types that are valid to be assigned to Content: - // *Model_Block_Dashboard - // *Model_Block_Page - // *Model_Block_Dataview - // *Model_Block_Text - // *Model_Block_Media - // *Model_Block_Layout - // *Model_Block_Div - Content isModel_BlockContent `protobuf_oneof:"content"` + // *ModelBlockContentOfDashboard + // *ModelBlockContentOfPage + // *ModelBlockContentOfDataview + // *ModelBlockContentOfText + // *ModelBlockContentOfMedia + // *ModelBlockContentOfLayout + // *ModelBlockContentOfDiv + Content isModelBlockContent `protobuf_oneof:"content"` } -func (m *Model_Block) Reset() { *m = Model_Block{} } -func (m *Model_Block) String() string { return proto.CompactTextString(m) } -func (*Model_Block) ProtoMessage() {} -func (*Model_Block) Descriptor() ([]byte, []int) { +func (m *ModelBlock) Reset() { *m = ModelBlock{} } +func (m *ModelBlock) String() string { return proto.CompactTextString(m) } +func (*ModelBlock) ProtoMessage() {} +func (*ModelBlock) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0} } -func (m *Model_Block) XXX_Unmarshal(b []byte) error { +func (m *ModelBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -445,156 +445,156 @@ func (m *Model_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Model_Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block.Merge(m, src) +func (m *ModelBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlock.Merge(m, src) } -func (m *Model_Block) XXX_Size() int { +func (m *ModelBlock) XXX_Size() int { return m.Size() } -func (m *Model_Block) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block.DiscardUnknown(m) +func (m *ModelBlock) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlock.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block proto.InternalMessageInfo +var xxx_messageInfo_ModelBlock proto.InternalMessageInfo -type isModel_BlockContent interface { - isModel_BlockContent() +type isModelBlockContent interface { + isModelBlockContent() MarshalTo([]byte) (int, error) Size() int } -type Model_Block_Dashboard struct { - Dashboard *Model_Block_Content_Dashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` +type ModelBlockContentOfDashboard struct { + Dashboard *ModelBlockContentDashboard `protobuf:"bytes,11,opt,name=dashboard,proto3,oneof" json:"dashboard,omitempty"` } -type Model_Block_Page struct { - Page *Model_Block_Content_Page `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` +type ModelBlockContentOfPage struct { + Page *ModelBlockContentPage `protobuf:"bytes,12,opt,name=page,proto3,oneof" json:"page,omitempty"` } -type Model_Block_Dataview struct { - Dataview *Model_Block_Content_Dataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` +type ModelBlockContentOfDataview struct { + Dataview *ModelBlockContentDataview `protobuf:"bytes,13,opt,name=dataview,proto3,oneof" json:"dataview,omitempty"` } -type Model_Block_Text struct { - Text *Model_Block_Content_Text `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` +type ModelBlockContentOfText struct { + Text *ModelBlockContentText `protobuf:"bytes,14,opt,name=text,proto3,oneof" json:"text,omitempty"` } -type Model_Block_Media struct { - Media *Model_Block_Content_Media `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` +type ModelBlockContentOfMedia struct { + Media *ModelBlockContentMedia `protobuf:"bytes,15,opt,name=media,proto3,oneof" json:"media,omitempty"` } -type Model_Block_Layout struct { - Layout *Model_Block_Content_Layout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` +type ModelBlockContentOfLayout struct { + Layout *ModelBlockContentLayout `protobuf:"bytes,16,opt,name=layout,proto3,oneof" json:"layout,omitempty"` } -type Model_Block_Div struct { - Div *Model_Block_Content_Div `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` +type ModelBlockContentOfDiv struct { + Div *ModelBlockContentDiv `protobuf:"bytes,17,opt,name=div,proto3,oneof" json:"div,omitempty"` } -func (*Model_Block_Dashboard) isModel_BlockContent() {} -func (*Model_Block_Page) isModel_BlockContent() {} -func (*Model_Block_Dataview) isModel_BlockContent() {} -func (*Model_Block_Text) isModel_BlockContent() {} -func (*Model_Block_Media) isModel_BlockContent() {} -func (*Model_Block_Layout) isModel_BlockContent() {} -func (*Model_Block_Div) isModel_BlockContent() {} +func (*ModelBlockContentOfDashboard) isModelBlockContent() {} +func (*ModelBlockContentOfPage) isModelBlockContent() {} +func (*ModelBlockContentOfDataview) isModelBlockContent() {} +func (*ModelBlockContentOfText) isModelBlockContent() {} +func (*ModelBlockContentOfMedia) isModelBlockContent() {} +func (*ModelBlockContentOfLayout) isModelBlockContent() {} +func (*ModelBlockContentOfDiv) isModelBlockContent() {} -func (m *Model_Block) GetContent() isModel_BlockContent { +func (m *ModelBlock) GetContent() isModelBlockContent { if m != nil { return m.Content } return nil } -func (m *Model_Block) GetHeader() *Model_Block_Header { +func (m *ModelBlock) GetHeader() *ModelBlockHeader { if m != nil { return m.Header } return nil } -func (m *Model_Block) GetChildren() []string { +func (m *ModelBlock) GetChildren() []string { if m != nil { return m.Children } return nil } -func (m *Model_Block) GetDashboard() *Model_Block_Content_Dashboard { - if x, ok := m.GetContent().(*Model_Block_Dashboard); ok { +func (m *ModelBlock) GetDashboard() *ModelBlockContentDashboard { + if x, ok := m.GetContent().(*ModelBlockContentOfDashboard); ok { return x.Dashboard } return nil } -func (m *Model_Block) GetPage() *Model_Block_Content_Page { - if x, ok := m.GetContent().(*Model_Block_Page); ok { +func (m *ModelBlock) GetPage() *ModelBlockContentPage { + if x, ok := m.GetContent().(*ModelBlockContentOfPage); ok { return x.Page } return nil } -func (m *Model_Block) GetDataview() *Model_Block_Content_Dataview { - if x, ok := m.GetContent().(*Model_Block_Dataview); ok { +func (m *ModelBlock) GetDataview() *ModelBlockContentDataview { + if x, ok := m.GetContent().(*ModelBlockContentOfDataview); ok { return x.Dataview } return nil } -func (m *Model_Block) GetText() *Model_Block_Content_Text { - if x, ok := m.GetContent().(*Model_Block_Text); ok { +func (m *ModelBlock) GetText() *ModelBlockContentText { + if x, ok := m.GetContent().(*ModelBlockContentOfText); ok { return x.Text } return nil } -func (m *Model_Block) GetMedia() *Model_Block_Content_Media { - if x, ok := m.GetContent().(*Model_Block_Media); ok { +func (m *ModelBlock) GetMedia() *ModelBlockContentMedia { + if x, ok := m.GetContent().(*ModelBlockContentOfMedia); ok { return x.Media } return nil } -func (m *Model_Block) GetLayout() *Model_Block_Content_Layout { - if x, ok := m.GetContent().(*Model_Block_Layout); ok { +func (m *ModelBlock) GetLayout() *ModelBlockContentLayout { + if x, ok := m.GetContent().(*ModelBlockContentOfLayout); ok { return x.Layout } return nil } -func (m *Model_Block) GetDiv() *Model_Block_Content_Div { - if x, ok := m.GetContent().(*Model_Block_Div); ok { +func (m *ModelBlock) GetDiv() *ModelBlockContentDiv { + if x, ok := m.GetContent().(*ModelBlockContentOfDiv); ok { return x.Div } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Model_Block) XXX_OneofWrappers() []interface{} { +func (*ModelBlock) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Model_Block_Dashboard)(nil), - (*Model_Block_Page)(nil), - (*Model_Block_Dataview)(nil), - (*Model_Block_Text)(nil), - (*Model_Block_Media)(nil), - (*Model_Block_Layout)(nil), - (*Model_Block_Div)(nil), + (*ModelBlockContentOfDashboard)(nil), + (*ModelBlockContentOfPage)(nil), + (*ModelBlockContentOfDataview)(nil), + (*ModelBlockContentOfText)(nil), + (*ModelBlockContentOfMedia)(nil), + (*ModelBlockContentOfLayout)(nil), + (*ModelBlockContentOfDiv)(nil), } } -type Model_Block_Header struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type Model_Block_Header_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Header_Type" json:"type,omitempty"` - Fields *Model_Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` - Permissions *Model_Block_Header_Permissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` +type ModelBlockHeader struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type ModelBlockHeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.ModelBlockHeaderType" json:"type,omitempty"` + Fields *ModelStruct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + Permissions *ModelBlockHeaderPermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` } -func (m *Model_Block_Header) Reset() { *m = Model_Block_Header{} } -func (m *Model_Block_Header) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Header) ProtoMessage() {} -func (*Model_Block_Header) Descriptor() ([]byte, []int) { +func (m *ModelBlockHeader) Reset() { *m = ModelBlockHeader{} } +func (m *ModelBlockHeader) String() string { return proto.CompactTextString(m) } +func (*ModelBlockHeader) ProtoMessage() {} +func (*ModelBlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 0} } -func (m *Model_Block_Header) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Header.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -604,47 +604,47 @@ func (m *Model_Block_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Model_Block_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Header.Merge(m, src) +func (m *ModelBlockHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockHeader.Merge(m, src) } -func (m *Model_Block_Header) XXX_Size() int { +func (m *ModelBlockHeader) XXX_Size() int { return m.Size() } -func (m *Model_Block_Header) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Header.DiscardUnknown(m) +func (m *ModelBlockHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockHeader.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Header proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockHeader proto.InternalMessageInfo -func (m *Model_Block_Header) GetId() string { +func (m *ModelBlockHeader) GetId() string { if m != nil { return m.Id } return "" } -func (m *Model_Block_Header) GetType() Model_Block_Header_Type { +func (m *ModelBlockHeader) GetType() ModelBlockHeaderType { if m != nil { return m.Type } - return Model_Block_Header_DASHBOARD + return ModelBlockHeader_DASHBOARD } -func (m *Model_Block_Header) GetFields() *Model_Struct { +func (m *ModelBlockHeader) GetFields() *ModelStruct { if m != nil { return m.Fields } return nil } -func (m *Model_Block_Header) GetPermissions() *Model_Block_Header_Permissions { +func (m *ModelBlockHeader) GetPermissions() *ModelBlockHeaderPermissions { if m != nil { return m.Permissions } return nil } -type Model_Block_Header_Permissions struct { +type ModelBlockHeaderPermissions struct { Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` Edit bool `protobuf:"varint,2,opt,name=edit,proto3" json:"edit,omitempty"` Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"` @@ -652,18 +652,18 @@ type Model_Block_Header_Permissions struct { DropOn bool `protobuf:"varint,5,opt,name=dropOn,proto3" json:"dropOn,omitempty"` } -func (m *Model_Block_Header_Permissions) Reset() { *m = Model_Block_Header_Permissions{} } -func (m *Model_Block_Header_Permissions) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Header_Permissions) ProtoMessage() {} -func (*Model_Block_Header_Permissions) Descriptor() ([]byte, []int) { +func (m *ModelBlockHeaderPermissions) Reset() { *m = ModelBlockHeaderPermissions{} } +func (m *ModelBlockHeaderPermissions) String() string { return proto.CompactTextString(m) } +func (*ModelBlockHeaderPermissions) ProtoMessage() {} +func (*ModelBlockHeaderPermissions) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 0, 0} } -func (m *Model_Block_Header_Permissions) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockHeaderPermissions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Header_Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockHeaderPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Header_Permissions.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockHeaderPermissions.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -673,68 +673,68 @@ func (m *Model_Block_Header_Permissions) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *Model_Block_Header_Permissions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Header_Permissions.Merge(m, src) +func (m *ModelBlockHeaderPermissions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockHeaderPermissions.Merge(m, src) } -func (m *Model_Block_Header_Permissions) XXX_Size() int { +func (m *ModelBlockHeaderPermissions) XXX_Size() int { return m.Size() } -func (m *Model_Block_Header_Permissions) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Header_Permissions.DiscardUnknown(m) +func (m *ModelBlockHeaderPermissions) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockHeaderPermissions.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Header_Permissions proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockHeaderPermissions proto.InternalMessageInfo -func (m *Model_Block_Header_Permissions) GetRead() bool { +func (m *ModelBlockHeaderPermissions) GetRead() bool { if m != nil { return m.Read } return false } -func (m *Model_Block_Header_Permissions) GetEdit() bool { +func (m *ModelBlockHeaderPermissions) GetEdit() bool { if m != nil { return m.Edit } return false } -func (m *Model_Block_Header_Permissions) GetRemove() bool { +func (m *ModelBlockHeaderPermissions) GetRemove() bool { if m != nil { return m.Remove } return false } -func (m *Model_Block_Header_Permissions) GetDrag() bool { +func (m *ModelBlockHeaderPermissions) GetDrag() bool { if m != nil { return m.Drag } return false } -func (m *Model_Block_Header_Permissions) GetDropOn() bool { +func (m *ModelBlockHeaderPermissions) GetDropOn() bool { if m != nil { return m.DropOn } return false } -type Model_Block_Content struct { +type ModelBlockContent struct { } -func (m *Model_Block_Content) Reset() { *m = Model_Block_Content{} } -func (m *Model_Block_Content) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content) ProtoMessage() {} -func (*Model_Block_Content) Descriptor() ([]byte, []int) { +func (m *ModelBlockContent) Reset() { *m = ModelBlockContent{} } +func (m *ModelBlockContent) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContent) ProtoMessage() {} +func (*ModelBlockContent) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1} } -func (m *Model_Block_Content) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -744,34 +744,34 @@ func (m *Model_Block_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Model_Block_Content) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content.Merge(m, src) +func (m *ModelBlockContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContent.Merge(m, src) } -func (m *Model_Block_Content) XXX_Size() int { +func (m *ModelBlockContent) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content.DiscardUnknown(m) +func (m *ModelBlockContent) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContent.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContent proto.InternalMessageInfo -type Model_Block_Content_Layout struct { - Style Model_Block_Content_Layout_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Layout_Style" json:"style,omitempty"` +type ModelBlockContentLayout struct { + Style ModelBlockContentLayoutStyle `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.ModelBlockContentLayoutStyle" json:"style,omitempty"` } -func (m *Model_Block_Content_Layout) Reset() { *m = Model_Block_Content_Layout{} } -func (m *Model_Block_Content_Layout) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Layout) ProtoMessage() {} -func (*Model_Block_Content_Layout) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentLayout) Reset() { *m = ModelBlockContentLayout{} } +func (m *ModelBlockContentLayout) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentLayout) ProtoMessage() {} +func (*ModelBlockContentLayout) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 0} } -func (m *Model_Block_Content_Layout) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentLayout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Layout.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentLayout.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -781,40 +781,40 @@ func (m *Model_Block_Content_Layout) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *Model_Block_Content_Layout) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Layout.Merge(m, src) +func (m *ModelBlockContentLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentLayout.Merge(m, src) } -func (m *Model_Block_Content_Layout) XXX_Size() int { +func (m *ModelBlockContentLayout) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Layout) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Layout.DiscardUnknown(m) +func (m *ModelBlockContentLayout) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentLayout.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Layout proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentLayout proto.InternalMessageInfo -func (m *Model_Block_Content_Layout) GetStyle() Model_Block_Content_Layout_Style { +func (m *ModelBlockContentLayout) GetStyle() ModelBlockContentLayoutStyle { if m != nil { return m.Style } - return Model_Block_Content_Layout_ROW + return ModelBlockContentLayout_ROW } -type Model_Block_Content_Div struct { +type ModelBlockContentDiv struct { } -func (m *Model_Block_Content_Div) Reset() { *m = Model_Block_Content_Div{} } -func (m *Model_Block_Content_Div) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Div) ProtoMessage() {} -func (*Model_Block_Content_Div) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentDiv) Reset() { *m = ModelBlockContentDiv{} } +func (m *ModelBlockContentDiv) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentDiv) ProtoMessage() {} +func (*ModelBlockContentDiv) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 1} } -func (m *Model_Block_Content_Div) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentDiv) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Div) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Div.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentDiv.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -824,35 +824,35 @@ func (m *Model_Block_Content_Div) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *Model_Block_Content_Div) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Div.Merge(m, src) +func (m *ModelBlockContentDiv) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentDiv.Merge(m, src) } -func (m *Model_Block_Content_Div) XXX_Size() int { +func (m *ModelBlockContentDiv) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Div) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Div.DiscardUnknown(m) +func (m *ModelBlockContentDiv) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentDiv.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Div proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentDiv proto.InternalMessageInfo -type Model_Block_Content_Dashboard struct { - Style Model_Block_Content_Dashboard_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Dashboard_Style" json:"style,omitempty"` - Headers []*Model_Block_Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` +type ModelBlockContentDashboard struct { + Style ModelBlockContentDashboardStyle `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.ModelBlockContentDashboardStyle" json:"style,omitempty"` + Headers []*ModelBlockHeader `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` } -func (m *Model_Block_Content_Dashboard) Reset() { *m = Model_Block_Content_Dashboard{} } -func (m *Model_Block_Content_Dashboard) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Dashboard) ProtoMessage() {} -func (*Model_Block_Content_Dashboard) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentDashboard) Reset() { *m = ModelBlockContentDashboard{} } +func (m *ModelBlockContentDashboard) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentDashboard) ProtoMessage() {} +func (*ModelBlockContentDashboard) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 2} } -func (m *Model_Block_Content_Dashboard) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentDashboard) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Dashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Dashboard.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentDashboard.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -862,47 +862,47 @@ func (m *Model_Block_Content_Dashboard) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *Model_Block_Content_Dashboard) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Dashboard.Merge(m, src) +func (m *ModelBlockContentDashboard) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentDashboard.Merge(m, src) } -func (m *Model_Block_Content_Dashboard) XXX_Size() int { +func (m *ModelBlockContentDashboard) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Dashboard) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Dashboard.DiscardUnknown(m) +func (m *ModelBlockContentDashboard) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentDashboard.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Dashboard proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentDashboard proto.InternalMessageInfo -func (m *Model_Block_Content_Dashboard) GetStyle() Model_Block_Content_Dashboard_Style { +func (m *ModelBlockContentDashboard) GetStyle() ModelBlockContentDashboardStyle { if m != nil { return m.Style } - return Model_Block_Content_Dashboard_MAIN_SCREEN + return ModelBlockContentDashboard_MAIN_SCREEN } -func (m *Model_Block_Content_Dashboard) GetHeaders() []*Model_Block_Header { +func (m *ModelBlockContentDashboard) GetHeaders() []*ModelBlockHeader { if m != nil { return m.Headers } return nil } -type Model_Block_Content_Dataview struct { +type ModelBlockContentDataview struct { } -func (m *Model_Block_Content_Dataview) Reset() { *m = Model_Block_Content_Dataview{} } -func (m *Model_Block_Content_Dataview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Dataview) ProtoMessage() {} -func (*Model_Block_Content_Dataview) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentDataview) Reset() { *m = ModelBlockContentDataview{} } +func (m *ModelBlockContentDataview) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentDataview) ProtoMessage() {} +func (*ModelBlockContentDataview) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 3} } -func (m *Model_Block_Content_Dataview) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentDataview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Dataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Dataview.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentDataview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -912,40 +912,40 @@ func (m *Model_Block_Content_Dataview) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *Model_Block_Content_Dataview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Dataview.Merge(m, src) +func (m *ModelBlockContentDataview) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentDataview.Merge(m, src) } -func (m *Model_Block_Content_Dataview) XXX_Size() int { +func (m *ModelBlockContentDataview) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Dataview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Dataview.DiscardUnknown(m) +func (m *ModelBlockContentDataview) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentDataview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Dataview proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentDataview proto.InternalMessageInfo -type Model_Block_Content_Text struct { - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Style Model_Block_Content_Text_Style `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.Model_Block_Content_Text_Style" json:"style,omitempty"` - MarksList *Model_Block_Content_Text_Marks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` - Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` - MarkerType Model_Block_Content_Text_MarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.Model_Block_Content_Text_MarkerType" json:"markerType,omitempty"` - Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` - Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` +type ModelBlockContentText struct { + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Style ModelBlockContentTextStyle `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.ModelBlockContentTextStyle" json:"style,omitempty"` + MarksList *ModelBlockContentTextMarks `protobuf:"bytes,3,opt,name=marksList,proto3" json:"marksList,omitempty"` + Toggleable bool `protobuf:"varint,4,opt,name=toggleable,proto3" json:"toggleable,omitempty"` + MarkerType ModelBlockContentTextMarkerType `protobuf:"varint,5,opt,name=markerType,proto3,enum=anytype.ModelBlockContentTextMarkerType" json:"markerType,omitempty"` + Checkable bool `protobuf:"varint,6,opt,name=checkable,proto3" json:"checkable,omitempty"` + Checked bool `protobuf:"varint,7,opt,name=checked,proto3" json:"checked,omitempty"` } -func (m *Model_Block_Content_Text) Reset() { *m = Model_Block_Content_Text{} } -func (m *Model_Block_Content_Text) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Text) ProtoMessage() {} -func (*Model_Block_Content_Text) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentText) Reset() { *m = ModelBlockContentText{} } +func (m *ModelBlockContentText) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentText) ProtoMessage() {} +func (*ModelBlockContentText) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4} } -func (m *Model_Block_Content_Text) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentText) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Text.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentText.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -955,83 +955,83 @@ func (m *Model_Block_Content_Text) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Model_Block_Content_Text) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Text.Merge(m, src) +func (m *ModelBlockContentText) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentText.Merge(m, src) } -func (m *Model_Block_Content_Text) XXX_Size() int { +func (m *ModelBlockContentText) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Text) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Text.DiscardUnknown(m) +func (m *ModelBlockContentText) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentText.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Text proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentText proto.InternalMessageInfo -func (m *Model_Block_Content_Text) GetText() string { +func (m *ModelBlockContentText) GetText() string { if m != nil { return m.Text } return "" } -func (m *Model_Block_Content_Text) GetStyle() Model_Block_Content_Text_Style { +func (m *ModelBlockContentText) GetStyle() ModelBlockContentTextStyle { if m != nil { return m.Style } - return Model_Block_Content_Text_p + return ModelBlockContentText_p } -func (m *Model_Block_Content_Text) GetMarksList() *Model_Block_Content_Text_Marks { +func (m *ModelBlockContentText) GetMarksList() *ModelBlockContentTextMarks { if m != nil { return m.MarksList } return nil } -func (m *Model_Block_Content_Text) GetToggleable() bool { +func (m *ModelBlockContentText) GetToggleable() bool { if m != nil { return m.Toggleable } return false } -func (m *Model_Block_Content_Text) GetMarkerType() Model_Block_Content_Text_MarkerType { +func (m *ModelBlockContentText) GetMarkerType() ModelBlockContentTextMarkerType { if m != nil { return m.MarkerType } - return Model_Block_Content_Text_none + return ModelBlockContentText_none } -func (m *Model_Block_Content_Text) GetCheckable() bool { +func (m *ModelBlockContentText) GetCheckable() bool { if m != nil { return m.Checkable } return false } -func (m *Model_Block_Content_Text) GetChecked() bool { +func (m *ModelBlockContentText) GetChecked() bool { if m != nil { return m.Checked } return false } -type Model_Block_Content_Text_Marks struct { - Marks []*Model_Block_Content_Text_Mark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` +type ModelBlockContentTextMarks struct { + Marks []*ModelBlockContentTextMark `protobuf:"bytes,1,rep,name=marks,proto3" json:"marks,omitempty"` } -func (m *Model_Block_Content_Text_Marks) Reset() { *m = Model_Block_Content_Text_Marks{} } -func (m *Model_Block_Content_Text_Marks) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Text_Marks) ProtoMessage() {} -func (*Model_Block_Content_Text_Marks) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentTextMarks) Reset() { *m = ModelBlockContentTextMarks{} } +func (m *ModelBlockContentTextMarks) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentTextMarks) ProtoMessage() {} +func (*ModelBlockContentTextMarks) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 0} } -func (m *Model_Block_Content_Text_Marks) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentTextMarks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Text_Marks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentTextMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Text_Marks.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentTextMarks.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1041,43 +1041,43 @@ func (m *Model_Block_Content_Text_Marks) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *Model_Block_Content_Text_Marks) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Text_Marks.Merge(m, src) +func (m *ModelBlockContentTextMarks) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentTextMarks.Merge(m, src) } -func (m *Model_Block_Content_Text_Marks) XXX_Size() int { +func (m *ModelBlockContentTextMarks) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Text_Marks) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Text_Marks.DiscardUnknown(m) +func (m *ModelBlockContentTextMarks) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentTextMarks.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Text_Marks proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentTextMarks proto.InternalMessageInfo -func (m *Model_Block_Content_Text_Marks) GetMarks() []*Model_Block_Content_Text_Mark { +func (m *ModelBlockContentTextMarks) GetMarks() []*ModelBlockContentTextMark { if m != nil { return m.Marks } return nil } -type Model_Block_Content_Text_Mark struct { - Range *Model_Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` - Type Model_Block_Content_Text_Mark_Type `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.Model_Block_Content_Text_Mark_Type" json:"type,omitempty"` - Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` +type ModelBlockContentTextMark struct { + Range *ModelRange `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` + Type ModelBlockContentTextMarkType `protobuf:"varint,2,opt,name=type,proto3,enum=anytype.ModelBlockContentTextMarkType" json:"type,omitempty"` + Param string `protobuf:"bytes,3,opt,name=param,proto3" json:"param,omitempty"` } -func (m *Model_Block_Content_Text_Mark) Reset() { *m = Model_Block_Content_Text_Mark{} } -func (m *Model_Block_Content_Text_Mark) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Text_Mark) ProtoMessage() {} -func (*Model_Block_Content_Text_Mark) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentTextMark) Reset() { *m = ModelBlockContentTextMark{} } +func (m *ModelBlockContentTextMark) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentTextMark) ProtoMessage() {} +func (*ModelBlockContentTextMark) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 4, 1} } -func (m *Model_Block_Content_Text_Mark) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentTextMark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Text_Mark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentTextMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Text_Mark.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentTextMark.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1087,61 +1087,61 @@ func (m *Model_Block_Content_Text_Mark) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *Model_Block_Content_Text_Mark) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Text_Mark.Merge(m, src) +func (m *ModelBlockContentTextMark) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentTextMark.Merge(m, src) } -func (m *Model_Block_Content_Text_Mark) XXX_Size() int { +func (m *ModelBlockContentTextMark) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Text_Mark) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Text_Mark.DiscardUnknown(m) +func (m *ModelBlockContentTextMark) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentTextMark.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Text_Mark proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentTextMark proto.InternalMessageInfo -func (m *Model_Block_Content_Text_Mark) GetRange() *Model_Range { +func (m *ModelBlockContentTextMark) GetRange() *ModelRange { if m != nil { return m.Range } return nil } -func (m *Model_Block_Content_Text_Mark) GetType() Model_Block_Content_Text_Mark_Type { +func (m *ModelBlockContentTextMark) GetType() ModelBlockContentTextMarkType { if m != nil { return m.Type } - return Model_Block_Content_Text_Mark_STRIKETHROUGH + return ModelBlockContentTextMark_STRIKETHROUGH } -func (m *Model_Block_Content_Text_Mark) GetParam() string { +func (m *ModelBlockContentTextMark) GetParam() string { if m != nil { return m.Param } return "" } -type Model_Block_Content_Media struct { - Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - State Model_Block_Content_Media_State `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.Model_Block_Content_Media_State" json:"state,omitempty"` +type ModelBlockContentMedia struct { + Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + State ModelBlockContentMediaState `protobuf:"varint,2,opt,name=state,proto3,enum=anytype.ModelBlockContentMediaState" json:"state,omitempty"` // Types that are valid to be assigned to Preview: - // *Model_Block_Content_Media_Video - // *Model_Block_Content_Media_Image - // *Model_Block_Content_Media_File - Preview isModel_Block_Content_MediaPreview `protobuf_oneof:"preview"` + // *ModelBlockContentMediaPreviewOfVideo + // *ModelBlockContentMediaPreviewOfImage + // *ModelBlockContentMediaPreviewOfFile + Preview isModelBlockContentMediaPreview `protobuf_oneof:"preview"` } -func (m *Model_Block_Content_Media) Reset() { *m = Model_Block_Content_Media{} } -func (m *Model_Block_Content_Media) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Media) ProtoMessage() {} -func (*Model_Block_Content_Media) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentMedia) Reset() { *m = ModelBlockContentMedia{} } +func (m *ModelBlockContentMedia) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentMedia) ProtoMessage() {} +func (*ModelBlockContentMedia) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5} } -func (m *Model_Block_Content_Media) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentMedia) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Media) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Media.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentMedia.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1151,109 +1151,107 @@ func (m *Model_Block_Content_Media) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *Model_Block_Content_Media) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Media.Merge(m, src) +func (m *ModelBlockContentMedia) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentMedia.Merge(m, src) } -func (m *Model_Block_Content_Media) XXX_Size() int { +func (m *ModelBlockContentMedia) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Media) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Media.DiscardUnknown(m) +func (m *ModelBlockContentMedia) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentMedia.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Media proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentMedia proto.InternalMessageInfo -type isModel_Block_Content_MediaPreview interface { - isModel_Block_Content_MediaPreview() +type isModelBlockContentMediaPreview interface { + isModelBlockContentMediaPreview() MarshalTo([]byte) (int, error) Size() int } -type Model_Block_Content_Media_Video struct { - Video *Model_Block_Content_Media_VideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` +type ModelBlockContentMediaPreviewOfVideo struct { + Video *ModelBlockContentMediaVideoPreview `protobuf:"bytes,101,opt,name=video,proto3,oneof" json:"video,omitempty"` } -type Model_Block_Content_Media_Image struct { - Image *Model_Block_Content_Media_ImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` +type ModelBlockContentMediaPreviewOfImage struct { + Image *ModelBlockContentMediaImagePreview `protobuf:"bytes,102,opt,name=image,proto3,oneof" json:"image,omitempty"` } -type Model_Block_Content_Media_File struct { - File *Model_Block_Content_Media_FilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` +type ModelBlockContentMediaPreviewOfFile struct { + File *ModelBlockContentMediaFilePreview `protobuf:"bytes,103,opt,name=file,proto3,oneof" json:"file,omitempty"` } -func (*Model_Block_Content_Media_Video) isModel_Block_Content_MediaPreview() {} -func (*Model_Block_Content_Media_Image) isModel_Block_Content_MediaPreview() {} -func (*Model_Block_Content_Media_File) isModel_Block_Content_MediaPreview() {} +func (*ModelBlockContentMediaPreviewOfVideo) isModelBlockContentMediaPreview() {} +func (*ModelBlockContentMediaPreviewOfImage) isModelBlockContentMediaPreview() {} +func (*ModelBlockContentMediaPreviewOfFile) isModelBlockContentMediaPreview() {} -func (m *Model_Block_Content_Media) GetPreview() isModel_Block_Content_MediaPreview { +func (m *ModelBlockContentMedia) GetPreview() isModelBlockContentMediaPreview { if m != nil { return m.Preview } return nil } -func (m *Model_Block_Content_Media) GetContent() []byte { +func (m *ModelBlockContentMedia) GetContent() []byte { if m != nil { return m.Content } return nil } -func (m *Model_Block_Content_Media) GetState() Model_Block_Content_Media_State { +func (m *ModelBlockContentMedia) GetState() ModelBlockContentMediaState { if m != nil { return m.State } - return Model_Block_Content_Media_EMPTY + return ModelBlockContentMedia_EMPTY } -func (m *Model_Block_Content_Media) GetVideo() *Model_Block_Content_Media_VideoPreview { - if x, ok := m.GetPreview().(*Model_Block_Content_Media_Video); ok { +func (m *ModelBlockContentMedia) GetVideo() *ModelBlockContentMediaVideoPreview { + if x, ok := m.GetPreview().(*ModelBlockContentMediaPreviewOfVideo); ok { return x.Video } return nil } -func (m *Model_Block_Content_Media) GetImage() *Model_Block_Content_Media_ImagePreview { - if x, ok := m.GetPreview().(*Model_Block_Content_Media_Image); ok { +func (m *ModelBlockContentMedia) GetImage() *ModelBlockContentMediaImagePreview { + if x, ok := m.GetPreview().(*ModelBlockContentMediaPreviewOfImage); ok { return x.Image } return nil } -func (m *Model_Block_Content_Media) GetFile() *Model_Block_Content_Media_FilePreview { - if x, ok := m.GetPreview().(*Model_Block_Content_Media_File); ok { +func (m *ModelBlockContentMedia) GetFile() *ModelBlockContentMediaFilePreview { + if x, ok := m.GetPreview().(*ModelBlockContentMediaPreviewOfFile); ok { return x.File } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Model_Block_Content_Media) XXX_OneofWrappers() []interface{} { +func (*ModelBlockContentMedia) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Model_Block_Content_Media_Video)(nil), - (*Model_Block_Content_Media_Image)(nil), - (*Model_Block_Content_Media_File)(nil), + (*ModelBlockContentMediaPreviewOfVideo)(nil), + (*ModelBlockContentMediaPreviewOfImage)(nil), + (*ModelBlockContentMediaPreviewOfFile)(nil), } } -type Model_Block_Content_Media_VideoPreview struct { +type ModelBlockContentMediaVideoPreview struct { Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` } -func (m *Model_Block_Content_Media_VideoPreview) Reset() { - *m = Model_Block_Content_Media_VideoPreview{} -} -func (m *Model_Block_Content_Media_VideoPreview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Media_VideoPreview) ProtoMessage() {} -func (*Model_Block_Content_Media_VideoPreview) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentMediaVideoPreview) Reset() { *m = ModelBlockContentMediaVideoPreview{} } +func (m *ModelBlockContentMediaVideoPreview) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentMediaVideoPreview) ProtoMessage() {} +func (*ModelBlockContentMediaVideoPreview) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 0} } -func (m *Model_Block_Content_Media_VideoPreview) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentMediaVideoPreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Media_VideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentMediaVideoPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Media_VideoPreview.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentMediaVideoPreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1263,59 +1261,57 @@ func (m *Model_Block_Content_Media_VideoPreview) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *Model_Block_Content_Media_VideoPreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Media_VideoPreview.Merge(m, src) +func (m *ModelBlockContentMediaVideoPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentMediaVideoPreview.Merge(m, src) } -func (m *Model_Block_Content_Media_VideoPreview) XXX_Size() int { +func (m *ModelBlockContentMediaVideoPreview) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Media_VideoPreview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Media_VideoPreview.DiscardUnknown(m) +func (m *ModelBlockContentMediaVideoPreview) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentMediaVideoPreview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Media_VideoPreview proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentMediaVideoPreview proto.InternalMessageInfo -func (m *Model_Block_Content_Media_VideoPreview) GetThumbnail() []byte { +func (m *ModelBlockContentMediaVideoPreview) GetThumbnail() []byte { if m != nil { return m.Thumbnail } return nil } -func (m *Model_Block_Content_Media_VideoPreview) GetName() string { +func (m *ModelBlockContentMediaVideoPreview) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Block_Content_Media_VideoPreview) GetWidth() int32 { +func (m *ModelBlockContentMediaVideoPreview) GetWidth() int32 { if m != nil { return m.Width } return 0 } -type Model_Block_Content_Media_ImagePreview struct { +type ModelBlockContentMediaImagePreview struct { Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` } -func (m *Model_Block_Content_Media_ImagePreview) Reset() { - *m = Model_Block_Content_Media_ImagePreview{} -} -func (m *Model_Block_Content_Media_ImagePreview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Media_ImagePreview) ProtoMessage() {} -func (*Model_Block_Content_Media_ImagePreview) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentMediaImagePreview) Reset() { *m = ModelBlockContentMediaImagePreview{} } +func (m *ModelBlockContentMediaImagePreview) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentMediaImagePreview) ProtoMessage() {} +func (*ModelBlockContentMediaImagePreview) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 1} } -func (m *Model_Block_Content_Media_ImagePreview) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentMediaImagePreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Media_ImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentMediaImagePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Media_ImagePreview.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentMediaImagePreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1325,56 +1321,56 @@ func (m *Model_Block_Content_Media_ImagePreview) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *Model_Block_Content_Media_ImagePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Media_ImagePreview.Merge(m, src) +func (m *ModelBlockContentMediaImagePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentMediaImagePreview.Merge(m, src) } -func (m *Model_Block_Content_Media_ImagePreview) XXX_Size() int { +func (m *ModelBlockContentMediaImagePreview) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Media_ImagePreview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Media_ImagePreview.DiscardUnknown(m) +func (m *ModelBlockContentMediaImagePreview) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentMediaImagePreview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Media_ImagePreview proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentMediaImagePreview proto.InternalMessageInfo -func (m *Model_Block_Content_Media_ImagePreview) GetThumbnail() []byte { +func (m *ModelBlockContentMediaImagePreview) GetThumbnail() []byte { if m != nil { return m.Thumbnail } return nil } -func (m *Model_Block_Content_Media_ImagePreview) GetName() string { +func (m *ModelBlockContentMediaImagePreview) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Block_Content_Media_ImagePreview) GetWidth() int32 { +func (m *ModelBlockContentMediaImagePreview) GetWidth() int32 { if m != nil { return m.Width } return 0 } -type Model_Block_Content_Media_FilePreview struct { +type ModelBlockContentMediaFilePreview struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` } -func (m *Model_Block_Content_Media_FilePreview) Reset() { *m = Model_Block_Content_Media_FilePreview{} } -func (m *Model_Block_Content_Media_FilePreview) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Media_FilePreview) ProtoMessage() {} -func (*Model_Block_Content_Media_FilePreview) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentMediaFilePreview) Reset() { *m = ModelBlockContentMediaFilePreview{} } +func (m *ModelBlockContentMediaFilePreview) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentMediaFilePreview) ProtoMessage() {} +func (*ModelBlockContentMediaFilePreview) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 5, 2} } -func (m *Model_Block_Content_Media_FilePreview) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentMediaFilePreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Media_FilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentMediaFilePreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Media_FilePreview.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentMediaFilePreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1384,48 +1380,48 @@ func (m *Model_Block_Content_Media_FilePreview) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *Model_Block_Content_Media_FilePreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Media_FilePreview.Merge(m, src) +func (m *ModelBlockContentMediaFilePreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentMediaFilePreview.Merge(m, src) } -func (m *Model_Block_Content_Media_FilePreview) XXX_Size() int { +func (m *ModelBlockContentMediaFilePreview) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Media_FilePreview) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Media_FilePreview.DiscardUnknown(m) +func (m *ModelBlockContentMediaFilePreview) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentMediaFilePreview.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Media_FilePreview proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentMediaFilePreview proto.InternalMessageInfo -func (m *Model_Block_Content_Media_FilePreview) GetName() string { +func (m *ModelBlockContentMediaFilePreview) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Block_Content_Media_FilePreview) GetIcon() string { +func (m *ModelBlockContentMediaFilePreview) GetIcon() string { if m != nil { return m.Icon } return "" } -type Model_Block_Content_Page struct { - Style Model_Block_Content_Page_Style `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.Model_Block_Content_Page_Style" json:"style,omitempty"` +type ModelBlockContentPage struct { + Style ModelBlockContentPageStyle `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.ModelBlockContentPageStyle" json:"style,omitempty"` } -func (m *Model_Block_Content_Page) Reset() { *m = Model_Block_Content_Page{} } -func (m *Model_Block_Content_Page) String() string { return proto.CompactTextString(m) } -func (*Model_Block_Content_Page) ProtoMessage() {} -func (*Model_Block_Content_Page) Descriptor() ([]byte, []int) { +func (m *ModelBlockContentPage) Reset() { *m = ModelBlockContentPage{} } +func (m *ModelBlockContentPage) String() string { return proto.CompactTextString(m) } +func (*ModelBlockContentPage) ProtoMessage() {} +func (*ModelBlockContentPage) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 0, 1, 6} } -func (m *Model_Block_Content_Page) XXX_Unmarshal(b []byte) error { +func (m *ModelBlockContentPage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Block_Content_Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelBlockContentPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Block_Content_Page.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelBlockContentPage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1435,42 +1431,42 @@ func (m *Model_Block_Content_Page) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *Model_Block_Content_Page) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Block_Content_Page.Merge(m, src) +func (m *ModelBlockContentPage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelBlockContentPage.Merge(m, src) } -func (m *Model_Block_Content_Page) XXX_Size() int { +func (m *ModelBlockContentPage) XXX_Size() int { return m.Size() } -func (m *Model_Block_Content_Page) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Block_Content_Page.DiscardUnknown(m) +func (m *ModelBlockContentPage) XXX_DiscardUnknown() { + xxx_messageInfo_ModelBlockContentPage.DiscardUnknown(m) } -var xxx_messageInfo_Model_Block_Content_Page proto.InternalMessageInfo +var xxx_messageInfo_ModelBlockContentPage proto.InternalMessageInfo -func (m *Model_Block_Content_Page) GetStyle() Model_Block_Content_Page_Style { +func (m *ModelBlockContentPage) GetStyle() ModelBlockContentPageStyle { if m != nil { return m.Style } - return Model_Block_Content_Page_EMPTY + return ModelBlockContentPage_EMPTY } -type Model_Range struct { +type ModelRange struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int32 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` } -func (m *Model_Range) Reset() { *m = Model_Range{} } -func (m *Model_Range) String() string { return proto.CompactTextString(m) } -func (*Model_Range) ProtoMessage() {} -func (*Model_Range) Descriptor() ([]byte, []int) { +func (m *ModelRange) Reset() { *m = ModelRange{} } +func (m *ModelRange) String() string { return proto.CompactTextString(m) } +func (*ModelRange) ProtoMessage() {} +func (*ModelRange) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 1} } -func (m *Model_Range) XXX_Unmarshal(b []byte) error { +func (m *ModelRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Range.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1480,49 +1476,49 @@ func (m *Model_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Model_Range) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Range.Merge(m, src) +func (m *ModelRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelRange.Merge(m, src) } -func (m *Model_Range) XXX_Size() int { +func (m *ModelRange) XXX_Size() int { return m.Size() } -func (m *Model_Range) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Range.DiscardUnknown(m) +func (m *ModelRange) XXX_DiscardUnknown() { + xxx_messageInfo_ModelRange.DiscardUnknown(m) } -var xxx_messageInfo_Model_Range proto.InternalMessageInfo +var xxx_messageInfo_ModelRange proto.InternalMessageInfo -func (m *Model_Range) GetFrom() int32 { +func (m *ModelRange) GetFrom() int32 { if m != nil { return m.From } return 0 } -func (m *Model_Range) GetTo() int32 { +func (m *ModelRange) GetTo() int32 { if m != nil { return m.To } return 0 } -type Model_Struct struct { +type ModelStruct struct { // Unordered map of dynamically typed values. - Fields map[string]*Model_Struct_Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Fields map[string]*ModelStructValue `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *Model_Struct) Reset() { *m = Model_Struct{} } -func (m *Model_Struct) String() string { return proto.CompactTextString(m) } -func (*Model_Struct) ProtoMessage() {} -func (*Model_Struct) Descriptor() ([]byte, []int) { +func (m *ModelStruct) Reset() { *m = ModelStruct{} } +func (m *ModelStruct) String() string { return proto.CompactTextString(m) } +func (*ModelStruct) ProtoMessage() {} +func (*ModelStruct) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 2} } -func (m *Model_Struct) XXX_Unmarshal(b []byte) error { +func (m *ModelStruct) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelStruct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Struct.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelStruct.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1532,19 +1528,19 @@ func (m *Model_Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Model_Struct) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Struct.Merge(m, src) +func (m *ModelStruct) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelStruct.Merge(m, src) } -func (m *Model_Struct) XXX_Size() int { +func (m *ModelStruct) XXX_Size() int { return m.Size() } -func (m *Model_Struct) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Struct.DiscardUnknown(m) +func (m *ModelStruct) XXX_DiscardUnknown() { + xxx_messageInfo_ModelStruct.DiscardUnknown(m) } -var xxx_messageInfo_Model_Struct proto.InternalMessageInfo +var xxx_messageInfo_ModelStruct proto.InternalMessageInfo -func (m *Model_Struct) GetFields() map[string]*Model_Struct_Value { +func (m *ModelStruct) GetFields() map[string]*ModelStructValue { if m != nil { return m.Fields } @@ -1555,29 +1551,29 @@ func (m *Model_Struct) GetFields() map[string]*Model_Struct_Value { // null, a number, a string, a boolean, a recursive struct value, or a // list of values. A producer of value is expected to set one of that // variants, absence of any variant indicates an error. -type Model_Struct_Value struct { +type ModelStructValue struct { // Types that are valid to be assigned to Kind: - // *Model_Struct_Value_NullValue - // *Model_Struct_Value_NumberValue - // *Model_Struct_Value_StringValue - // *Model_Struct_Value_BoolValue - // *Model_Struct_Value_StructValue - // *Model_Struct_Value_ListValue - Kind isModel_Struct_ValueKind `protobuf_oneof:"kind"` + // *ModelStructValueKindOfNullValue + // *ModelStructValueKindOfNumberValue + // *ModelStructValueKindOfStringValue + // *ModelStructValueKindOfBoolValue + // *ModelStructValueKindOfStructValue + // *ModelStructValueKindOfListValue + Kind isModelStructValueKind `protobuf_oneof:"kind"` } -func (m *Model_Struct_Value) Reset() { *m = Model_Struct_Value{} } -func (m *Model_Struct_Value) String() string { return proto.CompactTextString(m) } -func (*Model_Struct_Value) ProtoMessage() {} -func (*Model_Struct_Value) Descriptor() ([]byte, []int) { +func (m *ModelStructValue) Reset() { *m = ModelStructValue{} } +func (m *ModelStructValue) String() string { return proto.CompactTextString(m) } +func (*ModelStructValue) ProtoMessage() {} +func (*ModelStructValue) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 2, 1} } -func (m *Model_Struct_Value) XXX_Unmarshal(b []byte) error { +func (m *ModelStructValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Struct_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelStructValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Struct_Value.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelStructValue.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1587,128 +1583,128 @@ func (m *Model_Struct_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *Model_Struct_Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Struct_Value.Merge(m, src) +func (m *ModelStructValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelStructValue.Merge(m, src) } -func (m *Model_Struct_Value) XXX_Size() int { +func (m *ModelStructValue) XXX_Size() int { return m.Size() } -func (m *Model_Struct_Value) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Struct_Value.DiscardUnknown(m) +func (m *ModelStructValue) XXX_DiscardUnknown() { + xxx_messageInfo_ModelStructValue.DiscardUnknown(m) } -var xxx_messageInfo_Model_Struct_Value proto.InternalMessageInfo +var xxx_messageInfo_ModelStructValue proto.InternalMessageInfo -type isModel_Struct_ValueKind interface { - isModel_Struct_ValueKind() +type isModelStructValueKind interface { + isModelStructValueKind() MarshalTo([]byte) (int, error) Size() int } -type Model_Struct_Value_NullValue struct { - NullValue Model_Struct_NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=anytype.Model_Struct_NullValue,oneof" json:"null_value,omitempty"` +type ModelStructValueKindOfNullValue struct { + NullValue ModelStructNullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=anytype.ModelStructNullValue,oneof" json:"null_value,omitempty"` } -type Model_Struct_Value_NumberValue struct { +type ModelStructValueKindOfNumberValue struct { NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof" json:"number_value,omitempty"` } -type Model_Struct_Value_StringValue struct { +type ModelStructValueKindOfStringValue struct { StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"` } -type Model_Struct_Value_BoolValue struct { +type ModelStructValueKindOfBoolValue struct { BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"` } -type Model_Struct_Value_StructValue struct { - StructValue *Model_Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof" json:"struct_value,omitempty"` +type ModelStructValueKindOfStructValue struct { + StructValue *ModelStruct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof" json:"struct_value,omitempty"` } -type Model_Struct_Value_ListValue struct { - ListValue *Model_Struct_ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof" json:"list_value,omitempty"` +type ModelStructValueKindOfListValue struct { + ListValue *ModelStructListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof" json:"list_value,omitempty"` } -func (*Model_Struct_Value_NullValue) isModel_Struct_ValueKind() {} -func (*Model_Struct_Value_NumberValue) isModel_Struct_ValueKind() {} -func (*Model_Struct_Value_StringValue) isModel_Struct_ValueKind() {} -func (*Model_Struct_Value_BoolValue) isModel_Struct_ValueKind() {} -func (*Model_Struct_Value_StructValue) isModel_Struct_ValueKind() {} -func (*Model_Struct_Value_ListValue) isModel_Struct_ValueKind() {} +func (*ModelStructValueKindOfNullValue) isModelStructValueKind() {} +func (*ModelStructValueKindOfNumberValue) isModelStructValueKind() {} +func (*ModelStructValueKindOfStringValue) isModelStructValueKind() {} +func (*ModelStructValueKindOfBoolValue) isModelStructValueKind() {} +func (*ModelStructValueKindOfStructValue) isModelStructValueKind() {} +func (*ModelStructValueKindOfListValue) isModelStructValueKind() {} -func (m *Model_Struct_Value) GetKind() isModel_Struct_ValueKind { +func (m *ModelStructValue) GetKind() isModelStructValueKind { if m != nil { return m.Kind } return nil } -func (m *Model_Struct_Value) GetNullValue() Model_Struct_NullValue { - if x, ok := m.GetKind().(*Model_Struct_Value_NullValue); ok { +func (m *ModelStructValue) GetNullValue() ModelStructNullValue { + if x, ok := m.GetKind().(*ModelStructValueKindOfNullValue); ok { return x.NullValue } - return Model_Struct_NULL_VALUE + return ModelStruct_NULL_VALUE } -func (m *Model_Struct_Value) GetNumberValue() float64 { - if x, ok := m.GetKind().(*Model_Struct_Value_NumberValue); ok { +func (m *ModelStructValue) GetNumberValue() float64 { + if x, ok := m.GetKind().(*ModelStructValueKindOfNumberValue); ok { return x.NumberValue } return 0 } -func (m *Model_Struct_Value) GetStringValue() string { - if x, ok := m.GetKind().(*Model_Struct_Value_StringValue); ok { +func (m *ModelStructValue) GetStringValue() string { + if x, ok := m.GetKind().(*ModelStructValueKindOfStringValue); ok { return x.StringValue } return "" } -func (m *Model_Struct_Value) GetBoolValue() bool { - if x, ok := m.GetKind().(*Model_Struct_Value_BoolValue); ok { +func (m *ModelStructValue) GetBoolValue() bool { + if x, ok := m.GetKind().(*ModelStructValueKindOfBoolValue); ok { return x.BoolValue } return false } -func (m *Model_Struct_Value) GetStructValue() *Model_Struct { - if x, ok := m.GetKind().(*Model_Struct_Value_StructValue); ok { +func (m *ModelStructValue) GetStructValue() *ModelStruct { + if x, ok := m.GetKind().(*ModelStructValueKindOfStructValue); ok { return x.StructValue } return nil } -func (m *Model_Struct_Value) GetListValue() *Model_Struct_ListValue { - if x, ok := m.GetKind().(*Model_Struct_Value_ListValue); ok { +func (m *ModelStructValue) GetListValue() *ModelStructListValue { + if x, ok := m.GetKind().(*ModelStructValueKindOfListValue); ok { return x.ListValue } return nil } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Model_Struct_Value) XXX_OneofWrappers() []interface{} { +func (*ModelStructValue) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Model_Struct_Value_NullValue)(nil), - (*Model_Struct_Value_NumberValue)(nil), - (*Model_Struct_Value_StringValue)(nil), - (*Model_Struct_Value_BoolValue)(nil), - (*Model_Struct_Value_StructValue)(nil), - (*Model_Struct_Value_ListValue)(nil), + (*ModelStructValueKindOfNullValue)(nil), + (*ModelStructValueKindOfNumberValue)(nil), + (*ModelStructValueKindOfStringValue)(nil), + (*ModelStructValueKindOfBoolValue)(nil), + (*ModelStructValueKindOfStructValue)(nil), + (*ModelStructValueKindOfListValue)(nil), } } // `ListValue` is a wrapper around a repeated field of values. -type Model_Struct_ListValue struct { - Values []*Model_Struct_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +type ModelStructListValue struct { + Values []*ModelStructValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } -func (m *Model_Struct_ListValue) Reset() { *m = Model_Struct_ListValue{} } -func (m *Model_Struct_ListValue) String() string { return proto.CompactTextString(m) } -func (*Model_Struct_ListValue) ProtoMessage() {} -func (*Model_Struct_ListValue) Descriptor() ([]byte, []int) { +func (m *ModelStructListValue) Reset() { *m = ModelStructListValue{} } +func (m *ModelStructListValue) String() string { return proto.CompactTextString(m) } +func (*ModelStructListValue) ProtoMessage() {} +func (*ModelStructListValue) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 2, 2} } -func (m *Model_Struct_ListValue) XXX_Unmarshal(b []byte) error { +func (m *ModelStructListValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Struct_ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelStructListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Struct_ListValue.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelStructListValue.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1718,19 +1714,19 @@ func (m *Model_Struct_ListValue) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *Model_Struct_ListValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Struct_ListValue.Merge(m, src) +func (m *ModelStructListValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelStructListValue.Merge(m, src) } -func (m *Model_Struct_ListValue) XXX_Size() int { +func (m *ModelStructListValue) XXX_Size() int { return m.Size() } -func (m *Model_Struct_ListValue) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Struct_ListValue.DiscardUnknown(m) +func (m *ModelStructListValue) XXX_DiscardUnknown() { + xxx_messageInfo_ModelStructListValue.DiscardUnknown(m) } -var xxx_messageInfo_Model_Struct_ListValue proto.InternalMessageInfo +var xxx_messageInfo_ModelStructListValue proto.InternalMessageInfo -func (m *Model_Struct_ListValue) GetValues() []*Model_Struct_Value { +func (m *ModelStructListValue) GetValues() []*ModelStructValue { if m != nil { return m.Values } @@ -1739,24 +1735,24 @@ func (m *Model_Struct_ListValue) GetValues() []*Model_Struct_Value { //* // Contains basic information about user account -type Model_Account struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Avatar *Model_Account_Avatar `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` +type ModelAccount struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Avatar *ModelAccountAvatar `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` } -func (m *Model_Account) Reset() { *m = Model_Account{} } -func (m *Model_Account) String() string { return proto.CompactTextString(m) } -func (*Model_Account) ProtoMessage() {} -func (*Model_Account) Descriptor() ([]byte, []int) { +func (m *ModelAccount) Reset() { *m = ModelAccount{} } +func (m *ModelAccount) String() string { return proto.CompactTextString(m) } +func (*ModelAccount) ProtoMessage() {} +func (*ModelAccount) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 3} } -func (m *Model_Account) XXX_Unmarshal(b []byte) error { +func (m *ModelAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Account.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelAccount.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1766,33 +1762,33 @@ func (m *Model_Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *Model_Account) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Account.Merge(m, src) +func (m *ModelAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelAccount.Merge(m, src) } -func (m *Model_Account) XXX_Size() int { +func (m *ModelAccount) XXX_Size() int { return m.Size() } -func (m *Model_Account) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Account.DiscardUnknown(m) +func (m *ModelAccount) XXX_DiscardUnknown() { + xxx_messageInfo_ModelAccount.DiscardUnknown(m) } -var xxx_messageInfo_Model_Account proto.InternalMessageInfo +var xxx_messageInfo_ModelAccount proto.InternalMessageInfo -func (m *Model_Account) GetId() string { +func (m *ModelAccount) GetId() string { if m != nil { return m.Id } return "" } -func (m *Model_Account) GetName() string { +func (m *ModelAccount) GetName() string { if m != nil { return m.Name } return "" } -func (m *Model_Account) GetAvatar() *Model_Account_Avatar { +func (m *ModelAccount) GetAvatar() *ModelAccountAvatar { if m != nil { return m.Avatar } @@ -1801,25 +1797,25 @@ func (m *Model_Account) GetAvatar() *Model_Account_Avatar { //* // Avatar of a user's account. It could be an image or color -type Model_Account_Avatar struct { +type ModelAccountAvatar struct { // Types that are valid to be assigned to Avatar: - // *Model_Account_Avatar_Image - // *Model_Account_Avatar_Color - Avatar isModel_Account_AvatarAvatar `protobuf_oneof:"avatar"` + // *ModelAccountAvatarAvatarOfImage + // *ModelAccountAvatarAvatarOfColor + Avatar isModelAccountAvatarAvatar `protobuf_oneof:"avatar"` } -func (m *Model_Account_Avatar) Reset() { *m = Model_Account_Avatar{} } -func (m *Model_Account_Avatar) String() string { return proto.CompactTextString(m) } -func (*Model_Account_Avatar) ProtoMessage() {} -func (*Model_Account_Avatar) Descriptor() ([]byte, []int) { +func (m *ModelAccountAvatar) Reset() { *m = ModelAccountAvatar{} } +func (m *ModelAccountAvatar) String() string { return proto.CompactTextString(m) } +func (*ModelAccountAvatar) ProtoMessage() {} +func (*ModelAccountAvatar) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 3, 0} } -func (m *Model_Account_Avatar) XXX_Unmarshal(b []byte) error { +func (m *ModelAccountAvatar) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Account_Avatar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelAccountAvatar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Account_Avatar.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelAccountAvatar.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1829,80 +1825,80 @@ func (m *Model_Account_Avatar) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *Model_Account_Avatar) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Account_Avatar.Merge(m, src) +func (m *ModelAccountAvatar) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelAccountAvatar.Merge(m, src) } -func (m *Model_Account_Avatar) XXX_Size() int { +func (m *ModelAccountAvatar) XXX_Size() int { return m.Size() } -func (m *Model_Account_Avatar) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Account_Avatar.DiscardUnknown(m) +func (m *ModelAccountAvatar) XXX_DiscardUnknown() { + xxx_messageInfo_ModelAccountAvatar.DiscardUnknown(m) } -var xxx_messageInfo_Model_Account_Avatar proto.InternalMessageInfo +var xxx_messageInfo_ModelAccountAvatar proto.InternalMessageInfo -type isModel_Account_AvatarAvatar interface { - isModel_Account_AvatarAvatar() +type isModelAccountAvatarAvatar interface { + isModelAccountAvatarAvatar() MarshalTo([]byte) (int, error) Size() int } -type Model_Account_Avatar_Image struct { - Image *Model_Image `protobuf:"bytes,1,opt,name=image,proto3,oneof" json:"image,omitempty"` +type ModelAccountAvatarAvatarOfImage struct { + Image *ModelImage `protobuf:"bytes,1,opt,name=image,proto3,oneof" json:"image,omitempty"` } -type Model_Account_Avatar_Color struct { +type ModelAccountAvatarAvatarOfColor struct { Color string `protobuf:"bytes,2,opt,name=color,proto3,oneof" json:"color,omitempty"` } -func (*Model_Account_Avatar_Image) isModel_Account_AvatarAvatar() {} -func (*Model_Account_Avatar_Color) isModel_Account_AvatarAvatar() {} +func (*ModelAccountAvatarAvatarOfImage) isModelAccountAvatarAvatar() {} +func (*ModelAccountAvatarAvatarOfColor) isModelAccountAvatarAvatar() {} -func (m *Model_Account_Avatar) GetAvatar() isModel_Account_AvatarAvatar { +func (m *ModelAccountAvatar) GetAvatar() isModelAccountAvatarAvatar { if m != nil { return m.Avatar } return nil } -func (m *Model_Account_Avatar) GetImage() *Model_Image { - if x, ok := m.GetAvatar().(*Model_Account_Avatar_Image); ok { +func (m *ModelAccountAvatar) GetImage() *ModelImage { + if x, ok := m.GetAvatar().(*ModelAccountAvatarAvatarOfImage); ok { return x.Image } return nil } -func (m *Model_Account_Avatar) GetColor() string { - if x, ok := m.GetAvatar().(*Model_Account_Avatar_Color); ok { +func (m *ModelAccountAvatar) GetColor() string { + if x, ok := m.GetAvatar().(*ModelAccountAvatarAvatarOfColor); ok { return x.Color } return "" } // XXX_OneofWrappers is for the internal use of the proto package. -func (*Model_Account_Avatar) XXX_OneofWrappers() []interface{} { +func (*ModelAccountAvatar) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*Model_Account_Avatar_Image)(nil), - (*Model_Account_Avatar_Color)(nil), + (*ModelAccountAvatarAvatarOfImage)(nil), + (*ModelAccountAvatarAvatarOfColor)(nil), } } -type Model_Image struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Sizes []Model_Image_Size `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.Model_Image_Size" json:"sizes,omitempty"` +type ModelImage struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sizes []ModelImageSize `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.ModelImageSize" json:"sizes,omitempty"` } -func (m *Model_Image) Reset() { *m = Model_Image{} } -func (m *Model_Image) String() string { return proto.CompactTextString(m) } -func (*Model_Image) ProtoMessage() {} -func (*Model_Image) Descriptor() ([]byte, []int) { +func (m *ModelImage) Reset() { *m = ModelImage{} } +func (m *ModelImage) String() string { return proto.CompactTextString(m) } +func (*ModelImage) ProtoMessage() {} +func (*ModelImage) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 4} } -func (m *Model_Image) XXX_Unmarshal(b []byte) error { +func (m *ModelImage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Image.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelImage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1912,49 +1908,49 @@ func (m *Model_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Model_Image) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Image.Merge(m, src) +func (m *ModelImage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelImage.Merge(m, src) } -func (m *Model_Image) XXX_Size() int { +func (m *ModelImage) XXX_Size() int { return m.Size() } -func (m *Model_Image) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Image.DiscardUnknown(m) +func (m *ModelImage) XXX_DiscardUnknown() { + xxx_messageInfo_ModelImage.DiscardUnknown(m) } -var xxx_messageInfo_Model_Image proto.InternalMessageInfo +var xxx_messageInfo_ModelImage proto.InternalMessageInfo -func (m *Model_Image) GetId() string { +func (m *ModelImage) GetId() string { if m != nil { return m.Id } return "" } -func (m *Model_Image) GetSizes() []Model_Image_Size { +func (m *ModelImage) GetSizes() []ModelImageSize { if m != nil { return m.Sizes } return nil } -type Model_Video struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Sizes []Model_Video_Size `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.Model_Video_Size" json:"sizes,omitempty"` +type ModelVideo struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sizes []ModelVideoSize `protobuf:"varint,2,rep,packed,name=sizes,proto3,enum=anytype.ModelVideoSize" json:"sizes,omitempty"` } -func (m *Model_Video) Reset() { *m = Model_Video{} } -func (m *Model_Video) String() string { return proto.CompactTextString(m) } -func (*Model_Video) ProtoMessage() {} -func (*Model_Video) Descriptor() ([]byte, []int) { +func (m *ModelVideo) Reset() { *m = ModelVideo{} } +func (m *ModelVideo) String() string { return proto.CompactTextString(m) } +func (*ModelVideo) ProtoMessage() {} +func (*ModelVideo) Descriptor() ([]byte, []int) { return fileDescriptor_0b5431a010549573, []int{0, 5} } -func (m *Model_Video) XXX_Unmarshal(b []byte) error { +func (m *ModelVideo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Model_Video) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ModelVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Model_Video.Marshal(b, m, deterministic) + return xxx_messageInfo_ModelVideo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1964,26 +1960,26 @@ func (m *Model_Video) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *Model_Video) XXX_Merge(src proto.Message) { - xxx_messageInfo_Model_Video.Merge(m, src) +func (m *ModelVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModelVideo.Merge(m, src) } -func (m *Model_Video) XXX_Size() int { +func (m *ModelVideo) XXX_Size() int { return m.Size() } -func (m *Model_Video) XXX_DiscardUnknown() { - xxx_messageInfo_Model_Video.DiscardUnknown(m) +func (m *ModelVideo) XXX_DiscardUnknown() { + xxx_messageInfo_ModelVideo.DiscardUnknown(m) } -var xxx_messageInfo_Model_Video proto.InternalMessageInfo +var xxx_messageInfo_ModelVideo proto.InternalMessageInfo -func (m *Model_Video) GetId() string { +func (m *ModelVideo) GetId() string { if m != nil { return m.Id } return "" } -func (m *Model_Video) GetSizes() []Model_Video_Size { +func (m *ModelVideo) GetSizes() []ModelVideoSize { if m != nil { return m.Sizes } @@ -1991,43 +1987,43 @@ func (m *Model_Video) GetSizes() []Model_Video_Size { } func init() { - proto.RegisterEnum("anytype.Model_Block_Header_Type", Model_Block_Header_Type_name, Model_Block_Header_Type_value) - proto.RegisterEnum("anytype.Model_Block_Content_Layout_Style", Model_Block_Content_Layout_Style_name, Model_Block_Content_Layout_Style_value) - proto.RegisterEnum("anytype.Model_Block_Content_Dashboard_Style", Model_Block_Content_Dashboard_Style_name, Model_Block_Content_Dashboard_Style_value) - proto.RegisterEnum("anytype.Model_Block_Content_Text_Style", Model_Block_Content_Text_Style_name, Model_Block_Content_Text_Style_value) - proto.RegisterEnum("anytype.Model_Block_Content_Text_MarkerType", Model_Block_Content_Text_MarkerType_name, Model_Block_Content_Text_MarkerType_value) - proto.RegisterEnum("anytype.Model_Block_Content_Text_Mark_Type", Model_Block_Content_Text_Mark_Type_name, Model_Block_Content_Text_Mark_Type_value) - proto.RegisterEnum("anytype.Model_Block_Content_Media_State", Model_Block_Content_Media_State_name, Model_Block_Content_Media_State_value) - proto.RegisterEnum("anytype.Model_Block_Content_Page_Style", Model_Block_Content_Page_Style_name, Model_Block_Content_Page_Style_value) - proto.RegisterEnum("anytype.Model_Struct_NullValue", Model_Struct_NullValue_name, Model_Struct_NullValue_value) - proto.RegisterEnum("anytype.Model_Image_Size", Model_Image_Size_name, Model_Image_Size_value) - proto.RegisterEnum("anytype.Model_Video_Size", Model_Video_Size_name, Model_Video_Size_value) + proto.RegisterEnum("anytype.ModelBlockHeaderType", ModelBlockHeaderType_name, ModelBlockHeaderType_value) + proto.RegisterEnum("anytype.ModelBlockContentLayoutStyle", ModelBlockContentLayoutStyle_name, ModelBlockContentLayoutStyle_value) + proto.RegisterEnum("anytype.ModelBlockContentDashboardStyle", ModelBlockContentDashboardStyle_name, ModelBlockContentDashboardStyle_value) + proto.RegisterEnum("anytype.ModelBlockContentTextStyle", ModelBlockContentTextStyle_name, ModelBlockContentTextStyle_value) + proto.RegisterEnum("anytype.ModelBlockContentTextMarkerType", ModelBlockContentTextMarkerType_name, ModelBlockContentTextMarkerType_value) + proto.RegisterEnum("anytype.ModelBlockContentTextMarkType", ModelBlockContentTextMarkType_name, ModelBlockContentTextMarkType_value) + proto.RegisterEnum("anytype.ModelBlockContentMediaState", ModelBlockContentMediaState_name, ModelBlockContentMediaState_value) + proto.RegisterEnum("anytype.ModelBlockContentPageStyle", ModelBlockContentPageStyle_name, ModelBlockContentPageStyle_value) + proto.RegisterEnum("anytype.ModelStructNullValue", ModelStructNullValue_name, ModelStructNullValue_value) + proto.RegisterEnum("anytype.ModelImageSize", ModelImageSize_name, ModelImageSize_value) + proto.RegisterEnum("anytype.ModelVideoSize", ModelVideoSize_name, ModelVideoSize_value) proto.RegisterType((*Model)(nil), "anytype.Model") - proto.RegisterType((*Model_Block)(nil), "anytype.Model.Block") - proto.RegisterType((*Model_Block_Header)(nil), "anytype.Model.Block.Header") - proto.RegisterType((*Model_Block_Header_Permissions)(nil), "anytype.Model.Block.Header.Permissions") - proto.RegisterType((*Model_Block_Content)(nil), "anytype.Model.Block.Content") - proto.RegisterType((*Model_Block_Content_Layout)(nil), "anytype.Model.Block.Content.Layout") - proto.RegisterType((*Model_Block_Content_Div)(nil), "anytype.Model.Block.Content.Div") - proto.RegisterType((*Model_Block_Content_Dashboard)(nil), "anytype.Model.Block.Content.Dashboard") - proto.RegisterType((*Model_Block_Content_Dataview)(nil), "anytype.Model.Block.Content.Dataview") - proto.RegisterType((*Model_Block_Content_Text)(nil), "anytype.Model.Block.Content.Text") - proto.RegisterType((*Model_Block_Content_Text_Marks)(nil), "anytype.Model.Block.Content.Text.Marks") - proto.RegisterType((*Model_Block_Content_Text_Mark)(nil), "anytype.Model.Block.Content.Text.Mark") - proto.RegisterType((*Model_Block_Content_Media)(nil), "anytype.Model.Block.Content.Media") - proto.RegisterType((*Model_Block_Content_Media_VideoPreview)(nil), "anytype.Model.Block.Content.Media.VideoPreview") - proto.RegisterType((*Model_Block_Content_Media_ImagePreview)(nil), "anytype.Model.Block.Content.Media.ImagePreview") - proto.RegisterType((*Model_Block_Content_Media_FilePreview)(nil), "anytype.Model.Block.Content.Media.FilePreview") - proto.RegisterType((*Model_Block_Content_Page)(nil), "anytype.Model.Block.Content.Page") - proto.RegisterType((*Model_Range)(nil), "anytype.Model.Range") - proto.RegisterType((*Model_Struct)(nil), "anytype.Model.Struct") - proto.RegisterMapType((map[string]*Model_Struct_Value)(nil), "anytype.Model.Struct.FieldsEntry") - proto.RegisterType((*Model_Struct_Value)(nil), "anytype.Model.Struct.Value") - proto.RegisterType((*Model_Struct_ListValue)(nil), "anytype.Model.Struct.ListValue") - proto.RegisterType((*Model_Account)(nil), "anytype.Model.Account") - proto.RegisterType((*Model_Account_Avatar)(nil), "anytype.Model.Account.Avatar") - proto.RegisterType((*Model_Image)(nil), "anytype.Model.Image") - proto.RegisterType((*Model_Video)(nil), "anytype.Model.Video") + proto.RegisterType((*ModelBlock)(nil), "anytype.Model.Block") + proto.RegisterType((*ModelBlockHeader)(nil), "anytype.Model.Block.Header") + proto.RegisterType((*ModelBlockHeaderPermissions)(nil), "anytype.Model.Block.Header.Permissions") + proto.RegisterType((*ModelBlockContent)(nil), "anytype.Model.Block.Content") + proto.RegisterType((*ModelBlockContentLayout)(nil), "anytype.Model.Block.Content.Layout") + proto.RegisterType((*ModelBlockContentDiv)(nil), "anytype.Model.Block.Content.Div") + proto.RegisterType((*ModelBlockContentDashboard)(nil), "anytype.Model.Block.Content.Dashboard") + proto.RegisterType((*ModelBlockContentDataview)(nil), "anytype.Model.Block.Content.Dataview") + proto.RegisterType((*ModelBlockContentText)(nil), "anytype.Model.Block.Content.Text") + proto.RegisterType((*ModelBlockContentTextMarks)(nil), "anytype.Model.Block.Content.Text.Marks") + proto.RegisterType((*ModelBlockContentTextMark)(nil), "anytype.Model.Block.Content.Text.Mark") + proto.RegisterType((*ModelBlockContentMedia)(nil), "anytype.Model.Block.Content.Media") + proto.RegisterType((*ModelBlockContentMediaVideoPreview)(nil), "anytype.Model.Block.Content.Media.VideoPreview") + proto.RegisterType((*ModelBlockContentMediaImagePreview)(nil), "anytype.Model.Block.Content.Media.ImagePreview") + proto.RegisterType((*ModelBlockContentMediaFilePreview)(nil), "anytype.Model.Block.Content.Media.FilePreview") + proto.RegisterType((*ModelBlockContentPage)(nil), "anytype.Model.Block.Content.Page") + proto.RegisterType((*ModelRange)(nil), "anytype.Model.Range") + proto.RegisterType((*ModelStruct)(nil), "anytype.Model.Struct") + proto.RegisterMapType((map[string]*ModelStructValue)(nil), "anytype.Model.Struct.FieldsEntry") + proto.RegisterType((*ModelStructValue)(nil), "anytype.Model.Struct.Value") + proto.RegisterType((*ModelStructListValue)(nil), "anytype.Model.Struct.ListValue") + proto.RegisterType((*ModelAccount)(nil), "anytype.Model.Account") + proto.RegisterType((*ModelAccountAvatar)(nil), "anytype.Model.Account.Avatar") + proto.RegisterType((*ModelImage)(nil), "anytype.Model.Image") + proto.RegisterType((*ModelVideo)(nil), "anytype.Model.Video") } func init() { proto.RegisterFile("models.proto", fileDescriptor_0b5431a010549573) } @@ -2164,7 +2160,7 @@ func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Block) Marshal() (dAtA []byte, err error) { +func (m *ModelBlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2174,12 +2170,12 @@ func (m *Model_Block) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2217,12 +2213,12 @@ func (m *Model_Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Block_Dashboard) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfDashboard) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Dashboard != nil { { @@ -2238,12 +2234,12 @@ func (m *Model_Block_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Page) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfPage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Page != nil { { @@ -2259,12 +2255,12 @@ func (m *Model_Block_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Dataview) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfDataview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Dataview != nil { { @@ -2280,12 +2276,12 @@ func (m *Model_Block_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Text) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfText) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfText) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Text != nil { { @@ -2301,12 +2297,12 @@ func (m *Model_Block_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Media) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfMedia) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Media != nil { { @@ -2322,12 +2318,12 @@ func (m *Model_Block_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Layout) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfLayout) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Layout != nil { { @@ -2345,12 +2341,12 @@ func (m *Model_Block_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Div) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfDiv) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentOfDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Div != nil { { @@ -2368,7 +2364,7 @@ func (m *Model_Block_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *Model_Block_Header) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2378,12 +2374,12 @@ func (m *Model_Block_Header) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Header) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2427,7 +2423,7 @@ func (m *Model_Block_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Block_Header_Permissions) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockHeaderPermissions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2437,12 +2433,12 @@ func (m *Model_Block_Header_Permissions) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Header_Permissions) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockHeaderPermissions) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockHeaderPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2500,7 +2496,7 @@ func (m *Model_Block_Header_Permissions) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Model_Block_Content) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2510,12 +2506,12 @@ func (m *Model_Block_Content) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContent) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2523,7 +2519,7 @@ func (m *Model_Block_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Block_Content_Layout) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentLayout) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2533,12 +2529,12 @@ func (m *Model_Block_Content_Layout) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Layout) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentLayout) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Layout) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2551,7 +2547,7 @@ func (m *Model_Block_Content_Layout) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *Model_Block_Content_Div) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentDiv) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2561,12 +2557,12 @@ func (m *Model_Block_Content_Div) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Div) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentDiv) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2574,7 +2570,7 @@ func (m *Model_Block_Content_Div) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Model_Block_Content_Dashboard) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentDashboard) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2584,12 +2580,12 @@ func (m *Model_Block_Content_Dashboard) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Dashboard) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentDashboard) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentDashboard) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2616,7 +2612,7 @@ func (m *Model_Block_Content_Dashboard) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Model_Block_Content_Dataview) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentDataview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2626,12 +2622,12 @@ func (m *Model_Block_Content_Dataview) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Dataview) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentDataview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2639,7 +2635,7 @@ func (m *Model_Block_Content_Dataview) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Model_Block_Content_Text) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentText) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2649,12 +2645,12 @@ func (m *Model_Block_Content_Text) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Text) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentText) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentText) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2721,7 +2717,7 @@ func (m *Model_Block_Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Model_Block_Content_Text_Marks) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentTextMarks) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2731,12 +2727,12 @@ func (m *Model_Block_Content_Text_Marks) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Text_Marks) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentTextMarks) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Text_Marks) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentTextMarks) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2758,7 +2754,7 @@ func (m *Model_Block_Content_Text_Marks) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Model_Block_Content_Text_Mark) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentTextMark) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2768,12 +2764,12 @@ func (m *Model_Block_Content_Text_Mark) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Text_Mark) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentTextMark) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Text_Mark) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentTextMark) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2805,7 +2801,7 @@ func (m *Model_Block_Content_Text_Mark) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentMedia) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2815,12 +2811,12 @@ func (m *Model_Block_Content_Media) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Media) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMedia) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2849,12 +2845,12 @@ func (m *Model_Block_Content_Media) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media_Video) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaPreviewOfVideo) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaPreviewOfVideo) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Video != nil { { @@ -2872,12 +2868,12 @@ func (m *Model_Block_Content_Media_Video) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media_Image) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaPreviewOfImage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaPreviewOfImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Image != nil { { @@ -2895,12 +2891,12 @@ func (m *Model_Block_Content_Media_Image) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media_File) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaPreviewOfFile) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaPreviewOfFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.File != nil { { @@ -2918,7 +2914,7 @@ func (m *Model_Block_Content_Media_File) MarshalToSizedBuffer(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media_VideoPreview) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentMediaVideoPreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2928,12 +2924,12 @@ func (m *Model_Block_Content_Media_VideoPreview) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *Model_Block_Content_Media_VideoPreview) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaVideoPreview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media_VideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaVideoPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2960,7 +2956,7 @@ func (m *Model_Block_Content_Media_VideoPreview) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media_ImagePreview) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentMediaImagePreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2970,12 +2966,12 @@ func (m *Model_Block_Content_Media_ImagePreview) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *Model_Block_Content_Media_ImagePreview) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaImagePreview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media_ImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaImagePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3002,7 +2998,7 @@ func (m *Model_Block_Content_Media_ImagePreview) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *Model_Block_Content_Media_FilePreview) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentMediaFilePreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3012,12 +3008,12 @@ func (m *Model_Block_Content_Media_FilePreview) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *Model_Block_Content_Media_FilePreview) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaFilePreview) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Media_FilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentMediaFilePreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3039,7 +3035,7 @@ func (m *Model_Block_Content_Media_FilePreview) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *Model_Block_Content_Page) Marshal() (dAtA []byte, err error) { +func (m *ModelBlockContentPage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3049,12 +3045,12 @@ func (m *Model_Block_Content_Page) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Block_Content_Page) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelBlockContentPage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelBlockContentPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3067,7 +3063,7 @@ func (m *Model_Block_Content_Page) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Model_Range) Marshal() (dAtA []byte, err error) { +func (m *ModelRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3077,12 +3073,12 @@ func (m *Model_Range) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Range) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3100,7 +3096,7 @@ func (m *Model_Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Struct) Marshal() (dAtA []byte, err error) { +func (m *ModelStruct) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3110,12 +3106,12 @@ func (m *Model_Struct) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Struct) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStruct) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStruct) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3149,7 +3145,7 @@ func (m *Model_Struct) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Struct_Value) Marshal() (dAtA []byte, err error) { +func (m *ModelStructValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3159,12 +3155,12 @@ func (m *Model_Struct_Value) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Struct_Value) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3181,24 +3177,24 @@ func (m *Model_Struct_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Struct_Value_NullValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfNullValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value_NullValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfNullValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintModels(dAtA, i, uint64(m.NullValue)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil } -func (m *Model_Struct_Value_NumberValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfNumberValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value_NumberValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfNumberValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= 8 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) @@ -3206,12 +3202,12 @@ func (m *Model_Struct_Value_NumberValue) MarshalToSizedBuffer(dAtA []byte) (int, dAtA[i] = 0x11 return len(dAtA) - i, nil } -func (m *Model_Struct_Value_StringValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfStringValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfStringValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.StringValue) copy(dAtA[i:], m.StringValue) @@ -3220,12 +3216,12 @@ func (m *Model_Struct_Value_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, dAtA[i] = 0x1a return len(dAtA) - i, nil } -func (m *Model_Struct_Value_BoolValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfBoolValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfBoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.BoolValue { @@ -3237,12 +3233,12 @@ func (m *Model_Struct_Value_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, e dAtA[i] = 0x20 return len(dAtA) - i, nil } -func (m *Model_Struct_Value_StructValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfStructValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value_StructValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfStructValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.StructValue != nil { { @@ -3258,12 +3254,12 @@ func (m *Model_Struct_Value_StructValue) MarshalToSizedBuffer(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Model_Struct_Value_ListValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfListValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_Value_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructValueKindOfListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ListValue != nil { { @@ -3279,7 +3275,7 @@ func (m *Model_Struct_Value_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Model_Struct_ListValue) Marshal() (dAtA []byte, err error) { +func (m *ModelStructListValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3289,12 +3285,12 @@ func (m *Model_Struct_ListValue) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Struct_ListValue) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelStructListValue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Struct_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelStructListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3316,7 +3312,7 @@ func (m *Model_Struct_ListValue) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Model_Account) Marshal() (dAtA []byte, err error) { +func (m *ModelAccount) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3326,12 +3322,12 @@ func (m *Model_Account) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Account) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3365,7 +3361,7 @@ func (m *Model_Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Account_Avatar) Marshal() (dAtA []byte, err error) { +func (m *ModelAccountAvatar) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3375,12 +3371,12 @@ func (m *Model_Account_Avatar) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Account_Avatar) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelAccountAvatar) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Account_Avatar) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelAccountAvatar) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3397,12 +3393,12 @@ func (m *Model_Account_Avatar) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Account_Avatar_Image) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelAccountAvatarAvatarOfImage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Account_Avatar_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelAccountAvatarAvatarOfImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Image != nil { { @@ -3418,12 +3414,12 @@ func (m *Model_Account_Avatar_Image) MarshalToSizedBuffer(dAtA []byte) (int, err } return len(dAtA) - i, nil } -func (m *Model_Account_Avatar_Color) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelAccountAvatarAvatarOfColor) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Account_Avatar_Color) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelAccountAvatarAvatarOfColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Color) copy(dAtA[i:], m.Color) @@ -3432,7 +3428,7 @@ func (m *Model_Account_Avatar_Color) MarshalToSizedBuffer(dAtA []byte) (int, err dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *Model_Image) Marshal() (dAtA []byte, err error) { +func (m *ModelImage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3442,12 +3438,12 @@ func (m *Model_Image) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Image) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelImage) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3480,7 +3476,7 @@ func (m *Model_Image) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Model_Video) Marshal() (dAtA []byte, err error) { +func (m *ModelVideo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3490,12 +3486,12 @@ func (m *Model_Video) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Model_Video) MarshalTo(dAtA []byte) (int, error) { +func (m *ModelVideo) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Model_Video) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ModelVideo) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3548,7 +3544,7 @@ func (m *Model) Size() (n int) { return n } -func (m *Model_Block) Size() (n int) { +func (m *ModelBlock) Size() (n int) { if m == nil { return 0 } @@ -3570,7 +3566,7 @@ func (m *Model_Block) Size() (n int) { return n } -func (m *Model_Block_Dashboard) Size() (n int) { +func (m *ModelBlockContentOfDashboard) Size() (n int) { if m == nil { return 0 } @@ -3582,7 +3578,7 @@ func (m *Model_Block_Dashboard) Size() (n int) { } return n } -func (m *Model_Block_Page) Size() (n int) { +func (m *ModelBlockContentOfPage) Size() (n int) { if m == nil { return 0 } @@ -3594,7 +3590,7 @@ func (m *Model_Block_Page) Size() (n int) { } return n } -func (m *Model_Block_Dataview) Size() (n int) { +func (m *ModelBlockContentOfDataview) Size() (n int) { if m == nil { return 0 } @@ -3606,7 +3602,7 @@ func (m *Model_Block_Dataview) Size() (n int) { } return n } -func (m *Model_Block_Text) Size() (n int) { +func (m *ModelBlockContentOfText) Size() (n int) { if m == nil { return 0 } @@ -3618,7 +3614,7 @@ func (m *Model_Block_Text) Size() (n int) { } return n } -func (m *Model_Block_Media) Size() (n int) { +func (m *ModelBlockContentOfMedia) Size() (n int) { if m == nil { return 0 } @@ -3630,7 +3626,7 @@ func (m *Model_Block_Media) Size() (n int) { } return n } -func (m *Model_Block_Layout) Size() (n int) { +func (m *ModelBlockContentOfLayout) Size() (n int) { if m == nil { return 0 } @@ -3642,7 +3638,7 @@ func (m *Model_Block_Layout) Size() (n int) { } return n } -func (m *Model_Block_Div) Size() (n int) { +func (m *ModelBlockContentOfDiv) Size() (n int) { if m == nil { return 0 } @@ -3654,7 +3650,7 @@ func (m *Model_Block_Div) Size() (n int) { } return n } -func (m *Model_Block_Header) Size() (n int) { +func (m *ModelBlockHeader) Size() (n int) { if m == nil { return 0 } @@ -3678,7 +3674,7 @@ func (m *Model_Block_Header) Size() (n int) { return n } -func (m *Model_Block_Header_Permissions) Size() (n int) { +func (m *ModelBlockHeaderPermissions) Size() (n int) { if m == nil { return 0 } @@ -3702,7 +3698,7 @@ func (m *Model_Block_Header_Permissions) Size() (n int) { return n } -func (m *Model_Block_Content) Size() (n int) { +func (m *ModelBlockContent) Size() (n int) { if m == nil { return 0 } @@ -3711,7 +3707,7 @@ func (m *Model_Block_Content) Size() (n int) { return n } -func (m *Model_Block_Content_Layout) Size() (n int) { +func (m *ModelBlockContentLayout) Size() (n int) { if m == nil { return 0 } @@ -3723,7 +3719,7 @@ func (m *Model_Block_Content_Layout) Size() (n int) { return n } -func (m *Model_Block_Content_Div) Size() (n int) { +func (m *ModelBlockContentDiv) Size() (n int) { if m == nil { return 0 } @@ -3732,7 +3728,7 @@ func (m *Model_Block_Content_Div) Size() (n int) { return n } -func (m *Model_Block_Content_Dashboard) Size() (n int) { +func (m *ModelBlockContentDashboard) Size() (n int) { if m == nil { return 0 } @@ -3750,7 +3746,7 @@ func (m *Model_Block_Content_Dashboard) Size() (n int) { return n } -func (m *Model_Block_Content_Dataview) Size() (n int) { +func (m *ModelBlockContentDataview) Size() (n int) { if m == nil { return 0 } @@ -3759,7 +3755,7 @@ func (m *Model_Block_Content_Dataview) Size() (n int) { return n } -func (m *Model_Block_Content_Text) Size() (n int) { +func (m *ModelBlockContentText) Size() (n int) { if m == nil { return 0 } @@ -3791,7 +3787,7 @@ func (m *Model_Block_Content_Text) Size() (n int) { return n } -func (m *Model_Block_Content_Text_Marks) Size() (n int) { +func (m *ModelBlockContentTextMarks) Size() (n int) { if m == nil { return 0 } @@ -3806,7 +3802,7 @@ func (m *Model_Block_Content_Text_Marks) Size() (n int) { return n } -func (m *Model_Block_Content_Text_Mark) Size() (n int) { +func (m *ModelBlockContentTextMark) Size() (n int) { if m == nil { return 0 } @@ -3826,7 +3822,7 @@ func (m *Model_Block_Content_Text_Mark) Size() (n int) { return n } -func (m *Model_Block_Content_Media) Size() (n int) { +func (m *ModelBlockContentMedia) Size() (n int) { if m == nil { return 0 } @@ -3845,7 +3841,7 @@ func (m *Model_Block_Content_Media) Size() (n int) { return n } -func (m *Model_Block_Content_Media_Video) Size() (n int) { +func (m *ModelBlockContentMediaPreviewOfVideo) Size() (n int) { if m == nil { return 0 } @@ -3857,7 +3853,7 @@ func (m *Model_Block_Content_Media_Video) Size() (n int) { } return n } -func (m *Model_Block_Content_Media_Image) Size() (n int) { +func (m *ModelBlockContentMediaPreviewOfImage) Size() (n int) { if m == nil { return 0 } @@ -3869,7 +3865,7 @@ func (m *Model_Block_Content_Media_Image) Size() (n int) { } return n } -func (m *Model_Block_Content_Media_File) Size() (n int) { +func (m *ModelBlockContentMediaPreviewOfFile) Size() (n int) { if m == nil { return 0 } @@ -3881,7 +3877,7 @@ func (m *Model_Block_Content_Media_File) Size() (n int) { } return n } -func (m *Model_Block_Content_Media_VideoPreview) Size() (n int) { +func (m *ModelBlockContentMediaVideoPreview) Size() (n int) { if m == nil { return 0 } @@ -3901,7 +3897,7 @@ func (m *Model_Block_Content_Media_VideoPreview) Size() (n int) { return n } -func (m *Model_Block_Content_Media_ImagePreview) Size() (n int) { +func (m *ModelBlockContentMediaImagePreview) Size() (n int) { if m == nil { return 0 } @@ -3921,7 +3917,7 @@ func (m *Model_Block_Content_Media_ImagePreview) Size() (n int) { return n } -func (m *Model_Block_Content_Media_FilePreview) Size() (n int) { +func (m *ModelBlockContentMediaFilePreview) Size() (n int) { if m == nil { return 0 } @@ -3938,7 +3934,7 @@ func (m *Model_Block_Content_Media_FilePreview) Size() (n int) { return n } -func (m *Model_Block_Content_Page) Size() (n int) { +func (m *ModelBlockContentPage) Size() (n int) { if m == nil { return 0 } @@ -3950,7 +3946,7 @@ func (m *Model_Block_Content_Page) Size() (n int) { return n } -func (m *Model_Range) Size() (n int) { +func (m *ModelRange) Size() (n int) { if m == nil { return 0 } @@ -3965,7 +3961,7 @@ func (m *Model_Range) Size() (n int) { return n } -func (m *Model_Struct) Size() (n int) { +func (m *ModelStruct) Size() (n int) { if m == nil { return 0 } @@ -3987,7 +3983,7 @@ func (m *Model_Struct) Size() (n int) { return n } -func (m *Model_Struct_Value) Size() (n int) { +func (m *ModelStructValue) Size() (n int) { if m == nil { return 0 } @@ -3999,7 +3995,7 @@ func (m *Model_Struct_Value) Size() (n int) { return n } -func (m *Model_Struct_Value_NullValue) Size() (n int) { +func (m *ModelStructValueKindOfNullValue) Size() (n int) { if m == nil { return 0 } @@ -4008,7 +4004,7 @@ func (m *Model_Struct_Value_NullValue) Size() (n int) { n += 1 + sovModels(uint64(m.NullValue)) return n } -func (m *Model_Struct_Value_NumberValue) Size() (n int) { +func (m *ModelStructValueKindOfNumberValue) Size() (n int) { if m == nil { return 0 } @@ -4017,7 +4013,7 @@ func (m *Model_Struct_Value_NumberValue) Size() (n int) { n += 9 return n } -func (m *Model_Struct_Value_StringValue) Size() (n int) { +func (m *ModelStructValueKindOfStringValue) Size() (n int) { if m == nil { return 0 } @@ -4027,7 +4023,7 @@ func (m *Model_Struct_Value_StringValue) Size() (n int) { n += 1 + l + sovModels(uint64(l)) return n } -func (m *Model_Struct_Value_BoolValue) Size() (n int) { +func (m *ModelStructValueKindOfBoolValue) Size() (n int) { if m == nil { return 0 } @@ -4036,7 +4032,7 @@ func (m *Model_Struct_Value_BoolValue) Size() (n int) { n += 2 return n } -func (m *Model_Struct_Value_StructValue) Size() (n int) { +func (m *ModelStructValueKindOfStructValue) Size() (n int) { if m == nil { return 0 } @@ -4048,7 +4044,7 @@ func (m *Model_Struct_Value_StructValue) Size() (n int) { } return n } -func (m *Model_Struct_Value_ListValue) Size() (n int) { +func (m *ModelStructValueKindOfListValue) Size() (n int) { if m == nil { return 0 } @@ -4060,7 +4056,7 @@ func (m *Model_Struct_Value_ListValue) Size() (n int) { } return n } -func (m *Model_Struct_ListValue) Size() (n int) { +func (m *ModelStructListValue) Size() (n int) { if m == nil { return 0 } @@ -4075,7 +4071,7 @@ func (m *Model_Struct_ListValue) Size() (n int) { return n } -func (m *Model_Account) Size() (n int) { +func (m *ModelAccount) Size() (n int) { if m == nil { return 0 } @@ -4096,7 +4092,7 @@ func (m *Model_Account) Size() (n int) { return n } -func (m *Model_Account_Avatar) Size() (n int) { +func (m *ModelAccountAvatar) Size() (n int) { if m == nil { return 0 } @@ -4108,7 +4104,7 @@ func (m *Model_Account_Avatar) Size() (n int) { return n } -func (m *Model_Account_Avatar_Image) Size() (n int) { +func (m *ModelAccountAvatarAvatarOfImage) Size() (n int) { if m == nil { return 0 } @@ -4120,7 +4116,7 @@ func (m *Model_Account_Avatar_Image) Size() (n int) { } return n } -func (m *Model_Account_Avatar_Color) Size() (n int) { +func (m *ModelAccountAvatarAvatarOfColor) Size() (n int) { if m == nil { return 0 } @@ -4130,7 +4126,7 @@ func (m *Model_Account_Avatar_Color) Size() (n int) { n += 1 + l + sovModels(uint64(l)) return n } -func (m *Model_Image) Size() (n int) { +func (m *ModelImage) Size() (n int) { if m == nil { return 0 } @@ -4150,7 +4146,7 @@ func (m *Model_Image) Size() (n int) { return n } -func (m *Model_Video) Size() (n int) { +func (m *ModelVideo) Size() (n int) { if m == nil { return 0 } @@ -4229,7 +4225,7 @@ func (m *Model) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block) Unmarshal(dAtA []byte) error { +func (m *ModelBlock) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4288,7 +4284,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &Model_Block_Header{} + m.Header = &ModelBlockHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4355,11 +4351,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Dashboard{} + v := &ModelBlockContentDashboard{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Dashboard{v} + m.Content = &ModelBlockContentOfDashboard{v} iNdEx = postIndex case 12: if wireType != 2 { @@ -4390,11 +4386,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Page{} + v := &ModelBlockContentPage{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Page{v} + m.Content = &ModelBlockContentOfPage{v} iNdEx = postIndex case 13: if wireType != 2 { @@ -4425,11 +4421,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Dataview{} + v := &ModelBlockContentDataview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Dataview{v} + m.Content = &ModelBlockContentOfDataview{v} iNdEx = postIndex case 14: if wireType != 2 { @@ -4460,11 +4456,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Text{} + v := &ModelBlockContentText{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Text{v} + m.Content = &ModelBlockContentOfText{v} iNdEx = postIndex case 15: if wireType != 2 { @@ -4495,11 +4491,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Media{} + v := &ModelBlockContentMedia{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Media{v} + m.Content = &ModelBlockContentOfMedia{v} iNdEx = postIndex case 16: if wireType != 2 { @@ -4530,11 +4526,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Layout{} + v := &ModelBlockContentLayout{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Layout{v} + m.Content = &ModelBlockContentOfLayout{v} iNdEx = postIndex case 17: if wireType != 2 { @@ -4565,11 +4561,11 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Div{} + v := &ModelBlockContentDiv{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Content = &Model_Block_Div{v} + m.Content = &ModelBlockContentOfDiv{v} iNdEx = postIndex default: iNdEx = preIndex @@ -4595,7 +4591,7 @@ func (m *Model_Block) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { +func (m *ModelBlockHeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4670,7 +4666,7 @@ func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Model_Block_Header_Type(b&0x7F) << shift + m.Type |= ModelBlockHeaderType(b&0x7F) << shift if b < 0x80 { break } @@ -4705,7 +4701,7 @@ func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Fields == nil { - m.Fields = &Model_Struct{} + m.Fields = &ModelStruct{} } if err := m.Fields.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4741,7 +4737,7 @@ func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Permissions == nil { - m.Permissions = &Model_Block_Header_Permissions{} + m.Permissions = &ModelBlockHeaderPermissions{} } if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4771,7 +4767,7 @@ func (m *Model_Block_Header) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Header_Permissions) Unmarshal(dAtA []byte) error { +func (m *ModelBlockHeaderPermissions) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4924,7 +4920,7 @@ func (m *Model_Block_Header_Permissions) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4977,7 +4973,7 @@ func (m *Model_Block_Content) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Layout) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentLayout) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5020,7 +5016,7 @@ func (m *Model_Block_Content_Layout) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_Content_Layout_Style(b&0x7F) << shift + m.Style |= ModelBlockContentLayoutStyle(b&0x7F) << shift if b < 0x80 { break } @@ -5049,7 +5045,7 @@ func (m *Model_Block_Content_Layout) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Div) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentDiv) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5102,7 +5098,7 @@ func (m *Model_Block_Content_Div) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentDashboard) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5145,7 +5141,7 @@ func (m *Model_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_Content_Dashboard_Style(b&0x7F) << shift + m.Style |= ModelBlockContentDashboardStyle(b&0x7F) << shift if b < 0x80 { break } @@ -5179,7 +5175,7 @@ func (m *Model_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Headers = append(m.Headers, &Model_Block_Header{}) + m.Headers = append(m.Headers, &ModelBlockHeader{}) if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -5208,7 +5204,7 @@ func (m *Model_Block_Content_Dashboard) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Dataview) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentDataview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5261,7 +5257,7 @@ func (m *Model_Block_Content_Dataview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Text) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentText) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5336,7 +5332,7 @@ func (m *Model_Block_Content_Text) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_Content_Text_Style(b&0x7F) << shift + m.Style |= ModelBlockContentTextStyle(b&0x7F) << shift if b < 0x80 { break } @@ -5371,7 +5367,7 @@ func (m *Model_Block_Content_Text) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MarksList == nil { - m.MarksList = &Model_Block_Content_Text_Marks{} + m.MarksList = &ModelBlockContentTextMarks{} } if err := m.MarksList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5411,7 +5407,7 @@ func (m *Model_Block_Content_Text) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MarkerType |= Model_Block_Content_Text_MarkerType(b&0x7F) << shift + m.MarkerType |= ModelBlockContentTextMarkerType(b&0x7F) << shift if b < 0x80 { break } @@ -5480,7 +5476,7 @@ func (m *Model_Block_Content_Text) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Text_Marks) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentTextMarks) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5538,7 +5534,7 @@ func (m *Model_Block_Content_Text_Marks) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Marks = append(m.Marks, &Model_Block_Content_Text_Mark{}) + m.Marks = append(m.Marks, &ModelBlockContentTextMark{}) if err := m.Marks[len(m.Marks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -5567,7 +5563,7 @@ func (m *Model_Block_Content_Text_Marks) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Text_Mark) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentTextMark) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5626,7 +5622,7 @@ func (m *Model_Block_Content_Text_Mark) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Range == nil { - m.Range = &Model_Range{} + m.Range = &ModelRange{} } if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5646,7 +5642,7 @@ func (m *Model_Block_Content_Text_Mark) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Model_Block_Content_Text_Mark_Type(b&0x7F) << shift + m.Type |= ModelBlockContentTextMarkType(b&0x7F) << shift if b < 0x80 { break } @@ -5707,7 +5703,7 @@ func (m *Model_Block_Content_Text_Mark) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentMedia) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5784,7 +5780,7 @@ func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= Model_Block_Content_Media_State(b&0x7F) << shift + m.State |= ModelBlockContentMediaState(b&0x7F) << shift if b < 0x80 { break } @@ -5818,11 +5814,11 @@ func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Media_VideoPreview{} + v := &ModelBlockContentMediaVideoPreview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Preview = &Model_Block_Content_Media_Video{v} + m.Preview = &ModelBlockContentMediaPreviewOfVideo{v} iNdEx = postIndex case 102: if wireType != 2 { @@ -5853,11 +5849,11 @@ func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Media_ImagePreview{} + v := &ModelBlockContentMediaImagePreview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Preview = &Model_Block_Content_Media_Image{v} + m.Preview = &ModelBlockContentMediaPreviewOfImage{v} iNdEx = postIndex case 103: if wireType != 2 { @@ -5888,11 +5884,11 @@ func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Block_Content_Media_FilePreview{} + v := &ModelBlockContentMediaFilePreview{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Preview = &Model_Block_Content_Media_File{v} + m.Preview = &ModelBlockContentMediaPreviewOfFile{v} iNdEx = postIndex default: iNdEx = preIndex @@ -5918,7 +5914,7 @@ func (m *Model_Block_Content_Media) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Media_VideoPreview) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentMediaVideoPreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6056,7 +6052,7 @@ func (m *Model_Block_Content_Media_VideoPreview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Media_ImagePreview) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentMediaImagePreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6194,7 +6190,7 @@ func (m *Model_Block_Content_Media_ImagePreview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Media_FilePreview) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentMediaFilePreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6311,7 +6307,7 @@ func (m *Model_Block_Content_Media_FilePreview) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Block_Content_Page) Unmarshal(dAtA []byte) error { +func (m *ModelBlockContentPage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6354,7 +6350,7 @@ func (m *Model_Block_Content_Page) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Style |= Model_Block_Content_Page_Style(b&0x7F) << shift + m.Style |= ModelBlockContentPageStyle(b&0x7F) << shift if b < 0x80 { break } @@ -6383,7 +6379,7 @@ func (m *Model_Block_Content_Page) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Range) Unmarshal(dAtA []byte) error { +func (m *ModelRange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6474,7 +6470,7 @@ func (m *Model_Range) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Struct) Unmarshal(dAtA []byte) error { +func (m *ModelStruct) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6533,10 +6529,10 @@ func (m *Model_Struct) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Fields == nil { - m.Fields = make(map[string]*Model_Struct_Value) + m.Fields = make(map[string]*ModelStructValue) } var mapkey string - var mapvalue *Model_Struct_Value + var mapvalue *ModelStructValue for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -6610,7 +6606,7 @@ func (m *Model_Struct) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &Model_Struct_Value{} + mapvalue = &ModelStructValue{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -6656,7 +6652,7 @@ func (m *Model_Struct) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { +func (m *ModelStructValue) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6689,7 +6685,7 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NullValue", wireType) } - var v Model_Struct_NullValue + var v ModelStructNullValue for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModels @@ -6699,12 +6695,12 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Struct_NullValue(b&0x7F) << shift + v |= ModelStructNullValue(b&0x7F) << shift if b < 0x80 { break } } - m.Kind = &Model_Struct_Value_NullValue{v} + m.Kind = &ModelStructValueKindOfNullValue{v} case 2: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) @@ -6715,7 +6711,7 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { } v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 - m.Kind = &Model_Struct_Value_NumberValue{float64(math.Float64frombits(v))} + m.Kind = &ModelStructValueKindOfNumberValue{float64(math.Float64frombits(v))} case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) @@ -6746,7 +6742,7 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Kind = &Model_Struct_Value_StringValue{string(dAtA[iNdEx:postIndex])} + m.Kind = &ModelStructValueKindOfStringValue{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 0 { @@ -6768,7 +6764,7 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { } } b := bool(v != 0) - m.Kind = &Model_Struct_Value_BoolValue{b} + m.Kind = &ModelStructValueKindOfBoolValue{b} case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StructValue", wireType) @@ -6798,11 +6794,11 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Struct{} + v := &ModelStruct{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Kind = &Model_Struct_Value_StructValue{v} + m.Kind = &ModelStructValueKindOfStructValue{v} iNdEx = postIndex case 6: if wireType != 2 { @@ -6833,11 +6829,11 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Struct_ListValue{} + v := &ModelStructListValue{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Kind = &Model_Struct_Value_ListValue{v} + m.Kind = &ModelStructValueKindOfListValue{v} iNdEx = postIndex default: iNdEx = preIndex @@ -6863,7 +6859,7 @@ func (m *Model_Struct_Value) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Struct_ListValue) Unmarshal(dAtA []byte) error { +func (m *ModelStructListValue) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6921,7 +6917,7 @@ func (m *Model_Struct_ListValue) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Values = append(m.Values, &Model_Struct_Value{}) + m.Values = append(m.Values, &ModelStructValue{}) if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -6950,7 +6946,7 @@ func (m *Model_Struct_ListValue) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Account) Unmarshal(dAtA []byte) error { +func (m *ModelAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7073,7 +7069,7 @@ func (m *Model_Account) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Avatar == nil { - m.Avatar = &Model_Account_Avatar{} + m.Avatar = &ModelAccountAvatar{} } if err := m.Avatar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7103,7 +7099,7 @@ func (m *Model_Account) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Account_Avatar) Unmarshal(dAtA []byte) error { +func (m *ModelAccountAvatar) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7161,11 +7157,11 @@ func (m *Model_Account_Avatar) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &Model_Image{} + v := &ModelImage{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Avatar = &Model_Account_Avatar_Image{v} + m.Avatar = &ModelAccountAvatarAvatarOfImage{v} iNdEx = postIndex case 2: if wireType != 2 { @@ -7197,7 +7193,7 @@ func (m *Model_Account_Avatar) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Avatar = &Model_Account_Avatar_Color{string(dAtA[iNdEx:postIndex])} + m.Avatar = &ModelAccountAvatarAvatarOfColor{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex default: iNdEx = preIndex @@ -7223,7 +7219,7 @@ func (m *Model_Account_Avatar) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Image) Unmarshal(dAtA []byte) error { +func (m *ModelImage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7286,7 +7282,7 @@ func (m *Model_Image) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType == 0 { - var v Model_Image_Size + var v ModelImageSize for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModels @@ -7296,7 +7292,7 @@ func (m *Model_Image) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Image_Size(b&0x7F) << shift + v |= ModelImageSize(b&0x7F) << shift if b < 0x80 { break } @@ -7330,10 +7326,10 @@ func (m *Model_Image) Unmarshal(dAtA []byte) error { } var elementCount int if elementCount != 0 && len(m.Sizes) == 0 { - m.Sizes = make([]Model_Image_Size, 0, elementCount) + m.Sizes = make([]ModelImageSize, 0, elementCount) } for iNdEx < postIndex { - var v Model_Image_Size + var v ModelImageSize for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModels @@ -7343,7 +7339,7 @@ func (m *Model_Image) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Image_Size(b&0x7F) << shift + v |= ModelImageSize(b&0x7F) << shift if b < 0x80 { break } @@ -7377,7 +7373,7 @@ func (m *Model_Image) Unmarshal(dAtA []byte) error { } return nil } -func (m *Model_Video) Unmarshal(dAtA []byte) error { +func (m *ModelVideo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7440,7 +7436,7 @@ func (m *Model_Video) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType == 0 { - var v Model_Video_Size + var v ModelVideoSize for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModels @@ -7450,7 +7446,7 @@ func (m *Model_Video) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Video_Size(b&0x7F) << shift + v |= ModelVideoSize(b&0x7F) << shift if b < 0x80 { break } @@ -7484,10 +7480,10 @@ func (m *Model_Video) Unmarshal(dAtA []byte) error { } var elementCount int if elementCount != 0 && len(m.Sizes) == 0 { - m.Sizes = make([]Model_Video_Size, 0, elementCount) + m.Sizes = make([]ModelVideoSize, 0, elementCount) } for iNdEx < postIndex { - var v Model_Video_Size + var v ModelVideoSize for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowModels @@ -7497,7 +7493,7 @@ func (m *Model_Video) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= Model_Video_Size(b&0x7F) << shift + v |= ModelVideoSize(b&0x7F) << shift if b < 0x80 { break }